Mon Mar 18 22:54:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
[platform/upstream/glibc.git] / ChangeLog
1 Mon Mar 18 22:54:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2
3         * sysdeps/unix/sysv/linux/wait3.c: New file.
4         * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
5         one from sysdeps/posix.
6
7 Wed Mar 20 09:42:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
8
9         * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
10
11         * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
12         lt_executable, then lt_library.
13         * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
14
15 Wed Mar 20 00:08:23 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
16
17         * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
18
19 Tue Mar 19 16:31:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
20
21         * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
22         VEOL2, VMIN, VTIME): Corrected.
23         (PAGEOUT, WRAP, VDSUSP): Deleted.
24
25 Tue Mar 19 14:18:42 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
26
27         * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
28         (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
29
30         * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
31
32         * math/math.h: Move M_* constants before __math.h include.
33         [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
34
35         * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
36         If log10 is not defined (i.e. no -lm), use stupid loop instead.
37
38         * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
39         and no other _*_SOURCE macro is.
40         (_GNU_SOURCE): Don't define by default.
41         * libc-symbols.h (_GNU_SOURCE): Define it.
42
43         * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
44
45         * config.make.in (weak-symbols): Variable removed.
46         * configure.in (--with-weak-symbols): Option removed.
47         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
48         New tests.
49
50         * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
51         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
52         New #undefs.
53         * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
54
55         * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
56
57 Mon Mar  4 20:17:28 1996  David Mosberger-Tang  <davidm@azstarnet.com>
58
59         * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
60         * inet/inet_mkadr.c: Likewise.
61         * inet/inet_net.c: Likewise.
62         * inet/inet_netof.c: Likewise.
63         * inet/rcmd.c: Likewise.
64         * inet/arpa/inet.h: Likewise.
65         * inet/netinet/in.h: Likewise.
66         * inet/netinet/tcp.h: Likewise.
67         * inet/protocols/rwhod.h: Likewise.
68         * inet/protocols/talkd.h: Likewise.
69         * resolv/inet_addr.c: Likewise.
70
71         * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
72
73         * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
74
75         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
76         umount.
77
78         * sysdeps/alpha/__math.h (atan, cabs): New functions.
79
80         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
81         expects set-value, not pointer to it).
82
83 Sun Feb 25 22:36:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
84
85         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
86
87         * gmon/gmon.c (__bb_head): new variable.
88         (write_hist, write_call_graph, write_bb_counts): new functions.
89         (_mcleanup): modified to call above functions instead of directly
90         writing out gmon.out.
91         * gmon/sys/gmon.h (struct __bb): New type.
92         (struct gmonhdr): Type removed.
93         (struct gmonparam): New member `log_hashfraction'.
94         (GMONVERSION): Macro removed.
95
96         * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
97         sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
98         files.
99         * gmon/Makefile (headers): Add sys/gmon_out.h.
100         (routines): Add bb_init_func, bb_exit_func.
101
102         * gmon/mcount.c: Avoid integer division.
103
104 Wed Feb 21 23:56:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
105
106         * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
107         passed to match what __sigsetjmp_aux() expects.
108
109 Tue Feb 20 11:33:46 1996  David Mosberger-Tang  <davidm@azstarnet.com>
110
111         * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
112         connect, getpeername, getsockname, listen, recv, recvfrom,
113         recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
114         added to override same-name assembly file in the parent directory.
115
116         * stdlib/stdlib.h: add include of sys/types.h in front of random
117         etc declarations to ensure int32_t is declared.
118
119         * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
120         where 32 bit integers are required.  Also change LONG_MAX into
121         0x7fffffff since the intent is to turn off the sign bit in a
122         32 bit integer.
123
124         * time/offtime.c (__offtime): Use Paul Eggert's code to deal
125         with very large values for "days" (e.g., 64 bit values).
126
127 Mon Feb 19 22:22:12 1996  David Mosberger-Tang  <davidm@azstarnet.com>
128
129         * stdlib/stdlib.h (__random, __random_r, random_r, struct
130         random_data): use int32_t instead of `long int'.
131
132 Sat Feb 17 11:29:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
133
134         * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
135
136         * sysdeps/alpha/ffs.S: new file.
137
138         * sysdeps/alpha/fabs.c: File removed.
139
140         * time/tzfile.c (__tzfile_read): counter variable is i, *not*
141         num_transitions!
142
143         * time/offtime.c: make capable of dealing with very large (64 bit)
144         time_t values.  Use old algorithm until a year is reached that
145         is an integer multiple of 400, then use DAYS_PER_400_YEARS to
146         do the remainder in a single division.
147
148         * sysdeps/generic/ffs.c (ffs): fix variable declarations to
149         be unsigned int, not unsigned long.
150
151         * string/test-ffs.c (main): add test case with all upper bits
152         set.
153
154         * stdlib/tst-strtol.c: add tests cases for machines where
155         sizeof(long)==8.
156
157         * stdlib/testrand.c (main): disallow rand() to return negative
158         integers.
159
160         * stdlib/testmb.c (main): fix format to use %lx instead of %x.
161
162         * stdlib/stdlib.h: on 64 bit machines, declare
163         struct random_data, __random(),  __random_r, and random_r to
164         return "int" instead of "long int".
165
166         * stdlib/random_r.c: 64 bit machines use "int" instead of "long
167         int".  Similarly, use INT_MAX instead of LONG_MAX.
168
169         * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
170         need to operate on "int" instead of "long int".
171
172         * locale/locfile-hash.c (compute_hashval): make shifted constant
173         a long to avoid loosing bits on 64 bit machines.
174
175         * dirent/tst-seekdir.c (main): fix confusing comment; print
176         a line to mark point where directory is rewound.
177
178 Fri Feb 16 15:01:49 1996  David Mosberger-Tang  <davidm@azstarnet.com>
179
180         * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
181
182 Wed Feb 14 00:21:17 1996  David Mosberger-Tang  <davidm@azstarnet.com>
183
184         * sysdeps/unix/sysv/linux/alpha/Makefile,
185         sysdeps/unix/sysv/linux/alpha/brk.S,
186         sysdeps/unix/sysv/linux/alpha/fpu_control.c,
187         sysdeps/unix/sysv/linux/alpha/fpu_control.h,
188         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
189         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
190         sysdeps/unix/sysv/linux/alpha/pipe.S,
191         sysdeps/unix/sysv/linux/alpha/setfpucw.c,
192         sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
193         sysdeps/unix/sysv/linux/alpha/speed.c,
194         sysdeps/unix/sysv/linux/alpha/start.S,
195         sysdeps/unix/sysv/linux/alpha/syscall.S,
196         sysdeps/unix/sysv/linux/alpha/syscalls.list,
197         sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
198         sysdeps/unix/sysv/linux/alpha/sysdep.S,
199         sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
200
201         * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
202         address register before returning (gcc 2.7.1 doesn't do it,
203         presumably because $26 is declared as a global variable).
204
205         * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
206         argument.
207
208         * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
209         instead of multiplication.
210
211         * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
212         currently blocked signals instead of the empty mask to ensure
213         that execution of alarm handler occurs with none of the currently
214         blocked signals enabled.
215
216         * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
217
218         * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
219         sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
220
221         * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
222         sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
223         sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
224         sysdeps/alpha/strlen.S: New files.
225
226         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
227         sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
228         sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
229         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
230         Removed.
231
232         * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
233         int.
234
235         * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
236         to end of function to avoid a jump across NOPs.
237
238         * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
239         pertaining to integer division/remainder routines since new code
240         doesn't require them.
241
242         * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
243         where 32 bit quantities are consumed/stored.  Various other minor
244         64-bit cleanups (casting).
245
246         * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
247         whether xdr_long or xdr_short should be used to encode an int.
248         Notice that an xdr_long is 4 bytes independent of the architecture
249         (otherwise no Alpha could interoperate with existing NFS servers,
250         for example).  Ditto for enums.
251
252         * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
253         to 16 since it really wants 16 bytes.
254
255         * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
256
257         * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
258         u_int32_t (instead of u_long).
259
260         * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
261         "buf" pointer by casting it to a char* first since a long* may be 8
262         bytes or more and oa->oa_length may be any multiple of 4.
263
264         * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
265         since it really is testing for 32 bits.  Fixed casts to use
266         u_int32 instead of u_long.
267         * sunrpc/xdr_rec.c: Likewise.
268
269         * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
270         * sunrpc/rpc/auth.h: Likewise.
271
272         * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
273         for Alpha.
274
275 Tue Mar 19 13:27:49 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
276
277         * sysdeps/i386/fpu/__math.h: New file.
278         Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
279
280 Sun Mar 17 00:28:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
281
282         * sysdeps/posix/clock.c: Don't multiply the return value by
283         CLOCKS_PER_SEC or CLK_TCK.
284
285 Mon Mar 18 13:20:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
286
287         * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
288         scan finds no match.
289
290         * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
291         * misc/bsd-compat.c (setpgrp): New function, two arg version.
292         * sysdeps/stub/setpgid.c: Remove setpgrp alias.
293         * sysdeps/mach/hurd/setpgid.c: Likewise.
294         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
295         * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
296         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
297         * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
298         * posix/setpgrp.c (setpgrp): New file.
299         * posix/Makefile (routines): Add setpgrp.
300
301         * elf/Makefile (rtld-link): New canned sequence.
302         (ld.so, ld-linux.so.1): Use it.  Pass -soname option.
303
304         * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
305
306 Sun Mar 17 23:15:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
307
308         * sysdeps/unix/sysv/linux/tcgetpgrp.c,
309         sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
310
311 Sun Mar 17 07:19:33 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
312
313         * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
314         (CFLAGS): Append -Wno-unitialized.
315
316 Sat Mar 16 20:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
317
318         * stdlib/erand48_r.c: Use FP division by powers of two to distribute
319         short bits into double.
320
321 Sat Mar 16 20:08:22 1996  David Mosberger-Tang  <davidm@azstarnet.com>
322
323         * sysdeps/alpha/memchr.S: New file.
324         * sysdeps/alpha/memchr.c: Obsolete file removed.
325         * string/tester.c: Soup up memchr tests.
326
327 Sat Mar 16 16:26:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
328
329         * misc/Makefile (headers): Add sysexits.h.
330         * misc/sysexits.h: New file.
331
332 Thu Mar 14 15:20:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
333
334         * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
335         call to __atan.
336         * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
337         call to __atanf.
338
339         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
340         sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
341         sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
342         sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
343         sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
344         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
345         sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
346         sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
347         sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
348         sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
349         sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
350         sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
351         sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
352         sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
353         sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
354         sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
355         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
356         sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
357         sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
358         sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
359         sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
360         sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
361         sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
362         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
363         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
364         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
365         sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
366         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
367         sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
368         sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
369         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
370         sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
371         sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
372         sysdeps/m68k/fpu/s_significand.c,
373         sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
374         sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
375         sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
376         sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
377
378         * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
379
380         * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
381         * sysdeps/m68k/fpu/isnanl.c: Likewise.
382
383 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
384
385         * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
386         calculation to include trailing invariant portion.  Don't use alloca;
387         instead use a dynamic auto array for GCC, malloc for non-GCC.
388         Handle nested braces properly.
389
390         * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
391
392         * libc-symbols.h (lint): New macro.
393
394 Fri Mar 15 01:18:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
395
396         * libio/iosetvbuf.c: Add weak alias setvbuf.
397
398 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
399
400         * string/strnlen.c: New file.
401         * string/Makefile (routines): Add strnlen.
402         * string/string.h [__USE_GNU] (strnlen): Declare new function.
403         [__OPTIMIZE__]: Define extern inline implementation of it.
404
405         * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
406         addition, to avoid using anything from -lm.
407
408 Mon Mar  4 21:57:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
409
410         * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
411
412         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
413         (CALL_MCOUNT): New macro, empty unless [PROF].
414         (ENTRY): Do CALL_MCOUNT just after the label.
415         (JUMPTARGET): New macro.
416         (SYSCALL_ERROR_HANDLER): Fix syntax.
417
418 Thu Mar 14 04:20:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
419
420         * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
421         function instead of using inline asm i386 syscall.
422         * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
423
424         * posix/unistd.h [__USE_BSD]: Declare usleep.
425
426 Tue Mar 12 04:57:57 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
427
428         * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
429         (fcvt, ecvt): Use it for buffer size.
430
431         * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
432         conditionalizing long vs long long.
433
434         * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
435         pointers; never return EFAULT.
436         * stdlib/drand48_r.c (drand48_r): Likewise.
437         * stdlib/erand48_r.c (erand48_r): Likewise.
438
439         * setjmp/Makefile (tests): Add jmpbug.
440         * setjmp/jmpbug.c: New file.
441
442 Tue Mar 12 04:42:01 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
443
444         * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
445         * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
446         * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
447         `restore' until the target frame is hit.
448
449 Sun Mar 10 20:29:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
450
451         * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
452         * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
453         s_sigsuspend.
454
455 Thu Mar  7 21:30:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
456
457         * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
458         left side of sed substitutions.
459
460 Sun Mar 10 16:58:10 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
461
462         * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
463         is not available anymore.  Do it ourselves.
464
465         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
466         Correct GCC `asm' syntax.
467
468 Tue Mar 12 03:15:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
469
470         * stdio-common/Makefile (tests): Add tst-ungetc.
471         * stdio-common/tst-ungetc.c: New test from drepper.
472         * stdio-common/tstscanf.c (main): New %[ test case from drepper.
473
474         * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
475         somehow this was missed, though the weak alias is already there.
476
477         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
478         default to double precision, all interrupts masked; fdlibm requires.
479
480 Sat Mar  9 18:44:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
481
482         * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
483
484 Fri Mar  8 22:16:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
485
486         * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
487
488 Tue Mar  5 18:45:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
489
490         * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
491         final loop.
492
493 Mon Mar  4 20:54:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
494
495         * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
496
497 Tue Mar  5 12:14:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
498
499         * sysdeps/mach/hurd/select.c (__select): Also don't fault just
500         because some fdmask is 0.
501
502 Mon Mar  4 17:35:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
503
504         * sysdeps/mach/hurd/select.c (__select):
505         Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
506         Don't return without frobbing the bitmasks after a timeout.
507         When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
508
509 Mon Mar  4 17:35:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
510
511         * hurd/catch-signal.c (hurd_safe_memmove): New function.
512         (hurd_safe_copyin, hurd_safe_copyout): New functions.
513         * hurd/hurd/sigpreempt.h: Declare them.
514
515 Sun Mar  3 08:43:44 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
516
517         Replace math code with fdlibm from Sun as modified for netbsd by
518         JT Conklin and Ian Taylor, including x86 FPU support.
519         * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
520         * math/math_private.h: New file.
521         * sysdeps/i386/fpu/Implies: New file.
522         * sysdeps/ieee754/Implies: New file.
523         * math/machine/asm.h, math/machine/endian.h: New files.
524         * math/Makefile, math/math.h: Rewritten.
525         * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
526         * math/finite.c: File removed.
527         * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
528
529         * math/test-math.c: Include errno.h and string.h.
530
531         * sysdeps/unix/bsd/dirstream.h: File removed.
532         * sysdeps/unix/bsd/readdir.c: File removed.
533
534 Sat Mar  2 16:35:40 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
535
536         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
537         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
538         removed.
539         * sysdeps/generic/profil-counter.h: New file.
540
541 Fri Mar  1 17:11:59 1996  Brendan Kehoe  <brendan@zen.org>
542
543         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
544         including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
545         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
546         same as linux/m68k/profil-counter.h except the comment.
547
548 Fri Mar  1 10:09:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
549
550         * stdlib/Makefile (mpn-stuff): New target.
551         (copy-mpn): Use it.
552
553         * Code copied from GMP updated to 1.937 version.
554         * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
555
556         * posix/glob.c: Use canonical code from autoconf manual for dirent
557         include.
558         [_D_NAMLEN]: Redefine NAMLEN using this.
559         (glob_in_dir): Use NAMLEN macro.
560
561         * sysdeps/posix/profil.c: New file.
562
563 Thu Feb 29 20:55:57 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
564
565         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
566
567 Tue Feb 27 12:14:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
568
569         * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
570         `extern' keyword.
571
572         * time/strftime.c: Support - and _ flags to affect number padding.
573
574         * sysdeps/unix/common/tcsendbrk.c: New file.
575
576 Mon Feb 26 10:22:30 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
577
578         * sysdeps/unix/dirstream.h: Rewritten.
579         * sysdeps/unix/readdir.c: Rewritten.
580         * sysdeps/unix/telldir.c: Rewritten.
581         * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
582         Remove __ from DIR struct member names.
583         * sysdeps/unix/dirfd.c: Likewise.
584         * sysdeps/unix/seekdir.c: Likewise.
585         * sysdeps/unix/rewinddir.c: Likewise.
586         * sysdeps/unix/opendir.c: Likewise.  Don't allocate extra space after
587         DIR structure.
588         * sysdeps/stub/direct.h: File removed.
589         * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
590         * sysdeps/unix/bsd/direct.h: File removed.
591         * sysdeps/unix/common/direct.h: File removed.
592         * sysdeps/unix/sysv/irix4/direct.h: File removed.
593         * sysdeps/unix/sysv/isc3/direct.h: File removed.
594         * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
595         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
596         * sysdeps/unix/common/direntry.h: New file.
597         * sysdeps/unix/bsd/direntry.h: New file.
598         * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
599         * sysdeps/unix/sysv/direntry.h: New file.
600         * sysdeps/stub/direntry.h: New file.
601         * dirent/dirent.h (struct dirent): Type removed.  Include <direntry.h>
602         to define it.
603         (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
604         * dirent/Makefile (headers): Add direntry.h.
605         (distribute): Remove direct.h.
606         * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
607         * dirent/scandir.c: Likewise.
608         * io/fts.c (fts_build): Likewise.
609         * io/ftw.c (ftw_dir): Likewise.
610         * sysdeps/posix/ttyname.c: Likewise.
611
612         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
613
614         * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
615         (collector_timeout): New static variable.
616         (update_waiter): Actually call __task_enable_pc_sampling.
617         Set collector_timeout based on the `tick' count returned.
618         (profile_waiter): Use MAX_PC_SAMPLES.  Set nsamples before RPC.
619         Use collector_timeout in __mach_msg call.
620
621         * gmon/Makefile (noprof): New variable containing mcount.
622         Append profil unless it is in $(unix-syscalls).
623         (mcount.po): Use $(noprof) for list of targets in this rule.
624
625         * libc-symbols.h: Define _LIBC before #include <config.h>.
626
627 Sun Feb 25 12:29:23 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
628
629         * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
630         Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
631
632         * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
633
634 Fri Feb  9 12:40:19 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
635
636         * libio/cleanup.c (_IO_cleanup_registration_needed)
637         [!_G_HAVE_ATEXIT]: Init to NULL.
638         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
639
640 Thu Feb  8 08:12:50 1996  Brendan Kehoe  <brendan@cygnus.com>
641
642         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
643         previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
644
645 Wed Feb  7 15:10:17 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
646
647         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
648         extern.
649
650 Sat Feb 24 11:34:13 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
651
652         * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
653
654         * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
655
656 Wed Feb 21 02:25:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
657
658         * Rules (others): Depend on $(extra-objs), $(install-lib),
659         $(install-bin), $(install-sbin), in object directory.
660
661         * Makeconfig (link-libc): Don't pass -rpath option with default
662         path, since ld.so should use the same default.
663         * Makerules (build-shlib): Likewise.
664
665         * Makerules (make-target-directory): Use mkinstalldirs.
666
667         * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
668         redefine ENTRY et al.
669
670         * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
671         Macros removed.  The code in unix/i386/sysdep.h should now suffice.
672
673         * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
674         [HAVE_ELF] and not.
675         (ENTRY): Use it in .align directive.
676         (CALL_MCOUNT): New macro, empty unless [PROF].
677         (ENTRY): Do CALL_MCOUNT just after the label.
678
679         * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
680         code can call mcount.
681
682 Tue Feb 20 23:05:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
683
684         * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
685         translation markings are now integrated in his distribution.
686
687         * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
688
689 Mon Feb 19 18:31:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
690
691         * po: New directory where `LANG.po' files for message translations
692         will reside.
693         * po/SYS_libc.pot: New file, template of message strings as in source.
694         * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
695         the source using xgettext.
696         * Makerules ($(..)po/%.pot): New rule.
697         * manual/Makefile (../po/manual.pot): New target, make it empty.
698
699         * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
700         * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
701         * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
702         * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
703         * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
704
705         * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
706         Updated from ADO 96d.
707
708 Sun Feb 18 14:08:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
709
710         * csu/initfini.c (_init): Remove bogus volatile declarations and
711         extra variable, take the address of __gmon_start__ only implicitly
712         to avoid the test being optimized out.
713
714 Sun Feb 18 15:08:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
715
716         * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
717         sec.
718
719 Sun Feb 18 13:56:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
720
721         * elf/Makefile, time/Makefile: Make `all' the default target.
722
723 Mon Feb 19 18:09:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
724
725         * misc/sys/ptrace.h: Moved to ...
726         * sysdeps/generic/sys/ptrace.h: ... here.
727         * sys/ptrace.h: File removed.
728
729 Sun Feb 18 12:13:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
730
731         * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
732
733         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
734         so that the symbol alias works.
735
736         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
737
738         * sysdeps/unix/sysv/linux/resourcebits.h: New file.
739
740         * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
741
742         * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
743         getppid and reboot.
744
745         * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
746         use getdtablesize.
747
748 Sat Feb 17 10:30:21 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
749
750         * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
751         sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
752         sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
753         to `long' where necessary.
754
755 Thu Feb 15 20:04:50 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
756
757         * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
758         * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
759         to correctly access MPN array depending on architecture.
760
761 Mon Feb 19 15:30:26 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
762
763         * stdio-common/tstscanf.c (main): Add check for "0" as %d.
764
765         * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
766         Only some systems have three args; let them define their own stub.
767
768         * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
769
770         * sysdeps/generic/machine-gmon.h: New file.
771         * gmon/Makefile (distribute): Add machine-gmon.h.
772         * gmon/mcount.c: Undo changes of Feb 13.
773         Include "machine-gmon.h".
774
775 Sun Feb 18 13:24:06 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
776
777         * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
778         identical to unix/common/direct.h.
779
780         * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
781
782         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
783
784         * stdio-common/Makefile (tests): Remove scanf6.
785
786         * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
787
788         * time/mktime.c (mktime): Move static variable localtime_offset to
789         file scope.
790
791         * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
792         base indicator.
793
794 Thu Feb 15 16:56:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
795
796         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
797         (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
798         (_dl_runtime_resolve): Save %a1 as well.
799         (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
800         (elf_machine_relplt): Define.
801
802         * elf/dl-runtime.c: Include possible extra args in declaration of
803         fixup.
804
805 Fri Feb 16 11:01:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
806
807         * time/tzset.c: Limit hours to 23, not 12.  From jaffer.
808
809 Fri Feb 16 10:14:05 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
810
811         * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
812
813 Thu Feb 15 13:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
814
815         * mach/Machrules: Use -include for $(*.ir).
816
817         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
818         request values.
819         * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
820         (_IOT_COUNT2): Field is 3 bits, not 2.
821         * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
822         * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
823         bits before looking up handler.
824         (fioctl): Use __hurd_dfail.
825         (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
826
827 Thu Feb 15 11:49:45 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
828
829         * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
830         (sysdep_routines): Don't add sys-sig.
831
832         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
833
834 Wed Feb 14 00:21:17 1996 David Mosberger-Tang  <davidm@azstarnet.com>
835
836         * sysdeps/alpha/memchr.c (memchr): loop searching for matching
837         character bailed out one too early; changed constant 6 to
838         7 to fix this.
839
840 Wed Feb 14 01:08:58 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
841
842         * posix/execvp.c: When executing shell on script, first arg is
843         full file name, not argv[0].
844
845         * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
846         * mach/Machrules [no_deps]: Inhibit interface rules.
847
848         * malloc/Makefile (distribute): Removed TODO.
849
850 Tue Feb 13 05:12:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
851
852         * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
853         caller column.
854
855         * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
856
857         * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
858
859         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
860         (sysdep_routines): Append setfpucw.
861         (extra-objs): Append ieee-fpucw.o.
862         (install-lib): Append libieee.a.
863         (libieee.a): New target.
864         * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
865         * sysdeps/unix/sysv/linux/i386/fpu_control.h
866         (_FPU_GETCW, _FPU_SETCW): New macros.
867         (fpu_control_t): New typedef.
868         (__setfpucw): Use fpu_control_t for argument type.
869         * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
870
871         * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
872
873         * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
874         * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
875
876 Sat Feb 10 13:09:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
877
878         * sysdeps/unix/sysv/linux/m68k/brk.c,
879         sysdeps/unix/sysv/linux/m68k/mmap.S,
880         sysdeps/unix/sysv/linux/m68k/select.S,
881         sysdeps/unix/sysv/linux/m68k/sigcontext.h,
882         sysdeps/unix/sysv/linux/m68k/sigreturn.S,
883         sysdeps/unix/sysv/linux/m68k/socket.S,
884         sysdeps/unix/sysv/linux/m68k/syscall.S,
885         sysdeps/unix/sysv/linux/m68k/sysdep.S,
886         sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
887
888         * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
889
890         * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
891         sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
892
893         * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
894         MAP_FILE if not already defined.
895
896         * elf/elf.h: Add m68k reloc definitions.
897         * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
898
899 Tue Feb 13 00:12:12 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
900
901         * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
902         this macro declare extra leading args.
903
904         * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
905
906         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
907         elf_machine_relplt): New macros.
908         * elf/dl-runtime.c: New file.
909         * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
910
911         * gmon/Makefile (headers): Remove machine-gmon.h.
912         * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
913         * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
914         the asm name.
915         (_mcount): Define normally, taking no args.
916         Use __builtin_return_address to fetch PC values of caller and caller's
917         caller.
918
919         * Makerules: Rewrote rules to update libc archives of all flavors.
920         Define separate specific rules for each flavor using o-iterator.
921
922         * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
923
924 Sat Feb 10 11:35:16 1996 Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
925
926         * Makerules (ar-symtab-name): New macro.  Replace all occurences
927         of __.SYMDEF by $(ar-symtab-name).
928         * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
929
930 Mon Feb 12 03:10:41 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
931
932         * Makefile (configure, %/configure): Depend on aclocal.m4.
933         * Make-dist (configure, %/configure): Likewise.
934
935         * sysdeps/unix/Makefile: Include s-proto.d for its deps.
936
937         * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
938         only needed in the implementation, not for any users.
939
940         * time/northamerica: Updated from ADO 96c, new rules for Mexico in
941         1996.
942
943         * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
944         * sunrpc/pm_getmaps.c: Likewise.
945
946         * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
947         so real syscalls override unix/sysv/*.c on sysv-derived systems
948         that have them.
949         * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
950         override unix/sysv/settimeofday.c since that overrides
951         unix/syscalls.list.
952
953         * Makeconfig (+link): Put $(link-libc) after deps from $^,
954         regardless of where libc.a appears in the deps.
955
956         * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
957         Add __waitid.
958         * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
959         Define __ name for sigprocmask.
960         * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
961         Add getsysinfo.
962         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
963         * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
964         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
965         * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
966         Add getdents, wait3, waitpid.
967         * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
968         settimeofday, sigsuspend, sstk, utimes.
969         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
970         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
971         * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
972         Removed sigtramp.
973         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
974         * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
975         * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
976         * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
977         * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
978         * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
979         * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
980         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
981         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
982         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
983         * sysdeps/unix/sysv/irix4/wait3.S: File removed.
984         * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
985         * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
986         * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
987         * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
988         * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
989         * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
990
991         * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
992         FORWARD_SIGEXC to one.  Uncomment setting of thread exc port, and
993         move it to last thing.
994
995 Sat Feb 10 05:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
996
997         * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
998
999         * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
1000
1001 Sat Feb 10 04:18:48 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1002
1003         * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
1004         the file.
1005
1006 Fri Feb  9 11:46:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1007
1008         * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
1009         CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
1010
1011         * hurd/Makefile (user-interfaces): Added hurd/tioctl.
1012
1013 Thu Feb  8 18:55:27 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1014
1015         * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
1016
1017 Wed Feb  7 18:48:30 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1018
1019         * Makefile (subdirs): Added wcsmbs.
1020         * wcsmbs: New directory of wide char/multibyte char functions from
1021         drepper.
1022
1023         * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
1024         * hurd/report-wait.c: New file.
1025         * hurd/Makefile (routines): Added report-wait.
1026
1027         * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
1028
1029         * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
1030         New type.
1031         (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
1032         * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
1033         Structure moved to intr-msg.h; include that.
1034
1035         * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
1036         (CFLAGS-scheck.c): New variable.
1037
1038         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
1039         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
1040         __hurd_threadvar_stack_mask): New variables.
1041
1042         * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
1043         its new message port.
1044
1045         * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
1046
1047         * configure.in (uname): Add quoting.
1048
1049         * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
1050         * hurd/fchroot.c: Likewise.
1051
1052         * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
1053         __attribute__ ((__mode__ (__XX__))).
1054
1055 Wed Feb 7 03:24:05 1996 Torbjorn Granlund  <tege@tmg.se>
1056
1057         * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
1058         destination cache lines.
1059         (WORD_COPY_BWD): Likewise.
1060
1061 Wed Feb  7 14:16:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1062
1063         * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
1064         file name first thing, before $(native-compile) changes directories.
1065
1066         From Gord Matzigkeit <gord@enci.ucalgary.ca>:
1067         * sysdeps/unix/make_errlist.c: Use strerror if available.
1068         * sysdeps/unix/configure.in: New file
1069
1070         * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
1071         * sysdeps/unix/bsd/sun/sigvec.S: File removed.
1072
1073         * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
1074         * sysdeps/stub/connect.c: Likewise.
1075         * sysdeps/stub/bind.c: Likewise.
1076
1077         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
1078         "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
1079         another dir_lookup of "".
1080
1081 Tue Feb  6 12:46:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1082
1083         * libc-symbols.h (weak_alias, weak_symbol): added definitions
1084         for ECOFF (HAVE_ECOFF).
1085
1086 Fri Feb  2 13:09:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1087
1088         * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
1089
1090 Wed Jan 31 20:08:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1091
1092         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
1093         when cancelled before RPC.
1094
1095 Tue Jan 30 13:32:05 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1096
1097         * dirent/scandir.c: Allocate dirents with correct size for name, and
1098         copy with correct size.
1099
1100         * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
1101
1102         * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
1103         flag bits.
1104         (__vfscanf): Fix checking of extra type modifiers.
1105
1106         * time/asia, time/australasia, time/backward: Updated from ADO 96b.
1107
1108 Tue Jan 30 12:17:26 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
1109
1110         * stdlib/strtod.c: Only negate exponent when there really is one.
1111
1112         * stdio-common/vfscanf.c: Accept type modifiers on %n.
1113         Fix FP number parsing.
1114
1115 Mon Jan 29 21:53:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1116
1117         * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
1118
1119         * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
1120
1121 Mon Jan 29 16:29:16 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1122
1123         * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
1124         include an increment for each operation allowed on each fd.
1125
1126 Mon Jan 29 11:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1127
1128         * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
1129
1130         * Makefile: Use -include for sysd-dirs.
1131
1132         * configure.in (uname): Check for uname in syscalls.list files.
1133         * sysdeps/unix/sysv/syscalls.list: Remove uname.
1134         * sysdeps/unix/syscalls.list: Add uname.
1135
1136         * stdlib/strtol.c (weak1): New macro, to get the right name declared
1137         weak.
1138
1139         * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
1140
1141         * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
1142         (dbm_open): Use dynamic allocation for file name buffer, instead of
1143         limitting its size to MAXPATHLEN.
1144
1145         * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
1146         buffer, instead of limitting its size to MAXPATHLEN.
1147
1148         * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
1149         * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
1150
1151 Sun Jan 28 19:42:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1152
1153         * time/Makefile: Fix check for cross compiling.
1154
1155 Thu Jan 25 21:10:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1156
1157         * db/Makefile (subdir-dirs): Renamed from dbdirs.
1158
1159         * Makerules (distinfo-vars): Add subdir-dirs.
1160
1161         * MakeTAGS: Remove vpath directives.
1162         (all-dirs): Prepend $(subdir-dirs).
1163         (all-sources, all-headers): Use wildcard to find sources.
1164
1165 Mon Jan 29 10:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1166
1167         * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
1168         variables.
1169
1170         * mach/msgserver.c: Declare DEMUX arg with prototype.
1171
1172 Sun Jan 28 17:25:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1173
1174         * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
1175         make C++ happy.
1176         * alpha/jmp_buf.h: Likewise.
1177         * m68k/jmp_buf.h: Likewise.
1178         * mips/jmp_buf.h: Likewise.
1179         * sparc/jmp_buf.h: Likewise.
1180         * vax/jmp_buf.h: Likewise.
1181
1182         * sysdeps/generic/memmem.c: Fix return value in case where
1183         NEEDLE_LEN==0.
1184
1185         * hurd/hurdlookup.c (__file_name_lookup_under,
1186         __file_name_lookup): Restrict mode with umask.
1187         * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
1188         * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
1189
1190 Fri Jan 26 12:20:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1191
1192         * stdlib/strtol.c: Undo last change.  ANSI C changed since the
1193         draft I checked yesterday.  Sigh.
1194
1195 Thu Jan 25 18:58:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1196
1197         * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
1198
1199 Wed Jan 24 03:22:07 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1200
1201         * malloc/mcheck.c (mabort): Declare prototype.
1202
1203         * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
1204
1205         * Makerules: Use -include for generated makefiles.
1206
1207         * errno.h: Don't declare errno if it's defined as a macro.
1208
1209         * stdio-common/vfscanf.c: Disallow l flag after ll or L.
1210
1211         * stdio-common/Makefile (tests): Add scanf[1-9].
1212         * stdio-common/scanf[1-9].c: New files.  Bug tests from hjl.
1213
1214 Wed Jan 24 04:18:36 1996  Paul Eggert  <eggert@twinsun.com>
1215
1216         * strftime.c (strftime):
1217         When invoking self, check whether the subsidiary invocation failed.
1218         Use "???" (not "") to denote unknown time zone information.
1219
1220         Make this source file portable to standalone contexts (e.g. GNU Emacs).
1221         <config.h>: Include if HAVE_CONFIG_H is defined.
1222         (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
1223         defined if _LIBC or if <config.h> defines them.
1224         <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
1225         <sys/types.h>: New include; some hosts require it for `time_t'.
1226         <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
1227         <limits.h>: Include only if HAVE_LIMITS_H.
1228         <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
1229         (memcpy): Define in terms of bcopy if !STDC_HEADERS.
1230         (__P, PTR): Define if not already defined.
1231         (__tzname, __daylight, __timezone): Remove macros; no longer needed.
1232         (add, strftime): Don't use NULL, for portability to some weird hosts.
1233         (fmt): If !_LIBC, don't assume sprintf returns a count.
1234         (week, strftime): Use old-style function declarations.
1235         (weekday_name, month_name): New constants.
1236         (strftime): Use traditional C values if locale support isn't available.
1237         Use `const' instead of CONST.  For time zones, use tm_zone if
1238         possible, then fall back on tzname.  Don't check for multibyte
1239         characters unless mblen is supported.  Use formats like %02d instead
1240         of %.2d, for portability to older hosts.
1241
1242 Wed Jan 24 00:07:52 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1243
1244         * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
1245         (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
1246         Fix bug in recognition of %ll flag for long long.
1247         Fix overeager checks for conflicting type modifiers.
1248         With ' flag, match thousands separators for decimal numbers.
1249
1250 Tue Jan 23 22:02:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1251
1252         * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
1253
1254         * resolv/Makefile (CFLAGS): Disable some warnings.
1255
1256         * sysdeps/generic/Makefile (elided-routines): Removed hypot.
1257         (+gccwarn): Set with override.
1258
1259         * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
1260
1261         * posix/Makefile (CFLAGS-regex.c): New variable.
1262
1263         * malloc/Makefile (CFLAGS-obstack.c): New variable.
1264
1265         * io/Makefile (CFLAGS-fts.c): New variable.
1266         * io/fts.c (fts_open): Use prototypes for COMPAR decl.
1267
1268 Tue Jan 23 21:35:32 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1269
1270         * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
1271         case is '\0'-terminated.
1272
1273 Tue Jan 23 19:49:54 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1274
1275         * elf/rtld.c (dl_main): Support additional args in --list mode for
1276         debugging: look them up as symbol names and print values.
1277
1278         * misc/getttyent.c (skip, value): Declare with prototypes in file
1279         scope.
1280
1281         * csu/initfini.c (_init): Explicitly set a variable that is
1282         pointer to volatile with the address of __gmon_start__, to avoid
1283         the test being optimized out.
1284
1285 Mon Jan 22 10:40:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1286
1287         * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
1288
1289         * io/fts.h (FTSENT): Define fts_compar member with prototype.
1290
1291         * hurd/hurd.h: Use prototype in getcttyid decl.
1292
1293         * stdlib/l64a.c: Fix typo in last change.
1294
1295         * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
1296         for determining size of types.
1297         * stdlib/srand48_r.c: Likewise.
1298
1299         * misc/utmp.h: Declare login, logout, logwtmp.
1300         * misc/logout.c: Declare argument as pointer to const.
1301         * misc/login.c: Likewise.
1302         * misc/logwtmp.c: Likewise.
1303         Include time.h, string.h.
1304
1305         * misc/efgcvt_r.c: Include stdlib.h.
1306
1307         * io/mknod.c: Include sys/types.h.
1308
1309         * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
1310
1311         * csu/gmon-start.c (_start, etext): Declare with prototypes.
1312
1313         * stdio-common/vfscanf.c (%[): Fix range handling.
1314
1315 Sun Jan 21 00:55:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1316
1317         * misc/Makefile (headers): Rename queue.h to sys/queue.h.
1318         * misc/queue.h: Moved to misc/sys/queue.h.
1319
1320         * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
1321         sys/sem.h.
1322
1323         * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
1324
1325         * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
1326         literal byte values.
1327
1328         * misc/bsd-compat.c (getpgrp): Define with prototype.
1329
1330         * misc/init-misc.c (__progname_full): New variable.
1331         (program_invocation_name, program_invocation_short_name): New aliases.
1332         (__init_misc): Define with prototype.  Set __progname_full.
1333         * misc/progname.c: File removed.
1334         * misc/Makefile (aux): Remove progname.
1335
1336         * misc/hsearch_r.c (isprime): Define with prototype.
1337
1338         * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
1339         * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
1340         * sysdeps/unix/bsd/setegid.c: Likewise.
1341
1342 Fri Jan 19 13:28:59 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1343
1344         * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
1345         __tcdrain.
1346
1347         * posix/glob.c (glob): Use prototype in getlogin decl.
1348
1349         * db/ndbm.h: Declare dbm_error, dbm_clearerr.
1350         * db/db/db.c (__dberr): Define with prototype.
1351         (__dbpanic): Use prototypes in casts.
1352         * db/hash/hash_log2.c: Add prototype decl.
1353
1354         * sysdeps/generic/_strerror.c (_strerror_internal): Define with
1355         prototype.
1356
1357         * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
1358         They will be overridden with syscalls if extant by unix/syscalls.list.
1359
1360         * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
1361
1362         * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
1363         * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
1364
1365 Thu Jan 18 00:32:43 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1366
1367         * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
1368
1369         * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
1370         get args.
1371
1372         * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
1373         defines GNU extensions.
1374         * posix/fnmatch.c: Likewise.
1375
1376         Replaced all simple system call files *.S throughout sysdeps/unix
1377         with syscalls.list files to be processed by make-syscalls.sh.
1378         * sysdeps/unix/s-proto.S: New file.
1379         * sysdeps/unix/syscalls.list: New file.
1380         * sysdeps/unix/bsd/syscalls.list: New file.
1381         * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
1382         * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
1383         * sysdeps/unix/bsd/osf/syscalls.list: New file.
1384         * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
1385         * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
1386         * sysdeps/unix/bsd/sun/syscalls.list: New file.
1387         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
1388         * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
1389         * sysdeps/unix/common/syscalls.list: New file.
1390         * sysdeps/unix/inet/syscalls.list: New file.
1391         * sysdeps/unix/mman/syscalls.list: New file.
1392         * sysdeps/unix/sysv/syscalls.list: New file.
1393         * sysdeps/unix/sysv/irix4/syscalls.list: New file.
1394         * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
1395         * sysdeps/unix/sysv/linux/syscalls.list: New file.
1396         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
1397         * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
1398         * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
1399         * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
1400         * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
1401         * sysdeps/unix/acct.S: File removed.
1402         * sysdeps/unix/chdir.S: File removed.
1403         * sysdeps/unix/chmod.S: File removed.
1404         * sysdeps/unix/chown.S: File removed.
1405         * sysdeps/unix/chroot.S: File removed.
1406         * sysdeps/unix/close.S: File removed.
1407         * sysdeps/unix/configure: File removed.
1408         * sysdeps/unix/configure.in: File removed.
1409         * sysdeps/unix/dup.S: File removed.
1410         * sysdeps/unix/fcntl.S: File removed.
1411         * sysdeps/unix/fsync.S: File removed.
1412         * sysdeps/unix/getgid.S: File removed.
1413         * sysdeps/unix/getpid.S: File removed.
1414         * sysdeps/unix/getuid.S: File removed.
1415         * sysdeps/unix/ioctl.S: File removed.
1416         * sysdeps/unix/kill.S: File removed.
1417         * sysdeps/unix/link.S: File removed.
1418         * sysdeps/unix/lseek.S: File removed.
1419         * sysdeps/unix/open.S: File removed.
1420         * sysdeps/unix/ptrace.S: File removed.
1421         * sysdeps/unix/read.S: File removed.
1422         * sysdeps/unix/reboot.S: File removed.
1423         * sysdeps/unix/setgid.S: File removed.
1424         * sysdeps/unix/setuid.S: File removed.
1425         * sysdeps/unix/sync.S: File removed.
1426         * sysdeps/unix/umask.S: File removed.
1427         * sysdeps/unix/unlink.S: File removed.
1428         * sysdeps/unix/write.S: File removed.
1429         * sysdeps/unix/bsd/flock.S: File removed.
1430         * sysdeps/unix/bsd/getdtsz.S: File removed.
1431         * sysdeps/unix/bsd/getpagesize.S: File removed.
1432         * sysdeps/unix/bsd/killpg.S: File removed.
1433         * sysdeps/unix/bsd/profil.S: File removed.
1434         * sysdeps/unix/bsd/readv.S: File removed.
1435         * sysdeps/unix/bsd/settimeofday.S: File removed.
1436         * sysdeps/unix/bsd/sigblock.S: File removed.
1437         * sysdeps/unix/bsd/sigpause.S: File removed.
1438         * sysdeps/unix/bsd/sigsetmask.S: File removed.
1439         * sysdeps/unix/bsd/sigstack.S: File removed.
1440         * sysdeps/unix/bsd/sigvec.S: File removed.
1441         * sysdeps/unix/bsd/utimes.S: File removed.
1442         * sysdeps/unix/bsd/writev.S: File removed.
1443         * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
1444         * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
1445         * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
1446         * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
1447         * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
1448         * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
1449         * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
1450         * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
1451         * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
1452         * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
1453         * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
1454         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
1455         * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
1456         * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
1457         * sysdeps/unix/bsd/osf/msync.S: File removed.
1458         * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
1459         * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
1460         * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
1461         * sysdeps/unix/bsd/sun/getdents.S: File removed.
1462         * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
1463         * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
1464         * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
1465         * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
1466         * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
1467         * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
1468         * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
1469         * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
1470         * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
1471         * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
1472         * sysdeps/unix/common/access.S: File removed.
1473         * sysdeps/unix/common/adjtime.S: File removed.
1474         * sysdeps/unix/common/dup2.S: File removed.
1475         * sysdeps/unix/common/fchmod.S: File removed.
1476         * sysdeps/unix/common/fchown.S: File removed.
1477         * sysdeps/unix/common/ftruncate.S: File removed.
1478         * sysdeps/unix/common/getgroups.S: File removed.
1479         * sysdeps/unix/common/getitimer.S: File removed.
1480         * sysdeps/unix/common/getpgid.S: File removed.
1481         * sysdeps/unix/common/getpriority.S: File removed.
1482         * sysdeps/unix/common/getrlimit.S: File removed.
1483         * sysdeps/unix/common/getrusage.S: File removed.
1484         * sysdeps/unix/common/gettimeofday.S: File removed.
1485         * sysdeps/unix/common/mkdir.S: File removed.
1486         * sysdeps/unix/common/readlink.S: File removed.
1487         * sysdeps/unix/common/rename.S: File removed.
1488         * sysdeps/unix/common/rmdir.S: File removed.
1489         * sysdeps/unix/common/select.S: File removed.
1490         * sysdeps/unix/common/setgroups.S: File removed.
1491         * sysdeps/unix/common/setitimer.S: File removed.
1492         * sysdeps/unix/common/setpgid.S: File removed.
1493         * sysdeps/unix/common/setpriority.S: File removed.
1494         * sysdeps/unix/common/setregid.S: File removed.
1495         * sysdeps/unix/common/setreuid.S: File removed.
1496         * sysdeps/unix/common/setrlimit.S: File removed.
1497         * sysdeps/unix/common/swapon.S: File removed.
1498         * sysdeps/unix/common/symlink.S: File removed.
1499         * sysdeps/unix/common/truncate.S: File removed.
1500         * sysdeps/unix/common/vhangup.S: File removed.
1501         * sysdeps/unix/inet/accept.S: File removed.
1502         * sysdeps/unix/inet/bind.S: File removed.
1503         * sysdeps/unix/inet/connect.S: File removed.
1504         * sysdeps/unix/inet/gethostid.S: File removed.
1505         * sysdeps/unix/inet/gethostname.S: File removed.
1506         * sysdeps/unix/inet/getpeername.S: File removed.
1507         * sysdeps/unix/inet/getsockname.S: File removed.
1508         * sysdeps/unix/inet/getsockopt.S: File removed.
1509         * sysdeps/unix/inet/listen.S: File removed.
1510         * sysdeps/unix/inet/recv.S: File removed.
1511         * sysdeps/unix/inet/recvfrom.S: File removed.
1512         * sysdeps/unix/inet/recvmsg.S: File removed.
1513         * sysdeps/unix/inet/send.S: File removed.
1514         * sysdeps/unix/inet/sendmsg.S: File removed.
1515         * sysdeps/unix/inet/sendto.S: File removed.
1516         * sysdeps/unix/inet/sethostid.S: File removed.
1517         * sysdeps/unix/inet/sethostname.S: File removed.
1518         * sysdeps/unix/inet/setsockopt.S: File removed.
1519         * sysdeps/unix/inet/shutdown.S: File removed.
1520         * sysdeps/unix/inet/socket.S: File removed.
1521         * sysdeps/unix/inet/socketpair.S: File removed.
1522         * sysdeps/unix/mman/madvise.S: File removed.
1523         * sysdeps/unix/mman/mmap.S: File removed.
1524         * sysdeps/unix/mman/mprotect.S: File removed.
1525         * sysdeps/unix/mman/msync.S: File removed.
1526         * sysdeps/unix/mman/munmap.S: File removed.
1527         * sysdeps/unix/sysv/alarm.S: File removed.
1528         * sysdeps/unix/sysv/ftime.S: File removed.
1529         * sysdeps/unix/sysv/nice.S: File removed.
1530         * sysdeps/unix/sysv/pause.S: File removed.
1531         * sysdeps/unix/sysv/poll.S: File removed.
1532         * sysdeps/unix/sysv/s_getdents.S: File removed.
1533         * sysdeps/unix/sysv/signal.S: File removed.
1534         * sysdeps/unix/sysv/stime.S: File removed.
1535         * sysdeps/unix/sysv/time.S: File removed.
1536         * sysdeps/unix/sysv/times.S: File removed.
1537         * sysdeps/unix/sysv/ulimit.S: File removed.
1538         * sysdeps/unix/sysv/uname.S: File removed.
1539         * sysdeps/unix/sysv/utime.S: File removed.
1540         * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
1541         * sysdeps/unix/sysv/irix4/msync.S: File removed.
1542         * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
1543         * sysdeps/unix/sysv/irix4/signal.S: File removed.
1544         * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
1545         * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
1546         * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
1547         * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
1548         * sysdeps/unix/sysv/linux/fork.S: File removed.
1549         * sysdeps/unix/sysv/linux/getpgid.S: File removed.
1550         * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
1551         * sysdeps/unix/sysv/linux/getsid.S: File removed.
1552         * sysdeps/unix/sysv/linux/gtty.S: File removed.
1553         * sysdeps/unix/sysv/linux/mlock.S: File removed.
1554         * sysdeps/unix/sysv/linux/mlockall.S: File removed.
1555         * sysdeps/unix/sysv/linux/mount.S: File removed.
1556         * sysdeps/unix/sysv/linux/munlock.S: File removed.
1557         * sysdeps/unix/sysv/linux/munlockall.S: File removed.
1558         * sysdeps/unix/sysv/linux/pipe.S: File removed.
1559         * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
1560         * sysdeps/unix/sysv/linux/setpgid.S: File removed.
1561         * sysdeps/unix/sysv/linux/setsid.S: File removed.
1562         * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
1563         * sysdeps/unix/sysv/linux/sigpending.S: File removed.
1564         * sysdeps/unix/sysv/linux/stty.S: File removed.
1565         * sysdeps/unix/sysv/linux/umount.S: File removed.
1566         * sysdeps/unix/sysv/linux/wait4.S: File removed.
1567         * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
1568         * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
1569         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
1570         * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
1571         * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
1572         * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
1573         * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
1574         * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
1575         * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
1576         * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
1577         * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
1578         * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
1579         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
1580
1581         * io/mknod.c: New file.
1582
1583         * Makerules (COMPILE.s): New variable.
1584
1585         * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
1586         make-syscalls.sh and include it.
1587         [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
1588         sysd-syscalls.
1589         * sysdeps/unix/make-syscalls.sh: New file.
1590
1591         * Makerules (COMPILE.S): New variable.
1592
1593 Wed Jan 17 11:04:58 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1594
1595         * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
1596         _STAT_VER_SVR4, _STAT_VER): New macros.
1597         (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
1598
1599         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
1600         New macros.
1601
1602         * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
1603         (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
1604         [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
1605         as `extern inline's calling the `x' functions.
1606         * io/fstat.c: New file.
1607         * io/lstat.c: New file.
1608         * io/stat.c: New file.
1609         * sysdeps/generic/lstat.c: File removed.
1610         * sysdeps/generic/lxstat.c: New file.
1611         * sysdeps/mach/hurd/fstat.c: File removed.
1612         * sysdeps/mach/hurd/fxstat.c: New file.
1613         * sysdeps/mach/hurd/lstat.c: File removed.
1614         * sysdeps/mach/hurd/lxstat.c: New file.
1615         * sysdeps/mach/hurd/mknod.c: File removed.
1616         * sysdeps/mach/hurd/stat.c: File removed.
1617         * sysdeps/mach/hurd/xmknod.c: New file.
1618         * sysdeps/mach/hurd/xstat.c: New file.
1619         * sysdeps/stub/fstat.c: File removed.
1620         * sysdeps/stub/fxstat.c: New file.
1621         * sysdeps/stub/lstat.c: File removed.
1622         * sysdeps/stub/lxstat.c: New file.
1623         * sysdeps/stub/mknod.c: File removed.
1624         * sysdeps/stub/stat.c: File removed.
1625         * sysdeps/stub/xmknod.c: New file.
1626         * sysdeps/stub/xstat.c: New file.
1627         * sysdeps/unix/common/lstat.S: File removed.
1628         * sysdeps/unix/common/lxstat.c: New file.
1629         * sysdeps/unix/fstat.S: File removed.
1630         * sysdeps/unix/fxstat.c: New file.
1631         * sysdeps/unix/mknod.S: File removed.
1632         * sysdeps/unix/stat.S: File removed.
1633         * sysdeps/unix/sysv/linux/fstat.c: File removed.
1634         * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
1635         * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
1636         * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
1637         * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
1638         * sysdeps/unix/sysv/linux/lstat.c: File removed.
1639         * sysdeps/unix/sysv/linux/mknod.c: File removed.
1640         * sysdeps/unix/sysv/linux/stat.c: File removed.
1641         * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
1642         * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
1643         * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
1644         * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
1645         * sysdeps/unix/xmknod.c: New file.
1646         * sysdeps/unix/xstat.c: New file.
1647         * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
1648         * misc/Makefile (routines): Remove mknod.
1649
1650         * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
1651         Add missing ; in little-endian case.
1652
1653         * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
1654         Define this instead of ELF_DYNAMIC_DO_RELA.
1655
1656         * sysdeps/unix/sysv/time.S: Moved from sysv4.
1657         * sysdeps/unix/sysv/irix4/time.S: File removed.
1658
1659         * sysdeps/unix/sysv/linux/signum.h: Moved from
1660         sysdeps/unix/sysv/linux/i386.
1661         (_NSIG): Move inside #ifdef _SIGNAL_H.
1662
1663 Tue Jan 16 17:37:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1664
1665         * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
1666         * sysdeps/unix/telldir.c: Fix position calculation to account for
1667         buffered data properly.
1668
1669         * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
1670         library.
1671
1672         * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
1673         * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
1674         global.
1675         [! HAVE_INITFINI]: Only make it a constructor in this case.
1676
1677         * gmon/Makefile (CFLAGS-mcount.c): New variable.
1678         (mcount.po): New target.
1679
1680         * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
1681
1682         * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
1683         (initfini): Compile initfini.c with -fPIC.
1684
1685 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
1686
1687         * sysdeps/mips/bytesex.h: Add default byte sex.  By Ralf Baechle.
1688
1689         * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
1690         member of `struct timex' instead of `modes'.  From Andreas Schwab.
1691
1692         * sysdeps/unix/sysv/linux/mknod.c: New file.  Generic C version.
1693         * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
1694
1695         * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
1696         [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
1697         [$(subdir) = misc] (headers): Append sys/mount.h.
1698
1699         * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
1700         New files.  Implement system calls.
1701         * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
1702
1703         * sysdeps/unix/sysv/linux/ptrace.c: New file.  Wrapper around
1704         ptrace system call.
1705         * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
1706
1707         * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
1708         types for i386/Linux.
1709
1710 Sun Jan 14 17:51:09 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1711
1712         * MakeTAGS (all-sources, all-headers): Always search the
1713         current directory first.
1714
1715         * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
1716         found.
1717
1718         * stdio-common/vfscanf.c (inchar, conv_error, input_error,
1719         memory_error): Add cast to void to avoid gcc warning.
1720         (vfscanf): Rewrite character class parsing to make it more efficient.
1721
1722         * misc/efgcvt_r.c (ecvt_r): Handle negative values.
1723
1724         * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
1725         * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
1726         sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
1727
1728         * stdio-common/printf_fp.c (__printf_fp): Fix parameter
1729         declaration.
1730
1731         * sysdeps/generic/putenv.c (putenv): Fix second argument of
1732         setenv.
1733
1734         * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
1735         * sysdeps/ieee754/cabs.c: Don't define hypot here.
1736
1737         * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
1738         definition of ieee_nan alternative.
1739
1740         * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
1741         prefix spec.
1742
1743         * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
1744
1745         * sysdeps/m68k/fpu/__math.h: Include <errno.h>.  Replace obsolete
1746         __CONSTVALUE by attribute.
1747         (floor): Round to negative infinity.
1748         (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
1749         clash when compiling source.
1750         (pow): Handle x == 0 and x < 0.
1751         (ceil, __isinf, __isnan): Fix register constraints.
1752         (__isinfl, __isnanl): Added.
1753         * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
1754         sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
1755         sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
1756
1757         * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
1758         assembler syntax.
1759
1760         * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
1761         argument.
1762
1763         * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
1764         clock_t conversion.
1765         (clock): Don't multiply by CLOCKS_PER_SEC.
1766
1767         * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
1768
1769         * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
1770         __end.
1771
1772         * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
1773
1774         * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
1775
1776         * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
1777
1778 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
1779
1780         * stdlib/strtol.c: Return correct pointer for strings
1781         like "0xyz" and base 0 or 16.
1782
1783         * string/strxfrm.c: Handle case for LENGTH == 0 correct.
1784
1785         * sunrpc/etc.rpc: Add some more known protocols.
1786
1787 Fri Jan 12 13:40:01 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1788
1789         * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
1790
1791         * posix/glob.c (glob): Add parens in glob call flags arg for
1792         GLOB_BRACE case.
1793
1794         * string/string.h (strdupa): New macro.
1795
1796         * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
1797         terminator on empty set.  From drepper.
1798
1799 Thu Jan 11 13:09:20 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1800
1801         * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
1802         referent for STB_LOCAL.
1803
1804 Wed Jan 10 10:11:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1805
1806         * time/africa, time/antarctica, time/asia, time/australasia,
1807         time/europe, time/northamerica, time/pacificnew, time/solar87,
1808         time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
1809
1810 Tue Jan  9 16:10:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1811
1812         * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
1813         segment to find location, mprotect excess region to no access,
1814         don't munmap it.
1815
1816         * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
1817         KERN_NO_SPACE for fixed location, deallocate it and try again.
1818
1819 Mon Jan  8 17:43:23 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1820
1821         * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
1822         * locale/hash.c: Renamed to locale/locfile-hash.c.
1823
1824 Sat Jan  6 16:39:14 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1825
1826         * Makefile (subdirs): Added db.
1827
1828         * resolv/Makefile (routines): Add res_data.
1829         * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
1830         Updated from BIND 4.9.3 final release.
1831
1832         * elf/dynamic-link.h (elf_get_dynamic_info): Handle
1833         processor-specific tags.
1834         (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
1835
1836         * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
1837         * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
1838
1839         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
1840         arg LAZY.  Only do our work if LAZY and there is a DT_JMPREL record.
1841         * elf/dl-reloc.c (_dl_relocate_object): Call
1842         elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
1843
1844         * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
1845         Align end of load segment only to page size, not to segment alignment.
1846
1847 Thu Jan  4 11:35:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1848
1849         * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
1850         preemption interface.
1851
1852         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1853         Use _hurdsig_catch_memory_fault.
1854
1855         * hurd/Makefile (headers): Add hurd/sigpreempt.h.
1856         (sig): Add catch-signal.
1857
1858         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
1859         Rewritten using a preempter in new interface.
1860         * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
1861         (_hurdsig_catch_memory_fault): New macro.
1862
1863 Wed Jan  3 20:23:42 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1864
1865         * hurd/catch-signal.c: New file.
1866
1867         * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
1868
1869         * hurd/hurdsig.c: Use new hurdfault.h interface.
1870         (abort_all_rpcs): Mutate return value to EINTR in threads whose
1871         replies we will wait for.
1872
1873         * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
1874         do ourselves last.
1875
1876 Wed Jan  3 19:17:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1877
1878         * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
1879         to auth_makeauth() in the right order.
1880
1881 Wed Jan  3 17:19:04 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1882
1883         * sysdeps/generic/strsep.c: Rewritten.
1884
1885         * sysdeps/mach/hurd/fork.c: Use a different workaround for the
1886         suspended page fault deadlock kernel bug: thread_abort our signal
1887         thread first thing after proc_dostop.
1888
1889         * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
1890         recognize rootness properly.
1891
1892 Tue Jan  2 00:50:10 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1893
1894         * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
1895         (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
1896         * hurd/hurd/sigpreempt.h: New file.
1897         * hurd/preempt-sig.c: Rewritten with new interface.
1898         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
1899         preempters being unwound past.
1900         * hurd/hurdsig.c: Use new signal preemption interface.
1901
1902         * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
1903         release.
1904
1905         * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
1906         compatibility.
1907
1908         * misc/queue.h: New file, incorporated from 4.4BSD.
1909         * misc/Makefile (headers): Add queue.h.
1910
1911         * posix/sys/types.h [__USE_BSD]: Include endian.h.
1912
1913         * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
1914         New macros.
1915
1916 Thu Dec 28 10:21:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1917
1918         * sysdeps/generic/confname.h: Define all names as self-referential
1919         macros so #ifdef works.
1920
1921         * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
1922         of _hurd_signal_preempters[SIGNO].
1923
1924 Mon Dec 25 20:56:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1925
1926         * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
1927         EADDRINUSE.  If translated node doesn't grok ifsock protocol,
1928         return EADDRINUSE.
1929
1930         * sysdeps/mach/hurd/connect.c: Make address arg
1931         `const struct sockaddr_un *'.
1932         The redecl is kosher and avoids another variable for AF_LOCAL case.
1933         * sysdeps/mach/hurd/sendto.c: Likewise.
1934         * sysdeps/mach/hurd/bind.c: Likewise.
1935
1936         * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
1937         code for GCC >= 2.7; use __transparent_union__ for name safety;
1938         add several sockaddr flavors.
1939         (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
1940         constructing the transparent union declarations.
1941         (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
1942         (bind, connect, sendto): Make the sockaddr argument use that.
1943
1944 Fri Dec 22 00:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1945
1946         * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
1947         old vector.
1948         * sysdeps/mach/hurd/setuid.c: Likewise.
1949
1950         * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
1951         right thing.
1952         * sysdeps/mach/hurd/setgid.c: Likewise.
1953         * sysdeps/mach/hurd/setreuid.c: Likewise.
1954         * sysdeps/mach/hurd/setregid.c: Likewise.
1955         * sysdeps/mach/hurd/setegid.c: Likewise.
1956         * sysdeps/mach/hurd/seteuid.c: Likewise.
1957
1958         * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
1959         proc_dostop call to work around kernel paging bug.
1960
1961 Fri Dec 22 00:38:00 1995  H.J. Lu  <hjl@nynexst.com>
1962
1963         * stdio-common/vfscanf.c: Correctly handle white space skipping.
1964         * stdio-common/Makefile (tests): Add bug11.
1965         * stdio-common/bug11.c: New file.
1966
1967 Thu Dec 21 12:19:32 1995  Miles Bader  <miles@gnu.ai.mit.edu>
1968
1969         * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
1970         instead of putting it (and other uids) in the gids and leaving the
1971         old uids as is.
1972
1973 Wed Dec 20 18:23:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1974
1975         * stdio/internals.c (flushbuf): If the target is -1, always
1976         discard the buffer of read data.
1977         Only set TWIDDLED flag in !ALIGNED case.
1978         Never increment target or offset when old value is -1.
1979
1980 Tue Dec 19 17:00:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1981
1982         * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
1983         pgrp changes.
1984
1985 Mon Dec 18 13:40:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1986
1987         * stdio/fread.c: Don't increment __offset when it's -1.
1988
1989         * elf/rtld.c (dl_main): Prepend tab to "statically linked".  Exit
1990         0 in that case.
1991
1992         * misc/err.c (vwarnx, vwarn): Fix major brainos.
1993
1994         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
1995         inheritance.
1996
1997 Sun Dec 17 15:56:35 1995  Miles Bader  <miles@gnu.ai.mit.edu>
1998
1999         * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
2000
2001 Sat Dec 16 10:33:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2002
2003         * Makerules: Use $(do-install-so) for installing shared objects.
2004         (do-install-so): New canned sequence.  Make a symlink LIB.so after
2005         installing LIB.so.VERSION.
2006
2007         * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
2008
2009 Fri Dec 15 04:41:22 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2010
2011         * stdio-common/Makefile (tests): Add bug10.
2012         * stdio-common/bug10.c: New file.  From HJ Lu.
2013
2014         * stdio-common/tstdiomisc.c: Make more test-suite like: exit
2015         status tells about successful run.
2016
2017         * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
2018         format correctness.
2019         Correct handling of trailing white spaces in format + EOF.
2020
2021 Fri Dec 15 01:31:56 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2022
2023         * stdio-common/Makefile (tests): Add bug8 and bug9.
2024         * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
2025
2026         * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
2027
2028         * stdlib/strtod.c: Correct spelling: nominator -> numerator.
2029         Thanks to Jim Meyering.
2030
2031 Sat Nov 25 06:05:12 1995  H.J. Lu  <hjl@nynexst.com>
2032
2033         * stdio-common/vfscanf.c: Always check width !=0.
2034         Correctly handle %%.
2035
2036 Thu Dec 14 02:28:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2037
2038         * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
2039         and cast STREAM to DIR * before passing to readdir and closedir.
2040
2041 Wed Dec 13 22:06:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2042
2043         * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
2044         after aborting RPCs but before calling proc_mark_stop.
2045
2046 Mon Dec 11 20:07:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2047
2048         * posix/glob.c [! STDC_HEADERS]: Declare getenv.
2049         (glob): Avoid using function as value.
2050
2051         * elf/rtld.c (dl_main): When mapping argument executable, set
2052         l_name to "", not l_libname.
2053         After loading DT_NEEDED library, set its l_type to lt_library.
2054
2055         * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
2056         VM_INHERIT.  We can't handle MAP_INHERIT easily.
2057         Handle non-page-aligned addresses if congruent to offset.
2058
2059         * elf/dl-init.c: Skip the initializer for l_type lt_executable
2060         with l_name "". Start at _dl_loaded; don't skip the first element.
2061
2062         * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
2063         (MAP_COPY): Define to MAP_PRIVATE if undefined.
2064         (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
2065         If file it ET_EXEC, set its l_type to lt_executable.
2066
2067 Sun Dec 10 09:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2068
2069         * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
2070
2071 Fri Dec  8 13:04:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2072
2073         * locale/error.c, locale/error.h: Files removed.
2074         * locale/Makefile (distribute): Remove error.h.
2075         (lib-modules): Remove error.
2076
2077         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
2078         magic, return ENXIO if no ctty.
2079
2080         * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
2081         mapping if vm_map fails for that reason.
2082
2083         * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
2084         GLOB_TILDE, GLOB_NOMAGIC.
2085         (glob): Use stat instead of lstat to determine directoriness.
2086         * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
2087         New flag bits.
2088         (__GLOB_FLAGS): Include them.
2089         (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
2090         gl_stat.
2091
2092         * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
2093
2094         * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
2095         define all the bit values.
2096         (MAP_*, MCL_*): Macros removed.
2097
2098 Thu Dec  7 02:27:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2099
2100         * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
2101         Updated from BIND 4.9.3-BETA27.
2102
2103 Wed Dec  6 18:44:01 1995  Miles Bader  <miles@gnu.ai.mit.edu>
2104
2105         * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
2106
2107         * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
2108         we get a delayed reply.
2109         Only grab values out of entries in TYPES that have SELECT_RETURNED
2110         turned on, and turn it on whenever an rpc returns.
2111         Only clear bits in the user's fdsets -- those needing to be set
2112         should be already.
2113         Use SELECT_ALL in appropiate places.
2114         (SELECT_RETURNED, SELECT_ALL): New macros.
2115
2116 Wed Dec  6 09:10:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2117
2118         * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
2119
2120         * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
2121
2122 Tue Dec  5 14:00:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2123
2124         * misc/Makefile (headers): Add error.h, err.h.
2125         (routines): Add error, err.
2126         (gpl2lgpl): New variable.
2127         * misc/err.c: New file.
2128         * misc/err.h: New file.
2129         * misc/error.c, misc/error.h: New files.
2130
2131         * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
2132
2133         * Makeconfig (+link): Translate libc% from $^, not just libc.a.
2134         (link-libc): Append $(libc.so-version) to libc.so.
2135         (built-program-cmd): Fix comma usage.
2136         * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
2137         symlink to libc.so in the build directory.
2138         * Rules ($(others) $(tests)): Depend on the library that appears
2139         in $(link-libc).
2140         (%.out): Use $(built-program-cmd) in commands.
2141
2142         * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
2143
2144         * sysdeps/generic/setenv.c: Added canonical portability cruft.
2145         (setenv): Use realloc on LAST_ENVIRON instead of always copying.
2146         (unsetenv): New function.
2147         * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
2148         * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
2149
2150 Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2151
2152         * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
2153
2154         * libio/iofscanf.c: Remove file.
2155
2156         * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
2157         termination.
2158
2159         * libio/iopopen.c: New file from GNU libio.
2160
2161         * libio/memstream.c: Fixed bug in fclose handling.  Instead of
2162         providing a close callback we need a finish callback.
2163
2164         * libio/pclose.c: New file.  Derived from popen.c in GNU libio.
2165
2166         * posix/gnu/types.h: Fixed typo.
2167
2168         * stdio-common/errnobug.c: fputs returns EOF in error case.  Do
2169         not test for != 0.
2170
2171         * stdio-common/printf-parse.h (parse_one_spec): Do not force
2172         padding with ' ' if precision is given.  Fix by HJ Lu.
2173
2174         * stdio-common/printf_fp.c: Fix comment.
2175
2176         * stdio-common/tfformat.c, stdio-common/tiformat.c,
2177         stdio-common/tstdiomisc.c: New files from GNU libio test suite.
2178
2179         * stdio-common/tstgetln.c: Provide ssize_t type when testing
2180         libio.
2181
2182         * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
2183         (vfprintf): Cleasr args_type array before using it.
2184         When printing 0 as an integer with precision 0 nothing must be
2185         written for the number.
2186         Based on patch by HJ Lu.
2187
2188         * stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
2189         have a dynamically extended buffer.
2190
2191         * stdlib/strtod.c: Merge with version in Linux libc.  This fixes
2192         some bugs with handling of very small numbers and has different
2193         solution for formaer patches.
2194
2195         * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
2196         macros r1 and r2 to t1, and t2 resp.  This is necessary because
2197         glibc headers also define r1.
2198
2199 Mon Dec  4 12:10:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2200
2201         * stdlib/gen-mpn-copy (translations): Updated for new layout in
2202         GMP 1.910.
2203
2204         * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
2205         made global.
2206         (malloc): Caller changed.
2207         * malloc/realloc.c (realloc): Call __malloc_initialize if
2208         necessary, before checking hook.
2209         * malloc/malloc.h: Declare __malloc_initialize.
2210
2211         * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
2212         as integer_t arg in RPC.
2213
2214 Sat Dec  2 03:47:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2215
2216         * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
2217         (_hurd_set_brk): Try to allocate more space when we run out.
2218
2219         * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
2220         zero and examine it again.
2221         * sysdeps/unix/sysv/linux/i386/brk.c: New file.
2222         * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
2223         * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
2224         * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
2225         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
2226         Invoke this macro before calling DL_MAIN.
2227
2228         * malloc/malloc.c (malloc): Do initialization here, before
2229         checking the hook.
2230         (_malloc_internal): Don't do it here.
2231
2232 Wed Nov 29 12:30:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2233
2234         * libio/vsnprintf.c (__vsnprintf): Define as alias.
2235         * libio/iovsscanf.c (__vsscanf): Define as alias.
2236         * asprintf.c: Remove libio adaptation code added by drepper.
2237         * dprintf.c: Likewise.
2238         * printf.c: Likewise.
2239         * scanf.c: Likewise.
2240         * snprintf.c: Likewise.
2241         * sprintf.c: Likewise.
2242         * sscanf.c: Likewise.
2243         * vprintf.c: Likewise.
2244         * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
2245         function.
2246         (vfscanf): Define unconditionally.
2247
2248         * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
2249         zero for value.
2250
2251         * misc/getpass.c: Write a newline after reading the unechoed
2252         password.
2253
2254 Mon Nov 27 19:24:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2255
2256         * posix/Makefile (routines): Add getsid.
2257         * sysdeps/unix/sysv/linux/getsid.S: New file.
2258         * sysdeps/mach/hurd/getsid.c: New file.
2259         * sysdeps/stub/getsid.c: New file.
2260         * posix/unistd.h [__USE_GNU]: Declare getsid.
2261
2262 Sun Nov 26 12:44:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2263
2264         * libc-symbols.h (N_): New macro.
2265
2266 Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2267
2268         * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
2269         malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
2270         resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
2271         sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
2272         sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
2273         sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
2274         sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
2275         sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
2276         strings.
2277
2278 Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2279
2280         * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
2281
2282 Thu Nov 23 02:21:55 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2283
2284         * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
2285         New files.
2286         * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
2287         mlock, munlock, mlockall, and munlockall.
2288
2289 Thu Nov 23 18:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2290
2291         * configure.in (--enable-libio): Set $stdio based on $enableval,
2292         not always to libio.
2293
2294 Thu Nov 23 18:06:48 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
2295
2296         * malloc/malloc.c (_malloc_internal): Can't use
2297         get_contiguous_space when the heap info table
2298         will be growing.  Account for new contiguous space in _heaplimit.
2299
2300 Wed Nov 22 12:37:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2301
2302         * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
2303         for errno.
2304
2305         * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
2306         alias for _IO_vfprintf.
2307
2308         * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
2309
2310         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
2311         __fpu_control instead of ___fpu_control.
2312         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
2313         (___fpu_control): Renamed to __fpu_control.
2314         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
2315         * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
2316
2317         * elf/dl-minimal.c: New file.
2318         * elf/Makefile (rtld-routines): Add dl-minimal.
2319         * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
2320         Functions moved to dl-minimal.c.
2321         * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
2322         sigjmp_save, longjmp): Likewise.
2323
2324         * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
2325         to &_end, regardless of PIC.
2326
2327         * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
2328
2329 Tue Nov 21 14:12:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2330
2331         * malloc/malloc.c (align): Don't check contiguity and call abort.
2332
2333         * hurd/hurdsig.c (post_reply): Function removed.
2334         (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
2335         Take single callback fn arg instead of reply port and type.
2336         (_hurd_internal_post_signal): Callers changed.
2337         Cache reply stub fn ptr in local var before UNTRACED might be changed.
2338
2339         * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
2340         PROT_READ|PROT_WRITE copy mapping.  Pass a proper vm_inherit_t to
2341         vm_map.
2342
2343         * elf/rtld.c (_dl_start): For --list, do output and exit before
2344         relocating.
2345
2346 Mon Nov 20 16:19:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2347
2348         * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
2349         get .c and .h files.
2350
2351         * malloc/malloc.c (align): Use abort instead of assert.
2352
2353 Sun Nov 19 18:23:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2354
2355         * Makeconfig (+includes): Add $($(stdio)-include).
2356         (libio-include): New variable.
2357
2358         * stdlib/strtod.c: Put weak_symbol after function defn.
2359         * stdlib/strtol.c: Likewise.
2360
2361         * configure.in (--enable-libio): If not present, set $stdio to
2362         "default".  Move stdio/libio check to end, so sysdeps fragments
2363         can affect it.  Reset $stdio to "stdio" if it's "default".
2364         * sysdeps/unix/sysv/linux/configure: New file.
2365
2366 Sat Nov 18 16:46:01 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2367
2368         * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
2369         libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
2370         libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
2371         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
2372         libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
2373         libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
2374         libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
2375         libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
2376         libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
2377         libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
2378         libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
2379         libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
2380         libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
2381         libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
2382         libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
2383         New files.  Slightly modified version from Linux libc.
2384
2385         * libio/memstream.c, libio/vdprintf.c: New files for functions not
2386         (yet) part of GNU libio.
2387
2388         * libio/iofopncook.c: Implementation of `fopencookie', mainly written
2389         by Per Bothner.
2390
2391         * stdio-common/getline.c: Adapted to libio.
2392         * stdio-common/snprintf.c: Adapted to libio.
2393         * stdio-common/vfprintf.c: Adapted to libio.
2394         * stdio-common/vfscanf.c: Adapted to libio.
2395         * sysdeps/posix/tempname.c: Adapted to libio.
2396
2397 Fri Nov 17 17:57:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2398
2399         * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
2400
2401         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
2402         function.
2403
2404         * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
2405         (_hurdsig_fault_init): Remove #if 0 from setting exception port.
2406         Insert send right for SIGEXC before thread_set_special_port.
2407         * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
2408         (_hurdsig_init): Remove #if 0 from setting exception port.
2409
2410         * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
2411         HURD_MSGPORT_RPC macro.
2412
2413 Thu Nov 16 06:07:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2414
2415         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
2416         function.
2417         (_dl_sysdep_start): Move cleanup code there.
2418
2419         * Makeconfig (default-rpath): New variable.
2420         (link-libc): Use it.
2421         * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
2422         * elf/rtld.c (_dl_rpath): New variable.
2423         (_dl_start): Set it from rtld_map's DT_RPATH.
2424         Call _dl_setup_hash on rtld_map.
2425         (dl_main): Cache address of _exit in variable before relocating,
2426         and use that in later calls.  Call _dl_sysdep_start_cleanup before
2427         relocating.  Keep track of dependency order while loading; remove
2428         rtld_map from chain, and reinsert in proper order if there is a
2429         dependency on it.
2430
2431         * sysdeps/generic/Makefile (make_siglist): Pass
2432         -DSIGNUM_H=... with config's signum.h location.
2433         * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
2434         signal numbers.
2435         (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
2436         (main): Deansideclize output.
2437
2438         * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
2439         of DEFAULT_RPATH macro.
2440         * elf/Makefile: Undo last change.
2441
2442         * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
2443
2444 Wed Nov 15 19:22:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2445
2446         * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
2447         error if weak.
2448
2449         * elf/Makefile (default-rpath): New variable.
2450         (CPPFLAGS): Append -DDEFAULT_RPATH=....
2451         * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
2452         hard-coded "/lib:/usr/lib".
2453
2454         * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
2455         instead of stdio.
2456         (_dl_sysdep_start): If passed user entry is zero and
2457         EXEC_STACK_ARGS flag set, reset user entry to &_start.
2458
2459         * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
2460         DT_HASH element.
2461
2462         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
2463         repeat weak decl using weak_symbol macro, in case using broken GCC
2464         (<2.8).
2465
2466 Wed Nov 15 18:49:55 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
2467
2468         * sysdeps/i386/isnanl.c: New file.
2469         * sysdeps/i386/isinfl.c: New file.
2470
2471 Tue Nov 14 18:44:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2472
2473         * malloc/free.c (free): Moved null and aligned_blocks checks
2474         inside _free_internal.
2475
2476 Mon Nov 13 15:23:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2477
2478         * malloc/malloc.c (morecore): Fix inverted test in allocating new
2479         info table.
2480
2481         * malloc/malloc.c (align): Fix assertion.
2482
2483         * malloc/malloc.c: Include assert.h.
2484
2485         * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
2486
2487         * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
2488         (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
2489
2490 Fri Nov 10 14:15:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2491
2492         * malloc/malloc.c (align): Assert that space for alignment
2493         adjustment is same original space.
2494
2495         * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
2496         arg to vm_address_t.
2497
2498         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
2499         skip straight to pending check.  When UNTRACED, resume process
2500         from suspension first.
2501
2502         * intl/Makefile (headers): New variable, libintl.h.
2503         [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
2504         * configure.in: Check for --with-gettext arg.
2505
2506 Fri Nov 10 13:51:30 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
2507
2508         * malloc/malloc.c (get_contiguous_space): New function.
2509         (morecore): Rewrite allocating new malloc info table.
2510         (_malloc_internal): Use get_contiguous_space.
2511
2512 Fri Nov 10 13:03:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2513
2514         * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
2515         _hurd_msgport to be destroyed.
2516
2517         * Makerules (installed-libcs): Filter out %_pic.a.
2518
2519         * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
2520         to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
2521
2522         * hurd/Makefile (user-interfaces): Add hurd/process_request.
2523
2524 Wed Nov  8 16:31:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2525
2526         * termios/Makefile (headers): Add sys/ttychars.h.
2527         * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
2528         for compatibility.
2529
2530         * signal/signal.h [__USE_BSD] (sig_t): New typedef.
2531
2532 Wed Nov  8 15:12:47 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
2533
2534         * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
2535         proc server that we are now traced.
2536
2537 Tue Nov  7 12:29:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2538
2539         * elf/Makefile (ldd): Make it executable.
2540
2541         * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
2542
2543         * Makeconfig (slibdir): New variable.
2544         * Makerules (install): Install libc.so in $(slibdir).
2545         * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
2546         in $(slibdir).
2547
2548         * elf/linux-compat.c: New file.
2549         * elf/Makefile (distribute): Add linux-compat.c.
2550         (generated): Add librtld.so.
2551         [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
2552         [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
2553         (librtld.so): New target.
2554         (ld.so, ld-linux.so.1): Make from librtld.so.
2555
2556         * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
2557         call our own DT_INIT if we have one (and then clear it).
2558         (__dgettext): New weak function.
2559
2560         * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
2561         by hand instead.
2562
2563         * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
2564         instead of snprintf.
2565
2566         * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
2567         BUF[BUFLEN].
2568
2569         * elf/rtld.c (rtld_map): New static variable.
2570         (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
2571         bootstrapping.  Then copy data into `rtld_map'.
2572         (dl_main): Finish filling in rtld_map and link it into the chain,
2573         instead of allocating a new structure.
2574         (dl_main): Call _dl_compat_init if it is defined (use weak ref).
2575
2576         * elf/dlsym.c: Fix last change: move REF out of `doit'.
2577
2578 Mon Nov  6 16:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2579
2580         * elf/dlsym.c: Return the proper value, not just the defining
2581         object's loadbase.
2582
2583 Sun Nov  5 16:09:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2584
2585         * stdio-common/vfprintf.c (%c): Count the character itself towards
2586         the field width in all cases.
2587
2588         * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
2589         __vm_deallocate arg to vm_address_t.
2590
2591 Fri Nov  3 17:27:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2592
2593         * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
2594         socket_create_address.
2595         * sysdeps/mach/hurd/connect.c: Likewise.
2596         * sysdeps/mach/hurd/bind.c: Likewise.
2597
2598         * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
2599         args to proc_getprocinfo.
2600         * sysdeps/mach/hurd/getpriority.c: Likewise.
2601
2602         * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
2603
2604 Thu Nov  2 19:24:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2605
2606         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
2607
2608 Tue Oct 31 00:07:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2609
2610         * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
2611         PI_FETCH_TASKINFO to proc_getprocinfo and through
2612         _hurd_priority_which_map.
2613
2614         * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
2615         _hurd_priority_which_map.
2616         * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
2617         passed through to proc_getprocinfo RPC.
2618         * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
2619
2620         * sysdeps/mach/hurd/group_member.c: New file.
2621         * sysdeps/generic/group_member.c: New file.
2622
2623         * Makerules (lib-noranlib): Don't depend on $(install-lib).
2624         (others): Do.
2625         * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
2626
2627 Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2628
2629         * Rules (others): Depend on $(extra-objs).
2630
2631         * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
2632         * posix/Makefile (routines): Add group_member.
2633
2634         * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
2635
2636         * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
2637         SIG operand in asm so it must be a register.
2638         Add dead return to quiet gcc warning.
2639
2640         * Makerules (sysd-rules): Write a defn for sysd-rules-done.
2641         [! sysd-rules-done]: Inhibit deps.
2642
2643 Thu Oct 26 23:11:11 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
2644
2645         * sysdeps/unix/sysv/linux/poll.c: Don't define as stub.  Use
2646         simulation of system call using select.
2647
2648         * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
2649
2650         * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
2651
2652         * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
2653         name usage (new->act, old->oact).
2654         Correct asm statement because of gcc strangeness.
2655
2656         * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
2657
2658         * sunrpc/clnt_perr.c: Remove declaration of sys_errlist.  They
2659         conflict with the ones in stdio.h.
2660
2661         * string/tester.c: %Z is no complete format.  Change to %Zd.
2662
2663 Thu Oct 26 18:13:33 1995  Miles Bader  <miles@gnu.ai.mit.edu>
2664
2665         * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
2666         * sysdeps/mach/hurd/link.c (__link): Ditto.
2667         * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
2668         * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
2669         Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
2670
2671 Thu Oct 26 00:11:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2672
2673         * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
2674
2675         * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
2676         on syscall_error.  For PIC, it is a local label;
2677         for non-PIC, JUMPTARGET expands to the unadorned name anyway.
2678         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
2679         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2680         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2681         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
2682         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2683         * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
2684
2685 Thu Oct 26 03:01:22 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
2686
2687         * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
2688         comment to the necessary ones.  Add _readv and _writev.
2689
2690         * sysdeps/unix/configure.in: Change syntax for system call test
2691         candidates and adapt sed script for this.  Now use : to separate
2692         syscall name and file name.
2693
2694         * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
2695         number is now set is DO_CALL.  So call with additional argument.
2696         (DO_CALL): Takes an additional argument.  Load system call
2697         number according to new argument.
2698         (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
2699         * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
2700         locally using SYSCALL_ERROR_HANDLER macro.
2701         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2702         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
2703         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2704         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
2705         * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
2706         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2707         Don't use DO_CALL macro; instead use lower level macros for better
2708         control.
2709
2710         * sysdeps/unix/sysv/linux/sigaction.h: New file.
2711         * sysdeps/unix/sysv/linux/sigaction.S: File removed.
2712         * sysdeps/unix/sysv/linux/signal.S: File removed.
2713
2714 Wed Oct 25 14:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2715
2716         * hurd/hurdstartup.c (_hurd_startup): Use new
2717         exec_startup_get_info RPC from exec_startup.defs
2718         in place of old exec_startup from exec.defs.  Remove kludge to
2719         guess user entry and phdr locations, since the new RPC gives us
2720         that info.
2721
2722         * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
2723         * sysdeps/generic/_strerror.c: Undo last change.
2724
2725         * sysdeps/unix/sysv/linux/stat.c: New file.
2726         * sysdeps/unix/sysv/linux/fstat.c: New file.
2727         * sysdeps/unix/sysv/linux/lstat.c: New file.
2728         * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
2729         * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
2730         * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
2731
2732 Tue Oct 24 15:22:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2733
2734         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2735         New macro.
2736         (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
2737
2738         * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
2739         only #ifndef PIC.
2740
2741         * Makeconfig (built-program-cmd): New variable.
2742         * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
2743         * time/Makefile (zic-cmd): Likewise.
2744
2745         * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
2746
2747         * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
2748         * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
2749         make `others' rather than `lib-noranlib' depend on the libraries.
2750
2751         * sysdeps/unix/configure.in: Check for fchdir syscall.
2752         Improve sed script to allow / on rhs without / on lhs.
2753
2754 Thu Oct 19 03:47:32 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
2755
2756         * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
2757
2758         * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
2759
2760         * sysdeps/unix/sysv/linux/select.S: New file.
2761
2762 Wed Oct 18 03:33:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2763
2764         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
2765         SYSCALL_PIC_SETUP before jumping to syscall_error.
2766         * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
2767         (PSEUDO): Use it before jumping to syscall_error.
2768         * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
2769         expect it in %ebx on entry.  Pop old %ebx value off stack after
2770         using it.
2771
2772         * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
2773         them.
2774
2775         * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
2776
2777         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
2778         `fd/', pass the right pointer to strtol to parse the number.
2779
2780 Tue Oct 17 23:00:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2781
2782         * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
2783         of stdio/_itoa.h.
2784
2785 Tue Oct 17 19:51:17 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
2786
2787         * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
2788         register %ebx before calling __xstat through PLT.
2789
2790         * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
2791
2792         * sysdeps/unix/sysv/linux/sigset.h: Remove file.
2793
2794 Tue Oct 17 01:21:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2795
2796         * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
2797         stdio/_itoa.h.
2798         * hurd/hurdlookup.c: Likewise.
2799
2800         * hurd/hurd/signal.h: Declare hurd_preempt_signals and
2801         hurd_unpreempt_signals.
2802
2803         * stdio/stdio.h: Declare __snprintf and __vsnprintf.
2804
2805         * stdio-common/psignal.c: Translate signal description strings.
2806         * string/strsignal.c: Likewise.
2807         * sysdeps/generic/_strerror.c (_strerror_internal): Translate
2808         error strings.
2809         * sysdeps/mach/_strerror.c: Likewise.
2810
2811         * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
2812         call __vsnprintf.
2813         (snprintf): Define as weak alias.
2814         * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
2815         (vsnprintf): Define as weak alias.
2816
2817 Mon Oct 16 03:22:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2818
2819         * Makerules (install-lib): Filter out %_pic.a; install only the
2820         linked shared objects.
2821
2822         * locale/Makefile (aux): Add SYS_libc.
2823         * locale/SYS_libc.c: New file.
2824         * libc-symbols.h [! ASSEMBLER] (_): New macro.
2825
2826         * configure.in (libc_cv_asm_set_directive): Link program into
2827         conftest instead of letting it default to a.out.
2828
2829         * elf/Makefile (install-others): Add missing slash.
2830
2831         * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
2832         won't search LD_LIBRARY_PATH.
2833
2834         * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
2835         * configure.in: Grok arg --enable-libio.
2836         ($stdio = libio): Define USE_IN_LIBIO.
2837         * config.h.in (USE_IN_LIBIO): Add #undef.
2838         * config.make.in (stdio): New variable, set by configure.
2839         * Makeconfig (stdio): New variable.
2840         * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
2841         stdio/stdio.h.
2842         * stdio-common/Makefile: New file.
2843         * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
2844         * stdio/_itoa.c: Moved to stdio-common.
2845         * stdio/_itoa.h: Moved to stdio-common.
2846         * stdio/asprintf.c: Moved to stdio-common.
2847         * stdio/bug1.c: Moved to stdio-common.
2848         * stdio/bug1.input: Moved to stdio-common.
2849         * stdio/bug2.c: Moved to stdio-common.
2850         * stdio/bug3.c: Moved to stdio-common.
2851         * stdio/bug4.c: Moved to stdio-common.
2852         * stdio/bug5.c: Moved to stdio-common.
2853         * stdio/bug6.c: Moved to stdio-common.
2854         * stdio/bug6.input: Moved to stdio-common.
2855         * stdio/bug7.c: Moved to stdio-common.
2856         * stdio/dprintf.c: Moved to stdio-common.
2857         * stdio/errnobug.c: Moved to stdio-common.
2858         * stdio/getline.c: Moved to stdio-common.
2859         * stdio/getw.c: Moved to stdio-common.
2860         * stdio/perror.c: Moved to stdio-common.
2861         * stdio/printf-parse.h: Moved to stdio-common.
2862         * stdio/printf-prs.c: Moved to stdio-common.
2863         * stdio/printf.c: Moved to stdio-common.
2864         * stdio/printf.h: Moved to stdio-common.
2865         * stdio/printf_fp.c: Moved to stdio-common.
2866         * stdio/psignal.c: Moved to stdio-common.
2867         * stdio/putw.c: Moved to stdio-common.
2868         * stdio/reg-printf.c: Moved to stdio-common.
2869         * stdio/scanf.c: Moved to stdio-common.
2870         * stdio/snprintf.c: Moved to stdio-common.
2871         * stdio/sprintf.c: Moved to stdio-common.
2872         * stdio/sscanf.c: Moved to stdio-common.
2873         * stdio/tempnam.c: Moved to stdio-common.
2874         * stdio/temptest.c: Moved to stdio-common.
2875         * stdio/test-fseek.c: Moved to stdio-common.
2876         * stdio/test-fwrite.c: Moved to stdio-common.
2877         * stdio/test-popen.c: Moved to stdio-common.
2878         * stdio/test_rdwr.c: Moved to stdio-common.
2879         * stdio/tmpfile.c: Moved to stdio-common.
2880         * stdio/tmpnam.c: Moved to stdio-common.
2881         * stdio/tst-fileno.c: Moved to stdio-common.
2882         * stdio/tst-printf.c: Moved to stdio-common.
2883         * stdio/tstgetln.c: Moved to stdio-common.
2884         * stdio/tstgetln.input: Moved to stdio-common.
2885         * stdio/tstscanf.c: Moved to stdio-common.
2886         * stdio/tstscanf.input: Moved to stdio-common.
2887         * stdio/vfprintf.c: Moved to stdio-common.
2888         * stdio/vfscanf.c: Moved to stdio-common.
2889         * stdio/vprintf.c: Moved to stdio-common.
2890         * stdio/xbug.c: Moved to stdio-common.
2891         * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
2892         stdio-common instead of stdio.
2893         * sysdeps/unix/Makefile (errlist.c rules): Likewise.
2894         * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
2895         function.
2896         * stdio-common/dprintf.c: Likewise.
2897         * stdio-common/printf.c: Likewise.
2898         * stdio-common/scanf.c: Likewise.
2899         * stdio-common/snprintf.c: Likewise.
2900         * stdio-common/sprintf.c: Likewise.
2901         * stdio-common/sscanf.c: Likewise.
2902         * stdio-common/vprintf.c: Likewise.
2903
2904         * Makerules: Include $(+depfiles) directly instead of generating
2905         depend-$(subdir).
2906         (depend-$(subdir)): Target removed.
2907         (common-clean): Don't remove depend-$(subdir).
2908
2909         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
2910         (config-LDFLAGS): Variable removed.
2911
2912         * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
2913         * sysdeps/mach/hurd/bind.c: Likewise.
2914         * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
2915         calling convention.
2916
2917         * hurd/hurdexec.c: Undo last change (10 Oct 95).
2918
2919 Sun Oct 15 21:04:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2920
2921         * hurd/hurd/lookup.h: New file.
2922         * hurd/hurdlookup.c (__file_name_lookup_under): New function.
2923         (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
2924         __hurd_file_name_split): Rewritten to take callback functions for
2925         using any needed init or dtable port, instead of passing in crdir
2926         and cwdir ports.
2927         (__file_name_lookup, __file_name_split): Use new calling
2928         convention; pass _hurd_ports_use and __getdport as the callback
2929         functions.
2930
2931         * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
2932         of __hurd_file_name_lookup.
2933         * sysdeps/mach/hurd/chdir.c: Likewise.
2934         * sysdeps/mach/hurd/fchdir.c: Likewise.
2935         * hurd/fchroot.c: Likewise.
2936
2937         * stdlib/Makefile (mpn-found): Don't omit %.s.
2938         (mpn-copy-sysdep): Omit files in nonexistent directories.
2939         (copy-mpn): Commit files to CVS.
2940         * stdlib/gen-mpn-copy (translations): Update translations for GMP
2941         1.906.7.
2942
2943         * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
2944
2945 Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
2946
2947         * malloc/malloc.c (_malloc_internal): Performance fix.  Move
2948         if statement out of loop.
2949
2950         * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
2951         implementation using GMP functions.  Contributed by
2952         Torbjorn Granlund and Ulrich Drepper.
2953
2954         * stdio/test_rdwr.c: Include <errno.h>.
2955
2956         * sysdeps/i386/i586/Implies: New file.
2957
2958         New highly optimized string functions for i[345]86.
2959         * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
2960         * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
2961         * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
2962         * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
2963         * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
2964         * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
2965         * sysdeps/i386/i586/strlen.S: New file.
2966         * sysdeps/i386/memchr.c: Removed.  There is now an assembler version.
2967
2968         * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
2969         not correspond to used values.
2970
2971         * sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
2972         around a kernel header file.
2973         * sysdeps/unix/sysv/linux/Dist: Add it.
2974         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
2975         Likewise.
2976
2977         * sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
2978         defining ourself we use a kernel header file.
2979
2980         * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
2981         call handler for i586.
2982
2983         * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
2984
2985 Thu Oct 12 15:45:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2986
2987         * hurd/hurd.h (file_name_lookup_under): Declare it.
2988         * hurd/Makefile (headers): Add hurd/lookup.h.
2989
2990         * hurd/hurdinit.c (_hurd_ports_use): New function.
2991         * hurd/hurd.h (_hurd_ports_use): Declare it.
2992         (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
2993         hurd_file_name_lookup_retry): Remove these decls.
2994         * hurd/Makefile (routines): Remove invoke-trans.
2995
2996 Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2997
2998         * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
2999         apply R_386_PC32 reloc.
3000
3001         * Makeconfig (config-LDFLAGS): Add missing slash.
3002
3003         * sysdeps/mach/hurd/profil.c (fork_profil): Only call
3004         update_waiter if profiling was enabled in the parent.
3005
3006         * csu/initfini.c: Don't pass -f flag to cp.
3007
3008 Tue Oct 10 23:08:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3009
3010         * Makerules (build-shlib): Pass -rpath and -rpath-link options.
3011         (LDFLAGS-c.so): Don't pass -dynamic-linker here.
3012         * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
3013         (link-libc): Pass -rpath and -rpath-link options.
3014
3015         * MakeTAGS (all-dirs): Omit CVS directories.
3016         Specify vpath directives to find source files in $(all-dirs).
3017         (sources, headers): Append sources and headers from $(all-dist) to
3018         these.
3019         (all-dist): Filter them out of this.
3020         (all-headers, all-sources): Use $(shell find ...) instead of
3021         $(wildcard ...).
3022
3023         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
3024         -rpath-link.
3025
3026         * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
3027
3028         * elf/Makefile (install-others): Add missing $.
3029
3030 Mon Oct  9 02:54:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3031
3032         * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
3033
3034         * Makeconfig (config-LDFLAGS): Define to
3035         -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
3036         (rtld-installed-name): New variable.
3037         * elf/Makefile (install-lib): Variable removed.
3038         (install-others): Define this instead, to
3039         $(libdir)(rtld-installed-name).
3040         ($(libdir)(rtld-installed-name)): New target; install from ld.so.
3041
3042         * elf/ldd.sh.in: New file.
3043         * elf/Makefile (distribute): Add ldd.sh.in.
3044         (install-bin): Add ldd.
3045         ($(objpfx)ldd: ldd.sh.in): New rule.
3046
3047         * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
3048         * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
3049         Translate some Mach errors to Hurd errors.
3050
3051         * elf/rtld.c (dl_main): Under --list, print msg if executable is
3052         statically linked.
3053
3054         * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
3055         table processing.
3056
3057 Sat Oct  7 01:25:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3058
3059         * sysdeps/stub/machine-gmon.h: Add #error.
3060
3061 Fri Oct  6 01:49:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3062
3063         * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
3064         examine it.
3065
3066 Fri Sep 29 03:43:51 1995  Paul Eggert  <eggert@twinsun.com>
3067
3068         Rewrite mktime from scratch for performance, and for correctness
3069         in the presence of leap seconds.
3070
3071         * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
3072         New functions.
3073         (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
3074         TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
3075         <limits.h>, <stdlib.h>: New #includes.
3076         (main): Support tests with given broken-down value; support benchmarks.
3077         (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
3078         do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
3079         <ctype.h>): Remove.
3080
3081         * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
3082         * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
3083
3084         * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
3085         time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
3086
3087         * time/offtime.c (__offtime): Remove useless assignment
3088         `tp->tm_isdst = -1'.
3089
3090         * manual/maint.texi: Update credits.
3091
3092 Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3093
3094         * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
3095         * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
3096         * sysdeps/unix/sysv/linux/readv.c: File removed.
3097         * sysdeps/unix/sysv/linux/writev.c: File removed.
3098         * sysdeps/unix/configure.in: Check for readv and writev syscalls.
3099
3100         * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
3101         set it to $unix_syscall instead of $unix_function.
3102
3103 Thu Oct  5 00:59:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3104
3105         * elf/rtld.c (dl_main): Grok --list flag.
3106         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
3107
3108 Wed Oct  4 00:21:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3109
3110         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
3111         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
3112         * elf/link.h (_dl_sysdep_message): Declare it.
3113
3114         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
3115         the list.
3116
3117         * time/northamerica: Corrections to Canada data from ADO 95i.
3118
3119         * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
3120         unconditionally.  In socket subdir, append sys/socketcall.h; in
3121         time subdir, append sys/timex.h.
3122         (config-LDFLAGS): New variable.
3123         * sysdeps/unix/sysv/linux/Dist: New file.
3124         * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
3125
3126         * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
3127
3128         * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
3129
3130 Sat Sep 30 11:47:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3131
3132         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
3133         kernel with args on stack, point _dl_hurd_data at zero data
3134         instead of garbage.  When ld.so run as program, grok args
3135         -LIB=MEMOBJ and pre-load shared object files found in memory
3136         objects loaded by the boot loader.
3137
3138         * elf/link.h (struct link_map): New member `l_entry'.
3139         (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
3140         * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
3141         last arg ENTRY_POINT.  Store the entry point location in the
3142         `l_entry' member of the new map.
3143         * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
3144         _dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
3145         * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
3146         _dl_map_object.
3147
3148         * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
3149
3150         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
3151         restore %ebx by hand for personality syscall.
3152         GCC cannot deal with spilling the dedicated GOT register.
3153
3154         * misc/Makefile (routines): Add mntent, which was somehow omitted.
3155
3156 Fri Sep 29 15:07:10 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3157
3158         * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
3159         Change name of field `mode' in `struct timex' to `modes'.
3160         Linux-1.3.28 updates this name according to RFC 1489.
3161
3162 Thu Sep 28 13:05:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3163
3164         Merge new message handling code from GNU gettext, by Drepper.
3165         * intl: New directory.
3166         * Makefile (subdirs): Add intl.
3167
3168         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
3169         USER_ENTRY instead of storing it on our stack.
3170
3171         * elf/rtld.c (rtld_command): Variable removed.
3172         (_dl_skip_args): New variable.
3173         (dl_main): Increment _dl_skip_args instead of setting rtld_command.
3174         If the link_map for the executable itself is not first in the chain,
3175         make it so.
3176         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
3177         count of args to skip.
3178
3179 Thu Sep 28 09:20:04 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
3180
3181         * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
3182         leading zeroes.
3183
3184 Wed Sep 27 00:27:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3185
3186         * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
3187         (getcwd): Define as weak alias.
3188         * sysdeps/posix/getcwd.c: Likewise.
3189         * sysdeps/stub/getcwd.c: Likewise.
3190         * posix/unistd.h: Declare __getcwd.
3191
3192         * string/string.h: Declare __strcasecmp.
3193         * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
3194         strcasecmp.
3195         (strcasecmp): Define as weak alias.
3196
3197         * string/string.h: Declare __stpcpy.
3198         * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
3199         (stpcpy): Define as weak alias.
3200
3201         * sysdeps/unix/sysv/linux/Implies: Add unix/common.
3202
3203         * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
3204         Don't use `type' for arg name, since we are using it as a keyword
3205         in the rhs.
3206
3207         * sysdeps/unix/configure.in: Check for syscalls getpriority,
3208         setpriority, getrlimit, setrlimit.
3209
3210         * sysdeps/posix/truncate.c: Include fcntl.h.
3211
3212         * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
3213
3214         * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
3215         use new stub_warning syntax.
3216         * sysdeps/stub/setpriority.c: Likewise.
3217         * sysdeps/stub/__longjmp.c: Likewise.
3218         * sysdeps/stub/_exit.c: Likewise.
3219         * sysdeps/stub/accept.c: Likewise.
3220         * sysdeps/stub/acos.c: Likewise.
3221         * sysdeps/stub/alarm.c: Likewise.
3222         * sysdeps/stub/asin.c: Likewise.
3223         * sysdeps/stub/atan2.c: Likewise.
3224         * sysdeps/stub/bind.c: Likewise.
3225         * sysdeps/stub/cbrt.c: Likewise.
3226         * sysdeps/stub/chroot.c: Likewise.
3227         * sysdeps/stub/closedir.c: Likewise.
3228         * sysdeps/stub/connect.c: Likewise.
3229         * sysdeps/stub/cos.c: Likewise.
3230         * sysdeps/stub/cosh.c: Likewise.
3231         * sysdeps/stub/ctermid.c: Likewise.
3232         * sysdeps/stub/cuserid.c: Likewise.
3233         * sysdeps/stub/defs.c: Likewise.
3234         * sysdeps/stub/exp.c: Likewise.
3235         * sysdeps/stub/fmod.c: Likewise.
3236         * sysdeps/stub/frexp.c: Likewise.
3237         * sysdeps/stub/fsync.c: Likewise.
3238         * sysdeps/stub/getcwd.c: Likewise.
3239         * sysdeps/stub/getenv.c: Likewise.
3240         * sysdeps/stub/gethostid.c: Likewise.
3241         * sysdeps/stub/getlogin.c: Likewise.
3242         * sysdeps/stub/getpeername.c: Likewise.
3243         * sysdeps/stub/getrlimit.c: Likewise.
3244         * sysdeps/stub/getsockname.c: Likewise.
3245         * sysdeps/stub/getsockopt.c: Likewise.
3246         * sysdeps/stub/listen.c: Likewise.
3247         * sysdeps/stub/log.c: Likewise.
3248         * sysdeps/stub/log10.c: Likewise.
3249         * sysdeps/stub/mkfifo.c: Likewise.
3250         * sysdeps/stub/morecore.c: Likewise.
3251         * sysdeps/stub/nice.c: Likewise.
3252         * sysdeps/stub/nlist.c: Likewise.
3253         * sysdeps/stub/opendir.c: Likewise.
3254         * sysdeps/stub/pipestream.c: Likewise.
3255         * sysdeps/stub/ptrace.c: Likewise.
3256         * sysdeps/stub/putenv.c: Likewise.
3257         * sysdeps/stub/readdir.c: Likewise.
3258         * sysdeps/stub/reboot.c: Likewise.
3259         * sysdeps/stub/recv.c: Likewise.
3260         * sysdeps/stub/recvfrom.c: Likewise.
3261         * sysdeps/stub/rename.c: Likewise.
3262         * sysdeps/stub/rewinddir.c: Likewise.
3263         * sysdeps/stub/seekdir.c: Likewise.
3264         * sysdeps/stub/send.c: Likewise.
3265         * sysdeps/stub/sendto.c: Likewise.
3266         * sysdeps/stub/setegid.c: Likewise.
3267         * sysdeps/stub/seteuid.c: Likewise.
3268         * sysdeps/stub/setgroups.c: Likewise.
3269         * sysdeps/stub/sethostid.c: Likewise.
3270         * sysdeps/stub/sethostname.c: Likewise.
3271         * sysdeps/stub/setjmp.c: Likewise.
3272         * sysdeps/stub/setrlimit.c: Likewise.
3273         * sysdeps/stub/setsockopt.c: Likewise.
3274         * sysdeps/stub/shutdown.c: Likewise.
3275         * sysdeps/stub/signal.c: Likewise.
3276         * sysdeps/stub/sigsuspend.c: Likewise.
3277         * sysdeps/stub/sin.c: Likewise.
3278         * sysdeps/stub/sinh.c: Likewise.
3279         * sysdeps/stub/socket.c: Likewise.
3280         * sysdeps/stub/socketpair.c: Likewise.
3281         * sysdeps/stub/sqrt.c: Likewise.
3282         * sysdeps/stub/sync.c: Likewise.
3283         * sysdeps/stub/system.c: Likewise.
3284         * sysdeps/stub/tan.c: Likewise.
3285         * sysdeps/stub/tanh.c: Likewise.
3286         * sysdeps/stub/tcdrain.c: Likewise.
3287         * sysdeps/stub/tcflow.c: Likewise.
3288         * sysdeps/stub/tcgetpgrp.c: Likewise.
3289         * sysdeps/stub/tcsendbrk.c: Likewise.
3290         * sysdeps/stub/tcsetattr.c: Likewise.
3291         * sysdeps/stub/tcsetpgrp.c: Likewise.
3292         * sysdeps/stub/telldir.c: Likewise.
3293         * sysdeps/stub/tempname.c: Likewise.
3294         * sysdeps/stub/ttyname.c: Likewise.
3295         * sysdeps/stub/ttyname_r.c: Likewise.
3296         * sysdeps/stub/utime.c: Likewise.
3297
3298         * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
3299
3300         * time/mktime.c (localtime_r): Use 0 instead of NULL.
3301
3302         * config.make.in (AS): New variable; set to `$(CC) -c'.
3303
3304         * posix/unistd.h [__USE_BSD]: Declare profil.
3305
3306         * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
3307         of _dl_map_object.
3308         (_dl_map_object): Call it.
3309         * elf/link.h (_dl_map_object_from_fd): Declare it.
3310
3311 Tue Sep 26 16:50:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3312
3313         * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
3314         gettext code.
3315
3316         * sysdeps/unix/sysv/linux/sys/param.h: New file.
3317         * sysdeps/unix/sysv/linux/Subdirs: File removed.
3318
3319         * libc-symbols.h (_LIBC): Define to 1, not just empty.
3320
3321         * gmon: New directory of profiling code, incorporated from
3322         4.4BSD-Lite and modified.
3323         * sysdeps/i386/machine-gmon.h: New file.
3324         * sysdeps/stub/machine-gmon.h: New file.
3325         * sysdeps/mach/hurd/profil.c: New file.
3326         * sysdeps/stub/profil.c: New file.
3327         * sysdeps/unix/bsd/profil.S: New file.
3328         * Makefile (subdirs): Add gmon.
3329         * csu/gmon-start.c: New file.
3330         * csu/Makefile (extra-objs): Add gmon-start.o,
3331         g$(start-installed-name).
3332         (install-lib, omit-deps): Add g$(start-installed-name).
3333         ($(objpfx)g$(start-installed-name)): New target.
3334
3335 Fri Sep 22 14:24:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3336
3337         * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
3338         time being.
3339
3340 Thu Sep 21 00:03:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3341
3342         * sysdeps/unix/configure.in: Check for `profil' syscall.
3343
3344         * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
3345         removed.
3346
3347         * time/africa, time/asia, time/europe, time/northamerica,
3348         time/yearistype: New data from ADO 95h.
3349
3350         * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
3351         $(notdir $*), so it wins for the explicit libc.so rule as well as the
3352         pattern rule.
3353
3354         * sysdeps/stub/sys/sem_buf.h (union semun): New type.
3355
3356         * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
3357         __libc_global_ctors.
3358         * sysdeps/i386/init-first.c: Rewritten.
3359         * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
3360         * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
3361
3362         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
3363         ___fpu_control.
3364
3365         * Makerules (build-shlib): New canned sequence, broken out of
3366         lib%.so rule.  Link in $^ instead of just $<.
3367         (lib%.so: lib%_pic.a): Use it.
3368         (libc.so): New target; use $(build-shlib) for cmds, but also depend
3369         on soinit.so first and sofini.so last.
3370
3371         * elf/soinit.c: New file.
3372         * elf/sofini.c: New file.
3373         * elf/Makefile (distribute): Add soinit.c and sofini.c.
3374         (extra-objs): Add soinit.so and sofini.so.
3375
3376         * sysvipc/sys/shm.h (shmat): Fix return type to char *.
3377         * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
3378
3379         * misc/syslog.c (vsyslog): Rewritten using open_memstream to
3380         dynamically allocate buffers.
3381
3382         * Makerules (install-lib-nosubdir): Make this, rather than
3383         install-no-libc.a, depend on the installed shared libraries.
3384
3385 Wed Sep 20 18:02:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3386
3387         * locale/locale.c: Include errno.h.
3388         * locale/localedef.c: Likewise.
3389
3390 Tue Sep 19 00:02:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3391
3392         * Makefile (distclean-1): Remove config.cache, config.log, config.h.
3393         (parent-mostlyclean): Remove all flavors of the parent library.
3394
3395         * misc/mntent.c (getmntent): Skip multiple whitespace chars
3396         between fields.
3397
3398         * hurd/hurdstartup.c (_hurd_startup): If RPC returns
3399         EXEC_STACK_ARGS flag, get args from stack.
3400         If args on stack but have info from RPC, relocate args on stack to make
3401         space for struct hurd_startup_data.
3402
3403 Mon Sep 18 15:06:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3404
3405         * elf/dl-object.c: Include errno.h.
3406         * posix/execvp.c: Likewise.
3407         * dirent/scandir.c: Likewise.
3408         * sysdeps/posix/system.c: Likewise.
3409         * sysdeps/generic/setenv.c: Likewise.
3410         * stdlib/msort.c: Likewise.
3411         * stdio/memstream.c: Likewise.
3412         * stdio/fclose.c: Likewise.
3413         * stdio/getdelim.c: Likewise.
3414         * stdio/setvbuf.c: Likewise.
3415         * sysdeps/ieee754/ldexp.c: Likewise.
3416         * locale/locfile-parse.c: Likewise.
3417
3418         * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
3419         * stdlib/seed48_r.c: Likewise.
3420         * stdlib/srand48_r.c: Likewise.
3421         * stdlib/jrand48_r.c: Likewise.
3422         * stdlib/nrand48_r.c: Likewise.
3423
3424         * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
3425         to be useless.
3426
3427 Mon Sep 18 12:39:22 1995  Paul Eggert  <eggert@twinsun.com>
3428
3429         * mktime.c (localtime_r): Add substitute if the system doesn't
3430         provide one.
3431
3432 Mon Sep 18 14:39:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3433
3434         * time/gmtime.c (gmtime_r): Define as weak alias.
3435         * time/localtime.c (localtime_r): Define as weak alias.
3436         * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
3437
3438         * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
3439         #undef __need_Emath after including errnos.h.
3440         [_ERRNO_H]: Protect decls with this.
3441
3442 Sun Sep 17 08:22:12 1995  Paul Eggert  <eggert@twinsun.com>
3443
3444         Fix mktime so that it does not write over localtime's returned value.
3445         * localtime.c (__localtime_r): New function, with extra arg
3446         specifying where to store result.
3447         (localtime): Use it.
3448         (_tmbuf): New var.
3449         * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
3450         * mktime.c (__mktime_internal): Conversion function is now
3451         __localtime_r style, not localtime style.
3452         (mktime): Pass __localtime_r, not localtime.
3453         * timegm.c (timegm): Pass __gmtime_r, not gmtime.
3454         * offtime.c (__offtime): New arg specifying where to store result.
3455         * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
3456         (__gmtime_r, __localtime_r): New decls.
3457
3458         * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
3459         <stdlib.h>, <string.h>: Remove includes.
3460         <errno.h>: Add include.
3461
3462         * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
3463         Renamed from _mktime_internal to avoid namespace pollution.
3464
3465         * time/gmtime.c: Clear tm_isdst.
3466
3467 Mon Sep 18 01:58:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3468
3469         * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
3470         * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
3471         size_t.
3472
3473         * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
3474         __file_pathconf.
3475         * sysdeps/mach/hurd/pathconf.c: Likewise.
3476
3477         * Makefile (subdirs): Add sysvipc.
3478
3479         * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
3480         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
3481
3482 Sun Sep 17 18:29:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3483
3484         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
3485          __file_set_size instead of __file_truncate.
3486
3487         * features.h (__USE_REENTRANT): New macro.
3488
3489         * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
3490         __file_truncate.
3491         * sysdeps/mach/hurd/ftruncate.c: Likewise.
3492
3493         * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
3494
3495 Sat Sep 16 17:47:19 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3496
3497         * elf/elf.h (AT_GID): Fix typo: Read -> Real.
3498
3499         * misc/efgvt_r.c: New file.  Reentrant version of [efg]cvt functions.
3500         * misc/efgcvt.c: Rewrite to use reentrant functions.
3501         * misc/search.h: Many decls for hsearch functions.
3502         * misc/hsearch_r.c: New file.  Reentrant version of functions from
3503         hsearch family.
3504         * misc/hsearch.c, misc/tsearch.c: New files.
3505         * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
3506
3507         * posix/unistd.h (ttyname_r): Add prototype for new function.
3508
3509         * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
3510         stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
3511         stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
3512         stdlib/drand48-iter.c: New files implementing reentrant versions
3513         of functions from drand48 family.
3514         * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
3515         stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
3516         stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
3517         Rewrite to use reentrant versions.
3518         * stdlib/a64l.c, stdlib/l64a.c: New files.  Implement a64l()
3519         and l64a() functions from SysV library.
3520         * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
3521         nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
3522         drand48-iter, a64l, l64a.
3523         * stdlib/stdlib.h: Declare them.
3524
3525         * stdlib/random_r.c: New file.  Reentrant version of functions
3526         from random family.
3527         * stdlib/stdlib.h: Declare them.
3528         * stdlib/random.c: Rewrite to use reentrant functions.
3529
3530         * string/strerror_r.c: New file.  Reentrant version.
3531         * string/strerror.c: Change for new _strerror_internal form.
3532         * string/Makefile (routines): Add strerror_r.
3533
3534         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
3535         value of user_entry to `_start'.
3536         Close AT_ENTRY case with `break'.
3537
3538         * sysdeps/generic/strstr.c: New and much faster implementation
3539         by Stephen R. van den Berg.
3540
3541         * sysdeps/generic/_strerror.c: _strerror_internal now takes
3542         three argument and has and explicit buffer length.
3543         * sysdeps/mach/_strerror.c: Change for new interface with three
3544         arguments.
3545         * stdio/perror.c, stdio/vfprintf.c: Callers changed.
3546
3547         * sysdeps/mach/hurd/ttyname_r.c: New file.  Reentrant version.
3548         * sysdeps/posix/ttyname_r.c: New file.  Reentrant version.
3549         * sysdeps/stub/ttyname_r: New file.  Define as dummy function.
3550
3551         * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
3552         (utimes): First parameter to utime must be file, not path.
3553
3554         * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
3555         _SC_CLK_TCK and return it when available.
3556         Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
3557         available.
3558         Add case for _SC_2_LOCALEDEF which is now available.
3559
3560         * posix/sys/types.h [__USE_SVID] (key_t): New type.
3561         * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
3562         sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
3563         sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
3564         sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
3565         sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
3566         sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
3567         sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
3568         sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
3569         Add implementation of System V IPC.
3570
3571 Fri Sep 15 21:34:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3572
3573         * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
3574         (write_corefile): Call __crash_dump_task instead of __core_dump_task.
3575         Use envariable CRASHSERVER instead of CORESERVER.
3576         * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
3577
3578 Tue Sep 12 14:30:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3579
3580         * misc/mntent.c: New file.
3581         * misc/mntent.h: New file.
3582         * misc/Makefile (headers): Added mntent.h.
3583         (routines): Added mntent.
3584         * misc/fstab.c: Rewritten using mntent functions.
3585
3586 Mon Sep 11 14:00:14 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
3587
3588         * posix/glob.c (glob): Comment fix.
3589
3590 Fri Sep  8 16:25:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3591
3592         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
3593         symbols weak.
3594
3595         * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
3596         not empty.
3597
3598 Fri Sep  8 16:32:12 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
3599
3600         * sysdeps/unix/sysv/linux/Implies,
3601         sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
3602         sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
3603         sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
3604         sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
3605         sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
3606         sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
3607         sysdeps/unix/sysv/linux/gethostname.C,
3608         sysdeps/unix/sysv/linux/getpeername.S,
3609         sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
3610         sysdeps/unix/sysv/linux/getsockname.S,
3611         sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
3612         sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
3613         sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
3614         sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
3615         sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
3616         sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
3617         sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
3618         sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
3619         sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
3620         sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
3621         sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
3622         sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
3623         sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
3624         sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
3625         sysdeps/unix/sysv/linux/settimeofday.S,
3626         sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
3627         sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
3628         sysdeps/unix/sysv/linux/shutdown.S,
3629         sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
3630         sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
3631         sysdeps/unix/sysv/linux/sockaddrcom.h,
3632         sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
3633         sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
3634         sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
3635         sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
3636         sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
3637         sysdeps/unix/sysv/linux/tcsetattr.c,
3638         sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
3639         sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
3640         sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
3641         sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
3642         sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
3643         New Linux/ELF specific, architecture independent files.
3644         * sysdeps/unix/sysv/linux/i386/Dist,
3645         sysdeps/unix/sysv/linux/i386/Makefile,
3646         sysdeps/unix/sysv/linux/i386/brk.S,
3647         sysdeps/unix/sysv/linux/i386/fcntlbits.h,
3648         sysdeps/unix/sysv/linux/i386/fpu_control.c,
3649         sysdeps/unix/sysv/linux/i386/fpu_control.h,
3650         sysdeps/unix/sysv/linux/i386/fstat.S,
3651         sysdeps/unix/sysv/linux/i386/fxstat.S,
3652         sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
3653         sysdeps/unix/sysv/linux/i386/init-first.S,
3654         sysdeps/unix/sysv/linux/i386/ipc.S,
3655         sysdeps/unix/sysv/linux/i386/lstat.S,
3656         sysdeps/unix/sysv/linux/i386/lxstat.S,
3657         sysdeps/unix/sysv/linux/i386/mknod.S,
3658         sysdeps/unix/sysv/linux/i386/mmap.S,
3659         sysdeps/unix/sysv/linux/i386/sbrk.S,
3660         sysdeps/unix/sysv/linux/i386/setfpucw.c,
3661         sysdeps/unix/sysv/linux/i386/signum.h,
3662         sysdeps/unix/sysv/linux/i386/socket.S,
3663         sysdeps/unix/sysv/linux/i386/stat.S,
3664         sysdeps/unix/sysv/linux/i386/syscall.S,
3665         sysdeps/unix/sysv/linux/i386/sysdep.S,
3666         sysdeps/unix/sysv/linux/i386/sysdep.h,
3667         sysdeps/unix/sysv/linux/i386/xmknod.S,
3668         sysdeps/unix/sysv/linux/i386/xstat.S:
3669         New Linux i386/ELF specific files.
3670         * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
3671         sysdeps/unix/sysv/linux/sys/mman.h,
3672         sysdeps/unix/sysv/linux/sys/msq_buf.h,
3673         sysdeps/unix/sysv/linux/sys/sem_buf.h,
3674         sysdeps/unix/sysv/linux/sys/shm_buf.h,
3675         sysdeps/unix/sysv/linux/sys/socketcall.h,
3676         sysdeps/unix/sysv/linux/sys/timex.h:
3677         New Linux/ELF specific, architecture independent header files.
3678         * sysdeps/unix/sysv/sysv4/linux: Tree removed.
3679
3680 Thu Sep  7 17:05:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3681
3682         * stdlib/msort.c (msort_with_tmp): Fixed alignment test.  B1 and
3683         B2 are always congruent; just test that B1 is aligned.
3684
3685 Wed Sep  6 19:41:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3686
3687         * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
3688         than WEAK_VALUE.a to see if a weak value has been set.  A valid
3689         weak value may set WEAK_VALUE.a to 0.
3690
3691 Fri Sep  1 16:16:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3692
3693         * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
3694         jmp_buf.
3695
3696         * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
3697         for a warning on references to that specific symbol, not the
3698         entire containing object file.
3699         (stub_warning): Pass symbol name to link_warning.
3700         * stdio/gets.c: Pass function name in link_warning invocation.
3701
3702         * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
3703         MACH_SEND_INTERRUPTED.  That indicates interrupt_operation was
3704         sent, but failed.
3705
3706         * stdlib/msort.c: Include memcopy.h.
3707         (msort_with_tmp): If operating on aligned op_t words, use direct word
3708         fetches and stores.
3709
3710         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
3711         missing backslash.
3712
3713 Thu Aug 31 13:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3714
3715         * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
3716
3717         Rewrote i386 setjmp code in assembly, so as to avoid fighting
3718         with the compiler for the register values.
3719         * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
3720         * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
3721         * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
3722         [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
3723         (_JMPBUF_UNWINDS): Use JB_SP.
3724
3725 Wed Aug 30 16:44:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3726
3727         * sysdeps/mach/hurd/select.c: Deal with out of order replies
3728         during io_select request loop.
3729         Handle MACH_RCV_TIMED_OUT error from requests.
3730         * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
3731         distinguish MACH_RCV_TIMED_OUT from EINTR.
3732
3733         * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
3734         slash.
3735         (glob_in_dir): Don't allocate extra byte here.
3736
3737         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3738         Decrement the DT_RELSZ value for the skipped reloc.
3739
3740 Tue Aug 29 12:35:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3741
3742         * time/australasia: Updated data from ADO.
3743
3744 Mon Aug 28 17:47:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3745
3746         * dirent/dirent.h: Don't include <dirstream.h>.
3747         Instead, define DIR as typedef for (undefined) `struct __dirstream'.
3748
3749 Fri Aug 25 12:12:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3750
3751         * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
3752         instead of `DIR'.
3753         * sysdeps/unix/bsd/dirstream.h: Likewise.
3754         * sysdeps/stub/dirstream.h: Likewise.
3755         * sysdeps/unix/dirstream.h: Likewise.
3756         * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
3757         * sysdeps/mach/hurd/seekdir.c: Likewise.
3758         * sysdeps/mach/hurd/opendir.c: Likewise.
3759         * sysdeps/mach/hurd/closedir.c: Likewise.
3760         * sysdeps/mach/hurd/readdir.c: Likewise.
3761         * sysdeps/unix/telldir.c: Likewise.
3762         * sysdeps/unix/seekdir.c: Likewise.
3763         * sysdeps/unix/rewinddir.c: Likewise.
3764         * sysdeps/unix/readdir.c: Likewise.
3765         * sysdeps/unix/opendir.c: Likewise.
3766         * sysdeps/unix/closedir.c: Likewise.
3767         * sysdeps/unix/bsd/telldir.c: Likewise.
3768         * sysdeps/unix/bsd/readdir.c: Likewise.
3769         * dirent/Makefile (headers): Remove dirstream.h.
3770         (distribute): Put it here instead.
3771
3772         * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
3773
3774         * stdio/vfscanf.c (number): Allow field width to inhibit first
3775         digit after base detection.
3776
3777         * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
3778         specified by the precision.
3779
3780         * grp/grpread.c (__grpscan): New function.
3781         * grp/grp.h (__grpscan): Declare it.
3782         * grp/getgrgid.c: Use __grpscan.
3783         * grp/getgrnam.c: Likewise.
3784         * pwd/pwdread.c (__pwdscan): New function.
3785         * pwd/pwd.h (__pwdscan): Declare it.
3786         * pwd/getpwnam.c: Use __pwdscan.
3787         * pwd/getpwuid.c: Likewise.
3788
3789 Thu Aug 24 16:29:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3790
3791         * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
3792         MAP_FILE.
3793
3794         * hurd/thread-cancel.c: Return EINTR when called on self.
3795         * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
3796         __data_start.
3797
3798 Tue Aug 22 16:49:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3799
3800         * inet/netdb.h: Moved to resolv.
3801         * inet/Makefile (headers): Remove netdb.h.
3802         * resolv/Makefile (headers): Add netdb.h.
3803         * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
3804         resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
3805
3806         * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
3807         resuming the thread.
3808         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
3809
3810         * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
3811
3812 Mon Aug 21 16:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3813
3814         * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
3815         relocs, and do nothing.  Why the linker generates them we may
3816         never know.
3817
3818 Thu Aug 17 16:18:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3819
3820         * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
3821         `subdirs' variable.
3822
3823         * sysdeps/mach/hurd/i386/intr-msg.h: New file.
3824         * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
3825         "intr-msg.h" for special syscall code, instead of i386-specific asm.
3826         * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
3827         machine-dependent "intr-msg.h" before mutating thread state to
3828         skip RPC.
3829
3830         * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
3831         _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
3832         %ecx.
3833
3834         * Makeconfig (link-libc): New variable; use shared library if
3835         available.
3836         (+link): Use it.
3837
3838         * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
3839         Instead, declare with `symbol_set_declare'.
3840         (fork): Use symbol_set_* macros for _hurd_fork_locks.
3841         Use SS->thread instead of __mach_thread_self ().  Suspend all
3842         other threads during task_create and port copying.
3843
3844 Wed Aug 16 17:04:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3845
3846         * hurd/intr-msg.c: Fixed calculation of syscall %esp.
3847
3848 Tue Aug 15 12:26:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3849
3850         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
3851
3852         * hurd/Makefile (sig): Add intr-msg.
3853
3854 Mon Aug 14 16:51:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3855
3856         * hurd/thread-cancel.c: New file.
3857         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
3858         rpc_wait case, frob mach_msg args to set timeout on receive.
3859         (_hurdsig_rcv_interrupted_p): Function removed.
3860         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
3861         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
3862         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
3863         * hurd/intr-msg.c: New file.
3864         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
3865         (_hurdsig_rcv_interrupted_p): Declaration removed.
3866         (HURD_EINTR_RPC): Macro removed.
3867         (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
3868         these.
3869         * hurd/intr-rpc.h: New file.
3870         * hurd/intr-rpc.defs: Just import intr-rpc.h.
3871         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
3872         (interrupted_reply_port_location): Take new flag arg; only catch
3873         faults if it's set.
3874         (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
3875         No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
3876         &_hurd_intr_rpc_msg_in_trap.  If before it, mutate state to simulate
3877         MACH_SEND_INTERRUPTED return; on it, interrupt the operation.  All
3878         callers changed.
3879         * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
3880         * hurd/Makefile (distribute): Remove intr-rpc.awk.
3881         (sig): Add thread-cancel.
3882         (transform-user-stub, transform-user-stub-output): Variables removed.
3883         * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
3884         `__hurd_intr_rpc_*' to `__*'.
3885         (_hurd_intr_rpc_mach_msg): New function.
3886         (_hurd_thread_sigstate): Function removed.
3887         * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
3888         instead of __mach_msg inside HURD_EINTR_RPC macro.
3889
3890         * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
3891         to take ptrdiff_t arg.
3892
3893         * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
3894
3895         * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
3896
3897         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
3898         weak_alias): Use `extern' storage class.
3899
3900 Wed Aug  9 14:25:35 1995  Miles Bader  <miles@geech.gnu.ai.mit.edu>
3901
3902         * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
3903         port-count parameters to __auth_makeauth.
3904         * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
3905
3906 Tue Aug  8 12:22:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3907
3908         * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
3909
3910         * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
3911
3912 Tue Aug  8 12:06:04 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>
3913
3914         * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
3915         IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
3916         layer socket options.
3917         (IPPROTO_GGP): Delete obsolote protocol.
3918         (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
3919         (struct ip_mreq): New type.
3920
3921 Mon Aug  7 14:04:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3922
3923         * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
3924
3925         * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
3926         (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
3927
3928         * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
3929         when __stdio_open fails with a code other than ENFILE or EMFILE.
3930
3931 Fri Aug  4 16:01:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3932
3933         * Makefile (headers): Added gnu-versions.h.
3934
3935 Thu Aug  3 14:41:11 1995  Michael I. Bushnell  <mib@duality.gnu.ai.mit.edu>
3936
3937         * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
3938         equality, not assignment, to test bitfields.
3939
3940 Sat Jul 29 10:41:06 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
3941
3942         * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
3943         resolve AF_LOCAL addresses.
3944
3945         * sysdeps/mach/hurd/accept.c (accept): If the protocol family
3946         can't tell us what an address means, just return a zero-length
3947         buffer instead.
3948         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
3949
3950 Fri Jul 28 15:29:11 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
3951
3952         * sysdeps/mach/hurd/bind.c (bind): Don't use
3953         file_invoke_translator, as it doesn't work.  Instead just lookup
3954         the translated node again, and hope we're not hit by any race
3955         conditions.
3956
3957 Wed Jul 26 02:00:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3958
3959         * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
3960         [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
3961         [start-installed-name-rule]: If this is defined, elide rule for
3962         $(objpfx)$(start-installed-name).
3963         * csu/initfini.c (SECTION): New macro, different definitions for
3964         #ifdef HAVE_ELF and not.
3965         (_init, _fini): Use that macro.
3966         * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
3967         (start-installed-rule, start-installed-name-rule): New variables;
3968         specify crt1.o, created by our own rule.
3969         ($(objpfx)crt1.o): New rule.
3970         * configure.in: Require autoconf 2.4.2 or later.  Change all
3971         AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
3972         prettify some messages.
3973         [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
3974         sections.
3975         * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
3976         this case rather than #ifdef HAVE_ELF.
3977         * config.h.in (HAVE_INITFINI): New macro.
3978         * config.make.in (have-initfini): New variable, set by configure.
3979
3980         * stdio/vfscanf.c (conv_error): Simplify expression to avoid
3981         "value computed is not used" warning.
3982
3983         * Makeconfig (+gccwarn): Removed -Wconversion.
3984
3985         * csu/initfini.c (GLOBAL): Macro removed.
3986         (_init, _fini): Always define globally.
3987         * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
3988
3989         * asia, backward, europe, leapseconds, southamerica: New data from
3990         ADO's 95e.
3991
3992         * inet/Makefile (routines): Removed inet_addr.
3993         * inet/inet_addr.c: Moved to resolv/ subdirectory.
3994         * resolv/Makefile (routines): Added inet_addr.
3995         * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
3996         * resolv/gethnamaddr.c: Likewise.
3997         * resolv/getnetbyaddr.c: Likewise.
3998         * resolv/getnetbyname.c: Likewise.
3999         * resolv/getnetent.c: Likewise.
4000         * resolv/getnetnamadr.c: Likewise.
4001         * resolv/herror.c: Likewise.
4002         * resolv/nsap_addr.c: Likewise.
4003         * resolv/res_comp.c: Likewise.
4004         * resolv/res_debug.c: Likewise.
4005         * resolv/res_init.c: Likewise.
4006         * resolv/res_mkquery.c: Likewise.
4007         * resolv/res_query.c: Likewise.
4008         * resolv/res_send.c: Likewise.
4009         * resolv/resolv.h: Likewise.
4010         * resolv/sethostent.c: Likewise.
4011         * resolv/arpa/nameser.h: Likewise.
4012         * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
4013         [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
4014         its declarations (and doing so only #ifdef sun!).
4015         * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
4016
4017         * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
4018         [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
4019
4020         * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
4021         if possible.
4022
4023         * mach/shortcut.awk: Emit decls for RPC.
4024
4025         * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
4026         weak_alias, strong_alias): Define using GCC __attribute__ syntax.
4027
4028         * Makerules ($(installed-libcs)): Depend on `lib' (only).
4029
4030 Tue Jul 25 09:14:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4031
4032         * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
4033
4034         * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
4035
4036         * sysdeps/unix/sysv/ftime.S: New file.
4037
4038         * locale/locfile-parse.c (categories_write): Cast "" to char *.
4039
4040         * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
4041
4042         * time/strftime.c: Use year modulo 100 for %y.
4043
4044         * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
4045
4046         * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
4047         of one, to work around bug in sunos4.1.2 sed.
4048
4049         * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
4050         memchr instead of strlen to limit search for NUL by precision.
4051
4052 Mon Jul 24 03:13:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4053
4054         * sysdeps/posix/pathconf.c: New file.
4055
4056 Sat Jul 22 20:53:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4057
4058         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
4059         before @PLT.
4060         * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
4061         * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
4062         * sysdeps/i386/bsd-setjmp.S: Likewise.
4063
4064 Sat Jul 22 19:58:54 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
4065
4066         * inet/Makefile (routines): Added `ruserpass'.
4067         * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
4068         client.  Modified to remove the fourth arg AACCT.  Do nothing for
4069         the `account' and `macdef' keywords.  Other incidental changes
4070         because we are not in the FTP source tree.
4071
4072 Sat Jul 22 01:56:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4073
4074         * sysdeps/stub/init-posix.c: Removed stub warning.
4075
4076         * Makefile (autoconf-it): Make it executable and unwritable.
4077
4078         * configure.in (sysnames): Under --enable-debug-configure, spew
4079         potential sysnames.
4080
4081         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
4082         #ifdef PIC.
4083         (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
4084         * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
4085         jump insn.
4086
4087         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
4088         * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
4089         * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
4090         <sys/socketcall.h>.  Save %ebx in call-clobbered %edx instead of
4091         stack.  Use JUMPTARGET(syscall_error) in jump insn.
4092
4093         * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
4094
4095         * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
4096         ASM_TYPE_DIRECTIVE.
4097         (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
4098
4099         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
4100         Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
4101         * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
4102
4103         * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
4104         instead of unix/sysv.
4105         * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
4106         socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
4107         to new directory sysdeps/unix/sysv/sysv4/linux.
4108         * sysdeps/unix/sysv/linux: Directory removed.
4109         * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
4110         to new directory sysdeps/unix/sysv/sysv4/linux/i386.
4111         * sysdeps/unix/sysv/linux/i386: Directory removed.
4112
4113         Fixes to help Linux, inspired by drepper's work:
4114         * sysdeps/posix/utimes.c: New file.
4115         * sysdeps/generic/getdomain.c: New file.
4116         * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
4117         * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
4118         externals _dl_argc, _dl_argc, and _environ.
4119
4120 Fri Jul 21 12:57:29 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
4121
4122         * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
4123         EOPNOTSUPP as indications that the server has died.
4124         * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
4125         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
4126
4127 Mon Jul 17 08:45:40 1995  Jim Meyering  (meyering@comco.com)
4128
4129         * strtol.c: Portability changes from Uli Drepper.
4130         [!STDC_HEADERS && !defined(NULL)]: Define NULL.
4131
4132 Mon Jul 10 05:39:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4133
4134         * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
4135         DATA for the entry SP; DATA[-1] is always the return address
4136         location.  In both cthreads and non-cthreads cases, use asm to
4137         force parameters into %eax and %ecx before return, and mutate
4138         DATA[-1] to return to specific asm code to set up the user from
4139         %eax and %ecx.
4140         [PIC] (_init): Caller changed.
4141         (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
4142         with SP unwound to argument data ptr.
4143
4144 Thu Jul  6 14:28:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4145
4146         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
4147         when 0x08000000 and up are not mapped.
4148
4149         * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
4150         before touching it.
4151         (lib%.so): Use -Wl to get -soname to ld.
4152
4153         * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
4154
4155         * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
4156
4157 Tue Jun 20 02:18:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4158
4159         * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
4160         library's name including $(libprefix) and major version number.
4161
4162         * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
4163         in place of xcalloc.
4164
4165         * Makeconfig (prefix, exec_prefix, libprefix): Instead of
4166         `ifndef', use the $(origin) function to only set these if they are
4167         undefined, and not if they are defined to empty.
4168
4169         * gnu-versions.h: New file.
4170         * features.h (__GNU_LIBRARY__): Increase value to 5.
4171
4172 Wed Jun 14 03:45:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4173
4174         * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
4175         expression, to avoid gcc's "value computed is not used" warning.
4176
4177         * libc-symbols.h (_elf_set_element): Give the set-element variable
4178         an `unused' attribute.
4179
4180         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
4181         __attribute__ ((__const__)).
4182         * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
4183
4184         * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
4185         LINK->resource.next->resource.prevp when appropriate, not
4186         LINK->resource.next->thread.prevp!!!
4187
4188 Tue Jun 13 15:45:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4189
4190         * configure.in (libc_cv_asm_set_directive): Make sure that the
4191         `.set' directive really worked by linking against a reference to
4192         the alias.
4193
4194         * sysdeps/stub/init-first.c: Don't include <hurd.h>.
4195         [PIC] (soinit): Renamed to (global) _init.
4196
4197 Mon Jun 12 13:15:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4198
4199         * malloc/Makefile (gmalloc-routines): Remove valloc.
4200         (dist-routines): Add it here.
4201
4202         * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
4203         emacs_loser_valloc to inhibit valloc declaration below.
4204
4205         * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
4206         installation rules.
4207
4208         * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
4209         it uses the `.type' directive, which is necessary for shared
4210         libraries to work properly.
4211
4212 Thu Jun  8 02:50:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4213
4214         * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
4215         from zero fill.
4216
4217         * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
4218         if nonzero, don't let *REF satisfy the reference itself.
4219         * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
4220         * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
4221         _dl_lookup_symbol.
4222         * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
4223         R->r_offset to RESOLVE callback.
4224         * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
4225         satisfy the reference itself if its value equals the reloc's
4226         offset.
4227
4228         * elf/rtld.c (dl_main): Write a newline in fatal msg.
4229
4230         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
4231
4232         * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
4233
4234         * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
4235         and user entry point addresses.
4236
4237         * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
4238         (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
4239
4240         * Makerules (install-lib.so): Don't include libc.so.
4241         [$(build-shared)=yes] (install): Depend on the installed libc.so file.
4242         [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
4243         install, depend on the installed $(install-lib.so) files.
4244         [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
4245
4246         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
4247         allocate high addresses to avoid random mappings appearing there.
4248         (mmap): Comment out mask; always pass zero.
4249
4250 Tue Jun  6 13:34:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4251
4252         * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
4253         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
4254
4255         * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
4256         when successful.
4257
4258         * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
4259         (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
4260         variables, using the `threadvars' buffer.
4261
4262         * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
4263         * sysdeps/i386/dl-runtime.c: Likewise.
4264
4265         * elf/rtld.c (dl_main): Add missing NULL terminating argument in
4266         _dl_sysdep_fatal call.
4267         (__assert_fail): Likewise.
4268
4269         * locale/Makefile (localedef-modules): Renamed ctype to
4270         locale-ctype so as not to conflict with the object file for
4271         ctype/ctype.c in the build directory.
4272
4273 Mon Jun  5 04:02:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4274
4275         * elf/elf.h (ELFMAG): Use \177 instead of \x7f.  It seems GCC
4276         insists on seeing the following E as part of hex 7FE, and
4277         complaining that is wider than a byte.
4278
4279 Sun Jun  4 22:14:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4280
4281         * hurd/Makefile (sig): Added thread-self.
4282         * hurd/hurd.h: Declare hurd_thread_self.
4283         * hurd/thread-self.c: New file.
4284
4285 Thu Jun  1 12:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4286
4287         * elf/rtld.c: Initialize RTLD_MAP.l_type.
4288         * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
4289         the dynamic linker itself.
4290         * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
4291         lt_interpreter, first undo relocation done during bootstrapping.
4292
4293 Tue May 30 15:52:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4294
4295         * mach/Makefile (server-interfaces): Removed notify and
4296         device_reply.  For shlibs with eager binding, libmachuser.so must
4297         not refer to any functions not defined in libc.
4298
4299 Sat May 27 16:23:22 1995  Jim Meyering  (meyering@comco.com)
4300
4301         * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
4302         to avoid error from Irix-4.0.5's C compiler.  From Kaveh Ghazi.
4303
4304 Fri May 26 13:00:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4305
4306         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
4307         pending signals if the thread is in a critical section.  It will
4308         send us a msg when it finishes.
4309
4310         * sysdeps/mach/hurd/pathconf.c: New file.
4311         * sysdeps/mach/hurd/fpathconf.c: New file.
4312
4313         * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
4314         SIGCHLD when the SA_NOCLDSTOP bit actually changes.
4315
4316 Sun May 21 05:05:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4317
4318         * elf/Makefile (ld.so): Use -nostartfiles in addition to
4319         -nostdlib.
4320
4321 Sun May 21 02:01:29 1995  Jim Meyering  (meyering@comco.com)
4322
4323         * sysdeps/generic/memchr.c: Don't include <string.h> at all.
4324         HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
4325         memchr unless one manually arranges for them to define __STDC__.
4326
4327 Fri May 19 17:16:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4328
4329         * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
4330         args on stack from kernel.
4331
4332         * posix/Makefile, sysdeps/alpha/Makefile,
4333         * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
4334         * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
4335         in the absence of CVS dirs.
4336
4337         * hurd/hurdstartup.c: Don't call __mach_init.  Grok args from the
4338         kernel on the stack properly.
4339
4340         * set-init.c: Never call _init/_fini; just run __libc_subinit.
4341
4342         * Makerules (LDFLAGS-c.so): Add -nostartfiles.
4343         * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
4344
4345         * configure.in: Move defaulting of --with-elf and --with-gnu-*
4346         based on host os outside the AC_CACHE_VAL for the sysdirs
4347         calculation.
4348
4349         * Makeconfig (localedir, nlsdir): New variables.
4350
4351         * values.h: New file.
4352         * Makefile (headers): Add values.h.
4353
4354         * locale/Makefile (distribute): Add error.h.
4355         * locale/localedef.c: Include "error.h".
4356         (main): Use error_message_count instead of warning_cntr.
4357
4358 Wed May 17 16:50:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4359
4360         Merged 1003.2 locale and localedef programs by Ulrich Drepper.
4361         * locale/charmap.c: New file.
4362         * locale/collate.c: New file.
4363         * locale/config.h: New file.
4364         * locale/ctype.c: New file.
4365         * locale/ctypedump.c: New file.
4366         * locale/hash.c: New file.
4367         * locale/hash.h: New file.
4368         * locale/iso-4217.def: New file.
4369         * locale/keyword.gperf: New file.
4370         * locale/keyword.h: New file.
4371         * locale/libintl.h: New file.
4372         * locale/locale.c: New file.
4373         * locale/localedef.c: New file.
4374         * locale/localedef.h: New file.
4375         * locale/locfile-lex.c: New file.
4376         * locale/locfile-parse.c: New file.
4377         * locale/messages.c: New file.
4378         * locale/monetary.c: New file.
4379         * locale/numeric.c: New file.
4380         * locale/token.h: New file.
4381
4382         * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
4383         * posix/Makefile (headers): Add regex.h.
4384         (routines): Add regex.
4385         (gpl2lgpl): Add regex.c and regex.h.
4386
4387 Tue May 16 17:35:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4388
4389         * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
4390         instead of hard-coding "/share/locale".
4391
4392 Sat May 13 02:16:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4393
4394         * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
4395
4396 Fri May 12 15:31:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4397
4398         * elf/elf.h (ELFMAG, SELFMAG): New macros.
4399
4400 Fri May 12 11:24:53 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>
4401
4402         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
4403         the case where it starts out less than _hurd_dtablesize.
4404
4405 Thu May 11 20:51:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4406
4407         * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
4408         make sure the new size exceeds FIRST_FD.
4409
4410 Wed May 10 21:00:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4411
4412         * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
4413
4414 Tue May  9 01:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4415
4416         * Makerules (install-lib.so): Add %.so for each %_pic.a.
4417
4418         * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
4419         the first thing in .data.
4420
4421         * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
4422
4423         * hurd/hurdstartup.h: New file.
4424
4425         * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
4426         are the same.  Use `jz' instead of `jeq'.
4427
4428         * Makeconfig (config.make): Depend on config.status, and run it to
4429         update.
4430         (config.status): New target; depend on configure.
4431         If target (config.status) exists, run it with --recheck to update;
4432         if not, give error msg saying to run confiugre by hand.
4433         * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
4434         (sysd-Makefile-force): Set this variable to FORCE in this case, to
4435         force a rebuild of sysd-Makefile.
4436         (sysd-Makefile): Depend on $(sysd-Makefile-force).
4437         Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
4438         [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
4439         variable to FORCE in this case, to force a rebuild of sysd-rules.
4440         (sysd-rules): Depend on $(sysd-rules-force).
4441         Write into the file sysd-rules-sysdirs:=$(sysdirs).
4442
4443         * Makerules (LDFLAGS-c.so): Change ld option -interp to
4444         -dynamic-linker.
4445
4446         * Makerules (do-install-program): New canned sequence.
4447         (install-bin, install-sbin): Use it.
4448         (install for lib*.so): Use it instead of $(do-install).
4449         Fix .so installation rules to handle lib*.so and *.so, deal with
4450         $(libprefix) right, and install *.so as *.so$($(*.so)-version);
4451         i.e. "libc.so-version = .1".
4452
4453 Mon May  8 05:10:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4454
4455         * elf/do-rel.h: New file, split out of dynamic-link.h.
4456         * elf/Makefile (distribute): Add do-rel.h.
4457
4458 Sat May  6 11:06:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4459
4460         * Makeconfig (+gccwarn): Add -Winline.
4461
4462         * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
4463         set, avoid abort_rpcs, and use reply and intr ports saved in
4464         SS->context.
4465         * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
4466         from SS->context.  Don't clear SS->context.
4467         * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
4468         setting SS->context.  If msg_sig_post returns, re-lock and clear
4469         SS->context.
4470
4471 Fri May  5 10:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4472
4473         * mach/Makefile (errsystems.c): Comment out generation rule.
4474
4475         * sysdeps/mach/_strerror.c: Consider a system unknown if its
4476         bad_sub member is null.
4477
4478         * mach/mig-alloc.c: Add weak alias to non-__ name.
4479
4480 Wed May  3 11:56:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4481
4482         * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
4483
4484 Tue May  2 01:52:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4485
4486         * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
4487         function.  Duh.
4488
4489         * hurd/Makefile (distribute): Added hurdstartup.h.
4490         * hurd/hurd.h: Remove _hurd_startup decl.
4491
4492         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
4493         ((__unused__)) instead of gratuitous self reference.
4494
4495         * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
4496         table if FD2 doesn't fit.
4497
4498         * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
4499         not the current table size.
4500
4501         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
4502
4503         Implemented runtime dynamic linker to support ELF shared libraries.
4504         * elf/Makefile: Added rules to make ld.so and libdl.
4505         * elf/dl-error.c: New file.
4506         * elf/dl-fini.c: New file.
4507         * elf/dl-init.c: New file.
4508         * elf/dl-load.c: New file.
4509         * elf/dl-lookup.c: New file.
4510         * elf/dl-object.c: New file.
4511         * elf/dl-reloc.c: New file.
4512         * elf/dlclose.c: New file.
4513         * elf/dlerror.c: New file.
4514         * elf/dlopen.c: New file.
4515         * elf/dlsym.c: New file.
4516         * elf/dynamic-link.h: New file.
4517         * elf/link.h: New file.
4518         * elf/rtld.c: New file.
4519         * sysdeps/i386/dl-machine.h: New file.
4520         * sysdeps/stub/dl-machine.h: New file.
4521         * sysdeps/i386/dl-runtime.c: New file.
4522         * sysdeps/stub/dl-runtime.c: New file.
4523         * sysdeps/i386/elf/start.S: New file.
4524         * sysdeps/generic/dl-sysdep.c: New file.
4525         * sysdeps/mach/hurd/dl-sysdep.c: New file.
4526         * sysdeps/mach/hurd/i386/init-first.c: New file.
4527         * sysdeps/i386/init-first.c: New file.
4528         * sysdeps/stub/init-first.c: New file.
4529
4530 Mon May  1 18:48:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4531
4532         * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
4533         libc.so runnable.
4534         * version.c (__libc_print_version): Add "et al" and missing NL to
4535         author credit.
4536
4537 Sat Apr 29 15:46:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4538
4539         * posix/glob.c (S_ISDIR): Define if undefined.
4540
4541 Thu Apr 27 01:24:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4542
4543         * configure.in: Unless --without-fp, prepend */fpu before each
4544         machine dir in $mach; don't prepend FPU dirs at end.  If
4545         --with-elf, prepend MACHINE/elf directories at end; don't insert
4546         them into $mach.
4547
4548         * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
4549
4550         * sysdeps/stub/clock.c: Added stub warning.
4551         * sysdeps/stub/dirfd.c: Likewise.
4552         * sysdeps/stub/exc2signal.c: Likewise.
4553         * sysdeps/stub/fdopen.c: Likewise.
4554         * sysdeps/stub/flock.c: Likewise.
4555         * sysdeps/stub/fpathconf.c: Likewise.
4556         * sysdeps/stub/ftruncate.c: Likewise.
4557         * sysdeps/stub/gtty.c: Likewise.
4558         * sysdeps/stub/isatty.c: Likewise.
4559         * sysdeps/stub/killpg.c: Likewise.
4560         * sysdeps/stub/madvise.c: Likewise.
4561         * sysdeps/stub/mkstemp.c: Likewise.
4562         * sysdeps/stub/mktemp.c: Likewise.
4563         * sysdeps/stub/mprotect.c: Likewise.
4564         * sysdeps/stub/msync.c: Likewise.
4565         * sysdeps/stub/pathconf.c: Likewise.
4566         * sysdeps/stub/poll.c: Likewise.
4567         * sysdeps/stub/raise.c: Likewise.
4568         * sysdeps/stub/readv.c: Likewise.
4569         * sysdeps/stub/setenv.c: Likewise.
4570         * sysdeps/stub/setlogin.c: Likewise.
4571         * sysdeps/stub/sigaltstack.c: Likewise.
4572         * sysdeps/stub/sigintr.c: Likewise.
4573         * sysdeps/stub/sigstack.c: Likewise.
4574         * sysdeps/stub/sleep.c: Likewise.
4575         * sysdeps/stub/sstk.c: Likewise.
4576         * sysdeps/stub/stime.c: Likewise.
4577         * sysdeps/stub/stty.c: Likewise.
4578         * sysdeps/stub/syscall.c: Likewise.
4579         * sysdeps/stub/sysconf.c: Likewise.
4580         * sysdeps/stub/truncate.c: Likewise.
4581         * sysdeps/stub/ualarm.c: Likewise.
4582         * sysdeps/stub/usleep.c: Likewise.
4583         * sysdeps/stub/utimes.c: Likewise.
4584         * sysdeps/stub/writev.c: Likewise.
4585
4586         * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
4587
4588 Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4589
4590         * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
4591
4592 Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4593
4594         * posix/glob.c (glob): If GLOB_MARK set, stat names to find
4595         directories and append slashes to them in final pass before
4596         sorting.
4597         (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
4598         slash; never append it here.
4599
4600 Sat Apr 22 14:48:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4601
4602         * mach/Machrules [interface-library]
4603         (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
4604         -nostdlib.
4605
4606         * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed.  Lock
4607         _hurd_siglock only around initial task creation in parent.  Use
4608         _hurd_critical_section_unlock at end.  Handle dead name rights
4609         properly, and deal with a send right dying while we try to copy
4610         it.  For the time being, use assert_perror for kernel and proc RPC
4611         failures.
4612
4613 Fri Apr 21 01:10:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4614
4615         * extra-lib.mk: Don't include $(o-iterator); construct it by hand
4616         using $(object-suffixes-$(lib)) instead.
4617
4618         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
4619
4620         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
4621         (LDFLAGS-c.so): New variable.
4622
4623         * resolv/res_init.c (res_init): Don't clobber _res.options with
4624         RES_DEFAULT.  If RES_INIT is clear, OR in RES_DEFAULT.
4625
4626         * hurd/hurd.h: Declare _hurd_startup.
4627         * hurd/hurdstartup.c: New file.
4628         * hurd/Makefile (routines): Add hurdstartup.
4629
4630 Thu Apr 20 22:23:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4631
4632         * hurd/hurdsig.c: Use assert_perror for many calls which should
4633         never fail and previously were not checked.
4634
4635         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4636         Point the return address for sigreturn's frame at a "hlt" insn so
4637         it will definitely crash if sigreturn returns.
4638
4639 Wed Apr 19 18:40:11 1995  Brendan Kehoe  (brendan@zen.org)
4640
4641         * time/tzset.c (__tzname, __daylight, __timezone): Don't check
4642         HAVE_WEAK_SYMBOLS for doing weak_alias.
4643
4644 Wed Apr 19 18:12:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4645
4646         * configure.in: Move $os tests to set $elf et al earlier, before
4647         construction of $sysnames.  Instead of prepending MACHINE/elf to
4648         $sysnames, append &/elf after each elt appended to $mach.
4649
4650 Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4651
4652         * configure.in (libc_cv_asm_global_directive): New check to define
4653         ASM_GLOBAL_DIRECTIVE.
4654         * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
4655         * libc-symbols.h (strong_alias_asm, strong_alias): Use
4656         ASM_GLOBAL_DIRECTIVE on the alias.
4657
4658         * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
4659         HAVE_WEAK_SYMBOLS" #defns.
4660
4661 Mon Apr 17 12:02:49 1995  Brendan Kehoe  (brendan@zen.org)
4662
4663         * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
4664         of the byte that was zero, so we return a valid number.
4665
4666 Sun Apr 16 03:23:09 1995  Brendan Kehoe  (brendan@zen.org)
4667
4668         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
4669         NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
4670
4671 Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)
4672
4673         * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
4674         [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
4675         * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
4676         [BITS_PER_MP_LIMB == 64]: Likewise.
4677
4678         * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
4679         * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
4680         * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
4681         * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
4682         * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
4683         * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
4684         * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
4685         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
4686         * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
4687         * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
4688         * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
4689
4690         * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
4691         * sysdeps/unix/mips/fork.S (fork): Likewise.
4692         * sysdeps/unix/mips/pipe.S (fork): Likewise.
4693         * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
4694         * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
4695         * sysdeps/unix/mips/wait.S (__handler): Likewise.
4696         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
4697         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
4698         * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
4699         * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
4700         * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
4701         * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
4702         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
4703         * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
4704         * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
4705         * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'
4706         instead of `zero' for the li instruction.
4707
4708         * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
4709         preprocessor comments, not assembler comments.
4710         * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
4711         * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
4712
4713 Fri Apr 14 15:53:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4714
4715         * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
4716         in place of inline.
4717
4718 Thu Apr 13 09:45:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4719
4720         * Makefile (distribute): Add ChangeLog.[0-9].
4721
4722         * configure.in: Add check for .set directive.
4723         * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
4724         * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
4725         strong_alias_asm): Use `foo = bar' syntax instead.
4726
4727         * Makerules [! subdir] (O%-lib): Don't prepend ../.
4728
4729         * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
4730
4731         * configure.in: Fix AC_ARG_WITH uses; check for --with-fp.  Move
4732         $host_os checks to set gnu_ld/as and elf before sysdirs
4733         generation.  Fix $with_fp test.
4734         [$elf=yes]: Prepend MACHINE/elf directory.
4735
4736         * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
4737         being cleared are already known to be set.  Thanks Ulrich.
4738
4739 Wed Apr 12 23:27:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4740
4741         * posix/environ.c: Add weak alias `_environ'.
4742
4743 Tue Apr 11 20:38:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4744
4745         * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
4746         * sysdeps/i386/sub_n.S [PIC]: Likewise.
4747
4748 Mon Apr 10 14:53:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4749
4750         * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
4751         word `const'.
4752
4753         * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
4754         $(foo-$(suffix $@)).
4755
4756         * manual/Makefile (chapters-incl): Filter out summary.texi.
4757
4758         * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
4759         a weak symbol instead of literal "STRTOF".
4760
4761         * locale/setlocale.c: Work around ld bug: don't weakify refs to
4762         _nl_{current,C}_*.
4763
4764 Sun Apr  9 01:24:33 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4765
4766         * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
4767
4768         * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
4769         * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
4770
4771         * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
4772         #ifdef emacs, but only #ifndef memmove.
4773         * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
4774         safe_bcopy.
4775         (memmove): Define only if undefined.
4776
4777 Sat Apr  8 00:40:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4778
4779         * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
4780         sure these are simply-expanded variables.
4781
4782         * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
4783         mmap call.
4784
4785         * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
4786         for these too.
4787
4788         * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
4789         set c_oflag value.
4790
4791         * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
4792
4793         * locale/Makefile (categories): Uncomment collate.
4794         * locale/lc-collate.c: New file.
4795
4796         * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
4797         #ifdef emacs.
4798         * malloc/realloc.c: Likewise.
4799
4800         * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
4801         (_itoa): Use it in defn.
4802         * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
4803         "_itoa.h".
4804         (_itoa): Function removed.
4805
4806         * malloc/free.c: Remove use of `assert'.
4807
4808         * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
4809         __malloc_safe_bcopy; #define safe_bcopy.
4810         * malloc/free.c: Cope with systems lacking `memmove'.
4811         (_free_internal): Cast result of _malloc_internal.
4812
4813 Wed Apr  5 00:13:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4814
4815         * hurd/hurdinline.c: Include signal.h first, so we don't define
4816         its inlines too.
4817
4818         * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
4819         of -1 to avoid compiler warning.
4820
4821         * configure.in (host_os=linux*): Set elf=yes for this, not just
4822         linux*elf*.
4823
4824         * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
4825         and open.
4826
4827         * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
4828
4829 Tue Apr  4 00:48:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4830
4831         * sysdeps/unix/start.c: Remove spurious decl and #endif.
4832
4833         * misc/progname.c (program_invocation_name,
4834         program_invocation_short_name): Make these initialized data
4835         definitions.
4836
4837         * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
4838         so gcc doesn't optimize out the function entirely.
4839
4840 Sun Apr  2 13:13:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4841
4842         * posix/execvp.c: Don't use stat to search path; just try execv
4843         until it works.
4844
4845         * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
4846         SS->active_resources, so that _hurdsig_longjmp_from_handler will
4847         be called when a longjmp unwinds the signal frame.
4848         * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
4849         SS->active_resources chain added by _hurd_setup_sighandler.
4850         * hurd/sigunwind.c: New file.
4851         * hurd/Makefile (sig): Add sigunwind.
4852
4853         * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
4854
4855         * MakeTAGS (tags-sources): Include $(all-dist).
4856         [subdir] (all-dist): Define to $(distribute).
4857
4858 Sat Apr  1 00:08:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4859
4860         * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
4861         parent objdirs.
4862
4863         * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
4864         filtering out $($(lib)-inhibit-o); use that instead of
4865         $(object-suffixes) in all the other variables.
4866
4867         * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
4868         if undefined.
4869
4870         * string/strxfrm.c: Just copy the string (for now).
4871         * string/strcoll.c: Just call strcmp (for now).
4872
4873         * mach/Makefile (lock): Add mutex-init.
4874         * mach/mutex-solid.c (_cthread_mutex_lock_routine,
4875         _cthread_mutex_unlock_routine): Variables removed.
4876         (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
4877         (__mutex_init): Function moved to new file mutex-init.c.
4878         * mach/mutex-init.c: New file, broken out of mutex-solid.c.
4879
4880 Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>
4881
4882         * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
4883         * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
4884
4885 Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4886
4887         * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
4888         both are zero).
4889
4890 Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4891
4892         * elf/dlfcn.h: New file.
4893
4894         * Make-dist (README): Commit it to CVS if there is a CVS directory.
4895
4896         More changes from Germano Caronni <caronni@tik.ethz.ch>:
4897         * malloc/free.c: Relocate _heapinfo when that allows us to return
4898         core to the system.
4899
4900         * malloc/malloc.c: Move #include <errno.h> outside #ifndef
4901         _MALLOC_INTERNAL.
4902
4903 Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4904
4905         * mach/Makefile (headers): Add mach/mach_traps.h.
4906
4907         * Makerules ($(installed-libcs) rule): Fix typos.
4908
4909         * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
4910         * sysdeps/stub/revoke.c: New file.
4911         * misc/Makefile (routines): Add revoke.
4912         * posix/unistd.h [__USE_BSD] (revoke): Declare it.
4913         * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
4914         (forkpty): Declare login_tty.
4915         * misc/logwtmp.c (logwtmp): Declare to return void.
4916         * misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.
4917
4918         * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
4919
4920         * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
4921         unless L_SET already defined.
4922         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
4923         already defined.
4924
4925         Incorporated -lutil library from 4.4-Lite.
4926         * misc/Makefile (extra-libs, libutil-routines): New variables.
4927         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
4928         sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
4929
4930         Support simple, light-weight unwind-protect mechanism for longjmp.
4931         * setjmp/longjmp.c: Call _longjmp_unwind first thing.
4932         * sysdeps/mach/hurd/jmp-unwind.c: New file.
4933         * sysdeps/stub/jmp-unwind.c: New file.
4934         * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
4935         * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
4936         * setjmp/Makefile (routines): Add jmp-unwind.
4937         * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
4938         `prevp' members into new substructure `resource'; add another such
4939         substructure `thread' and members `cleanup' (function ptr) and
4940         `cleanup_data' (generic ptr).
4941         (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
4942         into the `_hurd_self_sigstate ()->active_resources' list via the
4943         `thread' substructure.
4944         * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
4945         (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
4946         LINK->cleanup_data' to the port extracted.
4947         * hurd/hurd/signal.h (struct hurd_sigstate): New member
4948         `active_resources'.
4949         * hurd/port-cleanup.c: New file.
4950         * hurd/Makefile (routines): Add port-cleanup.
4951
4952         * malloc/malloc.c: Include errno.h.
4953
4954 Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4955
4956         * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
4957
4958 Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4959
4960         * misc/Makefile (headers): Add utmp.h.
4961         * misc/utmp.h: New file, incorporated from 4.4-Lite.
4962
4963         * stdio/printf-parse.h: New file, mostly written by drepper.
4964         * stdio/vfprintf.c: Rewritten, mostly by drepper.
4965         * stdio/printf-prs.c: Rewritten.
4966         * stdio/Makefile (distribute): Add printf-parse.h.
4967
4968 Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4969
4970         * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
4971         with asm name.  Just do a ".set start, __start".
4972
4973         * malloc/realloc.c: Call _free_internal instead of free.
4974
4975 Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4976
4977         * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
4978         directory, open LOCALE/LC_*/SYS_LC_* instead.
4979
4980 Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4981
4982         * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
4983         stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
4984         stdio/gen-mpn-copy: Files moved to stdlib.
4985         * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
4986         * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
4987         * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
4988         headers.
4989         * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
4990         headers.
4991
4992         * Makefile (parent-mostlyclean): Don't use $(libc.a).
4993         (parent-clean): Use $(objpfx) to find sysd-*.
4994         * Rules (generated): Append dummy.o dummy.c.
4995         * Makerules (lib): Depend on lib-noranlib.
4996         (lib-noranlib): Depend on $(install-lib) in objdir.
4997         (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
4998         from objdir.  Don't remove TAGS; it comes in the distribution.
4999
5000         * malloc/malloc.c (morecore): Save errno around call to
5001         _realloc_internal.  Don't account for the additional new blocks of
5002         the info table itself when choosing the new table size for the
5003         first crack; if it succeeds, the new blocks will have been found
5004         in existing free space already described by the existing info
5005         table.
5006
5007         * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
5008         read-ahead character.
5009
5010 Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5011
5012         * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
5013           hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
5014           hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
5015           hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
5016         Get anal with unsigned to pacify compiler.
5017
5018         * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
5019         means %d from 3rd arg).
5020
5021         * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
5022
5023         * stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
5024         END, not GROUP.
5025
5026 Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5027
5028         * Makefile (subdirs): Put elf last.
5029
5030         * sunrpc/Makefile (install-lib): Variable removed.
5031         (rpcsvc-objs): Variable removed.
5032         (extra-objs): Don't include $(rpcsvc-objs).
5033         (extra-libs): New variable, contains librpcsvc.
5034         (librpcsvc-routines): New variable.
5035         (librpcsvc-inhibit-o): New variable, contains .so.
5036         (omit-deps): Set this to $(librpcsvc-routines).
5037         ($(objpfx)rpcgen): Don't use $(libc.a).
5038         (lib, $(objpfx)librpcsvc.a): Targets removed.
5039
5040         * o-iterator.mk, extra-lib.mk: New files.
5041         * Makerules (o-iterator): New variable.
5042         [extra-libs]: Include extra-lib.mk to generate rules for each word
5043         of $(extra-libs).
5044         * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
5045
5046 Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5047
5048         * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
5049         Handle 80-bit denormalized numbers correctly.
5050
5051         * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
5052         (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
5053         * stdlib/strtod.c (RETURN): Add parentheses around return value.
5054         (round_and_return): Correct handling of denormalized numbers.
5055
5056         * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
5057         LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
5058         exponent.
5059
5060 Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5061
5062         * locale/C-ctype.c: New correct data generated by drepper.
5063
5064         * Rules: Don't use $(libc.a).
5065
5066         Parsing of grouped numbers contributed by Ulrich Drepper.
5067         * stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
5068         new flag arg; if nonzero, parse locale-dependent thousands
5069         grouping and interpret only the prefix that is correctly grouped.
5070         (strtol): Define this to call _strtol_internal with zero for the flag.
5071         Use a weak symbol for the definition.
5072         * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
5073         Check for the exponent of the number overflowing the float format.
5074         * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
5075         (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
5076         [__OPTIMIZE__]: Define inline functions calling those.
5077         * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
5078         (strtold): Remove weak alias.
5079         * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
5080         (strtof): Remove weak alias.
5081         * stdlib/grouping.h: New file, written by drepper.
5082         * stdlib/Makefile (distribute): Add grouping.h.
5083         * stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
5084         __strtoX_internal with the grouping flag set iff the modifier is
5085         present.
5086
5087 Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5088
5089         * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
5090
5091         * mach/Machrules: Produce static deps for all object flavors.
5092         [interface-library]: Remove all these variables and rules.
5093         ($(interface-library)-routines): Define this variable.
5094         (extra-libs): Append $(interface-library) to this.
5095         * mach/Makefile (interface-library): Omit .a suffix.
5096         * hurd/Makefile: Likewise.
5097
5098 Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5099
5100         * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
5101         early if no new data in buffer after priming.
5102
5103 Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5104
5105         * Makerules (object-suffixes, libtypes): Move all these variables
5106         to Makeconfig.
5107         * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
5108
5109         * Makerules (build-extra-lib): New canned sequence.
5110
5111         * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
5112         fix uses of FILE and PORT.  Remove bogus weak alias for `access'.
5113
5114         * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
5115         Add missing semicolon.
5116         * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
5117         hurd_fd *' temp var, since DIRP->__fd is a `void *'.
5118         * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
5119
5120         * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
5121         locale data format is implemented.
5122
5123         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5124         Pass &__sigreturn on the stack to the trampoline code, so it is
5125         not position-dependent.
5126
5127         * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
5128         Don't include <stdarg.h>.
5129         (__printf_fp): Last arg ARGS is now `const void **const';
5130         dereference ARGS[0] instead of using va_arg.
5131
5132         * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
5133         loop to install data.
5134
5135         * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
5136         to extract number from item code.
5137         (_nl_load_locale): Close the descriptor when finished.
5138
5139         * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
5140         place of malloc.
5141
5142         * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
5143
5144         * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
5145         to avoid warning.
5146         * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
5147         int to avoid warning.
5148
5149         Support building several flavors of objects and libraries.
5150         * Makerules (libtypes, object-suffixes): New variables.
5151         (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
5152         suffix.
5153         (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
5154         (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
5155         (close-check-inhibit-asm): Append a semicolon.
5156         (sysd-rules): Generate rules for each object suffix.
5157         (compile.S, compile.c): Always assume gcc.
5158         (OUTPUT_OPTION): Define unconditionally.
5159         (+make-deps): In generated rule, produce a dependent for each
5160         object suffix.
5161         (.SUFFIXES): Add $(object-suffixes) in place of .o.
5162         (.PRECIOUS): Make all suffix flavors precious.
5163         ($(libc.a)): Target removed.
5164         (lib): Depend on each enabled libtype.
5165         (libobjs, objects, objs): Depend on all the enabled object flavors.
5166         (lib%.a): New pattern rule.
5167         [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
5168         (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
5169         to make one for each flavor; library dep rule likewise rewritten.
5170         ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
5171         flavor.
5172         (symdef.%): New pattern rule; helper for __.SYMDEF targets.
5173         (installed-libcs): New variable.
5174         (install): Depend on that instead of
5175         $(libdir)/lib$(libprefix)$(libc-name).a;
5176         that file's rule rewritten to make each enabled libtype.
5177         (install-lib.so): New variable, filters lib%.so from $(install-lib).
5178         (install-lib): Filter out lib%.so after setting install-lib.so.
5179         [$(build-shared)=yes] (install): Install $(install-lib.so).
5180         (common-mostlyclean): Remove all flavors of objects.
5181         * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
5182         [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
5183
5184 Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5185
5186         * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
5187         * sysdeps/stub/pause.c: Likewise.
5188         * sysdeps/stub/time.c: Likewise.
5189
5190         * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
5191         locale data format is implemented.
5192         * stdlib/wctomb.c: Likewise.
5193
5194         * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
5195         gcc bug is fixed.
5196         * mach/errsystems.c: File removed.
5197
5198         * Makeconfig (libc.a): Variable removed.
5199         (+link): Don't use it.
5200
5201         * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
5202         assuming `yes'.
5203
5204         * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
5205         * malloc/realloc.c (_realloc_internal): Renamed from realloc;
5206         don't use __realloc_hook.
5207         (realloc): New function; call __realloc_hook ?: _realloc_internal.
5208         * malloc/malloc.c (_malloc_internal): Renamed from malloc;
5209         don't use __malloc_hook.
5210         (malloc): New function; call __malloc_hook ?: _malloc_internal.
5211         Changes from Germano Caronni <caronni@tik.ethz.ch>:
5212         (initialize): Set up _heaplimit to cover the _heapinfo table.
5213         (morecore_recursing): New static variable.
5214         (morecore): If that is set, return null immediately.
5215         When growing the info table, before getting new core from the
5216         system for it, set morecore_recursing and try moving _heapinfo
5217         with _realloc_internal.  When that fails and we get new core, set
5218         _heaplimit to cover the core for the new _heapinfo table.
5219         (register_heapinfo): New function.  Record the _heapinfo table's
5220         own blocks in that table and in the statistics variables.
5221         (initialize, _malloc_internal): Use it after allocating new table.
5222
5223 Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)
5224
5225         * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
5226         by other packages.
5227         [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
5228
5229 Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5230
5231         * mach/errorlib.h (errors): Use const for decl.
5232
5233         * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
5234         (decode): New inline function; decode signed 32-bit integers, and
5235         sign-extend properly when long is longer than 32 bits.
5236         (__tzfile_read): Changed all uses of uc2ul to decode.
5237         Decode the transition times properly when sizeof (time_t) > 4.
5238
5239         * stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
5240         (printf_function): Make last arg ARGS a vector of pointers instead of a
5241         pointer to va_list.
5242
5243 Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5244
5245         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
5246         (buffered_vfprintf): Remove line buffer when flush failed.
5247
5248 Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5249
5250         * time/tzfile.c (struct ttinfo): New member `isgmt'.
5251         (__tzfile_read): Read isgmt flags for each type.
5252         (__tzfile_default): When using TZDEFRULES DST rules, adjust
5253         transition times according to the isstd and isgmt flags for the
5254         types of each transition, and adjust each transition to point to
5255         type index either 0 or 1.  Reset type indices 0 and 1 to describe
5256         the user's settings.
5257
5258 Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5259
5260         * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
5261         into just CLASS.  Add standard/optional flag to all items.
5262
5263         * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
5264
5265         * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
5266         Rearrange defn to satisfy compiler.
5267
5268         * locale/localeinfo.h: Declare _nl_current.
5269
5270         * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args
5271         --enable-shared, --enable-profile, --enable-omitfp; pass settings
5272         through to config.make.
5273         * config.make.in (build-shared, build-profile, build-omitfp): New
5274         config vars.
5275
5276         * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
5277         (DT_NUM): New macro.
5278
5279         * locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.
5280
5281         * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
5282
5283         * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
5284         MAP_COPY to MAP_PRIVATE.
5285
5286 Thu Mar  9 17:16:53 1995  Brendan Kehoe  (brendan@zen.org)
5287
5288         * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
5289         that's used inside the alpha sysdep.h.
5290
5291         * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
5292         keyword.
5293         * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
5294
5295         * configure.in: Match `osf*', not `osf1*'.
5296         * configure: Likewise.
5297         * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
5298
5299 Wed Mar  8 13:38:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5300
5301         * posix/glob/configure.bat: Fixes from DJ.
5302
5303         * time/backward, time/europe, time/northamerica, time/pacificnew,
5304         time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
5305         time/ialloc.c: Code and data updated from ADO's 95b.
5306         * time/emkdir.c: File removed.
5307         * time/Makefile (distribute, extra-objs, zic): Omit it.
5308
5309         * time/localtime.c: Deansideclized.  Never #define __tzname et al
5310         to non-__ names.
5311
5312         * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
5313         instead of short int *.
5314         * ctype/ctype-info.c: Likewise.
5315         * ctype/ctype.h: Likewise.
5316
5317         * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
5318         of EB and EL versions.
5319
5320 Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5321
5322         * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
5323         (_IS* enum): Use _ISbit to produce values.
5324
5325 Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5326
5327         * locale/localeinfo.h: Rewritten for new locale system, using
5328         locale data files and with <langinfo.h> interface.
5329         * locale/setlocale.c: Rewritten to use locale data files.
5330         * langinfo.h: New file.
5331         * locale/langinfo.h: New file.
5332         * locale/nl_langinfo.c: New file.
5333         * locale/loadlocale.c: New file.
5334         * locale/lc-ctype.c: New file.
5335         * locale/lc-messages.c: New file.
5336         * locale/lc-monetary.c: New file.
5337         * locale/lc-numeric.c: New file.
5338         * locale/lc-time.c: New file.
5339         * locale/categories.def: New file.
5340         * locale/Makefile (headers): Remove localeinfo.h.
5341         (distribute): New variable; put localeinfo.h here, and categories.def.
5342         (routines): Add loadlocale.
5343         (categories): New variable.
5344         (aux): Use that to get C-category and lc-category.
5345         * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
5346         * ctype/ctype-info.c: For initial tables, use
5347         _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
5348         locale/C-ctype.c.
5349         * locale/C-ctype.c, locale/C-messages.c: New files.
5350         * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
5351         Default "C" locale data updated for new locale system.
5352         * locale/C-collate.c: File removed.
5353         * locale/C-ctype_ct.c: File removed.
5354         * locale/C-ctype_mb.c: File removed.
5355         * locale/C-response.c: File removed.
5356         * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
5357         * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
5358           stdlib/strtod.c, time/asctime.c, time/strftime.c:
5359         Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
5360         locale data.
5361         * time/localtime.c: Don't include <localeinfo.h>.
5362         * time/tzset.c: Don't use locale items for default TZ value or
5363         "GMT" string (use "UTC").
5364
5365         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
5366         WIDTH>0; update DONE.
5367
5368         * malloc/malloc.c (morecore): Fix last change to calculate by
5369         blocks instead of bytes.
5370
5371 Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5372
5373         * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
5374         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
5375         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
5376         * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
5377         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
5378         * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
5379         alias munmap.
5380         * sysdeps/unix/mman/munmap.S: Likewise.
5381         * sysdeps/mach/munmap.c: Likewise.
5382         * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
5383         alias mmap.
5384         * sysdeps/unix/mman/mmap.S: Likewise.
5385         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
5386         * sysdeps/stub/mmap.c: Likewise.
5387
5388         * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
5389
5390         * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
5391
5392 Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5393
5394         * misc/search.h: Add missing semicolon.
5395
5396         * sysdeps/unix/dirfd.c: Fix typo.
5397
5398         * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
5399         in decl.
5400
5401         * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
5402         WIDTH before test.
5403
5404 Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5405
5406         * stdlib/strtod.c: Fixes from drepper.
5407         [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
5408         * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
5409         * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
5410
5411         * stdio/vfprintf.c: Correctly notice Z modifier.
5412
5413         * misc/search.h: New file.
5414         * misc/Makefile (headers): Add search.h.
5415         * misc/insremque.c: Include search.h.
5416         (struct qelem): Type removed.
5417
5418 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5419
5420         * elf/libelf.h: New file.
5421         * elf/elf_hash.c: New file.
5422
5423 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5424
5425         Changes from Germano Caronni <caronni@tik.ethz.ch>:
5426         * malloc/malloc.c (morecore): Account in NEWSIZE for the
5427         malloc_info structures for each new block.
5428
5429 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5430
5431         * sysdeps/mach/hurd/kill.c: When the process has no message port
5432         registered and we have its task port, translate a few signals to
5433         task_suspend/task_resume/task_terminate.
5434
5435 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5436
5437         * io/Makefile (routines): Add euidaccess.
5438         * sysdeps/mach/hurd/euidaccess.c: New file.
5439         * sysdeps/stub/euidaccess.c: New file.
5440         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
5441
5442         * dirent/Makefile (routines): Add dirfd.
5443         * sysdeps/stub/dirfd.c: New file.
5444         * sysdeps/unix/dirfd.c: New file.
5445         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
5446         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
5447         _DIR_dirfd if that is defined.
5448         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
5449         with `void *__fd'.
5450         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
5451         Open the file with `open'; set FD_CLOEXEC on the fd.
5452         * sysdeps/mach/hurd/closedir.c: Likewise.
5453         * sysdeps/mach/hurd/readdir.c: Likewise.
5454         * sysdeps/mach/hurd/dirfd.c: New file.
5455
5456         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
5457         directory.
5458         (glob/ChangeLog): Likewise.
5459
5460         * locale/locale.h (LC_*): Use small integers instead of bit masks.
5461
5462         * stdio/bug4.c: Put temporary files in /tmp.
5463         * stdio/bug3.c: Likewise.
5464         * stdio/bug5.c: Likewise.
5465         * stdio/test-fseek.c: Likewise.
5466         * stdio/test-popen.c: Likewise.
5467
5468 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5469
5470         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
5471
5472         * libc-symbols.h (weak_symbol): New macro.
5473
5474         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
5475         elts with null handlers.
5476
5477         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
5478
5479 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5480
5481         * stdlib/random.c (__srandom): Change algorithm used to populate
5482         the state array.
5483         (randtbl): Recomputed with new algorithm.
5484
5485         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
5486         to original value of `crypt'.
5487         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
5488         (crypt): New variable, set to crypt.solar.
5489
5490 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
5491
5492         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
5493
5494         * config.h.in: Put comment around ^L to pacify Solaris as here too.
5495
5496 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5497
5498         * string/Makefile (distribute): Add pagecopy.h.
5499         * sysdeps/mach/pagecopy.h: New file.
5500         * sysdeps/generic/pagecopy.h: New file.
5501         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
5502         PAGE_COPY_FWD_MAYBE first when word aligned.
5503         * sysdeps/generic/memmove.c: Likewise.
5504
5505         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
5506         (getpgrp): Call __getpgid instead of __getpgrp.
5507
5508         * Makefile (subdirs): Add elf first.
5509         * elf/Makefile: New file.
5510         * elf/elf.h: New file.
5511
5512         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
5513         as a macro.
5514         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
5515         indirection.
5516
5517         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
5518         add crti_s, crtn_s.
5519         (install-lib, extra-objs, generated-, omit-deps): Use that.
5520         (initfini): New canned sequence, broken out of crt[in].s rule.
5521         (crt[in].s rule): Use it.
5522         (crt[in]_s.s): New rule.
5523         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
5524         (_init, _fini): Use GLOBAL as storage class.
5525         Add self reference to avoid GCC optimizing out the functions.
5526
5527         * Makefile (headers): Remove $(stddef.h).
5528         * Makeconfig (stddef.h): Variable removed; now require gcc version
5529         >= 2.2.
5530         * stddef.h: File removed.
5531
5532 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5533
5534         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
5535         definition.
5536         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
5537
5538         * stdlib/strtod.c: Allow the string to start with a decimal point
5539         without a leading zero.
5540
5541 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
5542
5543         * Makefile (subdirs): Put csu first.
5544
5545         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
5546
5547         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
5548         to crt[in].o.
5549         (csu-objpfx): New variable.
5550         (+link): Use it to find start.o and $(+preinit), $(+postinit).
5551
5552         * Rules (subdir_lib, all): Depend on objs.
5553
5554         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
5555
5556         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
5557         access to float.h macros.
5558
5559         * misc/efgcvt.c: New file.
5560         * misc/Makefile (routines): Add efgcvt.
5561
5562 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
5563
5564         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
5565         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
5566         to avoid a misreference that would override sysdeps/generic/mul.c.
5567         * sysdeps/sparc/Dist: Likewise.
5568
5569 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
5570
5571         * posix/Makefile (aux): Add environ.
5572         * posix/environ.c: New file.
5573         * sysdeps/unix/sparc/start.c: Remove __environ definition.
5574         * sysdeps/unix/start.c: Likewise.
5575         * sysdeps/unix/sysv/irix4/start.c: Likewise.
5576         * sysdeps/mach/hurd/start.c: Likewise.
5577         * sysdeps/mach/start.c: Likewise.
5578         * sysdeps/stub/start.c: Likewise.
5579
5580         * sysdeps/unix/make_errlist.c: In produced program, test
5581         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
5582         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
5583         Remove extra weak alias.
5584
5585         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
5586         in #include.
5587
5588         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
5589
5590         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
5591         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
5592         $(CPPFLAGS).
5593         (mk-stdiolim): Use it instead.
5594
5595 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
5596
5597         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
5598         not work to make a weak alias to a bss symbol.
5599
5600         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
5601         (tests): Add test-fwrite.
5602         * stdio/test-fwrite.c: New file.
5603
5604         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
5605         __strtold.
5606
5607         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
5608         there is a CVS directory.
5609         (configure, %/configure): Use $(autoconf-it) for cmds.
5610         * Make-dist: Likewise.
5611         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
5612         if there is a CVS directory.
5613         * sysdeps/sparc/Makefile (divrem output): Likewise.
5614         * sysdeps/alpha/Makefile (divrem output): Likewise.
5615         * Makerules ($(gpl2lgpl)): Likewise.
5616
5617         * Makerules (rule to install lib%.a from $(install-lib)): Fix
5618         patsubst to elide ranlib for $(non-lib.a).
5619
5620         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
5621
5622 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
5623
5624         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
5625         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
5626
5627 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5628
5629         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
5630         DEALLOC_REFPORT; deallocate the refport after use only if it
5631         evaluates to nonzero.
5632         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
5633         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
5634
5635         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
5636         *STATE_CHANGE to indicate whether or not we changed *STATE and it
5637         should be committed to the thread.
5638         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
5639         state for a thread, do thread_set_state on that thread.  Don't use
5640         SS->intr_port for collecting reply ports, it is not safe to
5641         clobber that when suspending; instead, alloca a temporary array.
5642         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
5643         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
5644
5645         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
5646         HURD_FD_PORT_USE will.  Don't use critical sections around
5647         HURD_FD_PORT_USE invocations.
5648
5649         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
5650         * sysdeps/posix/stdio_init.c: Likewise.
5651
5652 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5653
5654         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
5655         locking; don't leave the descriptor locked on return.
5656         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
5657         Use a critical section around locking the descriptor.
5658         Check for an empty descriptor and return EBADF.
5659         * sysdeps/mach/hurd/dup2.c: Likewise.
5660         * sysdeps/mach/hurd/fcntl.c: Likewise.
5661         Use HURD_FD_PORT_USE macro for RPCs.
5662         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
5663         using HURD_FD_PORT_USE.
5664         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
5665         to lock the descriptor.
5666         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
5667         locking the descriptor.
5668         * sysdeps/mach/hurd/fdopen.c: Likewise.
5669         * hurd/fd-close.c: Likewise.
5670         Don't expect the descriptor to be locked on entry.
5671         Check for empty descriptor and return EBADF.
5672
5673         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
5674         new functions _hurd_ctty_input and _hurd_ctty_output, each
5675         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
5676         * hurd/ctty-input.c: New file.
5677         * hurd/ctty-output.c: New file.
5678         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
5679         * hurd/fd-read.c: Use _hurd_ctty_input.
5680         * hurd/fd-write.c: Use _hurd_ctty_output.
5681         * sysdeps/mach/hurd/ioctl.c: Likewise.
5682         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
5683
5684 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5685
5686         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
5687         as appropriate to the type.
5688
5689         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
5690         repeating the union.
5691         (HUGE_VAL, __huge_val): Use it.
5692         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
5693         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
5694         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
5695         (STRTOF): Set to __strtold; define strtold as weak alias.
5696         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
5697         (STRTOF): Set to __strtof; define strtof as weak alias.
5698
5699         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
5700         (IEEE754_FLOAT_BIAS): New macro.
5701
5702         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
5703
5704         * stdlib/testmb.c: Add tests from rfg for using normal chars as
5705         multibyte chars.
5706
5707         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
5708         only the `defined but not used' warning, but also to avoid GCC
5709         optimizing out the entire function (!).
5710
5711         * stdlib/wctomb.c: Include ctype.h.
5712
5713         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
5714
5715         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
5716
5717 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5718
5719         * stdio/printf_fp.c: Include "fpioconst.h".
5720         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
5721         (__printf_fp): All references changed.
5722         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
5723         (group_number): Use memmove instead of memcpy, since operands overlap.
5724         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
5725         * stdio/fpioconst.h: New file, header declaring the table data.
5726         * stdio/Makefile (aux): Add fpioconst.
5727         (distribute): Add fpioconst.h.
5728         * stdlib/strtod.c: Complete rewrite from drepper.
5729         * stdlib/strtof.c: New file.
5730         * stdlib/strtold.c: New file.
5731         * stdlib/Makefile (routines): Add strtof, strtold.
5732         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
5733         * sysdeps/stub/mpn2flt.c: New file.
5734         * sysdeps/stub/mpn2dbl.c: New file.
5735         * sysdeps/stub/mpn2ldbl.c: New file.
5736         * sysdeps/ieee754/mpn2flt.c: New file.
5737         * sysdeps/ieee754/mpn2dbl.c: New file.
5738         * sysdeps/ieee754/mpn2ldbl.c: New file.
5739
5740         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
5741         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
5742         appears in $(non-lib.a).
5743
5744 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5745
5746         * stdlib/wctomb.c: A normal ASCII character translates to itself.
5747         * stdlib/mbtowc.c: Likewise.
5748
5749 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5750
5751         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
5752         Remove `const' from prototypes.
5753         * sysdeps/m68k/__longjmp.c: Likewise.
5754         * setjmp/longjmp.c: Likewise.
5755         * sysdeps/i386/__longjmp.c: Likewise.
5756
5757         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
5758         so when we return a name, it is incremented past the value that
5759         produces that same name.
5760
5761         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
5762         * stdio/stdio.h (fgets): Likewise.
5763
5764         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
5765
5766         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
5767         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
5768         and retry the RPC.
5769         * hurd/fd-read.c: Likewise.
5770
5771 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5772
5773         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
5774         <mach/mig_support.h>.
5775         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
5776         * assert/assert.c: Likewise.
5777         * sysdeps/posix/libc_fatal.c: Likewise.
5778
5779 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5780
5781         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
5782         as macros, to satisfy ANSI pedants.
5783
5784         * stdio/internals.c (flushbuf): When there is no new data after
5785         priming the stream, return without writing out the buffer.
5786         * stdio/Makefile (tests): Add bug7.
5787         * stdio/bug7.c: New file.
5788
5789         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
5790         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
5791         is defined.
5792
5793         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
5794
5795         * stdio/Makefile (tests): Add errnobug.
5796         * stdio/errnobug.c: New file.
5797
5798         * mach/mig_strncpy.c: Include string.h.
5799
5800         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
5801         inlines cause trouble for files defining global register variables.
5802
5803         * stdio/vfprintf.c: Use _strerror_internal for %m.
5804
5805         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
5806
5807         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
5808         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
5809         * stdio/vfprintf.c (group_number): New function.
5810         (vfprintf): Support %' flag for integer formats, by calling
5811         group_number after formatting the number in WORK.
5812         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
5813         (__printf_fp): Implement `group' flag using them.
5814
5815         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
5816         (parent-clean): Remove sysd-rules, not sysdirs.
5817         (distclean): Pass avoid-generated=yes to submake.
5818         (distclean-1): Remove $(sysdep-$(distclean-1)).
5819
5820         * Makerules (objects, objs): Depend on $(extra-objs) too.
5821         (include sysd-Makefile): Protect with ifndef avoid-generated.
5822
5823         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
5824         (CPPFLAGS): Use $(defines) in place of $(+defines).
5825         Replace -D_LIBC with -include $(..)libc-symbols.h.
5826
5827         * stdio/freopen.c: Set seen bit before calling fclose.
5828
5829 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5830
5831         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
5832         successes and each kind of failure.  Return EPERM or EACCES only
5833         if every task failed that way.
5834
5835         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
5836         correctly.
5837
5838         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
5839         or resume the process after frobbing.
5840
5841         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
5842         throughout.
5843         (_hurd_thread_sigstate): Don't lock the sigstate lock.
5844         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
5845         repeated sequences with calls to it.  Don't expect the sigstate
5846         lock to be held on entry; lock it just before examining sigaction.
5847         In handler case, check SS->critical_section after calling
5848         abort_rpcs; if set, mark the signal pending and resume the thread.
5849         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
5850         (_hurd_self_sigstate): Don't lock the sigstate lock.
5851         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
5852         _hurd_self_sigstate_unlocked.
5853         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
5854         the sigstate lock.
5855         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
5856         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
5857         locking.
5858         * hurd/hurd-raise.c: Likewise.
5859         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
5860         * sysdeps/mach/hurd/sigpending.c: Likewise.
5861         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
5862         * sysdeps/mach/hurd/sigaction.c: Likewise.
5863         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
5864         * hurd/fd-write.c: Likewise.
5865         * hurd/fd-read.c: Likewise.
5866         * sysdeps/mach/hurd/ioctl.c: Likewise.
5867         * sysdeps/mach/hurd/fork.c: Likewise.
5868         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
5869         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
5870         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
5871         * hurd/hurdmsg.c (get_int): Likewise.
5872
5873         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
5874
5875         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
5876         global.
5877         (PAD): Caller changed.
5878         * stdio/printf_fp.c (__pad): Function removed.
5879         (PAD): Use __printf_pad instead.
5880
5881 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5882
5883         Merged new FP printer by Ulrich Drepper.
5884         * stdio/printf_fp.c: Rewrite by drepper.
5885         * stdio/Makefile (routines): Add ldbl2mpn.
5886         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
5887         member.
5888         (union ieee854_long_double): New type, from drepper.
5889         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
5890         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
5891         * sysdeps/stub/ldbl2mpn.c: New file.
5892         * math/Makefile (routines): Add isinfl and isnanl.
5893         * sysdeps/ieee754/isinfl.c: New file.
5894         * sysdeps/stub/isinfl.c: New file.
5895         * sysdeps/ieee754/isnanl.c: New file.
5896         * sysdeps/stub/isnanl.c: New file.
5897
5898         * malloc/malloc.c (__malloc_extra_blocks): New variable.
5899         (malloc): When getting more core, get __malloc_extra_blocks extra;
5900         put the new block at the end of the free list and let the next loop
5901         iteration use the initial portion of it.
5902         * malloc/free.c (_free_internal): Account for twice
5903         __malloc_extra_blocks in deciding if we have so much extra memory
5904         we should return it to the system.
5905         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
5906         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
5907         const in parameter decl.
5908
5909         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
5910
5911 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5912
5913         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
5914
5915         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
5916         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
5917         * sysdeps/mips/bsd-setjmp.S: Likewise.
5918         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
5919         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
5920         Use `long int' for sigcode.  Use explicit register numbers instead
5921         of names.
5922         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
5923         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
5924
5925 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5926
5927         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
5928
5929         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
5930         using __stpncpy.
5931
5932         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
5933
5934         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
5935
5936 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5937
5938         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
5939         vm_size_t instead of size_t for arg and return types.
5940
5941         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
5942         already does.
5943
5944 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5945
5946         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
5947
5948         * configure.in (friendly stddef.h check): Write override defn for
5949         `stddef.h' Make variable.
5950         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
5951
5952         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
5953
5954         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
5955         empty file.
5956
5957         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
5958
5959 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5960
5961         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
5962
5963         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
5964         mach/machine/syscall_sw.h with this.
5965
5966 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5967
5968         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
5969         instead of <lock-intern.h>.
5970         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
5971         (_hurd_critical_section_lock): Use spin lock operators.
5972         Don't hold the sigstate lock, unlock it after setting the flag.
5973         (_hurd_critical_section_unlock): Take the sigstate lock
5974         to clear the flag; while holding it, check pending signals.  After
5975         unlocking, sig_post ourselves if there were pending signals.
5976
5977         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
5978         sigstate lock.  If it is locked, clear SS->critical_section and
5979         SS->context, and unlock it.
5980
5981         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
5982
5983         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
5984         * munch-tmpl.c: Likewise.
5985
5986         * mach/Makefile (routines): Don't filter out syscall_% from
5987         $(mach-syscalls).
5988
5989 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
5990
5991         * posix/fnmatch.c: Declare errno if it's not defined.
5992         That's simpler than testing #if !defined(__GNU_LIBRARY__)
5993         && !defined(STDC_HEADERS).
5994
5995 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5996
5997         * csu/Makefile: New file.
5998         * csu/initfini.c: New file.
5999         * Makefile (+other_dirs): Add csu.
6000         (+init): Variable renamed to libc-init.  All references changed.
6001         (aux): Remove start.
6002         (install-lib): Variable removed.
6003         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
6004
6005         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
6006         and $(objpfx)config.h.
6007         (static deps of RPC alias *.o): Removed.
6008
6009         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
6010         Protect macros with this.
6011         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
6012         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
6013         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
6014         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
6015         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
6016         * sysdeps/unix/mips/sysdep.h: Likewise.
6017
6018 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6019
6020         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
6021         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
6022
6023         * hurd/intr-rpc.awk: Emit weak alias.
6024
6025         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
6026         __getpgrp.
6027
6028         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
6029         this.
6030         * sysdeps/unix/i386/sysdep.h: Likewise.
6031         * sysdeps/unix/sparc/sysdep.h: Likewise.
6032
6033         * io/ftw.c: Avoid `ret' as variable name.
6034         * posix/glob.c: Likewise.
6035
6036         * ctype/ctype.h (_ISalpha): Define as its own bit.
6037         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
6038
6039         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
6040         DEFINE_HOOK with this.
6041
6042 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6043
6044         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
6045         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
6046         * mach/shortcut.awk: Emit weak alias.
6047         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
6048         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
6049         __ names.
6050         * mach/Makefile (lock): Remove spin-syms.
6051         (routines): Remove __ names, vm_page_size, msgserver_t.
6052         ($(mach-syscalls) rule): Generate files without __, add weak alias.
6053         Remove symbol alias file rule.
6054         ($(mach-shortcuts) rule): Likewise.
6055         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
6056         * mach/Machrules (if-calls.c): Variable and rule removed.
6057         (interface-headers): Don't add $($(if)-calls).
6058         (transform-user-stub): Define to add weak alias.
6059         * set-hooks.h: Use new libc-symbols.h set access macros.
6060         * time/Makefile (routines): Remove __ names.
6061         (aux): Variable removed.
6062         * hurd/Makefile: Likewise.
6063         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
6064         (data_start): Define as weak alias for __data_start.
6065         * sysdeps/mach/hurd/start.c: Likewise.
6066         * sysdeps/unix/sparc/start.c: Likewise.
6067         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
6068         sys_errlist.
6069         * sysdeps/mach/hurd/errlist.awk: Likewise.
6070         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
6071         alias for __environ.
6072         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
6073         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
6074         * sysdeps/stub/getdomain.c: Likewise.
6075         * sysdeps/stub/vhangup.c: Likewise.
6076         * sysdeps/stub/swapon.c: Likewise.
6077         * sysdeps/stub/sendmsg.c: Likewise.
6078         * sysdeps/stub/recvmsg.c: Likewise.
6079         * sysdeps/stub/acct.c: Likewise.
6080         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
6081         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
6082         * sysdeps/posix/libc_fatal.c: Likewise.
6083         * sysdeps/i386/abort.c: Likewise.
6084         * sysdeps/i386/__longjmp.c: Likewise.
6085         * sysdeps/generic/make_siglist.c: Emit defn always for
6086         _sys_siglist.  Emit weak alias to sys_siglist.
6087         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
6088         * sysdeps/ieee754/log10.c: Likewise.
6089         * time/difftime.c: Likewise.
6090         * stdlib/random.c (srand): Define as weak alias for __srandom.
6091         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
6092         macros for __libc_atexit.
6093         * stdlib/Makefile (routines): Remove __random, srand.
6094         * stdio/gets.c: Use new link_warning macro instead of old
6095         warn_references.
6096         * stdio/Makefile (routines): Remove __ names.
6097         (aux): Remove syms-stdio.
6098         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
6099         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
6100         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
6101         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
6102         * stdio/stdio.h: Likewise.
6103         * misc/Makefile (routines): Remove __ names.
6104         (aux): Remove data_start.
6105         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
6106         * sysdeps/mach/hurd/brk.c: Likewise.
6107         * hurd/hurdid.c: Likewise.
6108         * hurd/hurdpid.c: Likewise.
6109         * hurd/openport.c: Likewise.
6110         * hurd/hurdsock.c: Likewise.
6111         * hurd/hurdsig.c: Likewise.
6112         * hurd/hurdrlimit.c: Likewise.
6113         * hurd/hurdmalloc.c: Likewise.
6114         * hurd/dtable.c: Likewise.
6115         * hurd/setauth.c: Likewise.
6116         * misc/progname.c: Likewise.
6117         * misc/init-misc.c: Likewise.
6118         * sysdeps/generic/vfork.c: Likewise.
6119         * sysdeps/unix/bsd/init-posix.c: Likewise.
6120         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
6121         * time/time.h: Likewise.
6122         * math/Makefile (routines): Remove __ names.
6123         * io/Makefile: Likewise.
6124         * termios/Makefile: Likewise.
6125         * resource/Makefile: Likewise.
6126         * signal/Makefile: Likewise.
6127         * dirent/Makefile: Likewise.
6128         * assert/assert.h: Replace __NORETURN keyword with __attribute__
6129         uses.  Functions return void and macros deal with this.
6130         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
6131         Return void.  Don't include gnu-stabs.h.
6132         * assert/assert.c: Likewise.
6133         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
6134         getpgid.
6135         (aux): Remove environ.
6136         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
6137         __attribute__ use.
6138         * posix/unistd.h (_exit): Likewise.
6139         (__getpgrp, __setpgrp): Declarations removed.
6140         (__getpgid, getpid): Declare these.
6141
6142         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
6143         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
6144         $libc_link_{sources,dests}.
6145         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
6146         create files, just add to libc_link_{dests,sources}.
6147
6148         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
6149
6150         * config.h.in: Add #undefs used by sysdeps configures.
6151
6152         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
6153         __setpgid, __getpgid.
6154         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
6155         from setpgrp.c.
6156         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
6157         from __getpgrp.c.
6158         * sysdeps/unix/bsd/getpgrp.c: File removed.
6159         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
6160         Call __getpgid with zero.
6161         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
6162         weak aliases setpgid and setpgrp.
6163         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
6164         * sysdeps/unix/common/setpgid.S: Likewise.
6165         * sysdeps/mach/hurd/setpgid.c: Likewise.
6166         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
6167         Use subcall 5 to __pgrpsys.
6168         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
6169         weak alias getpgid.
6170         * sysdeps/mach/hurd/getpgid.c: Likewise.
6171         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
6172         * sysdeps/unix/common/getpgid.S: Likewise.
6173         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6174         Use subcall 4 to __pgrpsys.
6175         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
6176         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
6177         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
6178         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
6179         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
6180         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
6181         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
6182         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
6183         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
6184         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
6185         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
6186         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
6187
6188         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
6189         from __getdents.S.
6190
6191         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
6192         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
6193         warning.
6194         * sysdeps/stub/fexecve.c: Likewise.
6195         * sysdeps/stub/fchdir.c: Likewise.
6196         * sysdeps/stub/fchflags.c: Likewise.
6197         * sysdeps/stub/chflags.c: Likewise.
6198
6199         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
6200         * sysdeps/generic/abort.c: Likewise.
6201         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
6202
6203         * hurd/hurdioctl.c: Include hurd/ioctl.h.
6204         (_hurd_ioctl_handler_lists): Define this set.
6205         (_hurd_lookup_ioctl_handler): New function.
6206         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
6207         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
6208         (_hurd_lookup_ioctl_handler): Declare it.
6209         (ioctl_handler_t): New typedef.  Use it throughout.
6210         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
6211         (_hurd_ioctl_handler_lists): Don't define.
6212         (__ioctl): Call _hurd_lookup_ioctl_handler.
6213
6214         * stdlib/strtol.c (maxquad): Make this const.
6215         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
6216
6217         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
6218         any compile tests.
6219
6220         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
6221         __msg_sig_post_request, not __sig_post_request.
6222
6223         * misc/getusersh.c: Renamed to getusershell.c.
6224         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
6225         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
6226         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
6227         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
6228
6229 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6230
6231         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
6232         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
6233         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
6234         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
6235         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
6236         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
6237         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
6238         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
6239         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
6240         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
6241         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
6242         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
6243         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
6244         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
6245         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
6246         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
6247         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
6248         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
6249         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
6250         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
6251         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
6252         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
6253         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
6254         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
6255         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
6256         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
6257         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
6258         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
6259         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
6260         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
6261
6262         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
6263         of __sig_post.
6264         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
6265         * sysdeps/mach/hurd/kill.c: Likewise.
6266         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
6267
6268         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
6269         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
6270
6271         * sysdeps/stub/remove.c: New file.
6272         * sysdeps/posix/remove.c: New file.
6273
6274 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6275
6276         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
6277         mktime.
6278         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
6279         __mig_strncpy.
6280         * mach/msg-destroy.c: Renamed from __msg_dest.c.
6281         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
6282         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
6283         * time/tzset.c (tzname, daylight, timezone): Define as weak
6284         aliases for __ names.
6285         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
6286         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
6287         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
6288         being defined.
6289
6290 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6291
6292         * string/Makefile (routines): Remove __ names, index, rindex, and
6293         bcmp.
6294         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
6295         alias for strchr.
6296         * sysdeps/generic/strchr.c: Likewise.
6297         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
6298         alias for strrchr.
6299         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
6300         alias for memcmp.
6301
6302         * malloc/free.c (cfree): Define this function, with weak_alias if
6303         available, otherwise a C function.
6304         * malloc/Makefile (gmalloc-routines): Remove cfree.
6305
6306 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6307
6308         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
6309         get_limit.  This has the effect of no-op'ing properly for zero.
6310
6311         * configure.in: Add AC_CONFIG_HEADER(config.h).
6312         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
6313         * config.h.in: New file.
6314
6315         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
6316         All code converted to use weak symbols, defined in the files which
6317         define the real code (with the __ names, the non-__ names are weak).
6318         All old symbol alias files removed.
6319         Many files renamed to remove __ prefix since there is now just
6320         the one file for both the __ and non-__ name for each function.
6321         * libc-symbols.h: New file.
6322         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
6323         sets.
6324         * gnu-stabs.h: Prepend #error this file is obsolete.
6325         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
6326         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
6327         access.
6328         * sysdeps/unix/common/__access.S: Likewise.
6329         * sysdeps/mach/hurd/__access.c: Likewise.
6330         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
6331         adjtime.
6332         * sysdeps/unix/common/__adjtime.S: Likewise.
6333         * sysdeps/mach/__adjtime.c: Likewise.
6334         * sysdeps/mach/hurd/__adjtime.c: Likewise.
6335         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
6336         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
6337         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
6338         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
6339         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
6340         * sysdeps/unix/i386/__brk.S: Likewise.
6341         * sysdeps/unix/sparc/__brk.S: Likewise.
6342         * sysdeps/unix/mips/__brk.S: Likewise.
6343         * sysdeps/mach/hurd/__brk.c: Likewise.
6344         * sysdeps/standalone/__brk.c: Likewise.
6345         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
6346         * sysdeps/unix/__chdir.S: Likewise.
6347         * sysdeps/mach/hurd/__chdir.c: Likewise.
6348         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
6349         * sysdeps/unix/__chmod.S: Likewise.
6350         * sysdeps/mach/hurd/__chmod.c: Likewise.
6351         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
6352         * sysdeps/unix/__chown.S: Likewise.
6353         * sysdeps/mach/hurd/__chown.c: Likewise.
6354         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
6355         * sysdeps/unix/__close.S: Likewise.
6356         * sysdeps/mach/hurd/__close.c: Likewise.
6357         * sysdeps/standalone/__close.c: Likewise.
6358         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
6359         alias copysign.
6360         * sysdeps/ieee754/__copysign.c: Likewise.
6361         * sysdeps/alpha/__copysign.c: Likewise.
6362         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
6363         * sysdeps/m68k/fpu/__drem.c: Likewise.
6364         * sysdeps/stub/__drem.c: Likewise.
6365         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
6366         * sysdeps/stub/__dup.c: Likewise.
6367         * sysdeps/unix/__dup.S: Likewise.
6368         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
6369         * sysdeps/stub/__dup2.c: Likewise.
6370         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
6371         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
6372         * sysdeps/unix/common/__dup2.S: Likewise.
6373         * sysdeps/mach/hurd/__dup2.c: Likewise.
6374         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
6375         execve.
6376         * sysdeps/unix/__execve.S: Likewise.
6377         * sysdeps/mach/hurd/__execve.c: Likewise.
6378         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
6379         expm1.
6380         * sysdeps/m68k/fpu/__expm1.c: Likewise.
6381         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
6382         fchmod.
6383         * sysdeps/unix/common/__fchmod.S: Likewise.
6384         * sysdeps/mach/hurd/__fchmod.c: Likewise.
6385         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
6386         fchown.
6387         * sysdeps/unix/common/__fchown.S: Likewise.
6388         * sysdeps/mach/hurd/__fchown.c: Likewise.
6389         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
6390         * sysdeps/unix/__fcntl.S: Likewise.
6391         * sysdeps/mach/hurd/__fcntl.c: Likewise.
6392         * math/__finite.c: Renamed to finite.c; added weak alias finite.
6393         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
6394         * sysdeps/stub/__flock.c: Likewise.
6395         * sysdeps/unix/bsd/__flock.S: Likewise.
6396         * sysdeps/mach/hurd/__flock.c: Likewise.
6397         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
6398         fopenport.
6399         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
6400         * sysdeps/unix/__fork.S: Likewise.
6401         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
6402         * sysdeps/unix/i386/__fork.S: Likewise.
6403         * sysdeps/unix/sparc/__fork.S: Likewise.
6404         * sysdeps/unix/mips/__fork.S: Likewise.
6405         * sysdeps/mach/hurd/__fork.c: Likewise.
6406         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
6407         alias fpathconf.
6408         * sysdeps/stub/__fpathcon.c: Likewise.
6409         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
6410         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
6411         * sysdeps/unix/__fstat.S: Likewise.
6412         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
6413         * sysdeps/mach/hurd/__fstat.c: Likewise.
6414         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
6415         getdelim.
6416         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
6417         alias getdents.
6418         * sysdeps/unix/__getdents.c: Likewise.
6419         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
6420         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
6421         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
6422         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
6423         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
6424         * sysdeps/unix/sysv/__getdents.c: Likewise.
6425         * sysdeps/mach/hurd/__getdents.c: Likewise.
6426         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
6427         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
6428         alias getdtablesize.
6429         * sysdeps/stub/__getdtsz.c: Likewise.
6430         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
6431         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
6432         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
6433         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
6434         getegid.
6435         * sysdeps/unix/__getegid.S: Likewise.
6436         * sysdeps/mach/hurd/__getegid.c: Likewise.
6437         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
6438         geteuid.
6439         * sysdeps/unix/__geteuid.S: Likewise.
6440         * sysdeps/mach/hurd/__geteuid.c: Likewise.
6441         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
6442         getgid.
6443         * sysdeps/unix/__getgid.S: Likewise.
6444         * sysdeps/mach/hurd/__getgid.c: Likewise.
6445         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
6446         alias getgroups.
6447         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
6448         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
6449         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
6450         * sysdeps/unix/common/__getgrps.S: Likewise.
6451         * sysdeps/mach/hurd/__getgrps.c: Likewise.
6452         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
6453         alias gethostname.
6454         * sysdeps/unix/inet/__gethstnm.S: Likewise.
6455         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
6456         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
6457         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
6458         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
6459         alias getitimer.
6460         * sysdeps/unix/common/__getitmr.S: Likewise.
6461         * sysdeps/mach/hurd/__getitmr.c: Likewise.
6462         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
6463         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
6464         alias getpagesize.
6465         * sysdeps/stub/__getpgsz.c: Likewise.
6466         * sysdeps/unix/__getpgsz.c: Likewise.
6467         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
6468         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
6469         * sysdeps/mach/__getpgsz.c: Likewise.
6470         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
6471         getpid.
6472         * sysdeps/unix/__getpid.S: Likewise.
6473         * sysdeps/mach/hurd/__getpid.c: Likewise.
6474         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
6475         getppid.
6476         * sysdeps/unix/__getppid.S: Likewise.
6477         * sysdeps/mach/hurd/__getppid.c: Likewise.
6478         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
6479         alias gettimeofday.
6480         * sysdeps/stub/__gettod.c: Likewise.
6481         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
6482         * sysdeps/unix/common/__gettod.S: Likewise.
6483         * sysdeps/mach/__gettod.c: Likewise.
6484         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
6485         getuid.
6486         * sysdeps/unix/__getuid.S: Likewise.
6487         * sysdeps/mach/hurd/__getuid.c: Likewise.
6488         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
6489         alias infnan.
6490         * sysdeps/ieee754/__infnan.c: Likewise.
6491         * sysdeps/vax/__infnan.c: Likewise.
6492         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
6493         * sysdeps/unix/__ioctl.S: Likewise.
6494         * sysdeps/mach/hurd/__ioctl.c: Likewise.
6495         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
6496         isatty.
6497         * sysdeps/stub/__isatty.c: Likewise.
6498         * sysdeps/unix/bsd/__isatty.c: Likewise.
6499         * sysdeps/mach/hurd/__isatty.c: Likewise.
6500         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
6501         isinf.
6502         * sysdeps/m68k/fpu/__isinf.c: Likewise.
6503         * sysdeps/stub/__isinf.c: Likewise.
6504         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
6505         isnan.
6506         * sysdeps/ieee754/__isnan.c: Likewise.
6507         * sysdeps/m68k/fpu/__isnan.c: Likewise.
6508         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
6509         * sysdeps/unix/__kill.S: Likewise.
6510         * sysdeps/mach/hurd/__kill.c: Likewise.
6511         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
6512         * sysdeps/unix/__link.S: Likewise.
6513         * sysdeps/mach/hurd/__link.c: Likewise.
6514         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
6515         * sysdeps/m68k/fpu/__logb.c: Likewise.
6516         * sysdeps/stub/__logb.c: Likewise.
6517         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
6518         * sysdeps/unix/__lseek.S: Likewise.
6519         * sysdeps/mach/hurd/__lseek.c: Likewise.
6520         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
6521         lstat.
6522         * sysdeps/stub/__lstat.c: Likewise.
6523         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
6524         * sysdeps/unix/common/__lstat.S: Likewise.
6525         * sysdeps/mach/hurd/__lstat.c: Likewise.
6526         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
6527         alias memccpy.
6528         * sysdeps/vax/__memccpy.c: Likewise.
6529         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
6530         * sysdeps/unix/sysv/__mkdir.c: Likewise.
6531         * sysdeps/unix/common/__mkdir.S: Likewise.
6532         * sysdeps/mach/hurd/__mkdir.c: Likewise.
6533         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
6534         * sysdeps/unix/__mknod.S: Likewise.
6535         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
6536         * sysdeps/mach/hurd/__mknod.c: Likewise.
6537         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
6538         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
6539         mach_msg_server.
6540         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
6541         * sysdeps/unix/__open.S: Likewise.
6542         * sysdeps/mach/hurd/__open.c: Likewise.
6543         * sysdeps/standalone/__open.c: Likewise.
6544         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
6545         alias pathconf.
6546         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
6547         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
6548         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
6549         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
6550         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
6551         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
6552         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
6553         * sysdeps/unix/i386/__pipe.S: Likewise.
6554         * sysdeps/unix/sparc/__pipe.S: Likewise.
6555         * sysdeps/unix/mips/__pipe.S: Likewise.
6556         * sysdeps/mach/hurd/__pipe.c: Likewise.
6557         * stdlib/__random.c: Renamed to random.c; added weak alias random.
6558         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
6559         * sysdeps/unix/__read.S: Likewise.
6560         * sysdeps/mach/hurd/__read.c: Likewise.
6561         * sysdeps/standalone/__read.c: Likewise.
6562         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
6563         alias readlink.
6564         * sysdeps/unix/common/__readlink.S: Likewise.
6565         * sysdeps/mach/hurd/__readlink.c: Likewise.
6566         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
6567         * sysdeps/m68k/fpu/__rint.c: Likewise.
6568         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
6569         * sysdeps/unix/sysv/__rmdir.c: Likewise.
6570         * sysdeps/unix/common/__rmdir.S: Likewise.
6571         * sysdeps/mach/hurd/__rmdir.c: Likewise.
6572         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
6573         * sysdeps/stub/__sbrk.c: Likewise.
6574         * sysdeps/mach/hurd/__sbrk.c: Likewise.
6575         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
6576         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
6577         select.
6578         * sysdeps/unix/common/__select.S: Likewise.
6579         * sysdeps/mach/hurd/__select.c: Likewise.
6580         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
6581         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
6582         setgid.
6583         * sysdeps/unix/__setgid.S: Likewise.
6584         * sysdeps/unix/bsd/__setgid.c: Likewise.
6585         * sysdeps/mach/hurd/__setgid.c: Likewise.
6586         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
6587         setitmr
6588         * sysdeps/unix/common/__setitmr.S: Likewise.
6589         * sysdeps/mach/hurd/__setitmr.c: Likewise.
6590         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
6591         setpgrp
6592         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
6593         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
6594         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
6595         * sysdeps/unix/common/__setpgrp.S: Likewise.
6596         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
6597         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
6598         alias setregid.
6599         * sysdeps/unix/common/__setregid.S: Likewise.
6600         * sysdeps/mach/hurd/__setregid.c: Likewise.
6601         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
6602         alias setreuid.
6603         * sysdeps/unix/common/__setreuid.S: Likewise.
6604         * sysdeps/mach/hurd/__setreuid.c: Likewise.
6605         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
6606         setsid.
6607         * sysdeps/unix/bsd/__setsid.c: Likewise.
6608         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
6609         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
6610         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
6611         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
6612         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
6613         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
6614         * sysdeps/mach/hurd/__setsid.c: Likewise.
6615         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
6616         settimeofday.
6617         * sysdeps/unix/bsd/__settod.S: Likewise.
6618         * sysdeps/unix/sysv/__settod.c: Likewise.
6619         * sysdeps/mach/hurd/__settod.c: Likewise.
6620         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
6621         setuid.
6622         * sysdeps/unix/__setuid.S: Likewise.
6623         * sysdeps/unix/bsd/__setuid.c: Likewise.
6624         * sysdeps/mach/hurd/__setuid.c: Likewise.
6625         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
6626         alias sigblock.
6627         * sysdeps/stub/__sigblock.c: Likewise.
6628         * sysdeps/unix/bsd/__sigblock.S: Likewise.
6629         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
6630         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
6631         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
6632         alias sigpause.
6633         * sysdeps/stub/__sigpause.c: Likewise.
6634         * sysdeps/unix/bsd/__sigpause.S: Likewise.
6635         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
6636         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
6637         alias sigprocmask.
6638         * sysdeps/unix/bsd/__sigproc.c: Likewise.
6639         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
6640         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
6641         * sysdeps/mach/hurd/__sigproc.c: Likewise.
6642         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
6643         alias sigreturn.
6644         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
6645         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
6646         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
6647         * sysdeps/unix/i386/__sigret.S: Likewise.
6648         * sysdeps/unix/mips/__sigret.S: Likewise.
6649         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
6650         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
6651         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
6652         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
6653         sigvec.
6654         * sysdeps/stub/__sigvec.c: Likewise.
6655         * sysdeps/unix/bsd/__sigvec.S: Likewise.
6656         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
6657         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
6658         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
6659         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
6660         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
6661         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
6662         * sysdeps/unix/__stat.S: Likewise.
6663         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
6664         * sysdeps/mach/hurd/__stat.c: Likewise.
6665         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
6666         alias stpncpy.
6667         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
6668         symlink.
6669         * sysdeps/unix/common/__symlink.S: Likewise.
6670         * sysdeps/mach/hurd/__symlink.c: Likewise.
6671         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
6672         alias sysconf.
6673         * sysdeps/stub/__sysconf.c: Likewise.
6674         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
6675         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
6676         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
6677         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
6678         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
6679         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
6680         * sysdeps/unix/bsd/__times.c: Likewise.
6681         * sysdeps/unix/sysv/__times.S: Likewise.
6682         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
6683         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
6684         * sysdeps/unix/__umask.S: Likewise.
6685         * sysdeps/mach/hurd/__umask.c: Likewise.
6686         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
6687         unlink.
6688         * sysdeps/unix/__unlink.S: Likewise.
6689         * sysdeps/mach/hurd/__unlink.c: Likewise.
6690         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
6691         utimes.
6692         * sysdeps/unix/bsd/__utimes.S: Likewise.
6693         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
6694         * sysdeps/mach/hurd/__utimes.c: Likewise.
6695         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
6696         vfork.
6697         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
6698         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
6699         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
6700         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
6701         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
6702         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
6703         * sysdeps/unix/sparc/__vfork.S: Likewise.
6704         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
6705         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
6706         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
6707         * sysdeps/stub/__wait.c: Likewise.
6708         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
6709         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
6710         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
6711         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
6712         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
6713         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
6714         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
6715         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
6716         * sysdeps/unix/i386/__wait.S: Likewise.
6717         * sysdeps/unix/mips/__wait.S: Likewise.
6718         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
6719         * sysdeps/stub/__wait3.c: Likewise.
6720         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
6721         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
6722         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
6723         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
6724         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
6725         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
6726         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
6727         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
6728         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
6729         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
6730         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
6731         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
6732         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
6733         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
6734         * sysdeps/mach/hurd/__wait4.c: Likewise.
6735         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
6736         waitpid.
6737         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
6738         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
6739         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
6740         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
6741         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
6742         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
6743         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
6744         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
6745         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
6746         * sysdeps/unix/__write.S: Likewise.
6747         * sysdeps/mach/hurd/__write.c: Likewise.
6748         * sysdeps/standalone/__write.c: Likewise.
6749         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
6750         alias tcgetattr.
6751         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
6752         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
6753         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
6754         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
6755         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
6756         alias sigaction.
6757         * sysdeps/unix/bsd/__sigact.c: Likewise.
6758         * sysdeps/unix/sysv/__sigact.c: Likewise.
6759         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
6760         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
6761         * sysdeps/mach/hurd/__sigact.c: Likewise.
6762         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
6763         alias sigsetmask.
6764         * sysdeps/stub/__sigstmsk.c: Likewise.
6765         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
6766         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
6767         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
6768         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
6769         alias getrusage.
6770         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
6771         * sysdeps/unix/common/__getrusag.S: Likewise.
6772         * hurd/task2pid.c: File removed.
6773         * hurd/setauth.c: File removed.
6774         * hurd/pid2task.c: File removed.
6775         * hurd/hurdsyms.c: File removed.
6776         * hurd/getdport.c: File removed.
6777         * hurd/fopenport.c: File removed.
6778         * mach/thread-sym.c: File removed.
6779         * mach/spin-syms.c: File removed.
6780         * mach/msgserver_t.c: File removed.
6781         * mach/msgserver.c: File removed.
6782         * mach/msg.c: File removed.
6783         * mach/mig_syms.c: File removed.
6784         * malloc/mcheck-init.c: File removed.
6785         * malloc/cfree.c: File removed.
6786         * io/flock.c: File removed.
6787         * io/write.c: File removed.
6788         * io/unlink.c: File removed.
6789         * io/umask.c: File removed.
6790         * io/symlink.c: File removed.
6791         * io/rmdir.c: File removed.
6792         * io/readlink.c: File removed.
6793         * io/read.c: File removed.
6794         * io/pipe.c: File removed.
6795         * io/open.c: File removed.
6796         * io/mkdir.c: File removed.
6797         * io/lstat.c: File removed.
6798         * io/lseek.c: File removed.
6799         * io/link.c: File removed.
6800         * io/isatty.c: File removed.
6801         * io/stat.c: File removed.
6802         * io/fstat.c: File removed.
6803         * io/fchown.c: File removed.
6804         * io/fchmod.c: File removed.
6805         * io/dup2.c: File removed.
6806         * io/dup.c: File removed.
6807         * io/close.c: File removed.
6808         * io/fcntl.c: File removed.
6809         * io/chmod.c: File removed.
6810         * io/chdir.c: File removed.
6811         * io/access.c: File removed.
6812         * io/chown.c: File removed.
6813         * time/tzset.c: File removed.
6814         * time/timelocal.c: File removed.
6815         * time/syms-time.c: File removed.
6816         * time/settod.c: File removed.
6817         * time/setitmr.c: File removed.
6818         * time/gettod.c: File removed.
6819         * time/getitmr.c: File removed.
6820         * time/adjtime.c: File removed.
6821         * termios/tcgetattr.c: File removed.
6822         * string/stpncpy.c: File removed.
6823         * string/rindex.c: File removed.
6824         * string/memccpy.c: File removed.
6825         * string/index.c: File removed.
6826         * string/bcmp.c: File removed.
6827         * stdlib/srand.c: File removed.
6828         * stdlib/random.c: File removed.
6829         * stdio/vsscanf.c: File removed.
6830         * stdio/vfscanf.c: File removed.
6831         * stdio/syms-stdio.c: File removed.
6832         * stdio/remove.c: File removed.
6833         * stdio/getline.c: File removed.
6834         * stdio/getdelim.c: File removed.
6835         * signal/ssignal.c: File removed.
6836         * signal/sigvec.c: File removed.
6837         * signal/sigsetmask.c: File removed.
6838         * signal/sigret.c: File removed.
6839         * signal/sigproc.c: File removed.
6840         * signal/sigpause.c: File removed.
6841         * signal/sigblock.c: File removed.
6842         * signal/sigaction.c: File removed.
6843         * signal/kill.c: File removed.
6844         * signal/gsignal.c: File removed.
6845         * setjmp/siglongjmp.c: File removed.
6846         * setjmp/_longjmp.c: File removed.
6847         * resource/getrusage.c: File removed.
6848         * posix/waitpid.c: File removed.
6849         * posix/wait4.c: File removed.
6850         * posix/wait3.c: File removed.
6851         * posix/wait.c: File removed.
6852         * posix/times.c: File removed.
6853         * posix/sysconf.c: File removed.
6854         * posix/setuid.c: File removed.
6855         * posix/setsid.c: File removed.
6856         * posix/setpgrp.c: File removed.
6857         * posix/setpgid.c: File removed.
6858         * posix/setgid.c: File removed.
6859         * posix/pathconf.c: File removed.
6860         * posix/getuid.c: File removed.
6861         * posix/getppid.c: File removed.
6862         * posix/getpid.c: File removed.
6863         * posix/getgrps.c: File removed.
6864         * posix/getgid.c: File removed.
6865         * posix/geteuid.c: File removed.
6866         * posix/getegid.c: File removed.
6867         * posix/fpathcon.c: File removed.
6868         * posix/fork.c: File removed.
6869         * posix/execve.c: File removed.
6870         * posix/environ.c: File removed.
6871         * misc/utimes.c: File removed.
6872         * misc/setreuid.c: File removed.
6873         * misc/setregid.c: File removed.
6874         * misc/select.c: File removed.
6875         * misc/sbrk.c: File removed.
6876         * misc/mknod.c: File removed.
6877         * misc/ioctl.c: File removed.
6878         * misc/getpgsz.c: File removed.
6879         * misc/gethstnm.c: File removed.
6880         * misc/getdtsz.c: File removed.
6881         * misc/data_start.c: File removed.
6882         * misc/brk.c: File removed.
6883         * math/scalb.c: File removed.
6884         * math/rint.c: File removed.
6885         * math/logb.c: File removed.
6886         * math/isnan.c: File removed.
6887         * math/isinf.c: File removed.
6888         * math/infnan.c: File removed.
6889         * math/finite.c: File removed.
6890         * math/expm1.c: File removed.
6891         * math/drem.c: File removed.
6892         * math/copysign.c: File removed.
6893         * math/__scalb.c: File removed.
6894         * dirent/getdents.c: File removed.
6895
6896 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6897
6898         * sysdeps/generic/morecore.c (__default_morecore): Use
6899         __malloc_ptrdiff_t; don't cast arg to int.
6900
6901         * resolv/getnetnamadr.c: Include "conf/portability.h".
6902
6903 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6904
6905         * stdlib/strtol.c: Include errno.h.
6906         [QUAD] (ULONG_MAX): Define to a static variable initialized to
6907         ULONG_LONG_MAX. This is to work around a GCC bug in using the
6908         constant in arithmetic.
6909
6910         * posix/unistd.h (daemon): Declare it.
6911
6912         * malloc/mcheck-init.c: Remove GNU ld hacks.
6913         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
6914         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
6915         (initialize): Call the hook if set.
6916         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
6917         (__malloc_initialize_hook): Declare new hook variable.
6918
6919 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6920
6921         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
6922         * hurd/hurdpid.c: Likewise.
6923         * hurd/hurdauth.c: Likewise.
6924
6925 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6926
6927         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
6928         if any are successful.
6929
6930         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
6931         (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
6932         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
6933         functions.
6934         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
6935
6936         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
6937         * hurd/hurd-raise.c: Likewise.
6938         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
6939
6940         * sysdeps/mach/hurd/ptrace.c: New file.
6941
6942         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
6943         interface, which has normal EINTR semantics.  Instead of waiting
6944         for io_select_done notification messages, send io_select messages
6945         with short reply timeout and then wait for io_select_reply
6946         messages.
6947
6948         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
6949         EXEC_INHERITED) to file_exec.
6950
6951         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
6952         use sig_post_untraced_reply.  All callers changed.
6953         (abort_thread, abort_rpcs): Take same new arg and pass it through.
6954         All callers changed.
6955         (_hurd_internal_post_signal): Take new arg UNTRACED.
6956         If zero and process is traced, stop with SIGNO as stop signal.  If
6957         nonzero, resume process before delivering signal (unless
6958         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
6959         SIGNO!=0.
6960         (signal_allowed): New function, broken out of _S_sig_post.
6961         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
6962         _hurd_internal_post_signal.
6963         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
6964         pass true for UNTRACED.
6965         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
6966         UNTRACED.
6967         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
6968         to _hurd_internal_post_signal (value zero).
6969
6970 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6971
6972         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
6973         (_hurd_init): Initialize it from FLAGS arg.
6974         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
6975         raise a SIGTRAP signal (with a sigcode of zero).
6976         * hurd/hurd.h (_hurd_exec_flags): Declare it.
6977
6978         * Version 1.09.5.
6979
6980 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
6981
6982         * malloc/malloc.c (malloc): Fix 1-off in previous change.
6983
6984 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6985
6986         * posix/glob/Makefile.in: Remove config.h and config.log.
6987
6988 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6989
6990         * posix/glob/configure.in: Add AC_CONST check.
6991
6992         * conf/portability.h: #undef sun.
6993         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
6994         * resolv/getnetnamadr.c: Likewise.
6995
6996         * socket/Makefile (headers): Add sockaddrcom.h.
6997         * inet/netinet/in.h: Include <sockaddrcom.h>.
6998         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
6999         * socket/sys/un.h (struct sockaddr_in): Likewise.
7000         * socket/sys/socket.h (struct sockaddr): Likewise.
7001         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
7002         * sysdeps/generic/sockaddrcom.h: New file.
7003
7004         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
7005         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
7006         F_FREESP): New macros.
7007         * sysdeps/posix/truncate.c: New file.
7008
7009         * malloc/malloc.c (malloc): Fix typos in RMS's change.
7010
7011         * malloc/Makefile (dist-routines): Add malloc-find.
7012         * malloc/malloc.h (malloc_find_object_address): Declare it.
7013         * malloc/malloc-find.c: New file.
7014
7015         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
7016         __malloc_size_t.
7017         (malloc_info): Use that type for member `busy.info.size'.
7018
7019         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
7020         `LONG' macro.
7021         [! QUAD] (LONG): Define as long.
7022         [QUAD] (LONG): Define as long long.
7023         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
7024         versions.
7025         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
7026         * stdlib/Makefile (routines): Add strtoq and strtouq.
7027         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
7028         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
7029         Declare them.
7030
7031         * stdio/vfprintf.c: If there was a precision specified, ignore the
7032         0 flag and always pad with spaces.
7033
7034         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
7035         Use a loop and also stop on first !isascii char.
7036
7037 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
7038
7039         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
7040
7041         * malloc/malloc.c (malloc): For a multi-block object, store a
7042         negative number into the busy.info.size of all but the first block.
7043
7044 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
7045
7046         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
7047         instead of t0, t1, and t2.
7048
7049 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7050
7051         * malloc/memalign.c (__memalign_hook): New variable.
7052         (memalign): Call it if set.
7053         * malloc/malloc.h (__memalign_hook): Declare new variable.
7054
7055 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7056
7057         * conf/portability.h: Include string.h and stdlib.h.
7058         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
7059         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
7060         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
7061         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
7062         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
7063
7064         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
7065         all uses of `extern __inline' with `__m81_inline'.
7066
7067         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
7068         * sysdeps/unix/__fork.S: Swap args in subl.
7069
7070         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
7071         compatibility.
7072
7073 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
7074
7075         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
7076         of swtch.
7077         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
7078         * mach/spin-solid.c (__spin_lock_solid): Likewise.
7079
7080 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7081
7082         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
7083         for PBUF.
7084         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
7085
7086         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
7087
7088 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7089
7090         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
7091         in `bis' insn; immediate must be second.
7092
7093         * sysdeps/unix/__fork.S: Use subl instead of decl.
7094         * sysdeps/unix/i386/__fork.S: New file.
7095
7096         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
7097         Remove A macro; just use `asm volatile' with proper quotes in each
7098         line.
7099         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
7100         jmp target register.
7101
7102         * time/africa, time/asia, time/australasia, time/emkdir.c,
7103         time/europe, time/ialloc.c, time/northamerica, time/private.h,
7104         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
7105         and data from ADO 94h distribution.
7106
7107         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
7108         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
7109         absolute pointer.  Put second store in jmp delay slot.
7110
7111 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7112
7113         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
7114         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
7115         absolute pointer.
7116         * sysdeps/sparc/bsd-setjmp.S: Likewise.
7117
7118         * configure.in: Use ; before } in { ... } exprs.
7119
7120 \f
7121
7122 See ChangeLog.4 for earlier changes.