* time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
[glibc.git] / ChangeLog
blobc85d42797063f8356d7314a73dc239455c9d139a
1 Wed Jun  5 15:57:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3         * time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
4         time/africa, time/asia, time/australasia, time/europe,
5         time/northamerica, time/southamerica: Updated from ADO 96h.
7         * Make-dist (all-headers): Filter $(sysdep_headers) out of $(headers).
8         (try-sysdeps, +sysdep-names): Check sysdeps/libm-ieee754 too.
10         * Makerules (distinfo-vars): Add sysdep_headers.
11         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Append to
12         this instead of $(headers).
13         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
15         * Make-dist [subdirs-dirs]: Don't prefix $(subdir-dirs) with
16         $(subdir); we are already there.
18         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: Removed.
20         * mach/Machrules: Undo last change.
21         (mach-generated): List .uh and .__h files only for $(user-interfaces),
22         not for each .h in $(interface-headers); server-interfaces have no .uh
23         or .__h files.
25 Wed Jun  5 15:42:51 1996  Miles Bader  <miles@gnu.ai.mit.edu>
27         * mach/Machrules (%_server.uh, %_server.__h): New rules, so that the
28         corrsponding .defs file with without the `_server' will be used.
30         * mach/Makefile (mach/mach_interface.defs): Renamed from
31         mach_interface.defs.
32         (mach/memory_object_user.defs): New variable.
34 Wed Jun  5 15:10:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
36         * Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
38         * locale/Makefile (subdir-dirs): New variable.
40 Wed Jun  5 00:01:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
42         * Makerules (distinfo-vars): Add sysdep_routines.
44         * mach/Machrules (include-%.defs): New canned sequence.
45         Change all uses of `#include <$*.defs>' in cmds to use it.
46         * mach/Makefile (mach_interface.defs): New variable, set to mach.defs.
48         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle RESOLVE being
49         null in all cases but R_386_COPY.
50         (elf_machine_rel):
52 Wed Jun  5 00:01:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
54         * sysdeps/unix/bsd/ultrix4/mips/Dist: Updated.
55         * sysdeps/unix/bsd/ultrix4/Dist: Removed.
56         * sysdeps/unix/sysv/sysv4/Dist: Updated.
57         * sysdeps/unix/sysv/sco3.2.4/Dist: Removed.
58         * sysdeps/unix/sysv/irix4/Dist: Updated.
59         * sysdeps/unix/sysv/linux/i386/Dist: Removed.
60         * sysdeps/unix/sysv/Dist: Updated.
61         * sysdeps/unix/bsd/sun/sunos4/Dist: Removed.
62         * sysdeps/unix/bsd/sony/newsos4/Dist: Removed.
63         * sysdeps/gnu/Dist: New file.
64         * sysdeps/alpha/Dist: Updated.
65         * sysdeps/mach/hurd/Dist: Updated.
67         * Make-dist [subdir-dirs]: Set a vpath for %.c.
69         * Make-dist (README): Fix typo in cvs cmd.
71         * elf/dl-lookup.c (_dl_lookup_symbol): Fix typos in last change.
72         Comment out ref to nonexistent _dl_close.
74 Tue Jun  4 21:01:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
76         * math/Makefile (libm-support, libm-calls): New variables.
77         (libm-routines): Construct this from those.
78         (calls): New variable.
79         (routines): Construct this from it.
81         * resolv/res_debug.c: Add missing #include <ctype.h>.
83         * sysdeps/unix/getlogin.c: Must pass struct utmp ptr to getutline_r.
84         * sysdeps/unix/getlogin_r.c: Likewise.
86         * sysdeps/libm-ieee754/w_hypotl.c: Fix typo.
88         * sysdeps/libm-ieee754/w_cabsl.c: __cabsl_complex -> __cabs_complexl
90         * math/Makefile (long-m-routines): Define recursive variable as
91         $(long-m-$(long-double-fcts)).
92         (long-m-yes): Put list of routines here.
93         (long-c-routines, long-c-yes): Likewise.
95         * sysdeps/unix/sysv/linux/schedbits.h: File removed.
97         * sysdeps/i386/Makefile (long-double-fcts): New variable, set to yes.
98         * sysdeps/m68k/Makefile: Likewise.
100         * math/Makefile [$(long-double-fcts)!=yes] (CPPFLAGS): Append
101         -DNO_LONG_DOUBLE.
103         * sysdeps/mach/hurd/getlogin_r.c: New file.
105 Wed Jun  5 02:11:30 1996  Ulrich Drepper  <drepper@cygnus.com>
107         * io/Makefile (routines): Add ttyname_r.
109         * resolv/res_debug.c, resolv/resolv.h: Update from bind-4.3.4-T4A.
111         * sysdeps/libm-i387/e_asinl.S, sysdeps/libm-i387/e_atan2l.S,
112         sysdeps/libm-i387/e_expl.S, sysdeps/libm-i387/e_fmodl.S,
113         sysdeps/libm-i387/e_log10l.S, sysdeps/libm-i387/e_logl.S,
114         sysdeps/libm-i387/e_remainderl.S, sysdeps/libm-i387/e_scalbl.S,
115         sysdeps/libm-i387/e_sqrtl.S, sysdeps/libm-i387/s_atanl.S,
116         sysdeps/libm-i387/s_cosl.S, sysdeps/libm-i387/s_ilogbl.S,
117         sysdeps/libm-i387/s_log1pl.S, sysdeps/libm-i387/s_logbl.S,
118         sysdeps/libm-i387/s_scalbnl.S, sysdeps/libm-i387/s_sinl.S,
119         sysdeps/libm-i387/s_tanl.S: New files.  i387 assembler versions
120         of `long double' math functions.
122         * sysdeps/libm-ieee754/k_standard.c: Add handling for errors
123         in long double functions.
125         * sysdeps/libm-ieee754/s_ilogbl.c, sysdeps/libm-ieee754/s_logbl.c,
126         sysdeps/libm-ieee754/s_modfl.c:  New files.  Generic versions
127         of `long double' math functions.
129         * sysdeps/libm-ieee754/s_isinf.c [NO_LONG_DOUBLE]: Add string
130         alias for __isinfl.
132         * sysdeps/libm-ieee754/w_acoshl.c, sysdeps/libm-ieee754/w_acosl.c,
133         sysdeps/libm-ieee754/w_asinl.c, sysdeps/libm-ieee754/w_atan2l.c,
134         sysdeps/libm-ieee754/w_atanhl.c, sysdeps/libm-ieee754/w_cabsl.c,
135         sysdeps/libm-ieee754/w_coshl.c, sysdeps/libm-ieee754/w_dreml.c,
136         sysdeps/libm-ieee754/w_expl.c, sysdeps/libm-ieee754/w_fmodl.c,
137         sysdeps/libm-ieee754/w_gammal.c, sysdeps/libm-ieee754/w_gammal_r.c,
138         sysdeps/libm-ieee754/w_hypotl.c, sysdeps/libm-ieee754/w_j0l.c,
139         sysdeps/libm-ieee754/w_j1l.c, sysdeps/libm-ieee754/w_jnl.c,
140         sysdeps/libm-ieee754/w_lgammal.c, sysdeps/libm-ieee754/w_lgammal_r.c,
141         sysdeps/libm-ieee754/w_log10l.c, sysdeps/libm-ieee754/w_logl.c,
142         sysdeps/libm-ieee754/w_powl.c, sysdeps/libm-ieee754/w_remainderl.c,
143         sysdeps/libm-ieee754/w_scalbl.c, sysdeps/libm-ieee754/w_sinhl.c,
144         sysdeps/libm-ieee754/w_sqrtl.c: New files.  Wrapper functions
145         around long double function implementations.
147         * sysdeps/posix/ttyname_r.c (ttyname_r): Use _D_EXACT_NAMLEN
148         to determine length of directory entry name.
150         * posix/Makefile (routines): Add getlogin_r.
151         * posix/unistd.h: Add prototype for getlogin_r.
152         * sysdeps/stub/getlogin_r.c: New file.  Reentrant version of
153         getlogin function, specified in P1003.1c/D6.  Stub version.
154         * sysdeps/unix/getlogin.c (getlogin): Use ttyname_r instead of
155         ttyname.  This avoids saving and restoring the old content.
156         Also use setutent_r, getutline_r and endutent_r instead of
157         accing UTMP file directly.
158         * sysdeps/unix/getlogin_r.c: New file.  Reentrant version of
159         getlogin function, specified in P1003.1c/D6.
161 Tue Jun  4 20:10:09 1996  J.T. Conklin  <jtc@cygnus.com>
163         * sysdeps/libm-i387/s_finitef.S: Fix mask for exponent.
165 Tue Jun  4 18:57:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
167         * elf/dl-lookup.c (_dl_lookup_symbol): Grok magical undefined symbols
168         _GNU_libc_dl_{open,close,symbol} and resolve them to dl functions.
170         * elf/rtld.c (rtld_map): Renamed to _dl_rtld_map, made global.
171         * elf/link.h: Declare _dl_rtld_map.
173         * elf/dl-lookup.c (_dl_symbol_value): New function.
174         * elf/link.h: Declare it.
176         * elf/dladdr.c: Remove #include <setjmp.h>, we don't use it.
178         * shlib-versions: Set libdl=2.
180         * elf/dl-deps.c (_dl_map_object_deps): Use a linked list of alloca'd
181         elements and then scan it to fill the single malloc'd array, instead
182         of using realloc to grow the array in the first pass.  _dl_map_object
183         may do some mallocs that break our stream of reallocs, and the minimal
184         realloc can't handle that.
186         * elf/dl-init.c (_dl_init_next): Take argument, link_map whose
187         searchlist describes the piece of the DT_NEEDED graph to be
188         initialized.
189         * elf/link.h: Update prototype.
190         * sysdeps/i386/dl-machine.h (RTLD_START): Pass _dl_loaded as argument
191         to _dl_init_next.
192         * sysdeps/m68k/dl-machine.h: Likewise.
193         * elf/dl-deps.c (_dl_open): Pass new object as arg to _dl_init_next.
195         * elf/link.h (struct link_map): Add `l_reserved' member, soaking up
196         extra bits in last byte.
197         * elf/dl-deps.c (_dl_map_object_deps): Use that for mark bit to avoid
198         putting dup elts in search list.
200         * elf/dlclose.c: Use MAP->l_searchlist to find deps to close.
202         * elf/dlsym.c: Don't tweak linked list.  Scope array given to
203         _dl_lookup_symbol does the right thing.
205         * elf/Makefile (subdir_lib): Change this target to lib-noranlib.
206         (lib-noranlib): Depend on on $(extra-objs).
208         * errno.h: Move __END_DECLS out of #ifdef's so it matches
209         __BEGIN_DECLS.
211 Tue Jun  4 02:25:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
213         * stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as
214         macro.  _IO_size_t is just an alias for the real size_t anyway.
216         * elf/Makefile (libdl-routines): Add dladdr.
217         * elf/dladdr.c: New file.
218         * elf/dlfcn.h (Dl_info): New typedef.
219         (dladdr): Declare it.
221         * sysdeps/libm-i387/s_finite.S: Use `setne' instead of `setnel'.
223         * intl/l10nflist.c: Fix conditional on #include <argz.h>.
225         * libio/stdio.h (FOPEN_MAX, FILENAME_MAX, TMP_MAX, L_tmpnam): Macros
226         removed.  Instead, include <stdio_lim.h>.
228         * libio/_G_config.h: New file.
229         * libio/Makefile (headers): Add _G_config.h.
231         * MakeTAGS (po/errlist.pot): Extract from sysdeps/gnu/errlist.c.
233         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Define
234         this macro too; current Linux kernels test that instead of
235         _LINUX_TYPES_DONT_EXPORT.
237         * elf/linux-compat.c (_init): Pass reloc_addr arg to _dl_lookup_symbol.
239         * elf/dl-lookup.c (_dl_lookup_symbol): Use l_searchlist.
241         * elf/dl-deps.c: New file.
242         * elf/Makefile (rtld-routines): Add dl-deps.
243         * elf/link.h: Declare _dl_map_object_deps, _dl_open.
244         * elf/rtld.c (dl_main): Use _dl_map_object_deps.
245         * elf/dlopen.c: Use _dl_open.
247         * elf/rtld.c (dl_main): Remove BEFORE_RTLD variable and list
248         frobnication based on its value.  Detach RTLD_MAP from the chain if
249         its l_opencount is zero after loading deps.
251         * elf/dlfcn.h (RTLD_BINDING_MASK): New macro.
253         * elf/link.h (struct link_map): Replace l_deps_loaded flag member with
254         `struct link_map **l_searchlist' and `unsigned int l_nsearchlist'.
255         * elf/dl-lookup.c (_dl_lookup_symbol): Make SYMBOL_SCOPE arg an array
256         of two link_map ptrs.  Search the maps in the l_searchlist of each
257         elt that is not null.
258         * elf/dl-reloc.c (_dl_relocate_object): Pass proper SCOPE array.
259         * elf/dl-runtime.c: Likewise.
260         * elf/dlsym.c: Likewise.
261         * elf/rtld.c (dl_main): Likewise.
263         * elf/dl-minimal.c (realloc): Support realloc of the block most
264         recently returned by the minimal malloc.
266 Tue Jun  4 00:16:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
268         * sysdeps/gnu/errlist.awk: Produce N_("..."), not _N("...").
270         * intl: Updated from gettext-0.10.13.
271         * intl/localealias.c, intl/dcgettext.c [_LIBC]: Define HAVE_ALLOCA.
273         * signal/siggetmask.c: New file.  Wrapper around sigblock with
274         link_warning about obsolescence.
275         * signal/Makefile (routines): Add siggetmask.
277         * sysdeps/gnu/errlist.awk: New file, adapted from ...
278         * sysdeps/mach/hurd/errlist.awk: File removed, above file replaces it.
279         * sysdeps/mach/hurd/Makefile (errlist.c): Target removed.
280         * sysdeps/gnu/Makefile: New file.
281         (sysdeps/gnu/errlist.c): Make the errlist.c generation rule into this.
283 Mon Jun  3 21:03:54 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
285         * manual/errno.texi (Error Codes): Add placeholder items for missing
286         Linux/i386 errno codes, with perror text but no documentation.
287         Some existing perror texts changed.
289         * malloc/mcheck.c (freehook, reallochook): Handle null pointer args.
291         * hurd/hurdsig.c (_hurd_internal_post_signal): When setting ACT to
292         `ignore, resume the thread if SS_SUSPENDED, regardless of old action.
294 Sun Jun  2 20:14:30 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
296         * locale/programs/linereader.c (lr_open): Don't pass NULL to
297         xstrdup; fix memory leak.
298         (lr_close): Fix memory leak.
300 Mon Jun  3 15:58:22 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
302         * hurd/hurdsig.c (_hurd_internal_post_signal): When turning the action
303         for a HANDLE signal to IGNORE because the signal is blocked, clean
304         up any pending suspension left over from a call to resume.
306 Mon Jun  3 00:30:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
308         * elf/dl-lookup.c (_dl_lookup_symbol): Take new arg RELOC_ADDR and
309         don't allow a defn resolving to that address.
311         * elf/link.h: Update prototype and comment.
312         * elf/dl-runtime.c (fixup): Define local `resolve' function and pass
313         it to elf_machine_relplt.
314         * elf/dl-reloc.c (_dl_relocate_object: resolve): Take new arg
315         RELOC_ADDR and pass it through to _dl_lookup_symbol.
316         * elf/do-rel.h (elf_dynamic_do_rel): Pass RESOLVE to elf_machine_rel
317         instead of calling it ourselves and passing its results.
318         (elf_dynamic_do_rel): RESOLVE fn takes new arg RELOC_ADDR.
319         * elf/rtld.c (dl_main): Pass 0 for RELOC_ADDR to _dl_lookup_symbol.
320         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove SYM_LOADADDR
321         arg.  Add RESOLVE function ptr arg.  Call *RESOLVE as necessary.
322         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
323         * sysdeps/stub/dl-machine.h: Likewise.
325 Sun Jun  2 14:56:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
327         * csu/initfini.c (_fini): Add extern decl for i_am_not_a_leaf.
329         * elf/dlfcn.h (dl_open_mode): Enumerated type removed.
330         (RTLD_LAZY, RTLD_NOW): Define these as macros instead.
331         (RTLD_GLOBAL): New macro.
332         (dlopen): Take arg of type int instead of dl_open_mode.
333         * elf/dlopen.c: Likewise.
335         * math/math.h (_Mldbl): New macro, either produces L suffix or not.
336         (M_*): Use it for these constants.
338         * elf/dl-lookup.c (_dl_lookup_symbol): Arg NOSELF renamed to NOPLT.
339         Reject SHN_UNDEF defns iff NOPLT is nonzero.
340         * elf/link.h (_dl_lookup_symbol): Update prototype and comment.
341         * elf/dl-runtime.c (fixup): Pass 1 to _dl_lookup_symbol for NOPLT.
342         * elf/dlsym.c (dlsym): Pass 0.
343         * elf/rtld.c (dl_main): Likewise.
344         * elf/dl-reloc.c (_dl_relocate_object: resolve): Second arg R_OFFSET
345         replaced with NOPLT flag.  Pass it through to _dl_lookup_symbol.
346         * elf/do-rel.h (elf_dynamic_do_rel): Update prototype of RESOLVE arg.
347         Pass `elf_machine_pltrel_p (R->r_type)' result as NOPLT flag value.
348         * sysdeps/i386/dl-machine.h (elf_machine_pltrel_p): New macro.
349         * sysdeps/m68k/dl-machine.h (elf_machine_pltrel_p): Likewise.
350         * sysdeps/stub/dl-machine.h (elf_machine_pltrel_p): Likewise.
352         * login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca.
354         * sysdeps/generic/gnu/types.h (__clock_t): New type.
356 Wed May 29 00:57:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
358         * sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define
359         using kernel types.
360         * time/time.h (clock_t): Include <gnu/types.h> and define using
361         __clock_t.
363         * time/Makefile (tests): Add test-tz.
365         * time/test-tz.c: New test.
367         * time/clocktest.c: Rewrite to test more meaningfully.
369         * sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
370         create_module, delete_module, get_kernel_syms, init_module,
371         klogctl.
373         * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
374         instead of SYMLOOP_MAX, which is nowhere to be found.
376         * sysdeps/unix/sysv/linux/sys/msq_buf.h,
377         sysdeps/unix/sysv/linux/sys/sem_buf.h,
378         sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
379         control ops and datastructures.
381         * sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
382         I/O related functions.
384         * sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
385         daemon related functions/operations.
387         * sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
388         logging related functions/operations.
390         * sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
391         module related functions/operations.
393         * sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
394         for non-Alpha based Linux systems.
396         * sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
398         * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
399         sys/io.h, sys/klog.h, and sys/kdaemon.h.
401         * sysdeps/unix/sysdep.h (END): Define empty END macro for
402         platforms that don't need some sort of end directive at the
403         end of functions.
405         * sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
406         syscall wrapper to allow correct generation of debugging
407         information.
409         * sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
410         directive for both ELF and ECOFF.
411         (ret): Delete macro.  It was a dangerous macro and unnecessary
412         since the Alpha assemblers recognizes "ret" as a macro themselves.
414         * sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
415         ut_session to guarantee long alignment.  This is important for
416         Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
417         This will all get cleaned up as programs start to use ut_tv
418         instead ut_time.
420         * sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
422         * sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
423         _setjmp.
425         * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
426         sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
427         sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
428         sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
429         sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
430         sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
431         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
432         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
433         sysdeps/unix/sysv/linux/alpha/llseek.S,
434         sysdeps/unix/sysv/linux/alpha/pipe.S,
435         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
436         sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
437         .end directive.
439         * csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
440         function by having it contain a dummy function call.
442         * configure.in (config_machine): Don't make ELF the default for
443         Linux/Alpha just yet (use --with-elf instead).
444         (.init/.fini check): Generate .text to ensure function start and
445         end are in same section.
447         * sysdeps/unix/bsd/osf/alpha/brk.S,
448         sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
449         break value, not just the low 32 bits to accomodate large
450         memories.
452 Tue May 28 10:46:04 1996  Richard Henderson  <rth@tamu.edu>
454         * sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
455         dynamically resolve _end for initializing __curbrk, support the
456         brk(0) query idiom.
458         * sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
460         * sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
462 Sun May 26 22:17:38 1996  Richard Henderson  <rth@tamu.edu>
464         * stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
465         stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
467 Thu May 23 02:15:56 1996  David Mosberger-Tang  <davidm@azstarnet.com>
469         * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
470         sys/klog.h, and sys/kdaemon.h.
472         * sysdeps/unix/sysv/linux/sys/io.h: New file.
473         * sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
474         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
476         * sysdeps/unix/alpha/sysdep.h (ret): Remove macro.  It is
477         dangerous and unnecessary since both OSF/1 as and gas define "ret"
478         as a pseudo-instruction.
480 Sat Jun  1 17:18:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
482         * time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
483         them.  Bug found by David Mosberger-Tang.
485         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
486         of PTR.
488         * extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
489         to work around Make bug when A contains var ref.
491 Fri May 31 18:27:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
493         * string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
495         * sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
496         strong names and [gs]etpgid as weak aliases.
498 Thu May 30 11:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
500         * math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
502         * po/header.pot: Replace with exact boilerplate pinard dictates.
504         * sysdeps/i386/strtok.S (Lillegal_argument): Remove this code to set
505         errno and the check that jumped to it.
507         * sysdeps/mach/hurd/Makefile (errnos.d): Use $(sed-remove-objpfx).
509 Thu May 30 03:21:57 1996  Ulrich Drepper  <drepper@cygnus.com>
511         * FAQ: Document need of gperf program for developers.
513         * elf/elf.h: Fix typos in comments.
515         * libio/stdio.h [!__STRICT_ANSI__ || _POSIX_SOURCE]: Add
516         prototypes for `ctermid' and `cuserid'.
518         * locale/programs/locale.c: Switch to user selected locale
519         before printing variables.
521         * math/Makefile [$(long-double-fcts)==yes]: Define long-m-routines
522         and long-c-routines.  Only if the `long double' data type is
523         available we need to compile the functions.
524         (libm-routines): Add $(long-m-routines).
525         (routines): Remove isinfl, isnanl.  Use new file s_isinfl and
526         s_isnanl instead if `long double' is available.
528         * math/math.h: Include <mathcalls.h> again to define `long double'
529         functions.
531         * math/math_private.h: Define data types, prototypes and access
532         macros for `long double'.
534         * stdlib/stdlib.h: Add prototypes for `strtoll' and `strtoull'.
535         [GCC2 && OPTIMIZE]: Define strto{,u}ll as inline function which
536         calls __strto{,u}q_internal.
538         * stdlib/strfmon.c: Replace PTR by `void *'.
540         * stdlib/strtoq.c: Define strtoll as weak alias.
541         * stdlib/strtouq.c: Define strtoull as weak alias.
543         * string/tester.c: Correct `strsep' test.
545         * sysdeps/generic/strsep.c: Make compatible with BSD version.
546         Trailing characters of skip set are not skipped.  In this case
547         empty tokens are returned.
549         * sysdeps/i386/isinfl.c, sysdeps/i386/isnanl.c,
550         sysdeps/ieee754/isinf.c, sysdeps/ieee754/isinfl.c,
551         sysdeps/ieee754/isnan.c, sysdeps/ieee754/isnanl.c: Removed.  We
552         now use the versions part of libm.
554         * sysdeps/i386/strsep.S: Removed.  Generic C version is of
555         similar speed.
556         * sysdeps/i386/strtok.S: Remove support for `strsep'.
558         * sysdeps/libm-i387/e_acosl.S, sysdeps/libm-i387/s_ceill.S,
559         sysdeps/libm-i387/s_copysignl.S, sysdeps/libm-i387/s_finitel.S,
560         sysdeps/libm-i387/s_floorl.S, sysdeps/libm-i387/s_isinfl.c,
561         sysdeps/libm-i387/s_isnanl.c, sysdeps/libm-i387/s_nextafterl.c,
562         sysdeps/libm-i387/s_rintl.S, sysdeps/libm-i387/s_significandl.S:
563         New i387 specific math functions implementing `long double'
564         versions.
566         * sysdeps/libm-ieee754/s_ceill.c,
567         sysdeps/libm-ieee754/s_copysignl.c,
568         sysdeps/libm-ieee754/s_fabsl.c, sysdeps/libm-ieee754/s_finitel.c,
569         sysdeps/libm-ieee754/s_floorl.c, sysdeps/libm-ieee754/s_isinfl.c,
570         sysdeps/libm-ieee754/s_isnanl.c,
571         sysdeps/libm-ieee754/s_nextafterl.c,
572         sysdeps/libm-ieee754/s_rintl.c, sysdeps/libm-ieee754/s_scalbnl.c,
573         sysdeps/libm-ieee754/s_significandl.c: New generic `long double'
574         versions of libm functions.
576         * sysdeps/libm-i387/e_exp.S: Add a few comments to explain the
577         Intel FPU nonsense.
579         * sysdeps/libm-i387/s_ceil.S, sysdeps/libm-i387/s_ceilf.S,
580         sysdeps/libm-i387/s_floor.S, sysdeps/libm-i387/s_floorf.S: Correct
581         handling of local variables.  The old version created a stack
582         frame but stored the values outside.
584         * sysdeps/libm-ieee754/s_isinf.c, sysdeps/libm-ieee754/s_isnan.c
585         [!NO_LONG_DOUBLE]: Define alias with `long double' versions name.
587 Wed May 29 12:53:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
589         * login/pututline_r.c: Include sys/stat.h.  Fix typos.
591         * version.h (VERSION): Set to 1.90.
593         * Makerules (distinfo-vars): Write extra-libs and *-routines for each
594         of its elts.
595         * MakeTAGS (sources): Add those sources.
597         * MakeTAGS (all-sources): Add $(others:=.c) and $(tests:=.c).
599 Wed May 29 08:53:08 1996  Miles Bader  <miles@gnu.ai.mit.edu>
601         * hurd/report-wait.c (_S_msg_report_wait): Return `itimer' for the
602         itimer thread.
604         * hurd/hurdinit.c (_hurd_init): Set _HURDSIG_TRACED before calling
605         _hurd_proc_init.
607 Wed May 29 00:52:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
609         * string/tester.c (main): Fix strsep tests 6, 7, 20 to expect null
610         token instead of it being implicitly skipped.
612         * sysdeps/i386/fpu/__math.h (logb): Correct contraint from =u to =t.
613         Must operate on top of fp reg stack, not second from top.
615         * extra-lib.mk (alltypes-$(lib)): Don't append $(objpfx)$(lib).so.
616         (others): Instead, make this depend on it.
618 Tue May 28 04:38:10 1996  Ulrich Drepper  <drepper@cygnus.com>
620         * limits.h: Change MB_LEN_MAX to 6.  A 31-bit ISO 10646
621         character in UTF-8 encoding has that many bytes.
623         * locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
624         * locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
625         * locale/Makefile (routines): Add mb_cur_max.
626         * locale/mb_cur_max.c: New file.  This function gets called
627         when the macro MB_CUR_MAX is used.
628         * locale/C-ctype.c: Initialize new mb_cur_max field.
629         * locale/localeinfo.h: Change magic value because of incompatible
630         change.
631         * locale/programs/ld-ctype.c: Determine value of mb_cur_max
632         according to current character set and write it out with the rest.
633         * stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore.  Get value
634         according to currently used locale for category LC_CTYPE by
635         calling the function __ctype_get_mb_cur_max.
637 Tue May 28 03:27:46 1996  Ulrich Drepper  <drepper@cygnus.com>
639         * FAQ:  Fix some typos.
640         Tell that for Linux the kernel header files are necessary.
642         * PROJECTS: New file.  List of open jobs for glibc.
643         * Makefile (distribute): Add PROJECTS.
645         * crypt/GNUmakefile (headers): New variable.  Mention crypt.h.
646         * crypt/crypt.h: Header for crypt functions.
648         * elf/elf.h: Add some new constants from recent Cygnus ELF
649         header files.
651         * login/getutid_r.c: Test for correct type.
652         Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
653         _HAVE_UT_ID resp. are defined.
654         Make really compliant with specification.
656         * login/getutline_r.c, login/pututline_r.c: Don't depend on
657         ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
658         defined.
659         Make really compliant with specification.
661         * login/setutent_r.c: Don't depend on ut_type and ut_id unless
662         _HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
664         * login/login.c, login/logout.c, login/logwtmp.c: Complete
665         rewrite.  Now based on getut*/setut* functions.
667         * stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
668         This prevented using this file in other GNU packages.
670         * sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
671         and _HAVE_UT_TV because struct utmp has these members.
673         * sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
675         * utmp.h: New file.  Wrapper around login/utmp.h.
677 Tue May 28 13:11:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
679         * elf/dl-error.c (struct catch): New type.
680         (catch): New static variable, struct catch *.
681         (catch_env, signalled_errstring, signalled_objname): Variables removed.
682         (_dl_signal_error): If CATCH is non-null, set its errstring and
683         objname members and jump to CATCH->env.  If it is null, call
684         _dl_sysdep_fatal with a standard message.
685         * elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
686         No longer use _dl_catch_error.
688         * Makerules (sed-remove-objpfx): Avoid extra space in regexp due to
689         continuation line.
691         * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in
692         setting %ecx to 2nd syscall arg: we have pushed nothing, so function
693         args are found at 4(%esp), not 8(%esp).
695 Mon May 27 10:10:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
697         * Makefile ($(includedir)/stubs.h): Add missing backslash.
699         * sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
700         can be aliased.
702         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
703         Append termio.h.
705         * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.
707         * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
708         defined.
710         * sysdeps/unix/sysv/linux/termio.h: New file.
711         * sysdeps/unix/sysv/linux/Dist: Add it.
713         * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
714         kernel header <asm/termios.h>.
716         * misc/Makefile (headers): Add ioctl-types.h.
717         * sysdeps/generic/ioctl-types.h: New file.
718         * misc/sys/ioctl.h: Include <ioctl-types.h>.
719         (struct tchars, struct ltchars, struct sgttyb, struct winsize,
720         struct ttysize): Types moved there.
722         * Makefile ($(includedir)/stubs.h): Don't touch target if new one is
723         identical.
725         * time/Makefile (z.% rule): Generate generic zone%/ rule after
726         zone%/right/ and zone%/posix/ rules so they match first.
728 Sun May 26 15:15:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
730         * features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
731         _POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
733         * time/Makefile (tzcompile): Add missing backslash.
735         * stdlib/ldiv.c: Deansideclized.
737         * wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
738         [! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
739         stddef.h doesn't define it.
740         * wcsmbs/wchar.h: Likewise.
741         * stdlib/strtod.c: Likewise.
743         * wcsmbs/wcstok.c: Fix argument name typo.
745 Sun May 26 19:39:53 1996  Ulrich Drepper  <drepper@cygnus.com>
747         * intl/loadmsgcat.c (_nl_load_domain): Test correct variable
748         after malloc.
750         * string/Makefile (tester-ENV): New variable to suppress message
751         translation in test.
753         * string/tester.c: Add tests for strtok_r and strsep.
755         * sysdeps/i386/i486/strcat.S: Correct some more 8bit operation
756         <-> 32 bit operand conflicts.
758         * sysdeps/i386/strsep.S: Wrapper around <sysdeps/i386/strtok.S>
759         to produce strsep function.
760         * sysdeps/i386/strtok.S: Optimized implementation of strtok
761         function.
762         * sysdeps/i386/strtok_r.S: Wrapper around <sysdeps/i386/strtok.S>
763         to produce strtok_r function.
765         * sysdeps/generic/strtok.c: Moved here from string/strtok.c.
766         Corrected example in comment.
768         * string/Makefile (routines): Add strtok_r.
769         * sysdeps/generic/strtok_r.c: New file.  Implement reentrant version
770         of strtok_r.
771         * string/string.h: Add prototype for strtok_r.
772         * wcsmbs/wcstok.c: Handle illegal SAVE_PTR argument the same
773         as in strtok_r.
775 Sun May 26 13:28:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
777         * time/tzset.c (__tzset): Ignore leading : in $TZ; always try tzfile
778         first and fall back to 1003.1 syntax only if it fails.
780         * time/Makefile (install-others): Also install posix/ZONE and
781         right/ZONE for each ZONE in $(zonenames).
782         (z.% rule): Generate rules for right/ZONE and posix/ZONE targets too,
783         the difference begin leapseconds vs /dev/null as 3rd dep.  For
784         original ZONE targets use $(leapseconds), to be set in Makeconfig.
785         (target-zone-flavor): New variable.
786         (tzcompile): Use it to get the right -d for posix/ and right/ flavors.
787         * Makeconfig (leapseconds): New variable.
789         * mach/Machrules (%.udeps rule): Depend on Machrules.
790         Emit deps for .uh and .__h files.
791         (%.uh, %.__h rules): Don't depend on %.defs; use #include <$*.defs>
792         instead.
794 Sun May 26 01:06:47 1996  Ulrich Drepper  <drepper@cygnus.com>
796         * stdlib/Makefile (routines): Add llabs, lldiv.
797         * stdlib/llabs.c: New file.  Implementation of return
798         absolute value of long long argument.
799         * stdlib/lldiv.c: New file.  Implementation of division with remainder
800         of long long argument.
801         * stdlib/stdlib.h [__USE_GNU] (lldiv_t): New type for lldiv
802         function.
803         Define prototypes for lldiv and llabs functions.
805         * locale/C-collate.c: Initialize _NL_COLLATE_NRULES element.
807         * stdlib/strtod.c: Replace wchar_t with wint_t.  The later is
808         really the type for a single wide character.
810         * string/strxfrm.c (print_val): Define separate version for
811         use as wcsxfrm.  Here we don't need UTF8 encoding.
813         * wcsmbs/wchar.h:  gcc-2.7.2-960517 finally introduces wint_t
814         in <stddef.h>.  Use this value and only for older gcc version
815         define in place.
816         (uwchar_t): Remove definition.
818         * wcsmbs/wcscmp.c, wcsmbs/wcscoll.c, wcsmbs/wcsncmp.c,
819         wcsmbs/wcsxfrm.c, wcsmbs/wmemcmp.c: : Don't use uwchar_t as unsigned
820         type.  wint_t is intended for this.
822 Sat May 25 14:10:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
824         * sysdeps/unix/bsd/direntry.h: Use [1] instead of [0] for d_name to
825         quiet -ansi -pedantic.
826         * sysdeps/unix/common/direntry.h: Likewise.
828         * login/Makefile (headers): Add lastlog.h.
829         * login/lastlog.h: New file.
831         * login/Makefile (CFLAGS): Don't append -D_THREAD_SAFE.
832         * login/utmp.h [_REENTRANT || _THREAD_SAFE]: Replace this conditional
833         with #ifdef __USE_REENTRANT.
835         * features.h (__GNU_LIBRARY__): Set to 6.
836         [_GNU_SOURCE] (_POSIX_SOURCE, _POSIX_C_SOURCE, _BSD_SOURCE,
837         _SVID_SOURCE): Make sure they are all defined.
839         * sysdeps/unix/sysv/linux/gnu/types.h: Instead of including
840         <linux/posix_types.h>, define _LINUX_TYPES_DONT_EXPORT and then
841         include <linux/types.h>.
843         * resource/sys/resource.h: Remove trailing commas from enums.
845 Fri May 24 17:30:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
847         * sysdeps/generic/netinet/in.h: Remove trailing commas from enums.
848         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
850         * login/getutline_r.c: Include string.h.
852         * Rules (static-only-routines): Restore the rule to make these .so's
853         empty objects.
855         * login/pututline_r.c: Use struct assignment instead of memcpy.
857         * login/getutline_r.c: Use strncmp instead of comparing two pointers
858         that will only be equal if you are overwriting the data and screwing
859         yourself anyway.
861 Fri May 24 02:31:36 1996  Ulrich Drepper  <drepper@cygnus.com>
863         * sysdeps/unix/sysv/linux/speed.c: Add new speed value 460800.
865 Thu May 23 23:09:33 1996  Ulrich Drepper  <drepper@cygnus.com>
867         * FAQ: Add answer for 100% source code compatibility to Linux
868         libc by David Mosberger-Tang.
870         Update from bind-4.3.4-T3B.
871         * inet/arpa/inet.h: Add prototypes for inet_pton, inet_ntop,
872         inet_nsap_addr, and inet_nsap_ntoa.
873         * resolv/gethnamaddr.c: Correct compatibility problems (sprintf),
874         remove fourth argument to inet_pton and correct handling of
875         host_addr passing.
876         * resolv/inet_ntop.c: Correct compatibility problems (sprintf).
877         * resolv/inet_pton.c: Remove fourth argument.
878         * resolv/resolv.h: Remove prototypes for inet_nsap_addr and
879         inet_nsap_ntoa.  Now in <arpa/inet.h>.
881         * stdlib/gmp-impl.h: Add prototypes for internal functions.
883 Thu May 23 22:49:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
885         * Rules (subdir_install): Remove dep on sor-$(subdir).
886         (static-only-routines): Removed variable and associated rules.
888 Wed May 22 00:40:50 1996  David Mosberger-Tang  <davidm@azstarnet.com>
890         * sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
891         460800 baud.
893         * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
895         * sysdeps/unix/sysv/linux/alpha/Makefile (headers): Add
896         alpha/ptrace.h.
897         * sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
899         * sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
900         scalbnf.
902         * sysdeps/generic/sigset.h (__sigismember, __sigaddset,
903         __sigdelset): Add declaration to keep ANSI compilers quiet.
905         * sysdeps/alpha/__math.h (cabs): Remove underscores from struct
906         __cabs_complex member names in call to __hypot().
908         * sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
910         * sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
911         name collision with math library.
913         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
914         sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
915         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
916         of divrem.S.
918         * sysdeps/unix/alpha/sysdep.h: Include regdef.h.  Define LEAF macro
919         to simplify declaration of leaf functions.
921         * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
922         sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/ffs.S,
923         sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
924         sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
925         sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
926         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
927         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
928         sysdeps/unix/sysv/linux/alpha/pipe.S,
929         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
930         sysdeps/unix/sysv/linux/alpha/syscall.S,
931         sysdeps/unix/sysv/linux/alpha/start.S,
932         sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
933         sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
934         framesize declaration.  Replace "lda pv,sym/jsr pv" by "jsr sym".
936         * sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
937         define.
939         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
940         ptrace, and sysctl.
942         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
944         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
945         dynamic recognition of platform type.
946         (_bus_base): New function.
948         * sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
950         * sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
951         they produce ugly warnings by gcc.
953         * posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
955 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
957         * sysdeps/alpha/setjmp.S: Must establish global pointer before
958         address of __sigsetjmp_aux can be loaded.
960 Wed May 22 22:10:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
962         * stdlib/canonicalize.c: New file.
963         * stdlib/stdlib.h: Declare canonicalize_file_name, realpath.
964         * stdlib/Makefile (routines): Add canonicalize.
966         * posix/unistd.h: Declare __canonicalize_directory_name_internal.
968 Thu May 23 00:01:10 1996  Ulrich Drepper  <drepper@cygnus.com>
970         * db/recno/rec_seq.c: Prevent `sccsid' definition by using the
971         same #if condition as in the other db files.
973         * intl/Makefile: Add -Wno-unused CFLAGS for compilation of
974         bindtextdom.c, finddomain.c, and localealias.c.
976         * intl/dcgettext.c: Don't define prototype for getcwd() when
977         compiling in glibc.
979         * libio/cleanup.c: Add prototype for _IO_register_cleanup.
981         * libio/filedoalloc.c, libio/fileops.c, libio/iopopen.c: Don't
982         define _POSIX_SOURCE unconditionally.
984         * libio/filedoalloc.c, libio/iopopen.c: Include <unistd.h> if
985         compiling in glibc.
987         * libio/fileops.c (_IO_file_close_it): Don't sync file, call
988         flush instead.  This relaxes the rules from POSIX.1 about
989         changing the active handle a bit.
991         * libio/iofopncook.c (struct _IO_cookie_file): Move definition
992         into <libio.h>.
993         Add prototypes for local functions to prevent warnings.
995         * libio/iopopen.c: Change prototypes for _IO_fork, _IO_pipe, and
996         _IO_dup2 to contain complete parameter list.
998         * libio/libio.h: Add definition of struct _IO_cookie_file.
1000         * libio/libioP.h: Add prototypes for _IO_vasprintf, _IO_vdprintf,
1001         and _IO_vsnprintf.
1003         * libio/memstream.c: Include <stdio.h>.
1005         * libio/stdio.h: Add prototypes for fopencookie,
1006         __stdio_gen_tempname, __vfscanf, __vsscanf, and __vsnprintf.
1008         * libio/strops.c: Avoid useless expression in `for' initializer.
1010         * locale/findlocale.c: Add some casts to prevent warnings.
1012         * locale/programs/locfile.c (write_locale_data): Don't use
1013         double `/' in locale binary file.
1015         * posix/unistd.h: Remove prototype for `reboot'.
1017         Update from bind-4.9.4-T1A.
1018         * resolv/Makefile (routines): Add inet_ntop and inet_pton.
1019         * resolv/arpa/nameser.h: Add definition of IN6ADDRSZ.
1020         * resolv/gethnamaddr.c, resolv/getnetnamadr.c, resolv/res_comp.c,
1021         resolv/res_debug.c, resolv/res_init.c
1023         * resolv/inet_ntop.c, resolv/inet_pton.c: New files.
1025         * resolv/resolv.h: Add RES_USE_INET6 flag.
1026         (__dn_isvalid): Renamed to __res_dnok.
1027         Add prototypes for __res_ownok and __res_mailok.
1029         * stdio-common/Makefile: Add -Wno-unused to CFLAGS for _itoa.c.
1031         * stdio-common/getline.c, stdio-common/vfscanf.c,
1032         sysdeps/posix/tempname.c: Don't use <ansidecl.h> anymore.
1034         * sysdeps/unix/sysv/linux/Makefile [$subdir == misc]
1035         (sysdep_routines): Add s_reboot.
1036         (install-others): Add $(includedir)/sys/syscall.h.
1037         New rule for $(includedir)/sys/syscall.h to produce from
1038         <asm/unistd.h>.
1040         * sysdeps/unix/sysv/linux/reboot.c: New file.  Make single
1041         argument function call 3 argument system call.
1043         * sysdeps/unix/sysv/linux/sys/reboot.h: New file.  Linux specific
1044         definition for reboot function.
1046         * sysdeps/unix/sysv/linux/syscall.h: Remove old and obsolete
1047         comment.
1049         * sysdeps/unix/sysv/linux/syscalls.list: Rename function for
1050         reboot syscall to __syscall_reboot.
1052         * wcsmbs/wchar.h: Protect prototypes for wcstof and wcstold by
1053         __USE_GNU, not USE_GNU.
1055 Tue May 21 21:55:49 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
1057         * locale/programs/charset.c, locale/programs/ld-collate.c:
1058         Add casts to prevent warnings on 64-bit machines.
1060         * locale/programs/ld-monetary.c: Don't do unnecessary tests for
1061         int_frac_digits and frac_digits which only produce warnings.
1063 Mon May 13 23:45:29 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
1065         * inet/arpa/inet.h: Backup return type of inet_addr to u_long.
1066         * resolv/inet_addr.c: Likewise.
1068         * resolv/Makefile (distribute): Add res_hconf.h
1069         (routines): Add res_hconf.
1071         * resolv/gethnamaddr.c: Add support for /etc/host.conf.
1073         * resolv/res_init.c: Initialize /etc/host.conf reader.
1075         * resolv/res_hconf.c, resolv/res_hconf.h: New files.
1076         Implementation of reading /etc/host.conf.
1078 Wed May 22 21:21:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1080         * Rules (%.out rules): Prepend $($*-ENV) to the command.
1082         * sysdeps/unix/sysv/linux/i386/brk.c (___brk_addr): Define as weak
1083         alias for __curbrk.
1085 Wed May 22 19:37:27 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1087         * hurd/hurdexec.c (_hurd_exec): Pass INIT_TRACEMASK.
1088         * hurd/hurdmsg.c (set_int): Support INIT_TRACEMASK.
1090 Wed May 22 18:47:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1092         * sysdeps/mach/hurd/getcwd.c
1093         (_hurd_canonicalize_directory_name_internal): New function, broken out
1094         of __getcwd.
1095         (__getcwd): Use it.
1096         (__canonicalize_directory_name_internal): New function using it.
1098         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal): New
1099         function, broken out of __getcwd.
1100         (__getcwd): Use it.
1102 Wed May 22 18:14:05 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1104         * string/argz-create.c (__argz_create): Correctly calculate length.
1106         * string/argz-extract.c (__argz_extract): Add terminating 0 entry.
1107         * hurd/hurdstartup.c (_hurd_startup): ... and don't so here.
1109 Wed May 22 17:22:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1111         * posix/glob.c [VMS]: Don't include <pwd.h>.
1112         [HAVE_VMSDIR_H]: Include "vmsdir.h".
1113         (glob) [VMS]: Don't grok ~.
1115 Wed May 22 14:46:53 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1117         * hurd/hurdstartup.c (_hurd_startup): Terminate the vectors we get
1118         back from argz_extract.
1120 Wed May 22 13:56:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1122         * configure.in: Remove checks for objdump, objcopy, and awk.
1123         * config.make.in (OBJDUMP, OBJCOPY, AWK): Variables removed.
1124         * Makefile (distribute): Remove extract-dynsym.
1125         * extract-dynsym: File removed.
1127 Tue May 21 22:17:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1129         * termios/cfmakeraw.c: Set MIN to 1 and TIME to 0.
1131 Wed May 22 01:48:54 1996  Ulrich Drepper  <drepper@cygnus.com>
1133         * stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
1134         macros if they are not available.
1135         (WEAKNAME): New macro to declare argument as weak.
1136         Define function with __ prefix and add normal name as weak alias.
1138         * sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
1139         these macros if not already available based on R_OK, W_OK, and
1140         X_OK.
1142 Tue May 21 18:48:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1144         * misc/sys/syslog.h (__need___va_list): Define this instead of
1145         __need_va_list before including <stdarg.h>.
1147         * Makerules (o-iterator): Use $(object-suffixes-left) instead
1148         of $(object-suffixes) to produce repetitions; this is used for other
1149         lists than just that one.
1150         [versioned]: Use $(o-iterator) properly.
1152         * sysdeps/unix/sysv/linux/Implies: Include `gnu'.
1153         * sysdeps/mach/hurd/Implies: Likewise.
1155 Sat May 18 02:57:46 1996  Ulrich Drepper  <drepper@cygnus.com>
1157         * login/Makefile: New file.  This directory contains functions
1158         for user administration.
1159         * Makefile (subdirs): Add login.
1161         * misc/Makefile (headers): Remove utmp.h.  Now in login/utmp.h.
1162         (extra-libs, libutil-routines): Ditto.
1163         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
1164         misc/utmp.h: Moved to misc/.
1165         * login/login.c, login/login_tty.c, login/logout.c,
1166         login/logwtmp.c, login/utmp.h: Moved to here from misc/.
1168         * login/utmp.h: Split file.  Definitions of data structures
1169         and constants are now in the system dependent utmpbits.h file.
1171         * login/setutent_r.c, login/setutent.c, login/endutent_r.c,
1172         login/endutent.c, login/getutent_r.c, login/getutent.c,
1173         login/getutid_r.c, login/getutid.c, login/getutline_r.c,
1174         login/getutline.c, login/pututline_r.c, login/pututline.c:
1175         New files.  Routines to handle utmp-style files.
1177         * sysdeps/gnu/utmpbits.h: New file.  Contains GNU/Linux
1178         specific definitions of utmp data structures and constants.
1180         * sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
1182         * sysdeps/generic/utmpbits.h: New file.  Generic (BSDish) version of
1183         definitions of utmp data structures and constants.
1185 Fri May 17 00:01:31 1996  Ulrich Drepper  <drepper@cygnus.com>
1187         * locale/C-monetary.c: Default value for mon_decimal_point should be
1188         '.'.
1190         * stdio-common/printf.h: Remove Linux libc compatibility stuff.
1191         Add `extra' flag.  Currently used in __printf_fp.
1193         * stdio-common/printf_fp.c (__guess_grouping): Renamed from
1194         `guess_grouping' and extend visibility to extern.  This function
1195         is now used in `strfmon'.
1196         (__printf_fp): Recognize new bit flag in info struct.  This
1197         triggers to use the grouping information and decimal point from
1198         the LC_MONETARY category instead of the LC_NUMERIC category.
1200         * stdio-common/vfprintf.c (process_arg): Correct major bug.  In
1201         `complicated' loop we must not use the varargs because the args
1202         are already available in the ARGS_VALUE array.
1204         * stdlib/Makefile (headers): Add monetary.h.
1205         (routines): Add strfmon.
1206         * stdlib/monetary.h: New file.  Header for strfmon function.
1207         * stdlib/strfmon.c: New file.  Implement strfmon function to print
1208         monetary amounts according to current locale's rules.
1210         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
1211         now (>= Linux-1.3.100) called <asm/vm86.h>.
1213 Thu May 16 00:31:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1215         * Makerules [versioned]: Make symlinks in the build directory, because
1216         the versioned names might be referenced by a DT_NEEDED in another
1217         library.
1219 Wed May 15 18:59:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1221         * manual/examples/longopt.c: Include stdlib.h and getopt.h.
1223 Tue May 14 03:36:21 1996  Ulrich Drepper  <drepper@cygnus.com>
1225         * sysdeps/unix/sysv/linux/Makefile [$subdir == misc] (headers):
1226         Add sys/acct.h and sys/sysctl.h.
1228 Tue May 14 19:42:04 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1230         * sysdeps/generic/strrchr.c: Deansideclized.
1232         * elf/Makefile (ldd): Depend on Makefile.
1233         Find ld.so in $(slibdir) instead of $(libdir).
1235         * sysdeps/i386/strrchr.S: Use `testl $3, %esi' instead of `testb $3,
1236         %esi'; gas misassembles the latter into `testb $3, %dh'.
1238         * mach/Machrules (%.udeps rule): Do $(make-target-directory) first.
1240 Tue May 14 16:38:44 1996  David Mosberger-Tang <davidm@AZStarNet.com>
1242         * sunrpc/getrpcent.c (interpret): Declare args.  Rewrite parsing using
1243         strpbrk.
1245 Tue May 14 20:18:38 1996  Ulrich Drepper  <drepper@cygnus.com>
1247         * time/Makefile (routines): Add strptime.
1248         * time/time.h: Add prototype for strptime.
1249         * time/strptime.c: New file.  Implementation according to XPG4.
1251 Tue May 14 14:07:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1253         * libc-symbols.h (lint): Macro removed.  The sunrpc code does some
1254         really stupid things #ifdef lint.
1256         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Fix
1257         struct member name: sc_eip -> eip.
1259 Mon May 13 19:52:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1261         * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
1262         output redirect outside it.
1264         * elf/Makefile (subdir_lib): Depend on ld.so.
1266 Sun May 12 22:52:22 1996  Bruce Elliott  <belliott@accessone.com>
1268         * stdio-common/vfprintf.c: Correct handling of unsigned short
1269         values.
1271 Mon May 13 12:03:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1273         * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
1274         $(common-objpfx).
1275         * Makerules [install-lib.a]: Find them there.
1277         * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
1279         * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
1281         * posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.
1283         * configure.in (--with-fp): Note in help string that it's the default.
1285         * locale/programs/ld-ctype.c (struct locale_ctype_t): Use u_int32_t
1286         instead of unsigned int for map_collection_max and map_collection_act.
1288         * stdio-common/vfprintf.c [USE_IN_LIBIO] (flockfile, funlockfile):
1289         Macros removed; they are in <stdio.h>.
1290         * stdio-common/vfscanf.c: Likewise.
1292         * posix/glob.c [_AMIGA]: Don't include <pwd.h>.
1293         (glob): Remove bogus & in call to globfree.
1294         [_AMIGA]: Use AmigaDOS file name conventions.
1296         * time/Makefile (zonenames): Target removed.
1297         (extra-objs): Remove it from here.
1298         Include the z.* files directly instead of including zonenames; use
1299         `-include' to not complain before they exist.
1301         * sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
1302         $(common-objpfx) instead of $(objpfx).
1304         * sysdeps/unix/bsd/telldir.c (seekdir, telldir): Use new struct member
1305         names without __.
1307         * Makerules [install-lib-non.a]: Find these things with $(objpfx)
1308         instead of $(common-objpfx).
1310         * Makeconfig (sysdep-configures): New variable.
1311         (config.status): Depend on $(sysdep-configures).
1313 Fri May 10 20:07:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1315         * sysdeps/unix/sysv/linux/profil.c: New file.
1317 Fri May 10 19:59:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1319         * sysdeps/m68k/Makefile (CFLAGS-setjmp.c): New variable.
1321 Fri May 10 19:55:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1323         * shlib-versions: Use libm=6 and libc=6 for m68k-linux.
1325 Sun May 12 11:16:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1327         * string/envz.c: Fix uses of unsigned to size_t.
1329         * Makerules ($(libdir)/libc.so): Make the file an ld script.
1331         * sysdeps/mach/hurd/configure.in: Don't grok --with-hurd option.
1333         * sysdeps/mach/configure.in: File removed.
1334         * sysdeps/mach/configure: File removed.
1336         * mach/Machrules (%.udeps rule): Write deps for %_server.[ch] too.
1337         (%_server.[ch] rule): Don't depend on %.defs; use #include to get
1338         installed .defs file.
1340         * stdio-common/vfprintf.c (flockfile, funlockfile): Define to
1341         nothing for stdio.  Fix fUNlockfile -> funlockfile for libio.
1342         * stdio-common/vfscanf.c: Likewise.
1344 Sat May 11 13:43:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1346         * hurd/hurdfault.c: Include faultexc_server.h instead of faultexc.h.
1348         * mach/Machrules (%.ir rule): Don't produce deps for imports.
1350         * elf/dl-fini.c (_dl_fini): Clear L->l_init_called after calling fn.
1352         * Makerules (install): Depend on $(slibdir)/libc.so$(libc.so-version).
1353         [!subdir] ($(libdir)/libc.so, $(common-objpfx)/libc-syms.so): Protect
1354         these targets and install dep on $(libdir)/libc.so with this.
1356         * hurd/Makefile: Removed all rules and defns for using code from Hurd
1357         sources and installing headers from there.
1359         * sysdeps/mach/hurd/errnos.awk: Set in_mach_errors to FILENAME when we
1360         set it.  In Mach error matching clause, only match if FILENAME is
1361         still the same value.
1363         * sysdeps/mach/hurd/Makefile: Don't include sysdeps/mach/Makefile;
1364         $(mach-srcdir) no longer exists.
1365         (hurd-srcdir): Variable removed.
1366         (includes): Don't append -I$(hurd-srcdir).
1367         (last-includes): Variable removed.
1368         Remove vpath specs using $(hurd-srcdir).
1369         (mach-errno-h): New canned sequence.
1370         ($(common-objpfx)errnos.d): New target, generated included makefile
1371         to determine absolute file names of Mach headers to search for error
1372         codes and set variable mach-errnos-deps.
1373         ($(common-objpfx)stamp-errnos): Depend on $(mach-errnos-deps) instead
1374         of prior explicit list.
1375         (generated): Add errnos.d, stamp-errnos.
1377         * mach/Machrules (some-if-rtn): New variable and target; compute deps
1378         of some if routine and make all if routines depend on that .d file
1379         instead of static list of .h files.
1381         * mach/Makefile (mach/mach_interface.defs,
1382         mach/memory_object_user.defs): Targets removed.
1383         ($(objpfx)mach-syscalls.mk): Tweak this kludge so it doesn't depend
1384         directly on Mach sources.
1386         * sysdeps/mach/Makefile (mach-srcdir): Variable removed.
1387         (includes): Don't append -I$(mach-srcdir).
1388         Remove vpath specs using $(mach-srcdir).
1390         * hurd/Makefile (server-interfaces): Add faultexc.
1391         (sig): Remove it from here.
1392         (fault%.[ch]): Rule removed.
1393         (MIGFLAGS-faultexc): New variable.
1395         * hurd/faultexc.defs: New file.
1397         * mach/Machrules (%.ustamp rule): Pass $(MIGFLAGS-$*) to mig.
1398         (%_server.[ch] rule): Likewise.
1400         * mach/Makefile: Removed all rules and defns for using code from Mach
1401         sources and installing headers from there.
1403         * Makeconfig [$(build-shared)=yes] (link-libc): Append
1404         $(libc.so-version) to libc.so.
1406 Fri May 10 18:36:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1408         * mach/Machrules (%.ustamp rule): Don't depend on %.defs.
1409         (%.udeps): New rule parallel to that one, generating included
1410         makefiles with -M output from `#include <%.defs>'.
1412         * Makerules (sed-remove-objpfx): Remove space before \ at eol.
1414         * Makefile (distribute): Add FAQ.
1415         * FAQ: New file contributed by drepper.
1417         * time/Makefile (headers): Add timebits.h.
1418         * sysdeps/unix/sysv/linux/timebits.h: New file.
1419         * sysdeps/stub/timebits.h: New file.
1420         * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
1421         (CLOCKS_PER_SEC): Remove this macro.  Instead #include <timebits.h>.
1423 Fri May 10 16:22:44 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
1425         * string/argz-create.c (__argz_create): Restore const keyword to
1426         ARGV parm.
1427         * string/argz.h (__argz_create, argz_create): Restore const
1428         keyword.
1429         * string/envz.c (envz_get): Don't declare ENTRY const.
1431 Fri May 10 11:48:03 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1433         * string/argz.h (argz_create): Fix param type.
1434         * string/argz-create.c (__argz_create): Remove const from param type.
1435         * string/envz.c (envz_get): Remove const from return type.
1437 Fri May 10 09:41:54 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
1439         * string/argz.h (__argz_create, argz_create): Omit const keyword
1440         from declaration of ARGV.
1441         * string/envz.h (envz_get): Omit const from declaration of return
1442         type.
1444 Thu May  9 09:17:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1446         * aclocal.m4 (AC_FD_MSG, AC_FD_CC): Fix these for autoconf weirdness.
1448         Cleanups in sunrpc code from NIIBE Yutaka <gniibe@mri.co.jp>.
1449         * sunrpc/clnt_tcp.c (clnttcp_create): Don't close *SOCKP if it's -1.
1450         * sunrpc/clnt_simp.c (callrpc): Don't close CRP->socket if it's
1451         RPC_ANYSOCK.
1452         * sunrpc/pmap_clnt.c (pmap_set): Don't close SOCKET, since
1453         CLNT_DESTROY already has.
1454         (pmap_unset): Likewise.
1455         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
1456         * sunrpc/pm_getport.c (pmap_getport): Likewise.
1457         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
1458         * sunrpc/portmap.c (callit): Likewise.
1460         * Makerules (versioned): Strip whitespace.
1462         * Rules (static-only-routines rule): Remove spurious space in dep.
1464         * misc/getusershell.c: Undo changes of 7 May 96 (rev 1.6).
1465         Cast string constants to char *.
1467         * posix/glob/SMakefile, posix/glob/SCOPTIONS, posix/glob/Makefile.ami:
1468         New files, AmigaDOS support from Aaron Digulla.
1469         * posix/Makefile (glob.tar): Add AmigaDOS support files.
1471         * sysdeps/unix/sysv/linux/net/if.h: New file.
1472         * sysdeps/unix/sysv/linux/Dist: Add it.
1473         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
1474         net/if.h.
1476         * Makeconfig (link-libc): Add libc.a after libc.so in link.
1478         * Rules (static-only-routines rule): Use empty.o instead of dummy.o.
1479         (empty.o): New target.
1480         (generated): Add empty.c, empty.o.
1482         * resolv: Code updated from BIND-4.9.3P2C3.
1484         * Rules (static-only-routines rule): Use dummy.o, not dummy.so.
1486 Wed May  8 20:04:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1488         * extract-dynsym: New file.
1489         * Makefile (distribute): Add it.
1490         * Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
1491         [! libc.so-version]: Clear static-only-routines.
1492         ($(common-objpfx)sor-$(subdir)): New target.
1493         [static-only-routines]: New static pattern rule for these .so's.
1494         * Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
1495         [libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
1496         New targets replace it.
1497         (install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
1498         $(slibdir)/libc.so.
1499         * io/Makefile (static-only-routines): New variable.
1500         * configure.in: Check for tools objdump and objcopy, and for awk.
1501         * config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
1503 Thu May  9 01:24:00 1996  Ulrich Drepper  <drepper@cygnus.com>
1505         * locale/programs/config.h: Remove definition of wint_t.
1507         * locale/programs/ld-collate.c: Include <wchar.h> instead of
1508         <wcstr.h>.
1510         * manual/time.texi: Add some more description for %U and %W
1511         format of strftime.  Describe new format %V of strftime.
1513         * resolv/gethnamaddr.c: Prevent warning by preventing variable
1514         definition.
1515         * stdio-common/_itoa.c: Ditto.
1517 Tue May  7 23:43:07 1996  Ulrich Drepper  <drepper@cygnus.com>
1519         * libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
1520         libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
1521         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
1522         libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
1523         libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
1524         libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
1525         libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
1526         libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
1527         libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
1528         libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
1529         stdio-common/vfscanf.c: Prepare for reentrant libio.
1531         * libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
1532         libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
1533         libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
1534         Used in reentrant libio.
1536         * misc/getusershell.c: Prevent warnings.
1538 Wed May  8 12:08:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1540         * Makerules (install-lib.so rules): Undouble $s in target and dep
1541         parts of o-iterator-doit defns.
1542         (unversioned libraries install rule): Fix pattern.
1544         * mach/Makefile (mach-src-headers): Use $(base-machine) instead of
1545         $(config-machine).
1546         ($(includedir)/machine): Likewise.
1548         * config.make.in (base-machine): New variable.
1549         * configure.in (machine): Move case stmt to set $machine out of sysdep
1550         dirs AC_CACHE_CHECK.
1551         (base_machine): New variable, set in that switch and AC_SUBST'd.
1553         * Makerules (stub-$(subdir)): Use file name in directory as output,
1554         since cmd is cd'd.
1556         * configure.in (MSGFMT): Use : if none found.
1558         * po/Makefile: Include ../Rules instead of ../Makerules.
1560 Tue May  7 23:18:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1562         * po/Makefile: New file.
1563         * Makefile (subdirs): Add po.
1565         * configure.in: Check for msgfmt.
1566         * config.make.in (MSGFMT): New variable.
1568 Sun May  5 23:49:10 1996  Ulrich Drepper  <drepper@cygnus.com>
1570         * misc/Makefile (routines): Add swapoff.
1572         * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
1574         * sysdeps/unix/sysv/linux/sys/quota.h: New file.  Wrapper around
1575         kernel header file.
1577 Tue May  7 19:00:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1579         * string/argz-extract.c: Remove const from decl.
1580         * string/argz.h: Here too.
1582         * Makeconfig (version.mk): Fix regexp in sed cmd.
1583         Depend on $(..)Makeconfig.
1585         * GMP code updated from gmp-2.0 release.
1586         * stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
1587         * sysdeps/generic/add_1.c: File removed.
1588         * stdlib/strtod.c: mp_limb is now mp_limb_t.
1589         * stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
1590         * stdio-common/_itoa.c: Likewise.
1591         * stdio-common/printf_fp.c: Likewise.
1592         Don't include ansidecl.h.
1594         * sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
1596         * shlib-versions: New file.
1597         * Makerules (soversions.mk): New target, include file generated from
1598         shlib-versions.  Moved shared library rules before installation rules.
1599         Rewrote shared library installation rules for versioned libraries.
1600         * math/Makefile (libm.so-version): Variable removed.
1602         * sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
1604         * hurd/report-wait.c (_S_msg_describe_ports): New function.
1606         * configure.in: Add AC_PROG_LN_S check.
1607         * config.make.in (LN_S): New variable.
1609 Sun May  5 03:10:44 1996  Ulrich Drepper  <drepper@cygnus.com>
1611         * misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug.  gcc does
1612         not know about weak aliases now and optimizes necessary `if'
1613         statement away.
1615         * posix/unistd.h: Add swapoff prototype.
1617         * sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
1619         * sysdeps/posix/fpathconf.c (__fpathconf): Get information
1620         for _PC_PATH_MAX from fstatfs function if available.
1622         * sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
1623         _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
1624         _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
1625         _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
1626         _SC_TIMER_MAX.
1627         * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
1629         * sysdeps/stub/swapoff.c: New file.  Stub version for swapoff
1630         function.
1632         * sysdeps/unix/syscalls.list:  Add swapoff.
1634         * sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
1636         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
1637         (sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
1638         sysinfo, and uselib.
1639         (headers): Add sys/sysinfo.h.
1641         * sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
1643         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
1644         (sysdep_routines): Add ioperm, iopl, and vm86.
1645         (headers): Add sys/perm.h and sys/vm86.h.
1647         * sysdeps/unix/sysv/linux/i386/sys/perm.h: New file.  Contains
1648         prototypes for iopl and ioperm.
1650         * sysdeps/unix/sysv/linux/i386/sys/vm86.h:  New file.  Contains
1651         prototype for vm86.
1653         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.  Add
1654         vm86 system call.
1656         * sysdeps/unix/sysv/linux/sys/acct.h: New file.  Contains
1657         prototypes for acct function.
1659         * sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
1660         file with prototypes.
1662         * sysdeps/unix/sysv/linux/sys/sysinfo.h: New file.  Contains
1663         prototype for sysinfo function.
1665         * sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
1666         llseek, setfsgid, setfsuid, sysinfo, and uselib.
1668         * sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
1669         posix/sysconf.c now only handle cases different to that
1670         implementation.
1672 Tue May  7 15:08:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1674         * stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
1675         (all references changed).  Now exported.
1677         * stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
1678         (wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
1679         line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
1680         instead of struct data.
1681         (lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
1682         occurences of `wrap' and `wrapmargin' to `wmargin'.
1683         (line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
1684         line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
1685         line_wrap_set_wmargin, line_wrap_point): New functions.
1686         * stdio/linewrap.h: New file.
1687         * stdio/Makefile (headers): Add linewrap.h.
1689 Tue May  7 14:19:12 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1691         * sysdeps/unix/sysv/linux/i386/Makefile: File removed.
1693         * stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
1695         * sysdeps/unix/sysv/linux/schedbits.h: New file.
1697 Tue May  7 13:47:02 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1699         * stdio/linewrap.c (struct data): Make margin fields not-pointers.
1700         (lwoutput): Adjust uses acordingly.
1702 Tue May  7 10:51:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1704         * sysdeps/mach/hurd/fdatasync.c: New file.
1705         * sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
1707         * sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
1708         * sysdeps/mach/hurd/symlink.c: Likewise.
1709         * sysdeps/mach/hurd/link.c: Likewise.
1710         * sysdeps/mach/hurd/bind.c: Likewise.
1711         * hurd/hurdsig.c (write_corefile): Likewise.
1713         * hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
1715         * sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
1717         * sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
1718         proc_mark_exit.
1719         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
1721         * sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
1723         * sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
1725         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
1726         hurd_signal_detail.
1727         * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
1728         * hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
1729         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1730         Likewise.
1731         * sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
1733         * hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
1735         * hurd/hurdsig.c (write_corefile): Take const struct
1736         hurd_signal_detail * arg.  Pass all details to crash_dump_task.
1737         (_hurd_internal_post_signal): Pass DETAIL to write_corefile.
1738         (_hurd_internal_post_signal: suspend): Pass code and error to
1739         proc_mark_stop.
1741         * hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
1742         proc_getprocinfo by reference.
1744         * wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos.
1746         * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo.
1748         * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>.
1749         * sysdeps/stub/sched_sets.c: Likewise.
1750         * sysdeps/stub/sched_setp.c: Likewise.
1751         * sysdeps/stub/sched_rr_gi.c: Likewise.
1752         * sysdeps/stub/sched_gets.c: Likewise.
1754         * hurd/hurdsig.c: Use struct hurd_signal_detail.
1755         * hurd/hurd/fd.h (_hurd_fd_error): Likewise.
1756         * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
1758 Mon May  6 09:51:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1760         * stdio/linewrap.c: New file.
1761         * stdio/Makefile (routines): Add linewrap.
1762         * stdio/stdio.h [__USE_GNU]: Declare line_wrap_stream,
1763         line_unwrap_stream.
1765 Mon May  6 14:53:26 1996  Ulrich Drepper  <drepper@cygnus.com>
1767         * time/strftime.c (week): Add third parameter telling how
1768         many days must be in new year so that it is called week 1.
1769         (Following ISO 8601).
1770         Correct computation for %U and %V formats when day was first
1771         day of the week.
1772         (strftime): Implement %V format according to Spec1170.
1774 Mon May  6 17:01:09 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
1776         * hurd/hurd/signal.h (_hurd_intr_rpc_mach_msg): New declaration.
1778 Sat May  4 05:44:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1780         * hurd/hurd/sigpreempt.h (struct hurd_signal_preempter): Change
1781         prototype of `preempter' elt to use struct hurd_signal_detail.
1783         * hurd/hurd/signal.h (struct hurd_signal_detail): New type.
1784         (struct hurd_sigstate): Make `pending_data' member an array of that.
1785         Use the new type in several decls.
1787         * locale/setlocale.c (_nl_C_name): Variable removed.
1788         * locale/C_name.c: New file.
1789         (_nl_C_name): Put it here instead.
1790         * locale/Makefile (aux): Add C_name.
1792         * sysdeps/mach/hurd/dl-sysdep.c (open): Don't pass io port in
1793         auth_user_authenticate rpc.
1794         (open): Avoid using strtol in digit conversion for "fd/N" magic.
1795         (_dl_sysdep_start): Likewise for memobj name in magic switches.
1797         * elf/Makefile (reloc-link): New variable.
1798         (dl-allobjs.so): New target, link together $(rtld-routines).
1799         (librtld.so): Depend on that instead of the rtld components.
1800         (generated): Add dl-allobjs.so.
1802         * hurd/hurd-raise.c (_hurd_raise_signal): Pass sigcode in msg_sig_post
1803         rpc.
1805         * hurd/hurdmsg.c (_S_msg_set_environment): Use argz.h functions
1806         instead of _hurd_split_args.
1807         (_S_msg_*_exec_flags): Functions removed.
1808         (_S_msg_startup_dosync): Stub removed.
1810 Sat May  4 02:11:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1812         * sysdeps/mach/hurd/ptrace.c: Set _hurdsig_traced instead of
1813         EXEC_TRACED bit in _hurd_exec_flags.
1814         Pass sigcode arg in msg_sig_post_untraced rpc.
1816         * sysdeps/mach/hurd/access.c: Don't pass io port in
1817         auth_user_authenticate rpc.
1819         * posix/sched.h: Fix typos.
1821         * sysdeps/mach/hurd/fork.c: Use new critical section lock.
1822         Clear _hurdsig_traced instead of EXEC_TRACED.
1824         * sysdeps/stub/nanosleep.c (nanosleep): Fix typo.
1826         * wcsmbs/wcstol.c: Find strtol.c in ../stdlib.
1827         * wcsmbs/wcstof.c: Find strtod.c in ../stdlib.
1828         * wcsmbs/wcstod.c: Likewise.
1829         * wcsmbs/wcstold.c: Likewise.
1831         * wcsmbs/wcwidth.h: Find cname-lookup.h in ../wctype.
1833         * string/envz.c (envz_entry): Use const.
1834         (envz_get, envz_remove): Likewise.
1835         (envz_entry): Return char *, not const char *.
1837         * string/envz.h: Fix decl.
1839         * string/argz-create.c: Use const in prototype.
1840         * string/argz-next.c: Likewise.
1842 Fri May  3 13:32:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1844         * sysdeps/mach/hurd/sigprocmask.c: Pass sigcode arg to msg_sig_post.
1845         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
1846         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
1847         * sysdeps/mach/hurd/kill.c: Likewise.
1849         * hurd/hurdexec.c (_hurd_exec): Use new critical section lock.
1850         * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
1851         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Likewise.
1852         * hurd/thread-cancel.c (hurd_thread_cancel, hurd_check_cancel):
1853         Likewise.
1854         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
1855         * sysdeps/mach/hurd/sigaction.c: Likewise.
1857         * sysdeps/mach/hurd/errnos.awk: Don't use ARGV in comment; it can
1858         change meaninglessly.
1860         * hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
1861         flag with a spin lock.
1862         (_hurd_critical_section_lock): Use spin_try_lock on that to see if we
1863         get it.  No need to take SS->lock at all.
1864         (_hurd_critical_section_unlock): Unlock SS->critical_section_lock
1865         instead of clearing the old flag member.
1866         * hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
1867         test the critical section state.
1869         * hurd/hurdinit.c (_hurd_init): Set _hurdsig_traced from the intarray.
1871         * hurd/hurdkill.c (_hurd_sig_post): Pass 0 sigcode in msg_sig_post.
1873         * hurd/hurdsig.c (_hurd_internal_post_signal): Test _hurdsig_traced
1874         instead of testing (_hurd_exec_flags & EXEC_TRACED).
1875         (_S_msg_sig_post): Take sigcode arg and pass it through.
1876         (_S_msg_sig_post_untraced): Likewise.
1877         (reauth_proc): Don't pass proc port in auth_user_authenticate.
1879         * hurd/setauth.c (_hurd_setauth): Don't pass object ports in
1880         auth_user_authenticate RPCs, just the one-off rendezvous port.
1881         * hurd/dtable.c (reauth_dtable): Likewise.
1882         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
1884         * hurd/hurdexec.c (_hurd_exec): Pass 0 flags to file_exec.
1885         Pass sigcode arg to msg_sig_post.
1887         * string/argz.h (argz_create): Use const in prototype.
1889         * hurd/hurdinit.c (_hurd_proc_init): Test _hurdsig_traced instead of
1890         testing (_hurd_exec_flags & EXEC_TRACED).
1891         Pass sigcode arg to msg_sig_post.
1893         * hurd/hurd.h: Declare _hurdsig_traced.
1895         * string/argz.h (__argz_next): Cast ENTRY before returning it.
1897         * hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
1898         to msg_sig_post.
1900         * hurd/path-lookup.c: New file.
1901         * hurd/Makefile (routines): Add path-lookup.
1902         * hurd/hurd/lookup.h: Declare file_name_path_scan,
1903         hurd_file_name_path_lookup.
1904         * hurd/hurd.h: Declare file_name_path_lookup.
1906         * sysdeps/mach/hurd/select.c: The io_select rpc no longer has a TAG_ID
1907         argument.  Instead, use a separate reply port for each RPC and put them
1908         all in a port set to wait for slow replies.
1910         * intl/Makefile (CPPFLAGS): Change $(nlsdir) to $(i18ndir) in
1911         LOCALE_ALIAS_PATH.
1913 Fri May  3 03:14:02 1996  Ulrich Drepper  <drepper@cygnus.com>
1915         * intl/Makefile (routines): Add l10nflist and explodename.
1916         (distribute): Add loadinfo.h and locale.alias.
1917         (install-others): New variable to install locale.alias.
1919         * intl/dcgettext.c, intl/finddomain.c, intl/gettextP.h,
1920         intl/loadmsgcat.c: Adapt for upcoming gettext-0.10.13.  Some code
1921         is now shared with the locale implementation.
1923         * intl/explodename.c, intl/l10nflist.c, intl/loadinfo.h: New file.
1924         Extracted from finddomain.c.  This is also used in the locale
1925         implementation.
1927         * intl/locale.alias: New file.  Locale alias database compatible
1928         with X Window System's locale alias file.  Can now be used in
1929         locale and gettext code.
1931         * libio/stdio.h: Add prototypes for asprint and vasprintf.
1933         * locale/C-collate.c, locale/C-ctype.c, locale/C-messages.c,
1934         locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c: Add new
1935         field in structure with name of locale ("C" in this case).
1937         * locale/Makefile (routines): Add findlocale.
1939         * locale/findlocale.c: New file.  Instead of trying to load the
1940         directly described file we now try to be much smarter when this
1941         fails.  Use the same code as gettext does.
1943         * locale/loadlocale.c, locale/setlocale.c: Rewrite to know about
1944         new loading scheme.
1946         * locale/localeinfo.h: Adapt prototypes and declarations for new
1947         setlocale implementation.  Remove definition of u32_t type.  We
1948         now use u_int32_t from <sys/types.h>.
1950         * locale/programs/charset.h (ILLEGAL_CHAR_VALUE): Provide type
1951         with constant.
1953         * locale/programs/config.h, locale/lc-collate.c,
1954         locale/localeinfo.h, locale/programs/ld-collate.c,
1955         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
1956         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
1957         locale/programs/ld-time.c, locale/weight.h, string/strcoll.c:
1958         Change to use u_int32_t and u_int16_t.
1960         * locale/programs/localedef.c (construct_output_path): Change name
1961         of output locale to contain normalized form of the character set
1962         portion.
1964         * string/Makefile (routines): Add agrz-ctsep and argz-next.
1965         (tests): Add tst-strlen.
1967         * string/argz-ctsep.c: New file.  Implement reverse operation
1968         from argz-stringify.
1970         * string/argz-next.c: Non-inline version of function from argz.h.
1972         * string/argz.h, string/envz.h: Make usable as global header file.
1974         * string/envz.c: Fix declarations to use size_t where prototypes
1975         say so.
1977         * string/tst-strlen.c: New file.  Another test for critical
1978         situation in strlen implementations.
1980         * sysdeps/i386/i586/strlen.S: Fix bug with highest byte in word
1981         being zero.
1983         * wctype/test_wctype.c: Fix controlling comparison after change to
1984         32 bit character class array.
1986 Fri May  3 12:53:12 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1988         * sysdeps/unix/sysv/linux/sys/socket.h: Remove spurious doubled line.
1990 Thu May  2 22:50:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1992         * sysdeps/unix/sysv/linux/getpriority.c: New file.
1993         * sysdeps/unix/sysv/linux/syscalls.list: Add s_getpriority.
1995 Thu May  2 22:41:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1997         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_DEFAULT):
1998         Disable all exceptions.
2000 Thu May  2 22:33:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2002         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
2003         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
2004         sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
2005         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
2006         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
2007         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
2008         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
2009         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
2010         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c: Don't
2011         define __NO_MATH_INLINES, which is already defined on command
2012         line.
2014 Thu May  2 22:18:28 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2016         * sysdeps/libm-ieee754/e_j0f.c (__ieee754_j0f, __ieee754_y0f):
2017         Replace 0x80000000 by 0x48000000.
2018         * sysdeps/libm-ieee754/e_j1f.c (__ieee754_j1f): Likewise.
2020 Thu May  2 21:30:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2022         * sunrpc/svc_simple.c: Make global variable pl local to
2023         registerrpc.
2025 Thu May  2 00:24:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2027         * time/Makefile (tz-cflags): New variable.
2028         (CFLAGS-tzfile.c): New variable.
2029         (CFLAGS-zic.c): Add $(tz-cflags).
2030         (tz-cc): Remove variable.
2031         ($(objpfx)tzfile.o, $(objpfx)zic.o): Remove targets.
2033 Wed May  1 09:10:04 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2035         * sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
2036         name, instead of checking for reaching end of buffer, which happens
2037         when the match is the last entry in the buffer.
2039         * time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
2040         include.
2042 Mon Apr 29 02:48:26 1996  Ulrich Drepper  <drepper@cygnus.com>
2044         * ctype/ctype-info.c: (__ctype_width): New variable.
2045         (__ctype_names): Initialize correctly without offset.
2047         * locale/C-collate.c, locale/C-ctype.c,
2048         locale/C-messages.c, locale/C-monetary.c,
2049         locale/C-numeric.c, locale/C-time.c: Change copyright.
2051         * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Correct
2052         endianess for initialization value.
2054         * locale/lc-ctype.c (current): Add parameter for offset.
2055         (__ctype32_b, __ctype_width): Add initialization for these
2056         variables.
2058         * locale/programs/charmap.c: Finish support for WIDTH information.
2059         (new_width): New function.
2061         * locale/programs/charset.h (width_rule): new data structure.
2062         (charset_t): Add elements for width information.
2064         * locale/programs/ld-ctype.c (locale_ctype_t): Add element
2065         for width information.
2066         (allocate_arrays): Add new argument for charset.
2067         (ctype_finish): Make sure all characters named in charset
2068         width table are known to name table.
2069         (ctype_output): Correct handling of class and map name
2070         information and write out width information.
2071         (find_idx): Prepare for being called with NULL pointer as
2072         TABLE argument.  This means only allocate name entry.
2073         (allocate_arrays): Correct handling of array element -1.
2074         Because EOF == -1 the value of element 127 must *not* be
2075         mirrored here.
2076         Fill width information from charset tables.
2078         * locale/programs/localedef.c (main): Correct loop over all
2079         categories after change of order from Thu Mar 28 14:22:51 1996.
2080         Add new charset argument to call of `write_all_categories'.
2082         * locale/programs/locales.h (ctype_finish, ctype_output): New
2083         charset argument.
2085         * locale/programs/locfile.c (write_all_categories): Call
2086         `ctype_output' with additional argument charset.
2088         * posix/getconf.c (vars): Add _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
2089         and _POSIX_PRIO_IO definitions.
2091         * posix/posix2_lim.h: Add definition of _POSIX2_CHARCLASS_NAME_MAX
2092         and CHARCLASS_NAME_MAX.
2094         * posix/unistd.h: Document _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
2095         and _POSIX_PRIO_IO.
2097         * stdlib/grouping.h: Prepare for use in wide string functions.
2099         * stdlib/stdlib.h: Correct prototypes for __strto*_internal
2100         functions.
2102         * stdlib/strtod.c: Extend for use as `wcsto{f,d,ld}'.
2104         * stdlib/strtol.c: Extend for use as `wcsto{l,ul,q,uq}'.
2106         * string/strcoll.c: Extend for use as `wcscoll'.
2108         * string/strxfrm.c: Extend for use as `wcsxfrm'.
2110         * sysdeps/generic/confname.h: Add definition of _PC_SYNC_IO,
2111         _PC_ASYNC_IO, _PC_PRIO_IO and _SC_CHARCLASS_NAME_MAX.
2113         * sysdeps/generic/stpncpy.c: Correct return value.
2115         * sysdeps/posix/fpathconf.c: Add handling of _PC_SYNC_IO,
2116         _PC_ASYNC_IO, and _PC_PRIO_IO.
2118         * sysdeps/posix/sysconf.c: Add handling of _SC_REALTIME_SIGNALS,
2119         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
2120         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC,
2121         _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
2122         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES,
2123         _SC_SHARED_MEMORY_OBJECTS, and _SC_CHARCLASS_NAME_MAX.
2124         * sysdeps/stub/sysconf.c: Ditto.
2125         * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
2127         * sysdeps/unix/sysv/linux/Dist: Add sys/sysctl.h.
2129         * sysdeps/unix/sysv/linux/Makefile [subdir == misc]
2130         (sysdep_routines): Add s_sysctl and sysctl.
2132         * sysdeps/unix/sysv/linux/sys/mman.h: Add declaration of mremap.
2134         * sysdeps/unix/sysv/linux/sys/socket.h: New file.  Wrapper
2135         around kernel header.
2137         * sysdeps/unix/sysv/linux/sys/sysctl.h: New file.  Define
2138         interface to `sysctl' function.
2140         * sysdeps/unix/sysv/linux/syscalls.list: Add mremap and _sysctl.
2142         * sysdeps/unix/sysv/linux/sysconf.c: Add handling of
2143         _SC_CHARCLASS_NAME_MAX.
2145         * sysdeps/unix/sysv/linux/sysctl.c: new file.  Implement caller
2146         of _sysctl system call.
2148         * sysvipc/Makefile (routines): Add ftok.
2150         * sysvipc/ftok.c: use variable `proj_id' not `id'.  Patch by
2151         David Mosberger-Tang.
2153         * wcsmbs/Makefile (routines): Add wcpcpy, wcpncpy, wcstol,
2154         wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
2155         wcsxfrm, wcwidth, and wcswidth.
2157         * wcsmbs/wchar.h: Add declarations for wcpcpy, wcpncpy, wcstol,
2158         wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
2159         wcsxfrm, wcwidth, and wcswidth.
2160         Declare internal interfaces for wcsto* functions.
2161         [OPTIMIZE]: Define inline functions for wcsto* functions to
2162         call internal interface functions.
2164         * wcsmbs/wcpcpy.c, wcsmbs/wcpncpy.c: New files.  Implement non-
2165         standard function equivalent to stpcpy/stpncpy.
2167         * wcsmbs/wcscoll.c: Implement `wcscoll' function by using
2168         `strcoll' implementation.
2170         * wcsmbs/wcscpy.c, wcsmbs/wcsncpy.c: Use wint_t instead of
2171         wchar_t.
2173         * wcsmbs/wcstod.c: Implement `wcstod' function by using `strtod'
2174         implementation.
2175         * wcsmbs/wcstof.c: Same for `wcstof'.
2176         * wcsmbs/wcstold.c: Same for `strtold'.
2178         * wcsmbs/wcstol.c: Implement `wcstol' function by using `strtol'
2179         implementation.
2180         * wcsmbs/wcstoq.c: Same for `wcstoq'.
2181         * wcsmbs/wcstoul.c: Same for `wcstoul'.
2182         * wcsmbs/wcstouq.c: Same for `wcstouq'.
2184         * wcsmbs/wcswidth.c: Implement `wcswidth' function from X/Open
2185         CAE.
2186         * wcsmbs/wcwidth.c: Ditto for `wcwidth'.
2187         * wcsmbs/wcwidth.h: Common function for definitions of above two
2188         functions.
2190         * wcsmbs/wcsxfrm.c: Implement `wcsxfrm function by using
2191         `strxfrm implementation.
2193         * wctype/wctype.c: Remove case for `wctype_t' being 16 bit type.
2195         * wctype/wctype.h (wint_t): Protect against multiple definition.
2196         (wctype_t): Always define as `unsigned long int'.
2198         * wctype.h: New file.  Wrapper around wctype/wctype.h.
2200 Tue Apr 30 17:30:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2202         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Add timeout argument to
2203         interrupt_operation call.
2204         (_hurdsig_interrupt_timeout): New variable.
2206         * hurd/report-wait.c (describe_number): Correctly allocate space
2207         in DESCRIPTION for the digits in I.
2209 Mon Apr 29 00:11:59 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2211         * hurd/hurdstartup.c (_hurd_split_args): Function removed.
2212         (_hurd_startup): Use argz functions.
2214         * hurd/hurdexec.c: Use argz functions.
2216         * errno.h [!__error_t_defined] (error_t): New type.
2217         * sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
2218         typedef in errnos.h.
2220         * string/envz.c, string/envz.h: New files.
2221         * string/argz.h, string/argz-append.c, string/argz-count.c,
2222         string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
2223         string/argz-insert.c, string/argz-stringify.c: New files.
2224         * string/Makefile (routines): Add envz, argz-*.
2225         (headers): Add argz.h, envz.h.
2227 Sun Apr 28 14:14:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2229         * sysdeps/unix/sysv/linux/i386/Makefile: New file.
2231 Wed Apr 24 17:35:30  Ulrich Drepper  <drepper@cygnus.com>
2233         * inet/netinet/in.h, socket/sys/socket.h: Move to
2234         sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
2235         * netinet/in.h, sys/socket.h: Remove file.
2237         * misc/Makefile (routines): Add fdatasync.
2239         * posix/Makefile (headers): Add sched.h.
2240         (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
2241         sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
2243         * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
2244         _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
2245         _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
2246         _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
2247         _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
2248         _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
2250         * posix/sched.h: New file.  Header for POSIX scheduling interface.
2252         * posix/unistd.h: Describe options from POSIX.4.
2253         Add declaration of fdatasync.
2255         * sysdeps/generic/confname.h: Add definition for
2256          _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
2257         _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
2258         _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
2259         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
2260         _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
2262         * sysdeps/generic/fdatasync.c: New file.  Default implementation
2263         simply uses fsync.
2265         * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
2267         * sysdeps/generic/schedbits.h: New file.  System dependent
2268         defintion for POSIX.4 scheduling interface.
2270         * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
2272         * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
2273         sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
2274         sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
2275         sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
2276         sysdeps/stub/sched_yield.c: New file:  Stub implementation
2277         for systems missing these POSIX.4 system calls.
2279         * sysdeps/unix/sysv/linux/gnu/types.h,
2280         sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
2281         data type definitions.
2283         * sysdeps/unix/sysv/linux/netinet/in.h: New file.  Linux
2284         specific version.
2286         * sysdeps/unix/sysv/linux/posix_opt.h: New file.  Define POSIX
2287         options applicable for Linux.
2289         * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
2290         fdatasync, nanosleep, sched_setparam, sched_getparam,
2291         sched_setscheduler, sched_getscheduler, sched_yield,
2292         sched_get_priority_max, sched_get_priority_min, and
2293         sched_rr_get_interval.
2295         * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
2296         options.
2298         * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
2300         * time/sys/time.h: Remove definition of `struct timespec'.
2302         * time/time.h (struct timespec): Move definition to here.
2304 Fri Apr 26 01:55:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2306         * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
2308 Thu Apr 25 15:49:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2310         * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
2311         the scan for a name, avoid doing another readdir (which overwrites
2312         NENTRIES, and was resulting in a bogus ENOENT).
2314         * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
2316 Wed Apr 24 00:22:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2318         * stdio/internals.c (seek_to_target): Set errno if seek function
2319         returns the wrong offset.
2321         * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
2322         * wcsmbs/wcrtomb.c: Likewise.
2324         * stdio-common/vfprintf.c: Include errno.h.
2326 Tue Apr 23 21:09:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2328         * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
2329         variable, LUCKY, to use instead of setting D to -1 (which fouls
2330         things up).
2332 Tue Apr 23 15:56:56 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2334         * config.h.in (HAVE_REGEX): New macro.
2336         * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
2337         * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
2338         (routines): Add statfs, fstatfs.
2339         * sysdeps/mach/hurd/statfs.c: New file.
2340         * sysdeps/mach/hurd/fstatfs.c: New file.
2341         * sysdeps/stub/fstatfs.c: New file.
2342         * sysdeps/stub/statfs.c: New file.
2343         * io/sys/statfs.h: New file.
2344         * sysdeps/generic/statfsbuf.h: New file.
2345         * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
2347 Tue Apr 23 00:06:47 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2349         * malloc/Makefile (gmalloc-routines): Add valloc back here.
2350         (dist-routines): Remove it here.
2351         * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
2352         (ELIDE_VALLOC): Define it.
2353         [! ELIDE_VALLOC]: Make whole file conditional on this.
2354         * malloc/malloc.h (valloc): Make decl conditional on
2355         [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
2357 Mon Apr 22 00:02:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2359         * MakeTAGS: Include version.mk.
2360         (po/SYS_libc.pot): Add missing / in sed s cmd.
2362 Sat Apr 20 18:13:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2364         * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
2365         $(libc_cv_ld_no_whole_archive).
2367 Sat Apr 20 17:07:17 1996  Ulrich Drepper  <drepper@cygnus.com>
2369         * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
2370         grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
2371         math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
2372         misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
2373         posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
2374         posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
2375         resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
2376         stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
2377         string/string.h, sysdeps/generic/sigaction.h,
2378         sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
2379         sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
2380         sysdeps/unix/sysv/linux/sys/ptrace.h,
2381         sysdeps/unix/sysv/minix/sigaction.h,
2382         sysdeps/unix/sysv/sco3.2.4/sigaction.h,
2383         sysdeps/unix/sysv/sysv4/sigaction.h,
2384         sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
2385         time/sys/time.h, time/time.h: Fix copyright comment.
2387 Fri Apr 19 00:49:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2389         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
2390         not given in stack aux vector, fetch them with syscalls.
2392         * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
2393         for nonmatching nonerror (instead of !MATCH).
2394         (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
2396         * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
2397         unsigned long for variable NET2.
2399         * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
2401 Tue Apr  9 14:37:31 1996  Ulrich Drepper  <drepper@cygnus.com>
2403         * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
2404         catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
2405         catgets/open_catalog.c: New files.  Implementation of XPG4
2406         compliant catgets() function and needed tools.
2407         * Makefile (subdirs): Add catgets.
2409 Thu Apr 18 23:36:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2411         * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
2413 Wed Apr 10 20:48:43 1996  Ulrich Drepper  <drepper@cygnus.com>
2415         * stdio-common/vfprintf.c: Correct some typos.
2417         * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
2418         sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
2419         __signgam.
2421 Thu Apr 18 21:07:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2423         * Makerules (no-whole-archive): New variable.
2424         (build-shlib): Use it.
2425         * elf/Makefile (libdl.so): Use it.
2426         * configure.in (libc_cv_ld_no_whole_archive): New check for
2427         --no-whole-archive.
2428         * config.make.in (have-no-whole-archive): New variable.
2430         * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
2431         from 3 to 4.
2433         * Make-dist: Include version.mk.
2434         (version, release): Variables removed.
2435         * Makeconfig (version.mk): New target.
2437 Fri Apr 19 01:42:18 1996  Ulrich Drepper  <drepper@cygnus.com>
2439         * locale/Makefile (headers): Add langinfo.h.
2440         (CPPFLAGS): Remove -Iliblib.
2442 Mon Apr 15 16:49:04 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2444         * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
2445         function and its declaration.
2447 Wed Apr 10 14:13:45 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2449         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
2450         MACH_PORT_DEAD in the thread reply-port variable before destroying
2451         the signal handler's reply port, to avoid infinite recursion.
2453 Mon Apr  8 18:27:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2455         * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
2456         user passes in TZ, just zero it (emacs passes in a dummy variable,
2457         and rms says the hurd should be the one to change).
2459 Sun Apr  7 10:37:30 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2461         * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
2462         port in the parent.
2464 Fri Apr  5 17:43:41 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2466         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
2467         MACH_PORT_DEAD in the thread reply-port variable before destroying
2468         the signal handler's reply port to avoid infinite recursion.
2469         * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
2470         attempt to destroy PORT if it's a valid port name.
2472 Wed Apr  3 17:10:44 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2474         * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
2475         * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
2476         instead of $(objpfx).
2478 Tue Apr  2 21:27:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2480         * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
2481         the pattern ends with a backslash and quoting is enabled.
2482         * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
2483         patterns.
2485 Mon Apr  1 13:34:55 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2487         * stdio-common/tst-printf.c (main): Add new test case.
2489         * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
2491 Mon Apr  1 11:39:10  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2493         * stdlib/strtod.c (STRTOD): Fix handling of American style FP
2494         numbers.
2496         * stdio-common/vfprintf.c (vfprintf): Don't increment format
2497         string pointer twice after seeing `*'.
2499 Sun Mar 31 17:31:54 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2501         * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
2502         po/header.pot.
2504 Sun Mar 31 18:07:32 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2506         * locale/Makefile (others, install-bin): Compiling locale works
2507         again.
2508         (locale-modules): locale has no --dump option anymore.  Remove
2509         ctypedump.
2511         * locale/programs/config.h: Don't declare euidaccess.
2512         Use #include_next to get libc's config.h.
2514         * locale/programs/ctypedump.c: Not needed anymore.  Dump option
2515         of locale is removed.
2517         * locale/programs/locale.c: Adapt for new locale implementation.
2519         * stdio-common/_itoa.h (_itoa_word): Define as inline function.
2520         * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
2521         Don't declare static because used in _itoa_word inline function.
2523         * stdio-common/printf-parse.h: Prepare for use in wide-char
2524         stdio implementation.
2525         (find_spec): Take additional argument to work with mbrlen instead
2526         of mblen.
2527         (parse_one_spec): Ditto.
2529         * stdio-common/printf-prs.c: Prepare for use in wide-char
2530         stdio implementation.
2532         * stdio-common/printf.h: Mark change for wide-char handling.
2533         Changing it now would result in incompatibilities.
2535         * stdio-common/vfprintf.c: New and fast implementation.
2537         * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
2538         mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
2539         mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
2540         Change wcswcs to wcsstr.
2541         Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
2542         mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
2544         * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
2545         wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
2546         wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
2547         wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
2548         wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
2549         function according to ISO C amendment 1.
2550         * wchar.h: Wrapper around "wcsmbs/wchar.h".
2552         * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
2553         wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
2554         wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
2555         wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
2556         wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
2557         amendment 1.
2559         * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
2560         wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
2561         wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
2562         wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
2563         wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
2564         Implement functions from early drafts, not part of final standard.
2566 Sun Mar 31 16:50:41 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2568         * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
2569         __jmp_bug_tag so its C++ implicit typedef does not conflict with the
2570         __jmp_buf typedef.
2572         * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
2573         compiling in the source directories.
2575 Fri Mar 29 16:26:35 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2577         * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
2578         * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
2580 Fri Mar 29 11:29:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2582         * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
2583         with weak alias signgam.
2585 Thu Mar 28 18:32:34 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2587         * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
2589 Thu Mar 28 14:22:51 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2591         * sunrpc/rpc_main.c (main): Call textdomain.
2593         * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
2594         --no-location.
2595         (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
2596         ($P/subdirs.pot): New target.
2597         ($P/SYS_libc.pot): Add -n switch.
2599         * locale/locale.h (LC_*): Values reordered to match Linux libc.
2601         * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
2602         the process is a zombie; send no messages and return success.
2604 Thu Mar 28 11:53:26 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2606         * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
2607         * wctype/wctype.c: Likewise.
2608         * wctype/wctrans.c: Likewise.
2610 Thu Mar 28 03:00:43 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
2612         * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
2613         DATA->strings.
2615         * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
2617         * configure.in (.weakext check): Fix asm code to use .weakext instead
2618         of .weak!  Fix bogus test calls.
2619         * configure: Regenerated.
2621 Thu Mar 28 03:25:10 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2623         * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
2625         * locale/programs/ld-collate.c (collate_finish): Use error_at_line
2626         instead of error_with_loc.
2628         * locale/weight.h: Use u_int32_t instead of u32_t.
2629         * string/strxfrm.c: Likewise.
2631         * string/strxfrm.c: Find weight.h in ../locale; don't #include
2632         "localeinfo.h".
2633         * string/strcoll.c: Likewise.
2635         * intl/Makefile (copysrc): Add missing > in sed cmd.
2637 Sat Mar 23 17:52:49 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2639         * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
2640         change value to $(datadir)/i18n.  `nls' is not an appropriate
2641         name.
2643         * Makefile (subdirs): Add new subdir wctype.
2645         * ctype/ctype-info.c: Add new global variable __ctype_names
2646         and initialize from _nl_C_LC_CTYPE.
2648         * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
2649         class.  Use bit 11.
2650         [_ISbit]: Protect definition of bitmasks because they are also
2651         used in wctype.h.
2653         * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
2654         after successfully pushing back a character.
2656         Fundamental changes in locale implementation.  Almost nothing
2657         from the old code is used anymore.
2658         * locale/charmap.c, locale/collate.c, locale/config.h,
2659         locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
2660         locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
2661         locale/locale.c locale/localeconv.c, locale/localedef.c,
2662         locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
2663         locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
2664         locale/numeric.c, locale/setlocale.c, locale/token.h,
2665         locale/xmalloc.c: Removed.
2667         * locale/Makefile: Update for new locale implementation with
2668         program source code distributed in subdir.
2670         * locale/categories.def, locale/iso-4217.def: Updated file
2671         for new locale implementation.
2673         * locale/langinfo.h: Updated for new locale implementation.
2674         (ERA_D_T_FMT, ERA_T_FMT): New official values according to
2675         P1003.2b/D11.
2676         (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
2677         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
2678         _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
2679         _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
2680         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
2681         _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
2682         extended LC_CTYPE and LC_COLLATE implementation.
2684         * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
2685         locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
2686         for locale related programs.
2688         * locale/C-collate.c, locale/C-ctype.c,
2689         locale/C-messages.c, locale/C-monetary.c,
2690         locale/C-numeric.c, locale/C-time.c,
2691         locale/lc-collate.c, locale/lc-ctype.c,
2692         locale/lc-messages.c, locale/lc-monetary.c,
2693         locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
2694         functions, and new generated "C" locale data.
2696         * locale/loadlocale.c: Now handles word fields in locale binary
2697         automatically by changing the endianess if necessary.
2699         * locale/localeinfo.h (LIMAGIC): Changed magic number because
2700         of incompatible changes.
2701         (locale_data): Changed definition to allow word as a value type.
2702         (coll_sort_rule): Values for collation sorting mode.
2703         (_NL_CURRENT_WORD): New macro to access word value of locale entry.
2704         (__collate_table, __collate_extra): Declare new global variables
2705         for collation tables.
2707         * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
2708         locale/programs/charmap.c, locale/programs/charset.c,
2709         locale/programs/charset.h, locale/programs/config.h,
2710         locale/programs/ctypedump.c, locale/programs/ld-collate.c,
2711         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
2712         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
2713         locale/programs/ld-time.c, locale/programs/linereader.c,
2714         locale/programs/linereader.h, locale/programs/locale.c,
2715         locale/programs/localedef.c, locale/programs/locales.h,
2716         locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
2717         locale/programs/locfile-token.h, locale/programs/locfile.c,
2718         locale/programs/locfile.h, locale/programs/stringtrans.c,
2719         locale/programs/stringtrans.h: Implementation of locale related
2720         programs.
2722         * locale/weight.h: Functions to access collation tables.
2724         * posix/unistd.h: Define _POSIX2_LOCALEDEF.
2726         * stdio-common/printf_fp.c: Fix bug with printing certain numbers
2727         < 10^-1.  Reported by Bill Metzenthen.
2729         * stdio-common/tfformat.c: Add new test for above bug.
2731         * string/strcoll.c, string/strxfrm.c: Real implementation of
2732         string collation according to ISO C.
2734         * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
2735         wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
2736         wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
2737         Implementation of wide character classes and mapping.
2739 Wed Mar 27 14:52:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2741         * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
2742         _dl_relocate_object loop.  Avoid relocating RTLD_MAP in that loop, and
2743         do it individually if necessary after _dl_sysdep_start_cleanup call.
2745         * stdlib/Makefile (mpn-routines): Add divrem.
2747 Tue Mar 26 22:54:14  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2749         * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
2750         instead of __mpn_divmod.
2752 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2754         * sysdeps/alpha/setjmp.S: Must establish global pointer before
2755         address of __sigsetjmp_aux can be loaded.
2757 Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2759         * sysdeps/i386/i586/memset.S: New file.  Highly optimized
2760         version for i586 contributed by Torbjorn Granlund.
2761         Adapted for use as bzero.
2762         * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
2763         code to implement bzero().
2765 Tue Mar 26 20:01:17 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2767         * stdlib/Makefile (mpn-routines): Remove divmod.
2769 Tue Mar 26 15:40:14 1996  Brendan Kehoe  <brendan@zen.org>
2771         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
2772         wrapped with #ifndef, to avoid config.h defining it.
2774 Mon Mar 25 13:10:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2776         * malloc/realloc.c (_realloc_internal): In case of growing large
2777         block, leave _heaplimit zero across _malloc_internal call.
2779         * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
2781 Mon Mar 25 03:35:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2783         * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
2784         table when _heaplimit==0 during realloc growing large block.
2786         * MakeTAGS (extract): Remove /dev/null from xgettext command line.
2787         (text-srcs): New variable: extract only C sources from $(tags_sources).
2788         (po/$(domain).pot): Depend on that.
2789         If it's empty, cp /dev/null $@ instead of $(extract).
2791         * misc/Makefile (headers): Add iovec.h.
2792         * sysdeps/unix/sysv/linux/iovec.h: New file.
2793         * sysdeps/generic/iovec.h: New file.
2794         * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
2796         * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
2797         AC_TRY_COMPILE.
2799         * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
2800         macros inside [! __STDC__].
2802         * stdlib/rpmatch.c: New file.
2803         * stdlib/Makefile (routines): Add rpmatch.
2804         * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
2806         * MakeTAGS (MSGJOIN): Variable removed.
2807         (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
2809 Wed Mar 20 20:08:46 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2811         * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
2813         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
2814         NO_UNDERSCORES.
2816 Thu Mar 21 11:19:15 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2818         * mach/devstream.c (input): Translate \r to \n on input.
2820 Wed Mar 20 11:28:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2822         * stdio-common/printf.h, stdio-common/printf_fp.c,
2823         stdio-common/vfprintf.c: Place const in parameter list at
2824         correct place.
2826 Wed Mar 20 23:58.12 1996  Ulrich Drepper <drepper@gnu.ai.mit.edu>
2828         * sysdeps/i386/ldbl2mpn.c: Copy of former version of
2829         sysdeps/ieee754/ldbl2mpn.c.
2830         * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
2831         Reported by Andreas Schwab.
2833 Wed Mar 20 19:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2835         * version.c: Include version.h to define RELEASE and VERSION macros.
2836         (__libc_release, __libc_version): Use them.
2837         * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
2838         use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
2839         * Make-dist (rel+vers): Snarf the macro values from version.h.
2841         * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
2842         (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
2843         pass -a for these files.
2845         * Makerules (po/%.pot): Depend on FORCE target so recursive make is
2846         always run.
2848 Mon Mar 18 22:54:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2850         * sysdeps/unix/sysv/linux/wait3.c: New file.
2851         * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
2852         one from sysdeps/posix.
2854 Wed Mar 20 09:42:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2856         * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
2858         * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
2859         lt_executable, then lt_library.
2860         * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
2862 Wed Mar 20 00:08:23 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2864         * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
2866 Tue Mar 19 16:31:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2868         * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
2869         VEOL2, VMIN, VTIME): Corrected.
2870         (PAGEOUT, WRAP, VDSUSP): Deleted.
2872 Tue Mar 19 14:18:42 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2874         * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
2875         (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
2877         * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
2879         * math/math.h: Move M_* constants before __math.h include.
2880         [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
2882         * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
2883         If log10 is not defined (i.e. no -lm), use stupid loop instead.
2885         * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
2886         and no other _*_SOURCE macro is.
2887         (_GNU_SOURCE): Don't define by default.
2888         * libc-symbols.h (_GNU_SOURCE): Define it.
2890         * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
2892         * config.make.in (weak-symbols): Variable removed.
2893         * configure.in (--with-weak-symbols): Option removed.
2894         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
2895         New tests.
2897         * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
2898         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
2899         New #undefs.
2900         * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
2902         * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
2904 Mon Mar  4 20:17:28 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2906         * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
2907         * inet/inet_mkadr.c: Likewise.
2908         * inet/inet_net.c: Likewise.
2909         * inet/inet_netof.c: Likewise.
2910         * inet/rcmd.c: Likewise.
2911         * inet/arpa/inet.h: Likewise.
2912         * inet/netinet/in.h: Likewise.
2913         * inet/netinet/tcp.h: Likewise.
2914         * inet/protocols/rwhod.h: Likewise.
2915         * inet/protocols/talkd.h: Likewise.
2916         * resolv/inet_addr.c: Likewise.
2918         * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
2920         * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
2922         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
2923         umount.
2925         * sysdeps/alpha/__math.h (atan, cabs): New functions.
2927         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
2928         expects set-value, not pointer to it).
2930 Sun Feb 25 22:36:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2932         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
2934         * gmon/gmon.c (__bb_head): new variable.
2935         (write_hist, write_call_graph, write_bb_counts): new functions.
2936         (_mcleanup): modified to call above functions instead of directly
2937         writing out gmon.out.
2938         * gmon/sys/gmon.h (struct __bb): New type.
2939         (struct gmonhdr): Type removed.
2940         (struct gmonparam): New member `log_hashfraction'.
2941         (GMONVERSION): Macro removed.
2943         * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
2944         sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
2945         files.
2946         * gmon/Makefile (headers): Add sys/gmon_out.h.
2947         (routines): Add bb_init_func, bb_exit_func.
2949         * gmon/mcount.c: Avoid integer division.
2951 Wed Feb 21 23:56:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2953         * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
2954         passed to match what __sigsetjmp_aux() expects.
2956 Tue Feb 20 11:33:46 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2958         * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
2959         connect, getpeername, getsockname, listen, recv, recvfrom,
2960         recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
2961         added to override same-name assembly file in the parent directory.
2963         * stdlib/stdlib.h: add include of sys/types.h in front of random
2964         etc declarations to ensure int32_t is declared.
2966         * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
2967         where 32 bit integers are required.  Also change LONG_MAX into
2968         0x7fffffff since the intent is to turn off the sign bit in a
2969         32 bit integer.
2971         * time/offtime.c (__offtime): Use Paul Eggert's code to deal
2972         with very large values for "days" (e.g., 64 bit values).
2974 Mon Feb 19 22:22:12 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2976         * stdlib/stdlib.h (__random, __random_r, random_r, struct
2977         random_data): use int32_t instead of `long int'.
2979 Sat Feb 17 11:29:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2981         * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
2983         * sysdeps/alpha/ffs.S: new file.
2985         * sysdeps/alpha/fabs.c: File removed.
2987         * time/tzfile.c (__tzfile_read): counter variable is i, *not*
2988         num_transitions!
2990         * time/offtime.c: make capable of dealing with very large (64 bit)
2991         time_t values.  Use old algorithm until a year is reached that
2992         is an integer multiple of 400, then use DAYS_PER_400_YEARS to
2993         do the remainder in a single division.
2995         * sysdeps/generic/ffs.c (ffs): fix variable declarations to
2996         be unsigned int, not unsigned long.
2998         * string/test-ffs.c (main): add test case with all upper bits
2999         set.
3001         * stdlib/tst-strtol.c: add tests cases for machines where
3002         sizeof(long)==8.
3004         * stdlib/testrand.c (main): disallow rand() to return negative
3005         integers.
3007         * stdlib/testmb.c (main): fix format to use %lx instead of %x.
3009         * stdlib/stdlib.h: on 64 bit machines, declare
3010         struct random_data, __random(),  __random_r, and random_r to
3011         return "int" instead of "long int".
3013         * stdlib/random_r.c: 64 bit machines use "int" instead of "long
3014         int".  Similarly, use INT_MAX instead of LONG_MAX.
3016         * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
3017         need to operate on "int" instead of "long int".
3019         * locale/locfile-hash.c (compute_hashval): make shifted constant
3020         a long to avoid loosing bits on 64 bit machines.
3022         * dirent/tst-seekdir.c (main): fix confusing comment; print
3023         a line to mark point where directory is rewound.
3025 Fri Feb 16 15:01:49 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3027         * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
3029 Wed Feb 14 00:21:17 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3031         * sysdeps/unix/sysv/linux/alpha/Makefile,
3032         sysdeps/unix/sysv/linux/alpha/brk.S,
3033         sysdeps/unix/sysv/linux/alpha/fpu_control.c,
3034         sysdeps/unix/sysv/linux/alpha/fpu_control.h,
3035         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3036         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3037         sysdeps/unix/sysv/linux/alpha/pipe.S,
3038         sysdeps/unix/sysv/linux/alpha/setfpucw.c,
3039         sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
3040         sysdeps/unix/sysv/linux/alpha/speed.c,
3041         sysdeps/unix/sysv/linux/alpha/start.S,
3042         sysdeps/unix/sysv/linux/alpha/syscall.S,
3043         sysdeps/unix/sysv/linux/alpha/syscalls.list,
3044         sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
3045         sysdeps/unix/sysv/linux/alpha/sysdep.S,
3046         sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
3048         * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
3049         address register before returning (gcc 2.7.1 doesn't do it,
3050         presumably because $26 is declared as a global variable).
3052         * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
3053         argument.
3055         * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
3056         instead of multiplication.
3058         * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
3059         currently blocked signals instead of the empty mask to ensure
3060         that execution of alarm handler occurs with none of the currently
3061         blocked signals enabled.
3063         * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
3065         * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
3066         sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
3068         * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
3069         sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
3070         sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
3071         sysdeps/alpha/strlen.S: New files.
3073         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
3074         sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
3075         sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
3076         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
3077         Removed.
3079         * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
3080         int.
3082         * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
3083         to end of function to avoid a jump across NOPs.
3085         * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
3086         pertaining to integer division/remainder routines since new code
3087         doesn't require them.
3089         * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
3090         where 32 bit quantities are consumed/stored.  Various other minor
3091         64-bit cleanups (casting).
3093         * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
3094         whether xdr_long or xdr_short should be used to encode an int.
3095         Notice that an xdr_long is 4 bytes independent of the architecture
3096         (otherwise no Alpha could interoperate with existing NFS servers,
3097         for example).  Ditto for enums.
3099         * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
3100         to 16 since it really wants 16 bytes.
3102         * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
3104         * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
3105         u_int32_t (instead of u_long).
3107         * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
3108         "buf" pointer by casting it to a char* first since a long* may be 8
3109         bytes or more and oa->oa_length may be any multiple of 4.
3111         * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
3112         since it really is testing for 32 bits.  Fixed casts to use
3113         u_int32 instead of u_long.
3114         * sunrpc/xdr_rec.c: Likewise.
3116         * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
3117         * sunrpc/rpc/auth.h: Likewise.
3119         * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
3120         for Alpha.
3122 Tue Mar 19 13:27:49 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3124         * sysdeps/i386/fpu/__math.h: New file.
3125         Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
3127 Sun Mar 17 00:28:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3129         * sysdeps/posix/clock.c: Don't multiply the return value by
3130         CLOCKS_PER_SEC or CLK_TCK.
3132 Mon Mar 18 13:20:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3134         * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
3135         scan finds no match.
3137         * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
3138         * misc/bsd-compat.c (setpgrp): New function, two arg version.
3139         * sysdeps/stub/setpgid.c: Remove setpgrp alias.
3140         * sysdeps/mach/hurd/setpgid.c: Likewise.
3141         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
3142         * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
3143         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
3144         * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
3145         * posix/setpgrp.c (setpgrp): New file.
3146         * posix/Makefile (routines): Add setpgrp.
3148         * elf/Makefile (rtld-link): New canned sequence.
3149         (ld.so, ld-linux.so.1): Use it.  Pass -soname option.
3151         * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
3153 Sun Mar 17 23:15:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3155         * sysdeps/unix/sysv/linux/tcgetpgrp.c,
3156         sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
3158 Sun Mar 17 07:19:33 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3160         * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
3161         (CFLAGS): Append -Wno-unitialized.
3163 Sat Mar 16 20:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3165         * stdlib/erand48_r.c: Use FP division by powers of two to distribute
3166         short bits into double.
3168 Sat Mar 16 20:08:22 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3170         * sysdeps/alpha/memchr.S: New file.
3171         * sysdeps/alpha/memchr.c: Obsolete file removed.
3172         * string/tester.c: Soup up memchr tests.
3174 Sat Mar 16 16:26:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3176         * misc/Makefile (headers): Add sysexits.h.
3177         * misc/sysexits.h: New file.
3179 Thu Mar 14 15:20:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3181         * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
3182         call to __atan.
3183         * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
3184         call to __atanf.
3186         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
3187         sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
3188         sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
3189         sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
3190         sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
3191         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
3192         sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
3193         sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
3194         sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
3195         sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
3196         sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
3197         sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
3198         sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
3199         sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
3200         sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
3201         sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
3202         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
3203         sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
3204         sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
3205         sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
3206         sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
3207         sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
3208         sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
3209         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
3210         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
3211         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
3212         sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
3213         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
3214         sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
3215         sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
3216         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
3217         sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
3218         sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
3219         sysdeps/m68k/fpu/s_significand.c,
3220         sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
3221         sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
3222         sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
3223         sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
3225         * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
3227         * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
3228         * sysdeps/m68k/fpu/isnanl.c: Likewise.
3230 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3232         * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
3233         calculation to include trailing invariant portion.  Don't use alloca;
3234         instead use a dynamic auto array for GCC, malloc for non-GCC.
3235         Handle nested braces properly.
3237         * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
3239         * libc-symbols.h (lint): New macro.
3241 Fri Mar 15 01:18:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3243         * libio/iosetvbuf.c: Add weak alias setvbuf.
3245 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3247         * string/strnlen.c: New file.
3248         * string/Makefile (routines): Add strnlen.
3249         * string/string.h [__USE_GNU] (strnlen): Declare new function.
3250         [__OPTIMIZE__]: Define extern inline implementation of it.
3252         * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
3253         addition, to avoid using anything from -lm.
3255 Mon Mar  4 21:57:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3257         * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
3259         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
3260         (CALL_MCOUNT): New macro, empty unless [PROF].
3261         (ENTRY): Do CALL_MCOUNT just after the label.
3262         (JUMPTARGET): New macro.
3263         (SYSCALL_ERROR_HANDLER): Fix syntax.
3265 Thu Mar 14 04:20:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3267         * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
3268         function instead of using inline asm i386 syscall.
3269         * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
3271         * posix/unistd.h [__USE_BSD]: Declare usleep.
3273 Tue Mar 12 04:57:57 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3275         * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
3276         (fcvt, ecvt): Use it for buffer size.
3278         * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
3279         conditionalizing long vs long long.
3281         * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
3282         pointers; never return EFAULT.
3283         * stdlib/drand48_r.c (drand48_r): Likewise.
3284         * stdlib/erand48_r.c (erand48_r): Likewise.
3286         * setjmp/Makefile (tests): Add jmpbug.
3287         * setjmp/jmpbug.c: New file.
3289 Tue Mar 12 04:42:01 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3291         * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
3292         * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
3293         * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
3294         `restore' until the target frame is hit.
3296 Sun Mar 10 20:29:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3298         * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
3299         * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
3300         s_sigsuspend.
3302 Thu Mar  7 21:30:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3304         * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
3305         left side of sed substitutions.
3307 Sun Mar 10 16:58:10 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
3309         * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
3310         is not available anymore.  Do it ourselves.
3312         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
3313         Correct GCC `asm' syntax.
3315 Tue Mar 12 03:15:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3317         * stdio-common/Makefile (tests): Add tst-ungetc.
3318         * stdio-common/tst-ungetc.c: New test from drepper.
3319         * stdio-common/tstscanf.c (main): New %[ test case from drepper.
3321         * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
3322         somehow this was missed, though the weak alias is already there.
3324         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
3325         default to double precision, all interrupts masked; fdlibm requires.
3327 Sat Mar  9 18:44:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3329         * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
3331 Fri Mar  8 22:16:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3333         * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
3335 Tue Mar  5 18:45:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3337         * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
3338         final loop.
3340 Mon Mar  4 20:54:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3342         * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
3344 Tue Mar  5 12:14:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3346         * sysdeps/mach/hurd/select.c (__select): Also don't fault just
3347         because some fdmask is 0.
3349 Mon Mar  4 17:35:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3351         * sysdeps/mach/hurd/select.c (__select):
3352         Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
3353         Don't return without frobbing the bitmasks after a timeout.
3354         When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
3356 Mon Mar  4 17:35:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3358         * hurd/catch-signal.c (hurd_safe_memmove): New function.
3359         (hurd_safe_copyin, hurd_safe_copyout): New functions.
3360         * hurd/hurd/sigpreempt.h: Declare them.
3362 Sun Mar  3 08:43:44 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3364         Replace math code with fdlibm from Sun as modified for netbsd by
3365         JT Conklin and Ian Taylor, including x86 FPU support.
3366         * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
3367         * math/math_private.h: New file.
3368         * sysdeps/i386/fpu/Implies: New file.
3369         * sysdeps/ieee754/Implies: New file.
3370         * math/machine/asm.h, math/machine/endian.h: New files.
3371         * math/Makefile, math/math.h: Rewritten.
3372         * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
3373         * math/finite.c: File removed.
3374         * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
3376         * math/test-math.c: Include errno.h and string.h.
3378         * sysdeps/unix/bsd/dirstream.h: File removed.
3379         * sysdeps/unix/bsd/readdir.c: File removed.
3381 Sat Mar  2 16:35:40 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3383         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
3384         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
3385         removed.
3386         * sysdeps/generic/profil-counter.h: New file.
3388 Fri Mar  1 17:11:59 1996  Brendan Kehoe  <brendan@zen.org>
3390         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
3391         including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
3392         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
3393         same as linux/m68k/profil-counter.h except the comment.
3395 Fri Mar  1 10:09:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3397         * stdlib/Makefile (mpn-stuff): New target.
3398         (copy-mpn): Use it.
3400         * Code copied from GMP updated to 1.937 version.
3401         * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
3403         * posix/glob.c: Use canonical code from autoconf manual for dirent
3404         include.
3405         [_D_NAMLEN]: Redefine NAMLEN using this.
3406         (glob_in_dir): Use NAMLEN macro.
3408         * sysdeps/posix/profil.c: New file.
3410 Thu Feb 29 20:55:57 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3412         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
3414 Tue Feb 27 12:14:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3416         * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
3417         `extern' keyword.
3419         * time/strftime.c: Support - and _ flags to affect number padding.
3421         * sysdeps/unix/common/tcsendbrk.c: New file.
3423 Mon Feb 26 10:22:30 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3425         * sysdeps/unix/dirstream.h: Rewritten.
3426         * sysdeps/unix/readdir.c: Rewritten.
3427         * sysdeps/unix/telldir.c: Rewritten.
3428         * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
3429         Remove __ from DIR struct member names.
3430         * sysdeps/unix/dirfd.c: Likewise.
3431         * sysdeps/unix/seekdir.c: Likewise.
3432         * sysdeps/unix/rewinddir.c: Likewise.
3433         * sysdeps/unix/opendir.c: Likewise.  Don't allocate extra space after
3434         DIR structure.
3435         * sysdeps/stub/direct.h: File removed.
3436         * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
3437         * sysdeps/unix/bsd/direct.h: File removed.
3438         * sysdeps/unix/common/direct.h: File removed.
3439         * sysdeps/unix/sysv/irix4/direct.h: File removed.
3440         * sysdeps/unix/sysv/isc3/direct.h: File removed.
3441         * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
3442         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
3443         * sysdeps/unix/common/direntry.h: New file.
3444         * sysdeps/unix/bsd/direntry.h: New file.
3445         * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
3446         * sysdeps/unix/sysv/direntry.h: New file.
3447         * sysdeps/stub/direntry.h: New file.
3448         * dirent/dirent.h (struct dirent): Type removed.  Include <direntry.h>
3449         to define it.
3450         (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
3451         * dirent/Makefile (headers): Add direntry.h.
3452         (distribute): Remove direct.h.
3453         * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
3454         * dirent/scandir.c: Likewise.
3455         * io/fts.c (fts_build): Likewise.
3456         * io/ftw.c (ftw_dir): Likewise.
3457         * sysdeps/posix/ttyname.c: Likewise.
3459         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
3461         * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
3462         (collector_timeout): New static variable.
3463         (update_waiter): Actually call __task_enable_pc_sampling.
3464         Set collector_timeout based on the `tick' count returned.
3465         (profile_waiter): Use MAX_PC_SAMPLES.  Set nsamples before RPC.
3466         Use collector_timeout in __mach_msg call.
3468         * gmon/Makefile (noprof): New variable containing mcount.
3469         Append profil unless it is in $(unix-syscalls).
3470         (mcount.po): Use $(noprof) for list of targets in this rule.
3472         * libc-symbols.h: Define _LIBC before #include <config.h>.
3474 Sun Feb 25 12:29:23 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3476         * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
3477         Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
3479         * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
3481 Fri Feb  9 12:40:19 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
3483         * libio/cleanup.c (_IO_cleanup_registration_needed)
3484         [!_G_HAVE_ATEXIT]: Init to NULL.
3485         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
3487 Thu Feb  8 08:12:50 1996  Brendan Kehoe  <brendan@cygnus.com>
3489         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
3490         previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
3492 Wed Feb  7 15:10:17 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
3494         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
3495         extern.
3497 Sat Feb 24 11:34:13 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3499         * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
3501         * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
3503 Wed Feb 21 02:25:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3505         * Rules (others): Depend on $(extra-objs), $(install-lib),
3506         $(install-bin), $(install-sbin), in object directory.
3508         * Makeconfig (link-libc): Don't pass -rpath option with default
3509         path, since ld.so should use the same default.
3510         * Makerules (build-shlib): Likewise.
3512         * Makerules (make-target-directory): Use mkinstalldirs.
3514         * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
3515         redefine ENTRY et al.
3517         * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
3518         Macros removed.  The code in unix/i386/sysdep.h should now suffice.
3520         * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
3521         [HAVE_ELF] and not.
3522         (ENTRY): Use it in .align directive.
3523         (CALL_MCOUNT): New macro, empty unless [PROF].
3524         (ENTRY): Do CALL_MCOUNT just after the label.
3526         * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
3527         code can call mcount.
3529 Tue Feb 20 23:05:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3531         * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
3532         translation markings are now integrated in his distribution.
3534         * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
3536 Mon Feb 19 18:31:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3538         * po: New directory where `LANG.po' files for message translations
3539         will reside.
3540         * po/SYS_libc.pot: New file, template of message strings as in source.
3541         * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
3542         the source using xgettext.
3543         * Makerules ($(..)po/%.pot): New rule.
3544         * manual/Makefile (../po/manual.pot): New target, make it empty.
3546         * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
3547         * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
3548         * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
3549         * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
3550         * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
3552         * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
3553         Updated from ADO 96d.
3555 Sun Feb 18 14:08:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3557         * csu/initfini.c (_init): Remove bogus volatile declarations and
3558         extra variable, take the address of __gmon_start__ only implicitly
3559         to avoid the test being optimized out.
3561 Sun Feb 18 15:08:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3563         * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
3564         sec.
3566 Sun Feb 18 13:56:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3568         * elf/Makefile, time/Makefile: Make `all' the default target.
3570 Mon Feb 19 18:09:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3572         * misc/sys/ptrace.h: Moved to ...
3573         * sysdeps/generic/sys/ptrace.h: ... here.
3574         * sys/ptrace.h: File removed.
3576 Sun Feb 18 12:13:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3578         * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
3580         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
3581         so that the symbol alias works.
3583         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
3585         * sysdeps/unix/sysv/linux/resourcebits.h: New file.
3587         * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
3589         * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
3590         getppid and reboot.
3592         * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
3593         use getdtablesize.
3595 Sat Feb 17 10:30:21 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
3597         * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
3598         sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
3599         sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
3600         to `long' where necessary.
3602 Thu Feb 15 20:04:50 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
3604         * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
3605         * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
3606         to correctly access MPN array depending on architecture.
3608 Mon Feb 19 15:30:26 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3610         * stdio-common/tstscanf.c (main): Add check for "0" as %d.
3612         * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
3613         Only some systems have three args; let them define their own stub.
3615         * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
3617         * sysdeps/generic/machine-gmon.h: New file.
3618         * gmon/Makefile (distribute): Add machine-gmon.h.
3619         * gmon/mcount.c: Undo changes of Feb 13.
3620         Include "machine-gmon.h".
3622 Sun Feb 18 13:24:06 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3624         * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
3625         identical to unix/common/direct.h.
3627         * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
3629         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
3631         * stdio-common/Makefile (tests): Remove scanf6.
3633         * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
3635         * time/mktime.c (mktime): Move static variable localtime_offset to
3636         file scope.
3638         * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
3639         base indicator.
3641 Thu Feb 15 16:56:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3643         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
3644         (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
3645         (_dl_runtime_resolve): Save %a1 as well.
3646         (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
3647         (elf_machine_relplt): Define.
3649         * elf/dl-runtime.c: Include possible extra args in declaration of
3650         fixup.
3652 Fri Feb 16 11:01:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3654         * time/tzset.c: Limit hours to 23, not 12.  From jaffer.
3656 Fri Feb 16 10:14:05 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3658         * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
3660 Thu Feb 15 13:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3662         * mach/Machrules: Use -include for $(*.ir).
3664         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
3665         request values.
3666         * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
3667         (_IOT_COUNT2): Field is 3 bits, not 2.
3668         * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
3669         * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
3670         bits before looking up handler.
3671         (fioctl): Use __hurd_dfail.
3672         (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
3674 Thu Feb 15 11:49:45 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3676         * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
3677         (sysdep_routines): Don't add sys-sig.
3679         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
3681 Wed Feb 14 00:21:17 1996 David Mosberger-Tang  <davidm@azstarnet.com>
3683         * sysdeps/alpha/memchr.c (memchr): loop searching for matching
3684         character bailed out one too early; changed constant 6 to
3685         7 to fix this.
3687 Wed Feb 14 01:08:58 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3689         * posix/execvp.c: When executing shell on script, first arg is
3690         full file name, not argv[0].
3692         * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
3693         * mach/Machrules [no_deps]: Inhibit interface rules.
3695         * malloc/Makefile (distribute): Removed TODO.
3697 Tue Feb 13 05:12:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3699         * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
3700         caller column.
3702         * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
3704         * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
3706         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
3707         (sysdep_routines): Append setfpucw.
3708         (extra-objs): Append ieee-fpucw.o.
3709         (install-lib): Append libieee.a.
3710         (libieee.a): New target.
3711         * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
3712         * sysdeps/unix/sysv/linux/i386/fpu_control.h
3713         (_FPU_GETCW, _FPU_SETCW): New macros.
3714         (fpu_control_t): New typedef.
3715         (__setfpucw): Use fpu_control_t for argument type.
3716         * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
3718         * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
3720         * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
3721         * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
3723 Sat Feb 10 13:09:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3725         * sysdeps/unix/sysv/linux/m68k/brk.c,
3726         sysdeps/unix/sysv/linux/m68k/mmap.S,
3727         sysdeps/unix/sysv/linux/m68k/select.S,
3728         sysdeps/unix/sysv/linux/m68k/sigcontext.h,
3729         sysdeps/unix/sysv/linux/m68k/sigreturn.S,
3730         sysdeps/unix/sysv/linux/m68k/socket.S,
3731         sysdeps/unix/sysv/linux/m68k/syscall.S,
3732         sysdeps/unix/sysv/linux/m68k/sysdep.S,
3733         sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
3735         * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
3737         * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
3738         sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
3740         * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
3741         MAP_FILE if not already defined.
3743         * elf/elf.h: Add m68k reloc definitions.
3744         * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
3746 Tue Feb 13 00:12:12 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3748         * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
3749         this macro declare extra leading args.
3751         * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
3753         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
3754         elf_machine_relplt): New macros.
3755         * elf/dl-runtime.c: New file.
3756         * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
3758         * gmon/Makefile (headers): Remove machine-gmon.h.
3759         * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
3760         * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
3761         the asm name.
3762         (_mcount): Define normally, taking no args.
3763         Use __builtin_return_address to fetch PC values of caller and caller's
3764         caller.
3766         * Makerules: Rewrote rules to update libc archives of all flavors.
3767         Define separate specific rules for each flavor using o-iterator.
3769         * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
3771 Sat Feb 10 11:35:16 1996 Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3773         * Makerules (ar-symtab-name): New macro.  Replace all occurences
3774         of __.SYMDEF by $(ar-symtab-name).
3775         * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
3777 Mon Feb 12 03:10:41 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3779         * Makefile (configure, %/configure): Depend on aclocal.m4.
3780         * Make-dist (configure, %/configure): Likewise.
3782         * sysdeps/unix/Makefile: Include s-proto.d for its deps.
3784         * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
3785         only needed in the implementation, not for any users.
3787         * time/northamerica: Updated from ADO 96c, new rules for Mexico in
3788         1996.
3790         * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
3791         * sunrpc/pm_getmaps.c: Likewise.
3793         * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
3794         so real syscalls override unix/sysv/*.c on sysv-derived systems
3795         that have them.
3796         * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
3797         override unix/sysv/settimeofday.c since that overrides
3798         unix/syscalls.list.
3800         * Makeconfig (+link): Put $(link-libc) after deps from $^,
3801         regardless of where libc.a appears in the deps.
3803         * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
3804         Add __waitid.
3805         * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
3806         Define __ name for sigprocmask.
3807         * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
3808         Add getsysinfo.
3809         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
3810         * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
3811         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
3812         * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
3813         Add getdents, wait3, waitpid.
3814         * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
3815         settimeofday, sigsuspend, sstk, utimes.
3816         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
3817         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
3818         * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
3819         Removed sigtramp.
3820         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
3821         * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
3822         * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
3823         * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
3824         * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
3825         * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
3826         * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
3827         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
3828         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
3829         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
3830         * sysdeps/unix/sysv/irix4/wait3.S: File removed.
3831         * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
3832         * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
3833         * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
3834         * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
3835         * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
3836         * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
3838         * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
3839         FORWARD_SIGEXC to one.  Uncomment setting of thread exc port, and
3840         move it to last thing.
3842 Sat Feb 10 05:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3844         * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
3846         * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
3848 Sat Feb 10 04:18:48 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3850         * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
3851         the file.
3853 Fri Feb  9 11:46:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3855         * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
3856         CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
3858         * hurd/Makefile (user-interfaces): Added hurd/tioctl.
3860 Thu Feb  8 18:55:27 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3862         * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
3864 Wed Feb  7 18:48:30 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3866         * Makefile (subdirs): Added wcsmbs.
3867         * wcsmbs: New directory of wide char/multibyte char functions from
3868         drepper.
3870         * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
3871         * hurd/report-wait.c: New file.
3872         * hurd/Makefile (routines): Added report-wait.
3874         * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
3876         * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
3877         New type.
3878         (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
3879         * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
3880         Structure moved to intr-msg.h; include that.
3882         * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
3883         (CFLAGS-scheck.c): New variable.
3885         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
3886         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
3887         __hurd_threadvar_stack_mask): New variables.
3889         * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
3890         its new message port.
3892         * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
3894         * configure.in (uname): Add quoting.
3896         * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
3897         * hurd/fchroot.c: Likewise.
3899         * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
3900         __attribute__ ((__mode__ (__XX__))).
3902 Wed Feb 7 03:24:05 1996 Torbjorn Granlund  <tege@tmg.se>
3904         * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
3905         destination cache lines.
3906         (WORD_COPY_BWD): Likewise.
3908 Wed Feb  7 14:16:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3910         * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
3911         file name first thing, before $(native-compile) changes directories.
3913         From Gord Matzigkeit <gord@enci.ucalgary.ca>:
3914         * sysdeps/unix/make_errlist.c: Use strerror if available.
3915         * sysdeps/unix/configure.in: New file
3917         * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
3918         * sysdeps/unix/bsd/sun/sigvec.S: File removed.
3920         * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
3921         * sysdeps/stub/connect.c: Likewise.
3922         * sysdeps/stub/bind.c: Likewise.
3924         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
3925         "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
3926         another dir_lookup of "".
3928 Tue Feb  6 12:46:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3930         * libc-symbols.h (weak_alias, weak_symbol): added definitions
3931         for ECOFF (HAVE_ECOFF).
3933 Fri Feb  2 13:09:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3935         * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
3937 Wed Jan 31 20:08:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3939         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
3940         when cancelled before RPC.
3942 Tue Jan 30 13:32:05 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3944         * dirent/scandir.c: Allocate dirents with correct size for name, and
3945         copy with correct size.
3947         * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
3949         * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
3950         flag bits.
3951         (__vfscanf): Fix checking of extra type modifiers.
3953         * time/asia, time/australasia, time/backward: Updated from ADO 96b.
3955 Tue Jan 30 12:17:26 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3957         * stdlib/strtod.c: Only negate exponent when there really is one.
3959         * stdio-common/vfscanf.c: Accept type modifiers on %n.
3960         Fix FP number parsing.
3962 Mon Jan 29 21:53:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3964         * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
3966         * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
3968 Mon Jan 29 16:29:16 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3970         * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
3971         include an increment for each operation allowed on each fd.
3973 Mon Jan 29 11:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3975         * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
3977         * Makefile: Use -include for sysd-dirs.
3979         * configure.in (uname): Check for uname in syscalls.list files.
3980         * sysdeps/unix/sysv/syscalls.list: Remove uname.
3981         * sysdeps/unix/syscalls.list: Add uname.
3983         * stdlib/strtol.c (weak1): New macro, to get the right name declared
3984         weak.
3986         * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
3988         * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
3989         (dbm_open): Use dynamic allocation for file name buffer, instead of
3990         limitting its size to MAXPATHLEN.
3992         * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
3993         buffer, instead of limitting its size to MAXPATHLEN.
3995         * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
3996         * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
3998 Sun Jan 28 19:42:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4000         * time/Makefile: Fix check for cross compiling.
4002 Thu Jan 25 21:10:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4004         * db/Makefile (subdir-dirs): Renamed from dbdirs.
4006         * Makerules (distinfo-vars): Add subdir-dirs.
4008         * MakeTAGS: Remove vpath directives.
4009         (all-dirs): Prepend $(subdir-dirs).
4010         (all-sources, all-headers): Use wildcard to find sources.
4012 Mon Jan 29 10:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4014         * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
4015         variables.
4017         * mach/msgserver.c: Declare DEMUX arg with prototype.
4019 Sun Jan 28 17:25:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4021         * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
4022         make C++ happy.
4023         * alpha/jmp_buf.h: Likewise.
4024         * m68k/jmp_buf.h: Likewise.
4025         * mips/jmp_buf.h: Likewise.
4026         * sparc/jmp_buf.h: Likewise.
4027         * vax/jmp_buf.h: Likewise.
4029         * sysdeps/generic/memmem.c: Fix return value in case where
4030         NEEDLE_LEN==0.
4032         * hurd/hurdlookup.c (__file_name_lookup_under,
4033         __file_name_lookup): Restrict mode with umask.
4034         * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
4035         * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
4037 Fri Jan 26 12:20:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4039         * stdlib/strtol.c: Undo last change.  ANSI C changed since the
4040         draft I checked yesterday.  Sigh.
4042 Thu Jan 25 18:58:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4044         * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
4046 Wed Jan 24 03:22:07 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4048         * malloc/mcheck.c (mabort): Declare prototype.
4050         * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
4052         * Makerules: Use -include for generated makefiles.
4054         * errno.h: Don't declare errno if it's defined as a macro.
4056         * stdio-common/vfscanf.c: Disallow l flag after ll or L.
4058         * stdio-common/Makefile (tests): Add scanf[1-9].
4059         * stdio-common/scanf[1-9].c: New files.  Bug tests from hjl.
4061 Wed Jan 24 04:18:36 1996  Paul Eggert  <eggert@twinsun.com>
4063         * strftime.c (strftime):
4064         When invoking self, check whether the subsidiary invocation failed.
4065         Use "???" (not "") to denote unknown time zone information.
4067         Make this source file portable to standalone contexts (e.g. GNU Emacs).
4068         <config.h>: Include if HAVE_CONFIG_H is defined.
4069         (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
4070         defined if _LIBC or if <config.h> defines them.
4071         <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
4072         <sys/types.h>: New include; some hosts require it for `time_t'.
4073         <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
4074         <limits.h>: Include only if HAVE_LIMITS_H.
4075         <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
4076         (memcpy): Define in terms of bcopy if !STDC_HEADERS.
4077         (__P, PTR): Define if not already defined.
4078         (__tzname, __daylight, __timezone): Remove macros; no longer needed.
4079         (add, strftime): Don't use NULL, for portability to some weird hosts.
4080         (fmt): If !_LIBC, don't assume sprintf returns a count.
4081         (week, strftime): Use old-style function declarations.
4082         (weekday_name, month_name): New constants.
4083         (strftime): Use traditional C values if locale support isn't available.
4084         Use `const' instead of CONST.  For time zones, use tm_zone if
4085         possible, then fall back on tzname.  Don't check for multibyte
4086         characters unless mblen is supported.  Use formats like %02d instead
4087         of %.2d, for portability to older hosts.
4089 Wed Jan 24 00:07:52 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4091         * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
4092         (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
4093         Fix bug in recognition of %ll flag for long long.
4094         Fix overeager checks for conflicting type modifiers.
4095         With ' flag, match thousands separators for decimal numbers.
4097 Tue Jan 23 22:02:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4099         * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
4101         * resolv/Makefile (CFLAGS): Disable some warnings.
4103         * sysdeps/generic/Makefile (elided-routines): Removed hypot.
4104         (+gccwarn): Set with override.
4106         * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
4108         * posix/Makefile (CFLAGS-regex.c): New variable.
4110         * malloc/Makefile (CFLAGS-obstack.c): New variable.
4112         * io/Makefile (CFLAGS-fts.c): New variable.
4113         * io/fts.c (fts_open): Use prototypes for COMPAR decl.
4115 Tue Jan 23 21:35:32 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4117         * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
4118         case is '\0'-terminated.
4120 Tue Jan 23 19:49:54 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4122         * elf/rtld.c (dl_main): Support additional args in --list mode for
4123         debugging: look them up as symbol names and print values.
4125         * misc/getttyent.c (skip, value): Declare with prototypes in file
4126         scope.
4128         * csu/initfini.c (_init): Explicitly set a variable that is
4129         pointer to volatile with the address of __gmon_start__, to avoid
4130         the test being optimized out.
4132 Mon Jan 22 10:40:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4134         * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
4136         * io/fts.h (FTSENT): Define fts_compar member with prototype.
4138         * hurd/hurd.h: Use prototype in getcttyid decl.
4140         * stdlib/l64a.c: Fix typo in last change.
4142         * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
4143         for determining size of types.
4144         * stdlib/srand48_r.c: Likewise.
4146         * misc/utmp.h: Declare login, logout, logwtmp.
4147         * misc/logout.c: Declare argument as pointer to const.
4148         * misc/login.c: Likewise.
4149         * misc/logwtmp.c: Likewise.
4150         Include time.h, string.h.
4152         * misc/efgcvt_r.c: Include stdlib.h.
4154         * io/mknod.c: Include sys/types.h.
4156         * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
4158         * csu/gmon-start.c (_start, etext): Declare with prototypes.
4160         * stdio-common/vfscanf.c (%[): Fix range handling.
4162 Sun Jan 21 00:55:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4164         * misc/Makefile (headers): Rename queue.h to sys/queue.h.
4165         * misc/queue.h: Moved to misc/sys/queue.h.
4167         * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
4168         sys/sem.h.
4170         * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
4172         * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
4173         literal byte values.
4175         * misc/bsd-compat.c (getpgrp): Define with prototype.
4177         * misc/init-misc.c (__progname_full): New variable.
4178         (program_invocation_name, program_invocation_short_name): New aliases.
4179         (__init_misc): Define with prototype.  Set __progname_full.
4180         * misc/progname.c: File removed.
4181         * misc/Makefile (aux): Remove progname.
4183         * misc/hsearch_r.c (isprime): Define with prototype.
4185         * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
4186         * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
4187         * sysdeps/unix/bsd/setegid.c: Likewise.
4189 Fri Jan 19 13:28:59 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4191         * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
4192         __tcdrain.
4194         * posix/glob.c (glob): Use prototype in getlogin decl.
4196         * db/ndbm.h: Declare dbm_error, dbm_clearerr.
4197         * db/db/db.c (__dberr): Define with prototype.
4198         (__dbpanic): Use prototypes in casts.
4199         * db/hash/hash_log2.c: Add prototype decl.
4201         * sysdeps/generic/_strerror.c (_strerror_internal): Define with
4202         prototype.
4204         * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
4205         They will be overridden with syscalls if extant by unix/syscalls.list.
4207         * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
4209         * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
4210         * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
4212 Thu Jan 18 00:32:43 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4214         * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
4216         * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
4217         get args.
4219         * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
4220         defines GNU extensions.
4221         * posix/fnmatch.c: Likewise.
4223         Replaced all simple system call files *.S throughout sysdeps/unix
4224         with syscalls.list files to be processed by make-syscalls.sh.
4225         * sysdeps/unix/s-proto.S: New file.
4226         * sysdeps/unix/syscalls.list: New file.
4227         * sysdeps/unix/bsd/syscalls.list: New file.
4228         * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
4229         * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
4230         * sysdeps/unix/bsd/osf/syscalls.list: New file.
4231         * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
4232         * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
4233         * sysdeps/unix/bsd/sun/syscalls.list: New file.
4234         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
4235         * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
4236         * sysdeps/unix/common/syscalls.list: New file.
4237         * sysdeps/unix/inet/syscalls.list: New file.
4238         * sysdeps/unix/mman/syscalls.list: New file.
4239         * sysdeps/unix/sysv/syscalls.list: New file.
4240         * sysdeps/unix/sysv/irix4/syscalls.list: New file.
4241         * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
4242         * sysdeps/unix/sysv/linux/syscalls.list: New file.
4243         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
4244         * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
4245         * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
4246         * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
4247         * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
4248         * sysdeps/unix/acct.S: File removed.
4249         * sysdeps/unix/chdir.S: File removed.
4250         * sysdeps/unix/chmod.S: File removed.
4251         * sysdeps/unix/chown.S: File removed.
4252         * sysdeps/unix/chroot.S: File removed.
4253         * sysdeps/unix/close.S: File removed.
4254         * sysdeps/unix/configure: File removed.
4255         * sysdeps/unix/configure.in: File removed.
4256         * sysdeps/unix/dup.S: File removed.
4257         * sysdeps/unix/fcntl.S: File removed.
4258         * sysdeps/unix/fsync.S: File removed.
4259         * sysdeps/unix/getgid.S: File removed.
4260         * sysdeps/unix/getpid.S: File removed.
4261         * sysdeps/unix/getuid.S: File removed.
4262         * sysdeps/unix/ioctl.S: File removed.
4263         * sysdeps/unix/kill.S: File removed.
4264         * sysdeps/unix/link.S: File removed.
4265         * sysdeps/unix/lseek.S: File removed.
4266         * sysdeps/unix/open.S: File removed.
4267         * sysdeps/unix/ptrace.S: File removed.
4268         * sysdeps/unix/read.S: File removed.
4269         * sysdeps/unix/reboot.S: File removed.
4270         * sysdeps/unix/setgid.S: File removed.
4271         * sysdeps/unix/setuid.S: File removed.
4272         * sysdeps/unix/sync.S: File removed.
4273         * sysdeps/unix/umask.S: File removed.
4274         * sysdeps/unix/unlink.S: File removed.
4275         * sysdeps/unix/write.S: File removed.
4276         * sysdeps/unix/bsd/flock.S: File removed.
4277         * sysdeps/unix/bsd/getdtsz.S: File removed.
4278         * sysdeps/unix/bsd/getpagesize.S: File removed.
4279         * sysdeps/unix/bsd/killpg.S: File removed.
4280         * sysdeps/unix/bsd/profil.S: File removed.
4281         * sysdeps/unix/bsd/readv.S: File removed.
4282         * sysdeps/unix/bsd/settimeofday.S: File removed.
4283         * sysdeps/unix/bsd/sigblock.S: File removed.
4284         * sysdeps/unix/bsd/sigpause.S: File removed.
4285         * sysdeps/unix/bsd/sigsetmask.S: File removed.
4286         * sysdeps/unix/bsd/sigstack.S: File removed.
4287         * sysdeps/unix/bsd/sigvec.S: File removed.
4288         * sysdeps/unix/bsd/utimes.S: File removed.
4289         * sysdeps/unix/bsd/writev.S: File removed.
4290         * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
4291         * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
4292         * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
4293         * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
4294         * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
4295         * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
4296         * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
4297         * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
4298         * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
4299         * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
4300         * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
4301         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
4302         * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
4303         * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
4304         * sysdeps/unix/bsd/osf/msync.S: File removed.
4305         * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
4306         * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
4307         * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
4308         * sysdeps/unix/bsd/sun/getdents.S: File removed.
4309         * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
4310         * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
4311         * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
4312         * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
4313         * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
4314         * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
4315         * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
4316         * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
4317         * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
4318         * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
4319         * sysdeps/unix/common/access.S: File removed.
4320         * sysdeps/unix/common/adjtime.S: File removed.
4321         * sysdeps/unix/common/dup2.S: File removed.
4322         * sysdeps/unix/common/fchmod.S: File removed.
4323         * sysdeps/unix/common/fchown.S: File removed.
4324         * sysdeps/unix/common/ftruncate.S: File removed.
4325         * sysdeps/unix/common/getgroups.S: File removed.
4326         * sysdeps/unix/common/getitimer.S: File removed.
4327         * sysdeps/unix/common/getpgid.S: File removed.
4328         * sysdeps/unix/common/getpriority.S: File removed.
4329         * sysdeps/unix/common/getrlimit.S: File removed.
4330         * sysdeps/unix/common/getrusage.S: File removed.
4331         * sysdeps/unix/common/gettimeofday.S: File removed.
4332         * sysdeps/unix/common/mkdir.S: File removed.
4333         * sysdeps/unix/common/readlink.S: File removed.
4334         * sysdeps/unix/common/rename.S: File removed.
4335         * sysdeps/unix/common/rmdir.S: File removed.
4336         * sysdeps/unix/common/select.S: File removed.
4337         * sysdeps/unix/common/setgroups.S: File removed.
4338         * sysdeps/unix/common/setitimer.S: File removed.
4339         * sysdeps/unix/common/setpgid.S: File removed.
4340         * sysdeps/unix/common/setpriority.S: File removed.
4341         * sysdeps/unix/common/setregid.S: File removed.
4342         * sysdeps/unix/common/setreuid.S: File removed.
4343         * sysdeps/unix/common/setrlimit.S: File removed.
4344         * sysdeps/unix/common/swapon.S: File removed.
4345         * sysdeps/unix/common/symlink.S: File removed.
4346         * sysdeps/unix/common/truncate.S: File removed.
4347         * sysdeps/unix/common/vhangup.S: File removed.
4348         * sysdeps/unix/inet/accept.S: File removed.
4349         * sysdeps/unix/inet/bind.S: File removed.
4350         * sysdeps/unix/inet/connect.S: File removed.
4351         * sysdeps/unix/inet/gethostid.S: File removed.
4352         * sysdeps/unix/inet/gethostname.S: File removed.
4353         * sysdeps/unix/inet/getpeername.S: File removed.
4354         * sysdeps/unix/inet/getsockname.S: File removed.
4355         * sysdeps/unix/inet/getsockopt.S: File removed.
4356         * sysdeps/unix/inet/listen.S: File removed.
4357         * sysdeps/unix/inet/recv.S: File removed.
4358         * sysdeps/unix/inet/recvfrom.S: File removed.
4359         * sysdeps/unix/inet/recvmsg.S: File removed.
4360         * sysdeps/unix/inet/send.S: File removed.
4361         * sysdeps/unix/inet/sendmsg.S: File removed.
4362         * sysdeps/unix/inet/sendto.S: File removed.
4363         * sysdeps/unix/inet/sethostid.S: File removed.
4364         * sysdeps/unix/inet/sethostname.S: File removed.
4365         * sysdeps/unix/inet/setsockopt.S: File removed.
4366         * sysdeps/unix/inet/shutdown.S: File removed.
4367         * sysdeps/unix/inet/socket.S: File removed.
4368         * sysdeps/unix/inet/socketpair.S: File removed.
4369         * sysdeps/unix/mman/madvise.S: File removed.
4370         * sysdeps/unix/mman/mmap.S: File removed.
4371         * sysdeps/unix/mman/mprotect.S: File removed.
4372         * sysdeps/unix/mman/msync.S: File removed.
4373         * sysdeps/unix/mman/munmap.S: File removed.
4374         * sysdeps/unix/sysv/alarm.S: File removed.
4375         * sysdeps/unix/sysv/ftime.S: File removed.
4376         * sysdeps/unix/sysv/nice.S: File removed.
4377         * sysdeps/unix/sysv/pause.S: File removed.
4378         * sysdeps/unix/sysv/poll.S: File removed.
4379         * sysdeps/unix/sysv/s_getdents.S: File removed.
4380         * sysdeps/unix/sysv/signal.S: File removed.
4381         * sysdeps/unix/sysv/stime.S: File removed.
4382         * sysdeps/unix/sysv/time.S: File removed.
4383         * sysdeps/unix/sysv/times.S: File removed.
4384         * sysdeps/unix/sysv/ulimit.S: File removed.
4385         * sysdeps/unix/sysv/uname.S: File removed.
4386         * sysdeps/unix/sysv/utime.S: File removed.
4387         * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
4388         * sysdeps/unix/sysv/irix4/msync.S: File removed.
4389         * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
4390         * sysdeps/unix/sysv/irix4/signal.S: File removed.
4391         * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
4392         * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
4393         * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
4394         * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
4395         * sysdeps/unix/sysv/linux/fork.S: File removed.
4396         * sysdeps/unix/sysv/linux/getpgid.S: File removed.
4397         * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
4398         * sysdeps/unix/sysv/linux/getsid.S: File removed.
4399         * sysdeps/unix/sysv/linux/gtty.S: File removed.
4400         * sysdeps/unix/sysv/linux/mlock.S: File removed.
4401         * sysdeps/unix/sysv/linux/mlockall.S: File removed.
4402         * sysdeps/unix/sysv/linux/mount.S: File removed.
4403         * sysdeps/unix/sysv/linux/munlock.S: File removed.
4404         * sysdeps/unix/sysv/linux/munlockall.S: File removed.
4405         * sysdeps/unix/sysv/linux/pipe.S: File removed.
4406         * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
4407         * sysdeps/unix/sysv/linux/setpgid.S: File removed.
4408         * sysdeps/unix/sysv/linux/setsid.S: File removed.
4409         * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
4410         * sysdeps/unix/sysv/linux/sigpending.S: File removed.
4411         * sysdeps/unix/sysv/linux/stty.S: File removed.
4412         * sysdeps/unix/sysv/linux/umount.S: File removed.
4413         * sysdeps/unix/sysv/linux/wait4.S: File removed.
4414         * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
4415         * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
4416         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
4417         * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
4418         * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
4419         * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
4420         * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
4421         * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
4422         * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
4423         * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
4424         * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
4425         * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
4426         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
4428         * io/mknod.c: New file.
4430         * Makerules (COMPILE.s): New variable.
4432         * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
4433         make-syscalls.sh and include it.
4434         [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
4435         sysd-syscalls.
4436         * sysdeps/unix/make-syscalls.sh: New file.
4438         * Makerules (COMPILE.S): New variable.
4440 Wed Jan 17 11:04:58 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4442         * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
4443         _STAT_VER_SVR4, _STAT_VER): New macros.
4444         (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
4446         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
4447         New macros.
4449         * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
4450         (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
4451         [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
4452         as `extern inline's calling the `x' functions.
4453         * io/fstat.c: New file.
4454         * io/lstat.c: New file.
4455         * io/stat.c: New file.
4456         * sysdeps/generic/lstat.c: File removed.
4457         * sysdeps/generic/lxstat.c: New file.
4458         * sysdeps/mach/hurd/fstat.c: File removed.
4459         * sysdeps/mach/hurd/fxstat.c: New file.
4460         * sysdeps/mach/hurd/lstat.c: File removed.
4461         * sysdeps/mach/hurd/lxstat.c: New file.
4462         * sysdeps/mach/hurd/mknod.c: File removed.
4463         * sysdeps/mach/hurd/stat.c: File removed.
4464         * sysdeps/mach/hurd/xmknod.c: New file.
4465         * sysdeps/mach/hurd/xstat.c: New file.
4466         * sysdeps/stub/fstat.c: File removed.
4467         * sysdeps/stub/fxstat.c: New file.
4468         * sysdeps/stub/lstat.c: File removed.
4469         * sysdeps/stub/lxstat.c: New file.
4470         * sysdeps/stub/mknod.c: File removed.
4471         * sysdeps/stub/stat.c: File removed.
4472         * sysdeps/stub/xmknod.c: New file.
4473         * sysdeps/stub/xstat.c: New file.
4474         * sysdeps/unix/common/lstat.S: File removed.
4475         * sysdeps/unix/common/lxstat.c: New file.
4476         * sysdeps/unix/fstat.S: File removed.
4477         * sysdeps/unix/fxstat.c: New file.
4478         * sysdeps/unix/mknod.S: File removed.
4479         * sysdeps/unix/stat.S: File removed.
4480         * sysdeps/unix/sysv/linux/fstat.c: File removed.
4481         * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
4482         * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
4483         * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
4484         * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
4485         * sysdeps/unix/sysv/linux/lstat.c: File removed.
4486         * sysdeps/unix/sysv/linux/mknod.c: File removed.
4487         * sysdeps/unix/sysv/linux/stat.c: File removed.
4488         * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
4489         * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
4490         * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
4491         * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
4492         * sysdeps/unix/xmknod.c: New file.
4493         * sysdeps/unix/xstat.c: New file.
4494         * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
4495         * misc/Makefile (routines): Remove mknod.
4497         * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
4498         Add missing ; in little-endian case.
4500         * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
4501         Define this instead of ELF_DYNAMIC_DO_RELA.
4503         * sysdeps/unix/sysv/time.S: Moved from sysv4.
4504         * sysdeps/unix/sysv/irix4/time.S: File removed.
4506         * sysdeps/unix/sysv/linux/signum.h: Moved from
4507         sysdeps/unix/sysv/linux/i386.
4508         (_NSIG): Move inside #ifdef _SIGNAL_H.
4510 Tue Jan 16 17:37:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4512         * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
4513         * sysdeps/unix/telldir.c: Fix position calculation to account for
4514         buffered data properly.
4516         * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
4517         library.
4519         * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
4520         * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
4521         global.
4522         [! HAVE_INITFINI]: Only make it a constructor in this case.
4524         * gmon/Makefile (CFLAGS-mcount.c): New variable.
4525         (mcount.po): New target.
4527         * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
4529         * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
4530         (initfini): Compile initfini.c with -fPIC.
4532 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
4534         * sysdeps/mips/bytesex.h: Add default byte sex.  By Ralf Baechle.
4536         * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
4537         member of `struct timex' instead of `modes'.  From Andreas Schwab.
4539         * sysdeps/unix/sysv/linux/mknod.c: New file.  Generic C version.
4540         * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
4542         * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
4543         [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
4544         [$(subdir) = misc] (headers): Append sys/mount.h.
4546         * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
4547         New files.  Implement system calls.
4548         * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
4550         * sysdeps/unix/sysv/linux/ptrace.c: New file.  Wrapper around
4551         ptrace system call.
4552         * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
4554         * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
4555         types for i386/Linux.
4557 Sun Jan 14 17:51:09 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4559         * MakeTAGS (all-sources, all-headers): Always search the
4560         current directory first.
4562         * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
4563         found.
4565         * stdio-common/vfscanf.c (inchar, conv_error, input_error,
4566         memory_error): Add cast to void to avoid gcc warning.
4567         (vfscanf): Rewrite character class parsing to make it more efficient.
4569         * misc/efgcvt_r.c (ecvt_r): Handle negative values.
4571         * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
4572         * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
4573         sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
4575         * stdio-common/printf_fp.c (__printf_fp): Fix parameter
4576         declaration.
4578         * sysdeps/generic/putenv.c (putenv): Fix second argument of
4579         setenv.
4581         * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
4582         * sysdeps/ieee754/cabs.c: Don't define hypot here.
4584         * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
4585         definition of ieee_nan alternative.
4587         * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
4588         prefix spec.
4590         * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
4592         * sysdeps/m68k/fpu/__math.h: Include <errno.h>.  Replace obsolete
4593         __CONSTVALUE by attribute.
4594         (floor): Round to negative infinity.
4595         (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
4596         clash when compiling source.
4597         (pow): Handle x == 0 and x < 0.
4598         (ceil, __isinf, __isnan): Fix register constraints.
4599         (__isinfl, __isnanl): Added.
4600         * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
4601         sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
4602         sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
4604         * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
4605         assembler syntax.
4607         * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
4608         argument.
4610         * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
4611         clock_t conversion.
4612         (clock): Don't multiply by CLOCKS_PER_SEC.
4614         * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
4616         * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
4617         __end.
4619         * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
4621         * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
4623         * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
4625 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
4627         * stdlib/strtol.c: Return correct pointer for strings
4628         like "0xyz" and base 0 or 16.
4630         * string/strxfrm.c: Handle case for LENGTH == 0 correct.
4632         * sunrpc/etc.rpc: Add some more known protocols.
4634 Fri Jan 12 13:40:01 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4636         * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
4638         * posix/glob.c (glob): Add parens in glob call flags arg for
4639         GLOB_BRACE case.
4641         * string/string.h (strdupa): New macro.
4643         * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
4644         terminator on empty set.  From drepper.
4646 Thu Jan 11 13:09:20 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4648         * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
4649         referent for STB_LOCAL.
4651 Wed Jan 10 10:11:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4653         * time/africa, time/antarctica, time/asia, time/australasia,
4654         time/europe, time/northamerica, time/pacificnew, time/solar87,
4655         time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
4657 Tue Jan  9 16:10:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4659         * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
4660         segment to find location, mprotect excess region to no access,
4661         don't munmap it.
4663         * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
4664         KERN_NO_SPACE for fixed location, deallocate it and try again.
4666 Mon Jan  8 17:43:23 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4668         * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
4669         * locale/hash.c: Renamed to locale/locfile-hash.c.
4671 Sat Jan  6 16:39:14 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4673         * Makefile (subdirs): Added db.
4675         * resolv/Makefile (routines): Add res_data.
4676         * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
4677         Updated from BIND 4.9.3 final release.
4679         * elf/dynamic-link.h (elf_get_dynamic_info): Handle
4680         processor-specific tags.
4681         (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
4683         * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
4684         * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
4686         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
4687         arg LAZY.  Only do our work if LAZY and there is a DT_JMPREL record.
4688         * elf/dl-reloc.c (_dl_relocate_object): Call
4689         elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
4691         * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
4692         Align end of load segment only to page size, not to segment alignment.
4694 Thu Jan  4 11:35:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4696         * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
4697         preemption interface.
4699         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4700         Use _hurdsig_catch_memory_fault.
4702         * hurd/Makefile (headers): Add hurd/sigpreempt.h.
4703         (sig): Add catch-signal.
4705         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
4706         Rewritten using a preempter in new interface.
4707         * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
4708         (_hurdsig_catch_memory_fault): New macro.
4710 Wed Jan  3 20:23:42 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4712         * hurd/catch-signal.c: New file.
4714         * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
4716         * hurd/hurdsig.c: Use new hurdfault.h interface.
4717         (abort_all_rpcs): Mutate return value to EINTR in threads whose
4718         replies we will wait for.
4720         * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
4721         do ourselves last.
4723 Wed Jan  3 19:17:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4725         * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
4726         to auth_makeauth() in the right order.
4728 Wed Jan  3 17:19:04 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4730         * sysdeps/generic/strsep.c: Rewritten.
4732         * sysdeps/mach/hurd/fork.c: Use a different workaround for the
4733         suspended page fault deadlock kernel bug: thread_abort our signal
4734         thread first thing after proc_dostop.
4736         * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
4737         recognize rootness properly.
4739 Tue Jan  2 00:50:10 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4741         * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
4742         (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
4743         * hurd/hurd/sigpreempt.h: New file.
4744         * hurd/preempt-sig.c: Rewritten with new interface.
4745         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
4746         preempters being unwound past.
4747         * hurd/hurdsig.c: Use new signal preemption interface.
4749         * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
4750         release.
4752         * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
4753         compatibility.
4755         * misc/queue.h: New file, incorporated from 4.4BSD.
4756         * misc/Makefile (headers): Add queue.h.
4758         * posix/sys/types.h [__USE_BSD]: Include endian.h.
4760         * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
4761         New macros.
4763 Thu Dec 28 10:21:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4765         * sysdeps/generic/confname.h: Define all names as self-referential
4766         macros so #ifdef works.
4768         * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
4769         of _hurd_signal_preempters[SIGNO].
4771 Mon Dec 25 20:56:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4773         * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
4774         EADDRINUSE.  If translated node doesn't grok ifsock protocol,
4775         return EADDRINUSE.
4777         * sysdeps/mach/hurd/connect.c: Make address arg
4778         `const struct sockaddr_un *'.
4779         The redecl is kosher and avoids another variable for AF_LOCAL case.
4780         * sysdeps/mach/hurd/sendto.c: Likewise.
4781         * sysdeps/mach/hurd/bind.c: Likewise.
4783         * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
4784         code for GCC >= 2.7; use __transparent_union__ for name safety;
4785         add several sockaddr flavors.
4786         (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
4787         constructing the transparent union declarations.
4788         (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
4789         (bind, connect, sendto): Make the sockaddr argument use that.
4791 Fri Dec 22 00:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4793         * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
4794         old vector.
4795         * sysdeps/mach/hurd/setuid.c: Likewise.
4797         * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
4798         right thing.
4799         * sysdeps/mach/hurd/setgid.c: Likewise.
4800         * sysdeps/mach/hurd/setreuid.c: Likewise.
4801         * sysdeps/mach/hurd/setregid.c: Likewise.
4802         * sysdeps/mach/hurd/setegid.c: Likewise.
4803         * sysdeps/mach/hurd/seteuid.c: Likewise.
4805         * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
4806         proc_dostop call to work around kernel paging bug.
4808 Fri Dec 22 00:38:00 1995  H.J. Lu  <hjl@nynexst.com>
4810         * stdio-common/vfscanf.c: Correctly handle white space skipping.
4811         * stdio-common/Makefile (tests): Add bug11.
4812         * stdio-common/bug11.c: New file.
4814 Thu Dec 21 12:19:32 1995  Miles Bader  <miles@gnu.ai.mit.edu>
4816         * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
4817         instead of putting it (and other uids) in the gids and leaving the
4818         old uids as is.
4820 Wed Dec 20 18:23:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4822         * stdio/internals.c (flushbuf): If the target is -1, always
4823         discard the buffer of read data.
4824         Only set TWIDDLED flag in !ALIGNED case.
4825         Never increment target or offset when old value is -1.
4827 Tue Dec 19 17:00:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4829         * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
4830         pgrp changes.
4832 Mon Dec 18 13:40:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4834         * stdio/fread.c: Don't increment __offset when it's -1.
4836         * elf/rtld.c (dl_main): Prepend tab to "statically linked".  Exit
4837         0 in that case.
4839         * misc/err.c (vwarnx, vwarn): Fix major brainos.
4841         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
4842         inheritance.
4844 Sun Dec 17 15:56:35 1995  Miles Bader  <miles@gnu.ai.mit.edu>
4846         * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
4848 Sat Dec 16 10:33:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4850         * Makerules: Use $(do-install-so) for installing shared objects.
4851         (do-install-so): New canned sequence.  Make a symlink LIB.so after
4852         installing LIB.so.VERSION.
4854         * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
4856 Fri Dec 15 04:41:22 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4858         * stdio-common/Makefile (tests): Add bug10.
4859         * stdio-common/bug10.c: New file.  From HJ Lu.
4861         * stdio-common/tstdiomisc.c: Make more test-suite like: exit
4862         status tells about successful run.
4864         * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
4865         format correctness.
4866         Correct handling of trailing white spaces in format + EOF.
4868 Fri Dec 15 01:31:56 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4870         * stdio-common/Makefile (tests): Add bug8 and bug9.
4871         * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
4873         * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
4875         * stdlib/strtod.c: Correct spelling: nominator -> numerator.
4876         Thanks to Jim Meyering.
4878 Sat Nov 25 06:05:12 1995  H.J. Lu  <hjl@nynexst.com>
4880         * stdio-common/vfscanf.c: Always check width !=0.
4881         Correctly handle %%.
4883 Thu Dec 14 02:28:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4885         * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
4886         and cast STREAM to DIR * before passing to readdir and closedir.
4888 Wed Dec 13 22:06:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4890         * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
4891         after aborting RPCs but before calling proc_mark_stop.
4893 Mon Dec 11 20:07:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4895         * posix/glob.c [! STDC_HEADERS]: Declare getenv.
4896         (glob): Avoid using function as value.
4898         * elf/rtld.c (dl_main): When mapping argument executable, set
4899         l_name to "", not l_libname.
4900         After loading DT_NEEDED library, set its l_type to lt_library.
4902         * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
4903         VM_INHERIT.  We can't handle MAP_INHERIT easily.
4904         Handle non-page-aligned addresses if congruent to offset.
4906         * elf/dl-init.c: Skip the initializer for l_type lt_executable
4907         with l_name "". Start at _dl_loaded; don't skip the first element.
4909         * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
4910         (MAP_COPY): Define to MAP_PRIVATE if undefined.
4911         (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
4912         If file it ET_EXEC, set its l_type to lt_executable.
4914 Sun Dec 10 09:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4916         * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
4918 Fri Dec  8 13:04:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4920         * locale/error.c, locale/error.h: Files removed.
4921         * locale/Makefile (distribute): Remove error.h.
4922         (lib-modules): Remove error.
4924         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
4925         magic, return ENXIO if no ctty.
4927         * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
4928         mapping if vm_map fails for that reason.
4930         * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
4931         GLOB_TILDE, GLOB_NOMAGIC.
4932         (glob): Use stat instead of lstat to determine directoriness.
4933         * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
4934         New flag bits.
4935         (__GLOB_FLAGS): Include them.
4936         (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
4937         gl_stat.
4939         * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
4941         * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
4942         define all the bit values.
4943         (MAP_*, MCL_*): Macros removed.
4945 Thu Dec  7 02:27:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4947         * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
4948         Updated from BIND 4.9.3-BETA27.
4950 Wed Dec  6 18:44:01 1995  Miles Bader  <miles@gnu.ai.mit.edu>
4952         * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
4954         * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
4955         we get a delayed reply.
4956         Only grab values out of entries in TYPES that have SELECT_RETURNED
4957         turned on, and turn it on whenever an rpc returns.
4958         Only clear bits in the user's fdsets -- those needing to be set
4959         should be already.
4960         Use SELECT_ALL in appropiate places.
4961         (SELECT_RETURNED, SELECT_ALL): New macros.
4963 Wed Dec  6 09:10:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4965         * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
4967         * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
4969 Tue Dec  5 14:00:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4971         * misc/Makefile (headers): Add error.h, err.h.
4972         (routines): Add error, err.
4973         (gpl2lgpl): New variable.
4974         * misc/err.c: New file.
4975         * misc/err.h: New file.
4976         * misc/error.c, misc/error.h: New files.
4978         * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
4980         * Makeconfig (+link): Translate libc% from $^, not just libc.a.
4981         (link-libc): Append $(libc.so-version) to libc.so.
4982         (built-program-cmd): Fix comma usage.
4983         * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
4984         symlink to libc.so in the build directory.
4985         * Rules ($(others) $(tests)): Depend on the library that appears
4986         in $(link-libc).
4987         (%.out): Use $(built-program-cmd) in commands.
4989         * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
4991         * sysdeps/generic/setenv.c: Added canonical portability cruft.
4992         (setenv): Use realloc on LAST_ENVIRON instead of always copying.
4993         (unsetenv): New function.
4994         * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
4995         * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
4997 Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4999         * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
5001         * libio/iofscanf.c: Remove file.
5003         * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
5004         termination.
5006         * libio/iopopen.c: New file from GNU libio.
5008         * libio/memstream.c: Fixed bug in fclose handling.  Instead of
5009         providing a close callback we need a finish callback.
5011         * libio/pclose.c: New file.  Derived from popen.c in GNU libio.
5013         * posix/gnu/types.h: Fixed typo.
5015         * stdio-common/errnobug.c: fputs returns EOF in error case.  Do
5016         not test for != 0.
5018         * stdio-common/printf-parse.h (parse_one_spec): Do not force
5019         padding with ' ' if precision is given.  Fix by HJ Lu.
5021         * stdio-common/printf_fp.c: Fix comment.
5023         * stdio-common/tfformat.c, stdio-common/tiformat.c,
5024         stdio-common/tstdiomisc.c: New files from GNU libio test suite.
5026         * stdio-common/tstgetln.c: Provide ssize_t type when testing
5027         libio.
5029         * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
5030         (vfprintf): Cleasr args_type array before using it.
5031         When printing 0 as an integer with precision 0 nothing must be
5032         written for the number.
5033         Based on patch by HJ Lu.
5035         * stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
5036         have a dynamically extended buffer.
5038         * stdlib/strtod.c: Merge with version in Linux libc.  This fixes
5039         some bugs with handling of very small numbers and has different
5040         solution for formaer patches.
5042         * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
5043         macros r1 and r2 to t1, and t2 resp.  This is necessary because
5044         glibc headers also define r1.
5046 Mon Dec  4 12:10:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5048         * stdlib/gen-mpn-copy (translations): Updated for new layout in
5049         GMP 1.910.
5051         * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
5052         made global.
5053         (malloc): Caller changed.
5054         * malloc/realloc.c (realloc): Call __malloc_initialize if
5055         necessary, before checking hook.
5056         * malloc/malloc.h: Declare __malloc_initialize.
5058         * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
5059         as integer_t arg in RPC.
5061 Sat Dec  2 03:47:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5063         * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
5064         (_hurd_set_brk): Try to allocate more space when we run out.
5066         * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
5067         zero and examine it again.
5068         * sysdeps/unix/sysv/linux/i386/brk.c: New file.
5069         * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
5070         * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
5071         * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
5072         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
5073         Invoke this macro before calling DL_MAIN.
5075         * malloc/malloc.c (malloc): Do initialization here, before
5076         checking the hook.
5077         (_malloc_internal): Don't do it here.
5079 Wed Nov 29 12:30:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5081         * libio/vsnprintf.c (__vsnprintf): Define as alias.
5082         * libio/iovsscanf.c (__vsscanf): Define as alias.
5083         * asprintf.c: Remove libio adaptation code added by drepper.
5084         * dprintf.c: Likewise.
5085         * printf.c: Likewise.
5086         * scanf.c: Likewise.
5087         * snprintf.c: Likewise.
5088         * sprintf.c: Likewise.
5089         * sscanf.c: Likewise.
5090         * vprintf.c: Likewise.
5091         * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
5092         function.
5093         (vfscanf): Define unconditionally.
5095         * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
5096         zero for value.
5098         * misc/getpass.c: Write a newline after reading the unechoed
5099         password.
5101 Mon Nov 27 19:24:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5103         * posix/Makefile (routines): Add getsid.
5104         * sysdeps/unix/sysv/linux/getsid.S: New file.
5105         * sysdeps/mach/hurd/getsid.c: New file.
5106         * sysdeps/stub/getsid.c: New file.
5107         * posix/unistd.h [__USE_GNU]: Declare getsid.
5109 Sun Nov 26 12:44:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5111         * libc-symbols.h (N_): New macro.
5113 Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5115         * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
5116         malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
5117         resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
5118         sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
5119         sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
5120         sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
5121         sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
5122         sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
5123         strings.
5125 Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5127         * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
5129 Thu Nov 23 02:21:55 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5131         * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
5132         New files.
5133         * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
5134         mlock, munlock, mlockall, and munlockall.
5136 Thu Nov 23 18:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5138         * configure.in (--enable-libio): Set $stdio based on $enableval,
5139         not always to libio.
5141 Thu Nov 23 18:06:48 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
5143         * malloc/malloc.c (_malloc_internal): Can't use
5144         get_contiguous_space when the heap info table
5145         will be growing.  Account for new contiguous space in _heaplimit.
5147 Wed Nov 22 12:37:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5149         * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
5150         for errno.
5152         * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
5153         alias for _IO_vfprintf.
5155         * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
5157         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
5158         __fpu_control instead of ___fpu_control.
5159         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
5160         (___fpu_control): Renamed to __fpu_control.
5161         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
5162         * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
5164         * elf/dl-minimal.c: New file.
5165         * elf/Makefile (rtld-routines): Add dl-minimal.
5166         * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
5167         Functions moved to dl-minimal.c.
5168         * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
5169         sigjmp_save, longjmp): Likewise.
5171         * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
5172         to &_end, regardless of PIC.
5174         * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
5176 Tue Nov 21 14:12:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5178         * malloc/malloc.c (align): Don't check contiguity and call abort.
5180         * hurd/hurdsig.c (post_reply): Function removed.
5181         (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
5182         Take single callback fn arg instead of reply port and type.
5183         (_hurd_internal_post_signal): Callers changed.
5184         Cache reply stub fn ptr in local var before UNTRACED might be changed.
5186         * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
5187         PROT_READ|PROT_WRITE copy mapping.  Pass a proper vm_inherit_t to
5188         vm_map.
5190         * elf/rtld.c (_dl_start): For --list, do output and exit before
5191         relocating.
5193 Mon Nov 20 16:19:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5195         * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
5196         get .c and .h files.
5198         * malloc/malloc.c (align): Use abort instead of assert.
5200 Sun Nov 19 18:23:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5202         * Makeconfig (+includes): Add $($(stdio)-include).
5203         (libio-include): New variable.
5205         * stdlib/strtod.c: Put weak_symbol after function defn.
5206         * stdlib/strtol.c: Likewise.
5208         * configure.in (--enable-libio): If not present, set $stdio to
5209         "default".  Move stdio/libio check to end, so sysdeps fragments
5210         can affect it.  Reset $stdio to "stdio" if it's "default".
5211         * sysdeps/unix/sysv/linux/configure: New file.
5213 Sat Nov 18 16:46:01 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5215         * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
5216         libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
5217         libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
5218         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
5219         libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
5220         libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
5221         libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
5222         libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
5223         libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
5224         libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
5225         libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
5226         libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
5227         libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
5228         libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
5229         libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
5230         New files.  Slightly modified version from Linux libc.
5232         * libio/memstream.c, libio/vdprintf.c: New files for functions not
5233         (yet) part of GNU libio.
5235         * libio/iofopncook.c: Implementation of `fopencookie', mainly written
5236         by Per Bothner.
5238         * stdio-common/getline.c: Adapted to libio.
5239         * stdio-common/snprintf.c: Adapted to libio.
5240         * stdio-common/vfprintf.c: Adapted to libio.
5241         * stdio-common/vfscanf.c: Adapted to libio.
5242         * sysdeps/posix/tempname.c: Adapted to libio.
5244 Fri Nov 17 17:57:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5246         * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
5248         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
5249         function.
5251         * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
5252         (_hurdsig_fault_init): Remove #if 0 from setting exception port.
5253         Insert send right for SIGEXC before thread_set_special_port.
5254         * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
5255         (_hurdsig_init): Remove #if 0 from setting exception port.
5257         * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
5258         HURD_MSGPORT_RPC macro.
5260 Thu Nov 16 06:07:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5262         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
5263         function.
5264         (_dl_sysdep_start): Move cleanup code there.
5266         * Makeconfig (default-rpath): New variable.
5267         (link-libc): Use it.
5268         * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
5269         * elf/rtld.c (_dl_rpath): New variable.
5270         (_dl_start): Set it from rtld_map's DT_RPATH.
5271         Call _dl_setup_hash on rtld_map.
5272         (dl_main): Cache address of _exit in variable before relocating,
5273         and use that in later calls.  Call _dl_sysdep_start_cleanup before
5274         relocating.  Keep track of dependency order while loading; remove
5275         rtld_map from chain, and reinsert in proper order if there is a
5276         dependency on it.
5278         * sysdeps/generic/Makefile (make_siglist): Pass
5279         -DSIGNUM_H=... with config's signum.h location.
5280         * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
5281         signal numbers.
5282         (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
5283         (main): Deansideclize output.
5285         * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
5286         of DEFAULT_RPATH macro.
5287         * elf/Makefile: Undo last change.
5289         * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
5291 Wed Nov 15 19:22:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5293         * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
5294         error if weak.
5296         * elf/Makefile (default-rpath): New variable.
5297         (CPPFLAGS): Append -DDEFAULT_RPATH=....
5298         * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
5299         hard-coded "/lib:/usr/lib".
5301         * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
5302         instead of stdio.
5303         (_dl_sysdep_start): If passed user entry is zero and
5304         EXEC_STACK_ARGS flag set, reset user entry to &_start.
5306         * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
5307         DT_HASH element.
5309         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
5310         repeat weak decl using weak_symbol macro, in case using broken GCC
5311         (<2.8).
5313 Wed Nov 15 18:49:55 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5315         * sysdeps/i386/isnanl.c: New file.
5316         * sysdeps/i386/isinfl.c: New file.
5318 Tue Nov 14 18:44:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5320         * malloc/free.c (free): Moved null and aligned_blocks checks
5321         inside _free_internal.
5323 Mon Nov 13 15:23:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5325         * malloc/malloc.c (morecore): Fix inverted test in allocating new
5326         info table.
5328         * malloc/malloc.c (align): Fix assertion.
5330         * malloc/malloc.c: Include assert.h.
5332         * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
5334         * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
5335         (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
5337 Fri Nov 10 14:15:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5339         * malloc/malloc.c (align): Assert that space for alignment
5340         adjustment is same original space.
5342         * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
5343         arg to vm_address_t.
5345         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
5346         skip straight to pending check.  When UNTRACED, resume process
5347         from suspension first.
5349         * intl/Makefile (headers): New variable, libintl.h.
5350         [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
5351         * configure.in: Check for --with-gettext arg.
5353 Fri Nov 10 13:51:30 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
5355         * malloc/malloc.c (get_contiguous_space): New function.
5356         (morecore): Rewrite allocating new malloc info table.
5357         (_malloc_internal): Use get_contiguous_space.
5359 Fri Nov 10 13:03:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5361         * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
5362         _hurd_msgport to be destroyed.
5364         * Makerules (installed-libcs): Filter out %_pic.a.
5366         * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
5367         to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
5369         * hurd/Makefile (user-interfaces): Add hurd/process_request.
5371 Wed Nov  8 16:31:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5373         * termios/Makefile (headers): Add sys/ttychars.h.
5374         * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
5375         for compatibility.
5377         * signal/signal.h [__USE_BSD] (sig_t): New typedef.
5379 Wed Nov  8 15:12:47 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
5381         * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
5382         proc server that we are now traced.
5384 Tue Nov  7 12:29:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5386         * elf/Makefile (ldd): Make it executable.
5388         * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
5390         * Makeconfig (slibdir): New variable.
5391         * Makerules (install): Install libc.so in $(slibdir).
5392         * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
5393         in $(slibdir).
5395         * elf/linux-compat.c: New file.
5396         * elf/Makefile (distribute): Add linux-compat.c.
5397         (generated): Add librtld.so.
5398         [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
5399         [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
5400         (librtld.so): New target.
5401         (ld.so, ld-linux.so.1): Make from librtld.so.
5403         * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
5404         call our own DT_INIT if we have one (and then clear it).
5405         (__dgettext): New weak function.
5407         * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
5408         by hand instead.
5410         * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
5411         instead of snprintf.
5413         * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
5414         BUF[BUFLEN].
5416         * elf/rtld.c (rtld_map): New static variable.
5417         (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
5418         bootstrapping.  Then copy data into `rtld_map'.
5419         (dl_main): Finish filling in rtld_map and link it into the chain,
5420         instead of allocating a new structure.
5421         (dl_main): Call _dl_compat_init if it is defined (use weak ref).
5423         * elf/dlsym.c: Fix last change: move REF out of `doit'.
5425 Mon Nov  6 16:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5427         * elf/dlsym.c: Return the proper value, not just the defining
5428         object's loadbase.
5430 Sun Nov  5 16:09:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5432         * stdio-common/vfprintf.c (%c): Count the character itself towards
5433         the field width in all cases.
5435         * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
5436         __vm_deallocate arg to vm_address_t.
5438 Fri Nov  3 17:27:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5440         * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
5441         socket_create_address.
5442         * sysdeps/mach/hurd/connect.c: Likewise.
5443         * sysdeps/mach/hurd/bind.c: Likewise.
5445         * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
5446         args to proc_getprocinfo.
5447         * sysdeps/mach/hurd/getpriority.c: Likewise.
5449         * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
5451 Thu Nov  2 19:24:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5453         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
5455 Tue Oct 31 00:07:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5457         * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
5458         PI_FETCH_TASKINFO to proc_getprocinfo and through
5459         _hurd_priority_which_map.
5461         * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
5462         _hurd_priority_which_map.
5463         * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
5464         passed through to proc_getprocinfo RPC.
5465         * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
5467         * sysdeps/mach/hurd/group_member.c: New file.
5468         * sysdeps/generic/group_member.c: New file.
5470         * Makerules (lib-noranlib): Don't depend on $(install-lib).
5471         (others): Do.
5472         * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
5474 Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5476         * Rules (others): Depend on $(extra-objs).
5478         * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
5479         * posix/Makefile (routines): Add group_member.
5481         * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
5483         * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
5484         SIG operand in asm so it must be a register.
5485         Add dead return to quiet gcc warning.
5487         * Makerules (sysd-rules): Write a defn for sysd-rules-done.
5488         [! sysd-rules-done]: Inhibit deps.
5490 Thu Oct 26 23:11:11 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5492         * sysdeps/unix/sysv/linux/poll.c: Don't define as stub.  Use
5493         simulation of system call using select.
5495         * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
5497         * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
5499         * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
5500         name usage (new->act, old->oact).
5501         Correct asm statement because of gcc strangeness.
5503         * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
5505         * sunrpc/clnt_perr.c: Remove declaration of sys_errlist.  They
5506         conflict with the ones in stdio.h.
5508         * string/tester.c: %Z is no complete format.  Change to %Zd.
5510 Thu Oct 26 18:13:33 1995  Miles Bader  <miles@gnu.ai.mit.edu>
5512         * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
5513         * sysdeps/mach/hurd/link.c (__link): Ditto.
5514         * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
5515         * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
5516         Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
5518 Thu Oct 26 00:11:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5520         * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
5522         * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
5523         on syscall_error.  For PIC, it is a local label;
5524         for non-PIC, JUMPTARGET expands to the unadorned name anyway.
5525         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
5526         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5527         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5528         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
5529         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5530         * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
5532 Thu Oct 26 03:01:22 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5534         * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
5535         comment to the necessary ones.  Add _readv and _writev.
5537         * sysdeps/unix/configure.in: Change syntax for system call test
5538         candidates and adapt sed script for this.  Now use : to separate
5539         syscall name and file name.
5541         * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
5542         number is now set is DO_CALL.  So call with additional argument.
5543         (DO_CALL): Takes an additional argument.  Load system call
5544         number according to new argument.
5545         (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
5546         * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
5547         locally using SYSCALL_ERROR_HANDLER macro.
5548         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5549         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
5550         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5551         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
5552         * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
5553         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5554         Don't use DO_CALL macro; instead use lower level macros for better
5555         control.
5557         * sysdeps/unix/sysv/linux/sigaction.h: New file.
5558         * sysdeps/unix/sysv/linux/sigaction.S: File removed.
5559         * sysdeps/unix/sysv/linux/signal.S: File removed.
5561 Wed Oct 25 14:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5563         * hurd/hurdstartup.c (_hurd_startup): Use new
5564         exec_startup_get_info RPC from exec_startup.defs
5565         in place of old exec_startup from exec.defs.  Remove kludge to
5566         guess user entry and phdr locations, since the new RPC gives us
5567         that info.
5569         * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
5570         * sysdeps/generic/_strerror.c: Undo last change.
5572         * sysdeps/unix/sysv/linux/stat.c: New file.
5573         * sysdeps/unix/sysv/linux/fstat.c: New file.
5574         * sysdeps/unix/sysv/linux/lstat.c: New file.
5575         * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
5576         * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
5577         * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
5579 Tue Oct 24 15:22:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5581         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5582         New macro.
5583         (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
5585         * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
5586         only #ifndef PIC.
5588         * Makeconfig (built-program-cmd): New variable.
5589         * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
5590         * time/Makefile (zic-cmd): Likewise.
5592         * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
5594         * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
5595         * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
5596         make `others' rather than `lib-noranlib' depend on the libraries.
5598         * sysdeps/unix/configure.in: Check for fchdir syscall.
5599         Improve sed script to allow / on rhs without / on lhs.
5601 Thu Oct 19 03:47:32 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5603         * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
5605         * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
5607         * sysdeps/unix/sysv/linux/select.S: New file.
5609 Wed Oct 18 03:33:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5611         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
5612         SYSCALL_PIC_SETUP before jumping to syscall_error.
5613         * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
5614         (PSEUDO): Use it before jumping to syscall_error.
5615         * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
5616         expect it in %ebx on entry.  Pop old %ebx value off stack after
5617         using it.
5619         * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
5620         them.
5622         * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
5624         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
5625         `fd/', pass the right pointer to strtol to parse the number.
5627 Tue Oct 17 23:00:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5629         * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
5630         of stdio/_itoa.h.
5632 Tue Oct 17 19:51:17 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5634         * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
5635         register %ebx before calling __xstat through PLT.
5637         * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
5639         * sysdeps/unix/sysv/linux/sigset.h: Remove file.
5641 Tue Oct 17 01:21:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5643         * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
5644         stdio/_itoa.h.
5645         * hurd/hurdlookup.c: Likewise.
5647         * hurd/hurd/signal.h: Declare hurd_preempt_signals and
5648         hurd_unpreempt_signals.
5650         * stdio/stdio.h: Declare __snprintf and __vsnprintf.
5652         * stdio-common/psignal.c: Translate signal description strings.
5653         * string/strsignal.c: Likewise.
5654         * sysdeps/generic/_strerror.c (_strerror_internal): Translate
5655         error strings.
5656         * sysdeps/mach/_strerror.c: Likewise.
5658         * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
5659         call __vsnprintf.
5660         (snprintf): Define as weak alias.
5661         * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
5662         (vsnprintf): Define as weak alias.
5664 Mon Oct 16 03:22:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5666         * Makerules (install-lib): Filter out %_pic.a; install only the
5667         linked shared objects.
5669         * locale/Makefile (aux): Add SYS_libc.
5670         * locale/SYS_libc.c: New file.
5671         * libc-symbols.h [! ASSEMBLER] (_): New macro.
5673         * configure.in (libc_cv_asm_set_directive): Link program into
5674         conftest instead of letting it default to a.out.
5676         * elf/Makefile (install-others): Add missing slash.
5678         * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
5679         won't search LD_LIBRARY_PATH.
5681         * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
5682         * configure.in: Grok arg --enable-libio.
5683         ($stdio = libio): Define USE_IN_LIBIO.
5684         * config.h.in (USE_IN_LIBIO): Add #undef.
5685         * config.make.in (stdio): New variable, set by configure.
5686         * Makeconfig (stdio): New variable.
5687         * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
5688         stdio/stdio.h.
5689         * stdio-common/Makefile: New file.
5690         * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
5691         * stdio/_itoa.c: Moved to stdio-common.
5692         * stdio/_itoa.h: Moved to stdio-common.
5693         * stdio/asprintf.c: Moved to stdio-common.
5694         * stdio/bug1.c: Moved to stdio-common.
5695         * stdio/bug1.input: Moved to stdio-common.
5696         * stdio/bug2.c: Moved to stdio-common.
5697         * stdio/bug3.c: Moved to stdio-common.
5698         * stdio/bug4.c: Moved to stdio-common.
5699         * stdio/bug5.c: Moved to stdio-common.
5700         * stdio/bug6.c: Moved to stdio-common.
5701         * stdio/bug6.input: Moved to stdio-common.
5702         * stdio/bug7.c: Moved to stdio-common.
5703         * stdio/dprintf.c: Moved to stdio-common.
5704         * stdio/errnobug.c: Moved to stdio-common.
5705         * stdio/getline.c: Moved to stdio-common.
5706         * stdio/getw.c: Moved to stdio-common.
5707         * stdio/perror.c: Moved to stdio-common.
5708         * stdio/printf-parse.h: Moved to stdio-common.
5709         * stdio/printf-prs.c: Moved to stdio-common.
5710         * stdio/printf.c: Moved to stdio-common.
5711         * stdio/printf.h: Moved to stdio-common.
5712         * stdio/printf_fp.c: Moved to stdio-common.
5713         * stdio/psignal.c: Moved to stdio-common.
5714         * stdio/putw.c: Moved to stdio-common.
5715         * stdio/reg-printf.c: Moved to stdio-common.
5716         * stdio/scanf.c: Moved to stdio-common.
5717         * stdio/snprintf.c: Moved to stdio-common.
5718         * stdio/sprintf.c: Moved to stdio-common.
5719         * stdio/sscanf.c: Moved to stdio-common.
5720         * stdio/tempnam.c: Moved to stdio-common.
5721         * stdio/temptest.c: Moved to stdio-common.
5722         * stdio/test-fseek.c: Moved to stdio-common.
5723         * stdio/test-fwrite.c: Moved to stdio-common.
5724         * stdio/test-popen.c: Moved to stdio-common.
5725         * stdio/test_rdwr.c: Moved to stdio-common.
5726         * stdio/tmpfile.c: Moved to stdio-common.
5727         * stdio/tmpnam.c: Moved to stdio-common.
5728         * stdio/tst-fileno.c: Moved to stdio-common.
5729         * stdio/tst-printf.c: Moved to stdio-common.
5730         * stdio/tstgetln.c: Moved to stdio-common.
5731         * stdio/tstgetln.input: Moved to stdio-common.
5732         * stdio/tstscanf.c: Moved to stdio-common.
5733         * stdio/tstscanf.input: Moved to stdio-common.
5734         * stdio/vfprintf.c: Moved to stdio-common.
5735         * stdio/vfscanf.c: Moved to stdio-common.
5736         * stdio/vprintf.c: Moved to stdio-common.
5737         * stdio/xbug.c: Moved to stdio-common.
5738         * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
5739         stdio-common instead of stdio.
5740         * sysdeps/unix/Makefile (errlist.c rules): Likewise.
5741         * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
5742         function.
5743         * stdio-common/dprintf.c: Likewise.
5744         * stdio-common/printf.c: Likewise.
5745         * stdio-common/scanf.c: Likewise.
5746         * stdio-common/snprintf.c: Likewise.
5747         * stdio-common/sprintf.c: Likewise.
5748         * stdio-common/sscanf.c: Likewise.
5749         * stdio-common/vprintf.c: Likewise.
5751         * Makerules: Include $(+depfiles) directly instead of generating
5752         depend-$(subdir).
5753         (depend-$(subdir)): Target removed.
5754         (common-clean): Don't remove depend-$(subdir).
5756         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
5757         (config-LDFLAGS): Variable removed.
5759         * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
5760         * sysdeps/mach/hurd/bind.c: Likewise.
5761         * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
5762         calling convention.
5764         * hurd/hurdexec.c: Undo last change (10 Oct 95).
5766 Sun Oct 15 21:04:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5768         * hurd/hurd/lookup.h: New file.
5769         * hurd/hurdlookup.c (__file_name_lookup_under): New function.
5770         (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
5771         __hurd_file_name_split): Rewritten to take callback functions for
5772         using any needed init or dtable port, instead of passing in crdir
5773         and cwdir ports.
5774         (__file_name_lookup, __file_name_split): Use new calling
5775         convention; pass _hurd_ports_use and __getdport as the callback
5776         functions.
5778         * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
5779         of __hurd_file_name_lookup.
5780         * sysdeps/mach/hurd/chdir.c: Likewise.
5781         * sysdeps/mach/hurd/fchdir.c: Likewise.
5782         * hurd/fchroot.c: Likewise.
5784         * stdlib/Makefile (mpn-found): Don't omit %.s.
5785         (mpn-copy-sysdep): Omit files in nonexistent directories.
5786         (copy-mpn): Commit files to CVS.
5787         * stdlib/gen-mpn-copy (translations): Update translations for GMP
5788         1.906.7.
5790         * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
5792 Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5794         * malloc/malloc.c (_malloc_internal): Performance fix.  Move
5795         if statement out of loop.
5797         * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
5798         implementation using GMP functions.  Contributed by
5799         Torbjorn Granlund and Ulrich Drepper.
5801         * stdio/test_rdwr.c: Include <errno.h>.
5803         * sysdeps/i386/i586/Implies: New file.
5805         New highly optimized string functions for i[345]86.
5806         * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
5807         * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
5808         * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
5809         * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
5810         * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
5811         * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
5812         * sysdeps/i386/i586/strlen.S: New file.
5813         * sysdeps/i386/memchr.c: Removed.  There is now an assembler version.
5815         * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
5816         not correspond to used values.
5818         * sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
5819         around a kernel header file.
5820         * sysdeps/unix/sysv/linux/Dist: Add it.
5821         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
5822         Likewise.
5824         * sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
5825         defining ourself we use a kernel header file.
5827         * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
5828         call handler for i586.
5830         * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
5832 Thu Oct 12 15:45:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5834         * hurd/hurd.h (file_name_lookup_under): Declare it.
5835         * hurd/Makefile (headers): Add hurd/lookup.h.
5837         * hurd/hurdinit.c (_hurd_ports_use): New function.
5838         * hurd/hurd.h (_hurd_ports_use): Declare it.
5839         (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
5840         hurd_file_name_lookup_retry): Remove these decls.
5841         * hurd/Makefile (routines): Remove invoke-trans.
5843 Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5845         * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
5846         apply R_386_PC32 reloc.
5848         * Makeconfig (config-LDFLAGS): Add missing slash.
5850         * sysdeps/mach/hurd/profil.c (fork_profil): Only call
5851         update_waiter if profiling was enabled in the parent.
5853         * csu/initfini.c: Don't pass -f flag to cp.
5855 Tue Oct 10 23:08:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5857         * Makerules (build-shlib): Pass -rpath and -rpath-link options.
5858         (LDFLAGS-c.so): Don't pass -dynamic-linker here.
5859         * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
5860         (link-libc): Pass -rpath and -rpath-link options.
5862         * MakeTAGS (all-dirs): Omit CVS directories.
5863         Specify vpath directives to find source files in $(all-dirs).
5864         (sources, headers): Append sources and headers from $(all-dist) to
5865         these.
5866         (all-dist): Filter them out of this.
5867         (all-headers, all-sources): Use $(shell find ...) instead of
5868         $(wildcard ...).
5870         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
5871         -rpath-link.
5873         * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
5875         * elf/Makefile (install-others): Add missing $.
5877 Mon Oct  9 02:54:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5879         * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
5881         * Makeconfig (config-LDFLAGS): Define to
5882         -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
5883         (rtld-installed-name): New variable.
5884         * elf/Makefile (install-lib): Variable removed.
5885         (install-others): Define this instead, to
5886         $(libdir)(rtld-installed-name).
5887         ($(libdir)(rtld-installed-name)): New target; install from ld.so.
5889         * elf/ldd.sh.in: New file.
5890         * elf/Makefile (distribute): Add ldd.sh.in.
5891         (install-bin): Add ldd.
5892         ($(objpfx)ldd: ldd.sh.in): New rule.
5894         * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
5895         * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
5896         Translate some Mach errors to Hurd errors.
5898         * elf/rtld.c (dl_main): Under --list, print msg if executable is
5899         statically linked.
5901         * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
5902         table processing.
5904 Sat Oct  7 01:25:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5906         * sysdeps/stub/machine-gmon.h: Add #error.
5908 Fri Oct  6 01:49:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5910         * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
5911         examine it.
5913 Fri Sep 29 03:43:51 1995  Paul Eggert  <eggert@twinsun.com>
5915         Rewrite mktime from scratch for performance, and for correctness
5916         in the presence of leap seconds.
5918         * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
5919         New functions.
5920         (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
5921         TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
5922         <limits.h>, <stdlib.h>: New #includes.
5923         (main): Support tests with given broken-down value; support benchmarks.
5924         (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
5925         do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
5926         <ctype.h>): Remove.
5928         * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
5929         * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
5931         * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
5932         time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
5934         * time/offtime.c (__offtime): Remove useless assignment
5935         `tp->tm_isdst = -1'.
5937         * manual/maint.texi: Update credits.
5939 Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5941         * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
5942         * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
5943         * sysdeps/unix/sysv/linux/readv.c: File removed.
5944         * sysdeps/unix/sysv/linux/writev.c: File removed.
5945         * sysdeps/unix/configure.in: Check for readv and writev syscalls.
5947         * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
5948         set it to $unix_syscall instead of $unix_function.
5950 Thu Oct  5 00:59:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5952         * elf/rtld.c (dl_main): Grok --list flag.
5953         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
5955 Wed Oct  4 00:21:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5957         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
5958         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
5959         * elf/link.h (_dl_sysdep_message): Declare it.
5961         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
5962         the list.
5964         * time/northamerica: Corrections to Canada data from ADO 95i.
5966         * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
5967         unconditionally.  In socket subdir, append sys/socketcall.h; in
5968         time subdir, append sys/timex.h.
5969         (config-LDFLAGS): New variable.
5970         * sysdeps/unix/sysv/linux/Dist: New file.
5971         * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
5973         * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
5975         * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
5977 Sat Sep 30 11:47:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5979         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
5980         kernel with args on stack, point _dl_hurd_data at zero data
5981         instead of garbage.  When ld.so run as program, grok args
5982         -LIB=MEMOBJ and pre-load shared object files found in memory
5983         objects loaded by the boot loader.
5985         * elf/link.h (struct link_map): New member `l_entry'.
5986         (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
5987         * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
5988         last arg ENTRY_POINT.  Store the entry point location in the
5989         `l_entry' member of the new map.
5990         * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
5991         _dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
5992         * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
5993         _dl_map_object.
5995         * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
5997         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
5998         restore %ebx by hand for personality syscall.
5999         GCC cannot deal with spilling the dedicated GOT register.
6001         * misc/Makefile (routines): Add mntent, which was somehow omitted.
6003 Fri Sep 29 15:07:10 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
6005         * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
6006         Change name of field `mode' in `struct timex' to `modes'.
6007         Linux-1.3.28 updates this name according to RFC 1489.
6009 Thu Sep 28 13:05:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6011         Merge new message handling code from GNU gettext, by Drepper.
6012         * intl: New directory.
6013         * Makefile (subdirs): Add intl.
6015         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
6016         USER_ENTRY instead of storing it on our stack.
6018         * elf/rtld.c (rtld_command): Variable removed.
6019         (_dl_skip_args): New variable.
6020         (dl_main): Increment _dl_skip_args instead of setting rtld_command.
6021         If the link_map for the executable itself is not first in the chain,
6022         make it so.
6023         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
6024         count of args to skip.
6026 Thu Sep 28 09:20:04 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
6028         * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
6029         leading zeroes.
6031 Wed Sep 27 00:27:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6033         * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
6034         (getcwd): Define as weak alias.
6035         * sysdeps/posix/getcwd.c: Likewise.
6036         * sysdeps/stub/getcwd.c: Likewise.
6037         * posix/unistd.h: Declare __getcwd.
6039         * string/string.h: Declare __strcasecmp.
6040         * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
6041         strcasecmp.
6042         (strcasecmp): Define as weak alias.
6044         * string/string.h: Declare __stpcpy.
6045         * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
6046         (stpcpy): Define as weak alias.
6048         * sysdeps/unix/sysv/linux/Implies: Add unix/common.
6050         * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
6051         Don't use `type' for arg name, since we are using it as a keyword
6052         in the rhs.
6054         * sysdeps/unix/configure.in: Check for syscalls getpriority,
6055         setpriority, getrlimit, setrlimit.
6057         * sysdeps/posix/truncate.c: Include fcntl.h.
6059         * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
6061         * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
6062         use new stub_warning syntax.
6063         * sysdeps/stub/setpriority.c: Likewise.
6064         * sysdeps/stub/__longjmp.c: Likewise.
6065         * sysdeps/stub/_exit.c: Likewise.
6066         * sysdeps/stub/accept.c: Likewise.
6067         * sysdeps/stub/acos.c: Likewise.
6068         * sysdeps/stub/alarm.c: Likewise.
6069         * sysdeps/stub/asin.c: Likewise.
6070         * sysdeps/stub/atan2.c: Likewise.
6071         * sysdeps/stub/bind.c: Likewise.
6072         * sysdeps/stub/cbrt.c: Likewise.
6073         * sysdeps/stub/chroot.c: Likewise.
6074         * sysdeps/stub/closedir.c: Likewise.
6075         * sysdeps/stub/connect.c: Likewise.
6076         * sysdeps/stub/cos.c: Likewise.
6077         * sysdeps/stub/cosh.c: Likewise.
6078         * sysdeps/stub/ctermid.c: Likewise.
6079         * sysdeps/stub/cuserid.c: Likewise.
6080         * sysdeps/stub/defs.c: Likewise.
6081         * sysdeps/stub/exp.c: Likewise.
6082         * sysdeps/stub/fmod.c: Likewise.
6083         * sysdeps/stub/frexp.c: Likewise.
6084         * sysdeps/stub/fsync.c: Likewise.
6085         * sysdeps/stub/getcwd.c: Likewise.
6086         * sysdeps/stub/getenv.c: Likewise.
6087         * sysdeps/stub/gethostid.c: Likewise.
6088         * sysdeps/stub/getlogin.c: Likewise.
6089         * sysdeps/stub/getpeername.c: Likewise.
6090         * sysdeps/stub/getrlimit.c: Likewise.
6091         * sysdeps/stub/getsockname.c: Likewise.
6092         * sysdeps/stub/getsockopt.c: Likewise.
6093         * sysdeps/stub/listen.c: Likewise.
6094         * sysdeps/stub/log.c: Likewise.
6095         * sysdeps/stub/log10.c: Likewise.
6096         * sysdeps/stub/mkfifo.c: Likewise.
6097         * sysdeps/stub/morecore.c: Likewise.
6098         * sysdeps/stub/nice.c: Likewise.
6099         * sysdeps/stub/nlist.c: Likewise.
6100         * sysdeps/stub/opendir.c: Likewise.
6101         * sysdeps/stub/pipestream.c: Likewise.
6102         * sysdeps/stub/ptrace.c: Likewise.
6103         * sysdeps/stub/putenv.c: Likewise.
6104         * sysdeps/stub/readdir.c: Likewise.
6105         * sysdeps/stub/reboot.c: Likewise.
6106         * sysdeps/stub/recv.c: Likewise.
6107         * sysdeps/stub/recvfrom.c: Likewise.
6108         * sysdeps/stub/rename.c: Likewise.
6109         * sysdeps/stub/rewinddir.c: Likewise.
6110         * sysdeps/stub/seekdir.c: Likewise.
6111         * sysdeps/stub/send.c: Likewise.
6112         * sysdeps/stub/sendto.c: Likewise.
6113         * sysdeps/stub/setegid.c: Likewise.
6114         * sysdeps/stub/seteuid.c: Likewise.
6115         * sysdeps/stub/setgroups.c: Likewise.
6116         * sysdeps/stub/sethostid.c: Likewise.
6117         * sysdeps/stub/sethostname.c: Likewise.
6118         * sysdeps/stub/setjmp.c: Likewise.
6119         * sysdeps/stub/setrlimit.c: Likewise.
6120         * sysdeps/stub/setsockopt.c: Likewise.
6121         * sysdeps/stub/shutdown.c: Likewise.
6122         * sysdeps/stub/signal.c: Likewise.
6123         * sysdeps/stub/sigsuspend.c: Likewise.
6124         * sysdeps/stub/sin.c: Likewise.
6125         * sysdeps/stub/sinh.c: Likewise.
6126         * sysdeps/stub/socket.c: Likewise.
6127         * sysdeps/stub/socketpair.c: Likewise.
6128         * sysdeps/stub/sqrt.c: Likewise.
6129         * sysdeps/stub/sync.c: Likewise.
6130         * sysdeps/stub/system.c: Likewise.
6131         * sysdeps/stub/tan.c: Likewise.
6132         * sysdeps/stub/tanh.c: Likewise.
6133         * sysdeps/stub/tcdrain.c: Likewise.
6134         * sysdeps/stub/tcflow.c: Likewise.
6135         * sysdeps/stub/tcgetpgrp.c: Likewise.
6136         * sysdeps/stub/tcsendbrk.c: Likewise.
6137         * sysdeps/stub/tcsetattr.c: Likewise.
6138         * sysdeps/stub/tcsetpgrp.c: Likewise.
6139         * sysdeps/stub/telldir.c: Likewise.
6140         * sysdeps/stub/tempname.c: Likewise.
6141         * sysdeps/stub/ttyname.c: Likewise.
6142         * sysdeps/stub/ttyname_r.c: Likewise.
6143         * sysdeps/stub/utime.c: Likewise.
6145         * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
6147         * time/mktime.c (localtime_r): Use 0 instead of NULL.
6149         * config.make.in (AS): New variable; set to `$(CC) -c'.
6151         * posix/unistd.h [__USE_BSD]: Declare profil.
6153         * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
6154         of _dl_map_object.
6155         (_dl_map_object): Call it.
6156         * elf/link.h (_dl_map_object_from_fd): Declare it.
6158 Tue Sep 26 16:50:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6160         * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
6161         gettext code.
6163         * sysdeps/unix/sysv/linux/sys/param.h: New file.
6164         * sysdeps/unix/sysv/linux/Subdirs: File removed.
6166         * libc-symbols.h (_LIBC): Define to 1, not just empty.
6168         * gmon: New directory of profiling code, incorporated from
6169         4.4BSD-Lite and modified.
6170         * sysdeps/i386/machine-gmon.h: New file.
6171         * sysdeps/stub/machine-gmon.h: New file.
6172         * sysdeps/mach/hurd/profil.c: New file.
6173         * sysdeps/stub/profil.c: New file.
6174         * sysdeps/unix/bsd/profil.S: New file.
6175         * Makefile (subdirs): Add gmon.
6176         * csu/gmon-start.c: New file.
6177         * csu/Makefile (extra-objs): Add gmon-start.o,
6178         g$(start-installed-name).
6179         (install-lib, omit-deps): Add g$(start-installed-name).
6180         ($(objpfx)g$(start-installed-name)): New target.
6182 Fri Sep 22 14:24:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6184         * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
6185         time being.
6187 Thu Sep 21 00:03:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6189         * sysdeps/unix/configure.in: Check for `profil' syscall.
6191         * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
6192         removed.
6194         * time/africa, time/asia, time/europe, time/northamerica,
6195         time/yearistype: New data from ADO 95h.
6197         * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
6198         $(notdir $*), so it wins for the explicit libc.so rule as well as the
6199         pattern rule.
6201         * sysdeps/stub/sys/sem_buf.h (union semun): New type.
6203         * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
6204         __libc_global_ctors.
6205         * sysdeps/i386/init-first.c: Rewritten.
6206         * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
6207         * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
6209         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
6210         ___fpu_control.
6212         * Makerules (build-shlib): New canned sequence, broken out of
6213         lib%.so rule.  Link in $^ instead of just $<.
6214         (lib%.so: lib%_pic.a): Use it.
6215         (libc.so): New target; use $(build-shlib) for cmds, but also depend
6216         on soinit.so first and sofini.so last.
6218         * elf/soinit.c: New file.
6219         * elf/sofini.c: New file.
6220         * elf/Makefile (distribute): Add soinit.c and sofini.c.
6221         (extra-objs): Add soinit.so and sofini.so.
6223         * sysvipc/sys/shm.h (shmat): Fix return type to char *.
6224         * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
6226         * misc/syslog.c (vsyslog): Rewritten using open_memstream to
6227         dynamically allocate buffers.
6229         * Makerules (install-lib-nosubdir): Make this, rather than
6230         install-no-libc.a, depend on the installed shared libraries.
6232 Wed Sep 20 18:02:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6234         * locale/locale.c: Include errno.h.
6235         * locale/localedef.c: Likewise.
6237 Tue Sep 19 00:02:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6239         * Makefile (distclean-1): Remove config.cache, config.log, config.h.
6240         (parent-mostlyclean): Remove all flavors of the parent library.
6242         * misc/mntent.c (getmntent): Skip multiple whitespace chars
6243         between fields.
6245         * hurd/hurdstartup.c (_hurd_startup): If RPC returns
6246         EXEC_STACK_ARGS flag, get args from stack.
6247         If args on stack but have info from RPC, relocate args on stack to make
6248         space for struct hurd_startup_data.
6250 Mon Sep 18 15:06:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6252         * elf/dl-object.c: Include errno.h.
6253         * posix/execvp.c: Likewise.
6254         * dirent/scandir.c: Likewise.
6255         * sysdeps/posix/system.c: Likewise.
6256         * sysdeps/generic/setenv.c: Likewise.
6257         * stdlib/msort.c: Likewise.
6258         * stdio/memstream.c: Likewise.
6259         * stdio/fclose.c: Likewise.
6260         * stdio/getdelim.c: Likewise.
6261         * stdio/setvbuf.c: Likewise.
6262         * sysdeps/ieee754/ldexp.c: Likewise.
6263         * locale/locfile-parse.c: Likewise.
6265         * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
6266         * stdlib/seed48_r.c: Likewise.
6267         * stdlib/srand48_r.c: Likewise.
6268         * stdlib/jrand48_r.c: Likewise.
6269         * stdlib/nrand48_r.c: Likewise.
6271         * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
6272         to be useless.
6274 Mon Sep 18 12:39:22 1995  Paul Eggert  <eggert@twinsun.com>
6276         * mktime.c (localtime_r): Add substitute if the system doesn't
6277         provide one.
6279 Mon Sep 18 14:39:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6281         * time/gmtime.c (gmtime_r): Define as weak alias.
6282         * time/localtime.c (localtime_r): Define as weak alias.
6283         * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
6285         * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
6286         #undef __need_Emath after including errnos.h.
6287         [_ERRNO_H]: Protect decls with this.
6289 Sun Sep 17 08:22:12 1995  Paul Eggert  <eggert@twinsun.com>
6291         Fix mktime so that it does not write over localtime's returned value.
6292         * localtime.c (__localtime_r): New function, with extra arg
6293         specifying where to store result.
6294         (localtime): Use it.
6295         (_tmbuf): New var.
6296         * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
6297         * mktime.c (__mktime_internal): Conversion function is now
6298         __localtime_r style, not localtime style.
6299         (mktime): Pass __localtime_r, not localtime.
6300         * timegm.c (timegm): Pass __gmtime_r, not gmtime.
6301         * offtime.c (__offtime): New arg specifying where to store result.
6302         * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
6303         (__gmtime_r, __localtime_r): New decls.
6305         * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
6306         <stdlib.h>, <string.h>: Remove includes.
6307         <errno.h>: Add include.
6309         * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
6310         Renamed from _mktime_internal to avoid namespace pollution.
6312         * time/gmtime.c: Clear tm_isdst.
6314 Mon Sep 18 01:58:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6316         * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
6317         * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
6318         size_t.
6320         * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
6321         __file_pathconf.
6322         * sysdeps/mach/hurd/pathconf.c: Likewise.
6324         * Makefile (subdirs): Add sysvipc.
6326         * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
6327         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
6329 Sun Sep 17 18:29:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6331         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
6332          __file_set_size instead of __file_truncate.
6334         * features.h (__USE_REENTRANT): New macro.
6336         * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
6337         __file_truncate.
6338         * sysdeps/mach/hurd/ftruncate.c: Likewise.
6340         * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
6342 Sat Sep 16 17:47:19 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
6344         * elf/elf.h (AT_GID): Fix typo: Read -> Real.
6346         * misc/efgvt_r.c: New file.  Reentrant version of [efg]cvt functions.
6347         * misc/efgcvt.c: Rewrite to use reentrant functions.
6348         * misc/search.h: Many decls for hsearch functions.
6349         * misc/hsearch_r.c: New file.  Reentrant version of functions from
6350         hsearch family.
6351         * misc/hsearch.c, misc/tsearch.c: New files.
6352         * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
6354         * posix/unistd.h (ttyname_r): Add prototype for new function.
6356         * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
6357         stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
6358         stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
6359         stdlib/drand48-iter.c: New files implementing reentrant versions
6360         of functions from drand48 family.
6361         * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
6362         stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
6363         stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
6364         Rewrite to use reentrant versions.
6365         * stdlib/a64l.c, stdlib/l64a.c: New files.  Implement a64l()
6366         and l64a() functions from SysV library.
6367         * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
6368         nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
6369         drand48-iter, a64l, l64a.
6370         * stdlib/stdlib.h: Declare them.
6372         * stdlib/random_r.c: New file.  Reentrant version of functions
6373         from random family.
6374         * stdlib/stdlib.h: Declare them.
6375         * stdlib/random.c: Rewrite to use reentrant functions.
6377         * string/strerror_r.c: New file.  Reentrant version.
6378         * string/strerror.c: Change for new _strerror_internal form.
6379         * string/Makefile (routines): Add strerror_r.
6381         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
6382         value of user_entry to `_start'.
6383         Close AT_ENTRY case with `break'.
6385         * sysdeps/generic/strstr.c: New and much faster implementation
6386         by Stephen R. van den Berg.
6388         * sysdeps/generic/_strerror.c: _strerror_internal now takes
6389         three argument and has and explicit buffer length.
6390         * sysdeps/mach/_strerror.c: Change for new interface with three
6391         arguments.
6392         * stdio/perror.c, stdio/vfprintf.c: Callers changed.
6394         * sysdeps/mach/hurd/ttyname_r.c: New file.  Reentrant version.
6395         * sysdeps/posix/ttyname_r.c: New file.  Reentrant version.
6396         * sysdeps/stub/ttyname_r: New file.  Define as dummy function.
6398         * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
6399         (utimes): First parameter to utime must be file, not path.
6401         * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
6402         _SC_CLK_TCK and return it when available.
6403         Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
6404         available.
6405         Add case for _SC_2_LOCALEDEF which is now available.
6407         * posix/sys/types.h [__USE_SVID] (key_t): New type.
6408         * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
6409         sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
6410         sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
6411         sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
6412         sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
6413         sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
6414         sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
6415         sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
6416         Add implementation of System V IPC.
6418 Fri Sep 15 21:34:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6420         * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
6421         (write_corefile): Call __crash_dump_task instead of __core_dump_task.
6422         Use envariable CRASHSERVER instead of CORESERVER.
6423         * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
6425 Tue Sep 12 14:30:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6427         * misc/mntent.c: New file.
6428         * misc/mntent.h: New file.
6429         * misc/Makefile (headers): Added mntent.h.
6430         (routines): Added mntent.
6431         * misc/fstab.c: Rewritten using mntent functions.
6433 Mon Sep 11 14:00:14 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
6435         * posix/glob.c (glob): Comment fix.
6437 Fri Sep  8 16:25:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6439         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
6440         symbols weak.
6442         * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
6443         not empty.
6445 Fri Sep  8 16:32:12 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
6447         * sysdeps/unix/sysv/linux/Implies,
6448         sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
6449         sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
6450         sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
6451         sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
6452         sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
6453         sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
6454         sysdeps/unix/sysv/linux/gethostname.C,
6455         sysdeps/unix/sysv/linux/getpeername.S,
6456         sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
6457         sysdeps/unix/sysv/linux/getsockname.S,
6458         sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
6459         sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
6460         sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
6461         sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
6462         sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
6463         sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
6464         sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
6465         sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
6466         sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
6467         sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
6468         sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
6469         sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
6470         sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
6471         sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
6472         sysdeps/unix/sysv/linux/settimeofday.S,
6473         sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
6474         sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
6475         sysdeps/unix/sysv/linux/shutdown.S,
6476         sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
6477         sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
6478         sysdeps/unix/sysv/linux/sockaddrcom.h,
6479         sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
6480         sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
6481         sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
6482         sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
6483         sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
6484         sysdeps/unix/sysv/linux/tcsetattr.c,
6485         sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
6486         sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
6487         sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
6488         sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
6489         sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
6490         New Linux/ELF specific, architecture independent files.
6491         * sysdeps/unix/sysv/linux/i386/Dist,
6492         sysdeps/unix/sysv/linux/i386/Makefile,
6493         sysdeps/unix/sysv/linux/i386/brk.S,
6494         sysdeps/unix/sysv/linux/i386/fcntlbits.h,
6495         sysdeps/unix/sysv/linux/i386/fpu_control.c,
6496         sysdeps/unix/sysv/linux/i386/fpu_control.h,
6497         sysdeps/unix/sysv/linux/i386/fstat.S,
6498         sysdeps/unix/sysv/linux/i386/fxstat.S,
6499         sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
6500         sysdeps/unix/sysv/linux/i386/init-first.S,
6501         sysdeps/unix/sysv/linux/i386/ipc.S,
6502         sysdeps/unix/sysv/linux/i386/lstat.S,
6503         sysdeps/unix/sysv/linux/i386/lxstat.S,
6504         sysdeps/unix/sysv/linux/i386/mknod.S,
6505         sysdeps/unix/sysv/linux/i386/mmap.S,
6506         sysdeps/unix/sysv/linux/i386/sbrk.S,
6507         sysdeps/unix/sysv/linux/i386/setfpucw.c,
6508         sysdeps/unix/sysv/linux/i386/signum.h,
6509         sysdeps/unix/sysv/linux/i386/socket.S,
6510         sysdeps/unix/sysv/linux/i386/stat.S,
6511         sysdeps/unix/sysv/linux/i386/syscall.S,
6512         sysdeps/unix/sysv/linux/i386/sysdep.S,
6513         sysdeps/unix/sysv/linux/i386/sysdep.h,
6514         sysdeps/unix/sysv/linux/i386/xmknod.S,
6515         sysdeps/unix/sysv/linux/i386/xstat.S:
6516         New Linux i386/ELF specific files.
6517         * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
6518         sysdeps/unix/sysv/linux/sys/mman.h,
6519         sysdeps/unix/sysv/linux/sys/msq_buf.h,
6520         sysdeps/unix/sysv/linux/sys/sem_buf.h,
6521         sysdeps/unix/sysv/linux/sys/shm_buf.h,
6522         sysdeps/unix/sysv/linux/sys/socketcall.h,
6523         sysdeps/unix/sysv/linux/sys/timex.h:
6524         New Linux/ELF specific, architecture independent header files.
6525         * sysdeps/unix/sysv/sysv4/linux: Tree removed.
6527 Thu Sep  7 17:05:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6529         * stdlib/msort.c (msort_with_tmp): Fixed alignment test.  B1 and
6530         B2 are always congruent; just test that B1 is aligned.
6532 Wed Sep  6 19:41:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6534         * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
6535         than WEAK_VALUE.a to see if a weak value has been set.  A valid
6536         weak value may set WEAK_VALUE.a to 0.
6538 Fri Sep  1 16:16:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6540         * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
6541         jmp_buf.
6543         * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
6544         for a warning on references to that specific symbol, not the
6545         entire containing object file.
6546         (stub_warning): Pass symbol name to link_warning.
6547         * stdio/gets.c: Pass function name in link_warning invocation.
6549         * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
6550         MACH_SEND_INTERRUPTED.  That indicates interrupt_operation was
6551         sent, but failed.
6553         * stdlib/msort.c: Include memcopy.h.
6554         (msort_with_tmp): If operating on aligned op_t words, use direct word
6555         fetches and stores.
6557         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
6558         missing backslash.
6560 Thu Aug 31 13:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6562         * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
6564         Rewrote i386 setjmp code in assembly, so as to avoid fighting
6565         with the compiler for the register values.
6566         * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
6567         * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
6568         * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
6569         [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
6570         (_JMPBUF_UNWINDS): Use JB_SP.
6572 Wed Aug 30 16:44:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6574         * sysdeps/mach/hurd/select.c: Deal with out of order replies
6575         during io_select request loop.
6576         Handle MACH_RCV_TIMED_OUT error from requests.
6577         * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
6578         distinguish MACH_RCV_TIMED_OUT from EINTR.
6580         * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
6581         slash.
6582         (glob_in_dir): Don't allocate extra byte here.
6584         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6585         Decrement the DT_RELSZ value for the skipped reloc.
6587 Tue Aug 29 12:35:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6589         * time/australasia: Updated data from ADO.
6591 Mon Aug 28 17:47:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6593         * dirent/dirent.h: Don't include <dirstream.h>.
6594         Instead, define DIR as typedef for (undefined) `struct __dirstream'.
6596 Fri Aug 25 12:12:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6598         * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
6599         instead of `DIR'.
6600         * sysdeps/unix/bsd/dirstream.h: Likewise.
6601         * sysdeps/stub/dirstream.h: Likewise.
6602         * sysdeps/unix/dirstream.h: Likewise.
6603         * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
6604         * sysdeps/mach/hurd/seekdir.c: Likewise.
6605         * sysdeps/mach/hurd/opendir.c: Likewise.
6606         * sysdeps/mach/hurd/closedir.c: Likewise.
6607         * sysdeps/mach/hurd/readdir.c: Likewise.
6608         * sysdeps/unix/telldir.c: Likewise.
6609         * sysdeps/unix/seekdir.c: Likewise.
6610         * sysdeps/unix/rewinddir.c: Likewise.
6611         * sysdeps/unix/readdir.c: Likewise.
6612         * sysdeps/unix/opendir.c: Likewise.
6613         * sysdeps/unix/closedir.c: Likewise.
6614         * sysdeps/unix/bsd/telldir.c: Likewise.
6615         * sysdeps/unix/bsd/readdir.c: Likewise.
6616         * dirent/Makefile (headers): Remove dirstream.h.
6617         (distribute): Put it here instead.
6619         * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
6621         * stdio/vfscanf.c (number): Allow field width to inhibit first
6622         digit after base detection.
6624         * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
6625         specified by the precision.
6627         * grp/grpread.c (__grpscan): New function.
6628         * grp/grp.h (__grpscan): Declare it.
6629         * grp/getgrgid.c: Use __grpscan.
6630         * grp/getgrnam.c: Likewise.
6631         * pwd/pwdread.c (__pwdscan): New function.
6632         * pwd/pwd.h (__pwdscan): Declare it.
6633         * pwd/getpwnam.c: Use __pwdscan.
6634         * pwd/getpwuid.c: Likewise.
6636 Thu Aug 24 16:29:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6638         * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
6639         MAP_FILE.
6641         * hurd/thread-cancel.c: Return EINTR when called on self.
6642         * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
6643         __data_start.
6645 Tue Aug 22 16:49:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6647         * inet/netdb.h: Moved to resolv.
6648         * inet/Makefile (headers): Remove netdb.h.
6649         * resolv/Makefile (headers): Add netdb.h.
6650         * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
6651         resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
6653         * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
6654         resuming the thread.
6655         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
6657         * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
6659 Mon Aug 21 16:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6661         * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
6662         relocs, and do nothing.  Why the linker generates them we may
6663         never know.
6665 Thu Aug 17 16:18:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6667         * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
6668         `subdirs' variable.
6670         * sysdeps/mach/hurd/i386/intr-msg.h: New file.
6671         * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
6672         "intr-msg.h" for special syscall code, instead of i386-specific asm.
6673         * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
6674         machine-dependent "intr-msg.h" before mutating thread state to
6675         skip RPC.
6677         * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
6678         _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
6679         %ecx.
6681         * Makeconfig (link-libc): New variable; use shared library if
6682         available.
6683         (+link): Use it.
6685         * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
6686         Instead, declare with `symbol_set_declare'.
6687         (fork): Use symbol_set_* macros for _hurd_fork_locks.
6688         Use SS->thread instead of __mach_thread_self ().  Suspend all
6689         other threads during task_create and port copying.
6691 Wed Aug 16 17:04:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6693         * hurd/intr-msg.c: Fixed calculation of syscall %esp.
6695 Tue Aug 15 12:26:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6697         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
6699         * hurd/Makefile (sig): Add intr-msg.
6701 Mon Aug 14 16:51:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6703         * hurd/thread-cancel.c: New file.
6704         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
6705         rpc_wait case, frob mach_msg args to set timeout on receive.
6706         (_hurdsig_rcv_interrupted_p): Function removed.
6707         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
6708         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
6709         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
6710         * hurd/intr-msg.c: New file.
6711         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
6712         (_hurdsig_rcv_interrupted_p): Declaration removed.
6713         (HURD_EINTR_RPC): Macro removed.
6714         (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
6715         these.
6716         * hurd/intr-rpc.h: New file.
6717         * hurd/intr-rpc.defs: Just import intr-rpc.h.
6718         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
6719         (interrupted_reply_port_location): Take new flag arg; only catch
6720         faults if it's set.
6721         (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
6722         No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
6723         &_hurd_intr_rpc_msg_in_trap.  If before it, mutate state to simulate
6724         MACH_SEND_INTERRUPTED return; on it, interrupt the operation.  All
6725         callers changed.
6726         * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
6727         * hurd/Makefile (distribute): Remove intr-rpc.awk.
6728         (sig): Add thread-cancel.
6729         (transform-user-stub, transform-user-stub-output): Variables removed.
6730         * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
6731         `__hurd_intr_rpc_*' to `__*'.
6732         (_hurd_intr_rpc_mach_msg): New function.
6733         (_hurd_thread_sigstate): Function removed.
6734         * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
6735         instead of __mach_msg inside HURD_EINTR_RPC macro.
6737         * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
6738         to take ptrdiff_t arg.
6740         * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
6742         * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
6744         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
6745         weak_alias): Use `extern' storage class.
6747 Wed Aug  9 14:25:35 1995  Miles Bader  <miles@geech.gnu.ai.mit.edu>
6749         * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
6750         port-count parameters to __auth_makeauth.
6751         * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
6753 Tue Aug  8 12:22:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6755         * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
6757         * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
6759 Tue Aug  8 12:06:04 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>
6761         * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
6762         IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
6763         layer socket options.
6764         (IPPROTO_GGP): Delete obsolote protocol.
6765         (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
6766         (struct ip_mreq): New type.
6768 Mon Aug  7 14:04:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6770         * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
6772         * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
6773         (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
6775         * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
6776         when __stdio_open fails with a code other than ENFILE or EMFILE.
6778 Fri Aug  4 16:01:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6780         * Makefile (headers): Added gnu-versions.h.
6782 Thu Aug  3 14:41:11 1995  Michael I. Bushnell  <mib@duality.gnu.ai.mit.edu>
6784         * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
6785         equality, not assignment, to test bitfields.
6787 Sat Jul 29 10:41:06 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
6789         * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
6790         resolve AF_LOCAL addresses.
6792         * sysdeps/mach/hurd/accept.c (accept): If the protocol family
6793         can't tell us what an address means, just return a zero-length
6794         buffer instead.
6795         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
6797 Fri Jul 28 15:29:11 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
6799         * sysdeps/mach/hurd/bind.c (bind): Don't use
6800         file_invoke_translator, as it doesn't work.  Instead just lookup
6801         the translated node again, and hope we're not hit by any race
6802         conditions.
6804 Wed Jul 26 02:00:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6806         * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
6807         [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
6808         [start-installed-name-rule]: If this is defined, elide rule for
6809         $(objpfx)$(start-installed-name).
6810         * csu/initfini.c (SECTION): New macro, different definitions for
6811         #ifdef HAVE_ELF and not.
6812         (_init, _fini): Use that macro.
6813         * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
6814         (start-installed-rule, start-installed-name-rule): New variables;
6815         specify crt1.o, created by our own rule.
6816         ($(objpfx)crt1.o): New rule.
6817         * configure.in: Require autoconf 2.4.2 or later.  Change all
6818         AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
6819         prettify some messages.
6820         [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
6821         sections.
6822         * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
6823         this case rather than #ifdef HAVE_ELF.
6824         * config.h.in (HAVE_INITFINI): New macro.
6825         * config.make.in (have-initfini): New variable, set by configure.
6827         * stdio/vfscanf.c (conv_error): Simplify expression to avoid
6828         "value computed is not used" warning.
6830         * Makeconfig (+gccwarn): Removed -Wconversion.
6832         * csu/initfini.c (GLOBAL): Macro removed.
6833         (_init, _fini): Always define globally.
6834         * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
6836         * asia, backward, europe, leapseconds, southamerica: New data from
6837         ADO's 95e.
6839         * inet/Makefile (routines): Removed inet_addr.
6840         * inet/inet_addr.c: Moved to resolv/ subdirectory.
6841         * resolv/Makefile (routines): Added inet_addr.
6842         * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
6843         * resolv/gethnamaddr.c: Likewise.
6844         * resolv/getnetbyaddr.c: Likewise.
6845         * resolv/getnetbyname.c: Likewise.
6846         * resolv/getnetent.c: Likewise.
6847         * resolv/getnetnamadr.c: Likewise.
6848         * resolv/herror.c: Likewise.
6849         * resolv/nsap_addr.c: Likewise.
6850         * resolv/res_comp.c: Likewise.
6851         * resolv/res_debug.c: Likewise.
6852         * resolv/res_init.c: Likewise.
6853         * resolv/res_mkquery.c: Likewise.
6854         * resolv/res_query.c: Likewise.
6855         * resolv/res_send.c: Likewise.
6856         * resolv/resolv.h: Likewise.
6857         * resolv/sethostent.c: Likewise.
6858         * resolv/arpa/nameser.h: Likewise.
6859         * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
6860         [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
6861         its declarations (and doing so only #ifdef sun!).
6862         * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
6864         * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
6865         [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
6867         * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
6868         if possible.
6870         * mach/shortcut.awk: Emit decls for RPC.
6872         * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
6873         weak_alias, strong_alias): Define using GCC __attribute__ syntax.
6875         * Makerules ($(installed-libcs)): Depend on `lib' (only).
6877 Tue Jul 25 09:14:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6879         * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
6881         * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
6883         * sysdeps/unix/sysv/ftime.S: New file.
6885         * locale/locfile-parse.c (categories_write): Cast "" to char *.
6887         * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
6889         * time/strftime.c: Use year modulo 100 for %y.
6891         * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
6893         * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
6894         of one, to work around bug in sunos4.1.2 sed.
6896         * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
6897         memchr instead of strlen to limit search for NUL by precision.
6899 Mon Jul 24 03:13:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6901         * sysdeps/posix/pathconf.c: New file.
6903 Sat Jul 22 20:53:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6905         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
6906         before @PLT.
6907         * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
6908         * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
6909         * sysdeps/i386/bsd-setjmp.S: Likewise.
6911 Sat Jul 22 19:58:54 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
6913         * inet/Makefile (routines): Added `ruserpass'.
6914         * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
6915         client.  Modified to remove the fourth arg AACCT.  Do nothing for
6916         the `account' and `macdef' keywords.  Other incidental changes
6917         because we are not in the FTP source tree.
6919 Sat Jul 22 01:56:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6921         * sysdeps/stub/init-posix.c: Removed stub warning.
6923         * Makefile (autoconf-it): Make it executable and unwritable.
6925         * configure.in (sysnames): Under --enable-debug-configure, spew
6926         potential sysnames.
6928         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
6929         #ifdef PIC.
6930         (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
6931         * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
6932         jump insn.
6934         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
6935         * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
6936         * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
6937         <sys/socketcall.h>.  Save %ebx in call-clobbered %edx instead of
6938         stack.  Use JUMPTARGET(syscall_error) in jump insn.
6940         * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
6942         * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
6943         ASM_TYPE_DIRECTIVE.
6944         (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
6946         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
6947         Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
6948         * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
6950         * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
6951         instead of unix/sysv.
6952         * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
6953         socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
6954         to new directory sysdeps/unix/sysv/sysv4/linux.
6955         * sysdeps/unix/sysv/linux: Directory removed.
6956         * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
6957         to new directory sysdeps/unix/sysv/sysv4/linux/i386.
6958         * sysdeps/unix/sysv/linux/i386: Directory removed.
6960         Fixes to help Linux, inspired by drepper's work:
6961         * sysdeps/posix/utimes.c: New file.
6962         * sysdeps/generic/getdomain.c: New file.
6963         * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
6964         * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
6965         externals _dl_argc, _dl_argc, and _environ.
6967 Fri Jul 21 12:57:29 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
6969         * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
6970         EOPNOTSUPP as indications that the server has died.
6971         * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
6972         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
6974 Mon Jul 17 08:45:40 1995  Jim Meyering  (meyering@comco.com)
6976         * strtol.c: Portability changes from Uli Drepper.
6977         [!STDC_HEADERS && !defined(NULL)]: Define NULL.
6979 Mon Jul 10 05:39:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6981         * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
6982         DATA for the entry SP; DATA[-1] is always the return address
6983         location.  In both cthreads and non-cthreads cases, use asm to
6984         force parameters into %eax and %ecx before return, and mutate
6985         DATA[-1] to return to specific asm code to set up the user from
6986         %eax and %ecx.
6987         [PIC] (_init): Caller changed.
6988         (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
6989         with SP unwound to argument data ptr.
6991 Thu Jul  6 14:28:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6993         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
6994         when 0x08000000 and up are not mapped.
6996         * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
6997         before touching it.
6998         (lib%.so): Use -Wl to get -soname to ld.
7000         * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
7002         * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
7004 Tue Jun 20 02:18:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7006         * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
7007         library's name including $(libprefix) and major version number.
7009         * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
7010         in place of xcalloc.
7012         * Makeconfig (prefix, exec_prefix, libprefix): Instead of
7013         `ifndef', use the $(origin) function to only set these if they are
7014         undefined, and not if they are defined to empty.
7016         * gnu-versions.h: New file.
7017         * features.h (__GNU_LIBRARY__): Increase value to 5.
7019 Wed Jun 14 03:45:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7021         * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
7022         expression, to avoid gcc's "value computed is not used" warning.
7024         * libc-symbols.h (_elf_set_element): Give the set-element variable
7025         an `unused' attribute.
7027         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
7028         __attribute__ ((__const__)).
7029         * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
7031         * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
7032         LINK->resource.next->resource.prevp when appropriate, not
7033         LINK->resource.next->thread.prevp!!!
7035 Tue Jun 13 15:45:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7037         * configure.in (libc_cv_asm_set_directive): Make sure that the
7038         `.set' directive really worked by linking against a reference to
7039         the alias.
7041         * sysdeps/stub/init-first.c: Don't include <hurd.h>.
7042         [PIC] (soinit): Renamed to (global) _init.
7044 Mon Jun 12 13:15:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7046         * malloc/Makefile (gmalloc-routines): Remove valloc.
7047         (dist-routines): Add it here.
7049         * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
7050         emacs_loser_valloc to inhibit valloc declaration below.
7052         * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
7053         installation rules.
7055         * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
7056         it uses the `.type' directive, which is necessary for shared
7057         libraries to work properly.
7059 Thu Jun  8 02:50:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7061         * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
7062         from zero fill.
7064         * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
7065         if nonzero, don't let *REF satisfy the reference itself.
7066         * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
7067         * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
7068         _dl_lookup_symbol.
7069         * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
7070         R->r_offset to RESOLVE callback.
7071         * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
7072         satisfy the reference itself if its value equals the reloc's
7073         offset.
7075         * elf/rtld.c (dl_main): Write a newline in fatal msg.
7077         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
7079         * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
7081         * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
7082         and user entry point addresses.
7084         * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
7085         (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
7087         * Makerules (install-lib.so): Don't include libc.so.
7088         [$(build-shared)=yes] (install): Depend on the installed libc.so file.
7089         [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
7090         install, depend on the installed $(install-lib.so) files.
7091         [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
7093         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
7094         allocate high addresses to avoid random mappings appearing there.
7095         (mmap): Comment out mask; always pass zero.
7097 Tue Jun  6 13:34:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7099         * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
7100         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
7102         * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
7103         when successful.
7105         * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
7106         (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
7107         variables, using the `threadvars' buffer.
7109         * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
7110         * sysdeps/i386/dl-runtime.c: Likewise.
7112         * elf/rtld.c (dl_main): Add missing NULL terminating argument in
7113         _dl_sysdep_fatal call.
7114         (__assert_fail): Likewise.
7116         * locale/Makefile (localedef-modules): Renamed ctype to
7117         locale-ctype so as not to conflict with the object file for
7118         ctype/ctype.c in the build directory.
7120 Mon Jun  5 04:02:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7122         * elf/elf.h (ELFMAG): Use \177 instead of \x7f.  It seems GCC
7123         insists on seeing the following E as part of hex 7FE, and
7124         complaining that is wider than a byte.
7126 Sun Jun  4 22:14:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7128         * hurd/Makefile (sig): Added thread-self.
7129         * hurd/hurd.h: Declare hurd_thread_self.
7130         * hurd/thread-self.c: New file.
7132 Thu Jun  1 12:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7134         * elf/rtld.c: Initialize RTLD_MAP.l_type.
7135         * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
7136         the dynamic linker itself.
7137         * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
7138         lt_interpreter, first undo relocation done during bootstrapping.
7140 Tue May 30 15:52:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7142         * mach/Makefile (server-interfaces): Removed notify and
7143         device_reply.  For shlibs with eager binding, libmachuser.so must
7144         not refer to any functions not defined in libc.
7146 Sat May 27 16:23:22 1995  Jim Meyering  (meyering@comco.com)
7148         * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
7149         to avoid error from Irix-4.0.5's C compiler.  From Kaveh Ghazi.
7151 Fri May 26 13:00:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7153         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
7154         pending signals if the thread is in a critical section.  It will
7155         send us a msg when it finishes.
7157         * sysdeps/mach/hurd/pathconf.c: New file.
7158         * sysdeps/mach/hurd/fpathconf.c: New file.
7160         * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
7161         SIGCHLD when the SA_NOCLDSTOP bit actually changes.
7163 Sun May 21 05:05:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7165         * elf/Makefile (ld.so): Use -nostartfiles in addition to
7166         -nostdlib.
7168 Sun May 21 02:01:29 1995  Jim Meyering  (meyering@comco.com)
7170         * sysdeps/generic/memchr.c: Don't include <string.h> at all.
7171         HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
7172         memchr unless one manually arranges for them to define __STDC__.
7174 Fri May 19 17:16:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7176         * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
7177         args on stack from kernel.
7179         * posix/Makefile, sysdeps/alpha/Makefile,
7180         * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
7181         * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
7182         in the absence of CVS dirs.
7184         * hurd/hurdstartup.c: Don't call __mach_init.  Grok args from the
7185         kernel on the stack properly.
7187         * set-init.c: Never call _init/_fini; just run __libc_subinit.
7189         * Makerules (LDFLAGS-c.so): Add -nostartfiles.
7190         * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
7192         * configure.in: Move defaulting of --with-elf and --with-gnu-*
7193         based on host os outside the AC_CACHE_VAL for the sysdirs
7194         calculation.
7196         * Makeconfig (localedir, nlsdir): New variables.
7198         * values.h: New file.
7199         * Makefile (headers): Add values.h.
7201         * locale/Makefile (distribute): Add error.h.
7202         * locale/localedef.c: Include "error.h".
7203         (main): Use error_message_count instead of warning_cntr.
7205 Wed May 17 16:50:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7207         Merged 1003.2 locale and localedef programs by Ulrich Drepper.
7208         * locale/charmap.c: New file.
7209         * locale/collate.c: New file.
7210         * locale/config.h: New file.
7211         * locale/ctype.c: New file.
7212         * locale/ctypedump.c: New file.
7213         * locale/hash.c: New file.
7214         * locale/hash.h: New file.
7215         * locale/iso-4217.def: New file.
7216         * locale/keyword.gperf: New file.
7217         * locale/keyword.h: New file.
7218         * locale/libintl.h: New file.
7219         * locale/locale.c: New file.
7220         * locale/localedef.c: New file.
7221         * locale/localedef.h: New file.
7222         * locale/locfile-lex.c: New file.
7223         * locale/locfile-parse.c: New file.
7224         * locale/messages.c: New file.
7225         * locale/monetary.c: New file.
7226         * locale/numeric.c: New file.
7227         * locale/token.h: New file.
7229         * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
7230         * posix/Makefile (headers): Add regex.h.
7231         (routines): Add regex.
7232         (gpl2lgpl): Add regex.c and regex.h.
7234 Tue May 16 17:35:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7236         * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
7237         instead of hard-coding "/share/locale".
7239 Sat May 13 02:16:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7241         * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
7243 Fri May 12 15:31:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7245         * elf/elf.h (ELFMAG, SELFMAG): New macros.
7247 Fri May 12 11:24:53 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>
7249         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
7250         the case where it starts out less than _hurd_dtablesize.
7252 Thu May 11 20:51:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7254         * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
7255         make sure the new size exceeds FIRST_FD.
7257 Wed May 10 21:00:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7259         * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
7261 Tue May  9 01:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7263         * Makerules (install-lib.so): Add %.so for each %_pic.a.
7265         * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
7266         the first thing in .data.
7268         * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
7270         * hurd/hurdstartup.h: New file.
7272         * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
7273         are the same.  Use `jz' instead of `jeq'.
7275         * Makeconfig (config.make): Depend on config.status, and run it to
7276         update.
7277         (config.status): New target; depend on configure.
7278         If target (config.status) exists, run it with --recheck to update;
7279         if not, give error msg saying to run confiugre by hand.
7280         * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
7281         (sysd-Makefile-force): Set this variable to FORCE in this case, to
7282         force a rebuild of sysd-Makefile.
7283         (sysd-Makefile): Depend on $(sysd-Makefile-force).
7284         Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
7285         [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
7286         variable to FORCE in this case, to force a rebuild of sysd-rules.
7287         (sysd-rules): Depend on $(sysd-rules-force).
7288         Write into the file sysd-rules-sysdirs:=$(sysdirs).
7290         * Makerules (LDFLAGS-c.so): Change ld option -interp to
7291         -dynamic-linker.
7293         * Makerules (do-install-program): New canned sequence.
7294         (install-bin, install-sbin): Use it.
7295         (install for lib*.so): Use it instead of $(do-install).
7296         Fix .so installation rules to handle lib*.so and *.so, deal with
7297         $(libprefix) right, and install *.so as *.so$($(*.so)-version);
7298         i.e. "libc.so-version = .1".
7300 Mon May  8 05:10:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7302         * elf/do-rel.h: New file, split out of dynamic-link.h.
7303         * elf/Makefile (distribute): Add do-rel.h.
7305 Sat May  6 11:06:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7307         * Makeconfig (+gccwarn): Add -Winline.
7309         * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
7310         set, avoid abort_rpcs, and use reply and intr ports saved in
7311         SS->context.
7312         * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
7313         from SS->context.  Don't clear SS->context.
7314         * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
7315         setting SS->context.  If msg_sig_post returns, re-lock and clear
7316         SS->context.
7318 Fri May  5 10:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7320         * mach/Makefile (errsystems.c): Comment out generation rule.
7322         * sysdeps/mach/_strerror.c: Consider a system unknown if its
7323         bad_sub member is null.
7325         * mach/mig-alloc.c: Add weak alias to non-__ name.
7327 Wed May  3 11:56:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7329         * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
7331 Tue May  2 01:52:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7333         * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
7334         function.  Duh.
7336         * hurd/Makefile (distribute): Added hurdstartup.h.
7337         * hurd/hurd.h: Remove _hurd_startup decl.
7339         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
7340         ((__unused__)) instead of gratuitous self reference.
7342         * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
7343         table if FD2 doesn't fit.
7345         * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
7346         not the current table size.
7348         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
7350         Implemented runtime dynamic linker to support ELF shared libraries.
7351         * elf/Makefile: Added rules to make ld.so and libdl.
7352         * elf/dl-error.c: New file.
7353         * elf/dl-fini.c: New file.
7354         * elf/dl-init.c: New file.
7355         * elf/dl-load.c: New file.
7356         * elf/dl-lookup.c: New file.
7357         * elf/dl-object.c: New file.
7358         * elf/dl-reloc.c: New file.
7359         * elf/dlclose.c: New file.
7360         * elf/dlerror.c: New file.
7361         * elf/dlopen.c: New file.
7362         * elf/dlsym.c: New file.
7363         * elf/dynamic-link.h: New file.
7364         * elf/link.h: New file.
7365         * elf/rtld.c: New file.
7366         * sysdeps/i386/dl-machine.h: New file.
7367         * sysdeps/stub/dl-machine.h: New file.
7368         * sysdeps/i386/dl-runtime.c: New file.
7369         * sysdeps/stub/dl-runtime.c: New file.
7370         * sysdeps/i386/elf/start.S: New file.
7371         * sysdeps/generic/dl-sysdep.c: New file.
7372         * sysdeps/mach/hurd/dl-sysdep.c: New file.
7373         * sysdeps/mach/hurd/i386/init-first.c: New file.
7374         * sysdeps/i386/init-first.c: New file.
7375         * sysdeps/stub/init-first.c: New file.
7377 Mon May  1 18:48:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7379         * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
7380         libc.so runnable.
7381         * version.c (__libc_print_version): Add "et al" and missing NL to
7382         author credit.
7384 Sat Apr 29 15:46:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7386         * posix/glob.c (S_ISDIR): Define if undefined.
7388 Thu Apr 27 01:24:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7390         * configure.in: Unless --without-fp, prepend */fpu before each
7391         machine dir in $mach; don't prepend FPU dirs at end.  If
7392         --with-elf, prepend MACHINE/elf directories at end; don't insert
7393         them into $mach.
7395         * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
7397         * sysdeps/stub/clock.c: Added stub warning.
7398         * sysdeps/stub/dirfd.c: Likewise.
7399         * sysdeps/stub/exc2signal.c: Likewise.
7400         * sysdeps/stub/fdopen.c: Likewise.
7401         * sysdeps/stub/flock.c: Likewise.
7402         * sysdeps/stub/fpathconf.c: Likewise.
7403         * sysdeps/stub/ftruncate.c: Likewise.
7404         * sysdeps/stub/gtty.c: Likewise.
7405         * sysdeps/stub/isatty.c: Likewise.
7406         * sysdeps/stub/killpg.c: Likewise.
7407         * sysdeps/stub/madvise.c: Likewise.
7408         * sysdeps/stub/mkstemp.c: Likewise.
7409         * sysdeps/stub/mktemp.c: Likewise.
7410         * sysdeps/stub/mprotect.c: Likewise.
7411         * sysdeps/stub/msync.c: Likewise.
7412         * sysdeps/stub/pathconf.c: Likewise.
7413         * sysdeps/stub/poll.c: Likewise.
7414         * sysdeps/stub/raise.c: Likewise.
7415         * sysdeps/stub/readv.c: Likewise.
7416         * sysdeps/stub/setenv.c: Likewise.
7417         * sysdeps/stub/setlogin.c: Likewise.
7418         * sysdeps/stub/sigaltstack.c: Likewise.
7419         * sysdeps/stub/sigintr.c: Likewise.
7420         * sysdeps/stub/sigstack.c: Likewise.
7421         * sysdeps/stub/sleep.c: Likewise.
7422         * sysdeps/stub/sstk.c: Likewise.
7423         * sysdeps/stub/stime.c: Likewise.
7424         * sysdeps/stub/stty.c: Likewise.
7425         * sysdeps/stub/syscall.c: Likewise.
7426         * sysdeps/stub/sysconf.c: Likewise.
7427         * sysdeps/stub/truncate.c: Likewise.
7428         * sysdeps/stub/ualarm.c: Likewise.
7429         * sysdeps/stub/usleep.c: Likewise.
7430         * sysdeps/stub/utimes.c: Likewise.
7431         * sysdeps/stub/writev.c: Likewise.
7433         * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
7435 Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7437         * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
7439 Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7441         * posix/glob.c (glob): If GLOB_MARK set, stat names to find
7442         directories and append slashes to them in final pass before
7443         sorting.
7444         (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
7445         slash; never append it here.
7447 Sat Apr 22 14:48:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7449         * mach/Machrules [interface-library]
7450         (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
7451         -nostdlib.
7453         * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed.  Lock
7454         _hurd_siglock only around initial task creation in parent.  Use
7455         _hurd_critical_section_unlock at end.  Handle dead name rights
7456         properly, and deal with a send right dying while we try to copy
7457         it.  For the time being, use assert_perror for kernel and proc RPC
7458         failures.
7460 Fri Apr 21 01:10:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7462         * extra-lib.mk: Don't include $(o-iterator); construct it by hand
7463         using $(object-suffixes-$(lib)) instead.
7465         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
7467         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
7468         (LDFLAGS-c.so): New variable.
7470         * resolv/res_init.c (res_init): Don't clobber _res.options with
7471         RES_DEFAULT.  If RES_INIT is clear, OR in RES_DEFAULT.
7473         * hurd/hurd.h: Declare _hurd_startup.
7474         * hurd/hurdstartup.c: New file.
7475         * hurd/Makefile (routines): Add hurdstartup.
7477 Thu Apr 20 22:23:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7479         * hurd/hurdsig.c: Use assert_perror for many calls which should
7480         never fail and previously were not checked.
7482         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7483         Point the return address for sigreturn's frame at a "hlt" insn so
7484         it will definitely crash if sigreturn returns.
7486 Wed Apr 19 18:40:11 1995  Brendan Kehoe  (brendan@zen.org)
7488         * time/tzset.c (__tzname, __daylight, __timezone): Don't check
7489         HAVE_WEAK_SYMBOLS for doing weak_alias.
7491 Wed Apr 19 18:12:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7493         * configure.in: Move $os tests to set $elf et al earlier, before
7494         construction of $sysnames.  Instead of prepending MACHINE/elf to
7495         $sysnames, append &/elf after each elt appended to $mach.
7497 Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7499         * configure.in (libc_cv_asm_global_directive): New check to define
7500         ASM_GLOBAL_DIRECTIVE.
7501         * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
7502         * libc-symbols.h (strong_alias_asm, strong_alias): Use
7503         ASM_GLOBAL_DIRECTIVE on the alias.
7505         * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
7506         HAVE_WEAK_SYMBOLS" #defns.
7508 Mon Apr 17 12:02:49 1995  Brendan Kehoe  (brendan@zen.org)
7510         * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
7511         of the byte that was zero, so we return a valid number.
7513 Sun Apr 16 03:23:09 1995  Brendan Kehoe  (brendan@zen.org)
7515         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
7516         NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
7518 Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)
7520         * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
7521         [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
7522         * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
7523         [BITS_PER_MP_LIMB == 64]: Likewise.
7525         * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
7526         * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
7527         * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
7528         * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
7529         * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
7530         * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
7531         * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
7532         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
7533         * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
7534         * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
7535         * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
7537         * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
7538         * sysdeps/unix/mips/fork.S (fork): Likewise.
7539         * sysdeps/unix/mips/pipe.S (fork): Likewise.
7540         * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
7541         * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
7542         * sysdeps/unix/mips/wait.S (__handler): Likewise.
7543         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
7544         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
7545         * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
7546         * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
7547         * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
7548         * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
7549         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
7550         * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
7551         * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
7552         * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'
7553         instead of `zero' for the li instruction.
7555         * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
7556         preprocessor comments, not assembler comments.
7557         * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
7558         * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
7560 Fri Apr 14 15:53:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7562         * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
7563         in place of inline.
7565 Thu Apr 13 09:45:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7567         * Makefile (distribute): Add ChangeLog.[0-9].
7569         * configure.in: Add check for .set directive.
7570         * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
7571         * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
7572         strong_alias_asm): Use `foo = bar' syntax instead.
7574         * Makerules [! subdir] (O%-lib): Don't prepend ../.
7576         * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
7578         * configure.in: Fix AC_ARG_WITH uses; check for --with-fp.  Move
7579         $host_os checks to set gnu_ld/as and elf before sysdirs
7580         generation.  Fix $with_fp test.
7581         [$elf=yes]: Prepend MACHINE/elf directory.
7583         * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
7584         being cleared are already known to be set.  Thanks Ulrich.
7586 Wed Apr 12 23:27:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7588         * posix/environ.c: Add weak alias `_environ'.
7590 Tue Apr 11 20:38:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7592         * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
7593         * sysdeps/i386/sub_n.S [PIC]: Likewise.
7595 Mon Apr 10 14:53:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7597         * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
7598         word `const'.
7600         * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
7601         $(foo-$(suffix $@)).
7603         * manual/Makefile (chapters-incl): Filter out summary.texi.
7605         * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
7606         a weak symbol instead of literal "STRTOF".
7608         * locale/setlocale.c: Work around ld bug: don't weakify refs to
7609         _nl_{current,C}_*.
7611 Sun Apr  9 01:24:33 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7613         * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
7615         * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
7616         * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
7618         * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
7619         #ifdef emacs, but only #ifndef memmove.
7620         * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
7621         safe_bcopy.
7622         (memmove): Define only if undefined.
7624 Sat Apr  8 00:40:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7626         * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
7627         sure these are simply-expanded variables.
7629         * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
7630         mmap call.
7632         * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
7633         for these too.
7635         * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
7636         set c_oflag value.
7638         * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
7640         * locale/Makefile (categories): Uncomment collate.
7641         * locale/lc-collate.c: New file.
7643         * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
7644         #ifdef emacs.
7645         * malloc/realloc.c: Likewise.
7647         * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
7648         (_itoa): Use it in defn.
7649         * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
7650         "_itoa.h".
7651         (_itoa): Function removed.
7653         * malloc/free.c: Remove use of `assert'.
7655         * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
7656         __malloc_safe_bcopy; #define safe_bcopy.
7657         * malloc/free.c: Cope with systems lacking `memmove'.
7658         (_free_internal): Cast result of _malloc_internal.
7660 Wed Apr  5 00:13:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7662         * hurd/hurdinline.c: Include signal.h first, so we don't define
7663         its inlines too.
7665         * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
7666         of -1 to avoid compiler warning.
7668         * configure.in (host_os=linux*): Set elf=yes for this, not just
7669         linux*elf*.
7671         * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
7672         and open.
7674         * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
7676 Tue Apr  4 00:48:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7678         * sysdeps/unix/start.c: Remove spurious decl and #endif.
7680         * misc/progname.c (program_invocation_name,
7681         program_invocation_short_name): Make these initialized data
7682         definitions.
7684         * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
7685         so gcc doesn't optimize out the function entirely.
7687 Sun Apr  2 13:13:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7689         * posix/execvp.c: Don't use stat to search path; just try execv
7690         until it works.
7692         * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
7693         SS->active_resources, so that _hurdsig_longjmp_from_handler will
7694         be called when a longjmp unwinds the signal frame.
7695         * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
7696         SS->active_resources chain added by _hurd_setup_sighandler.
7697         * hurd/sigunwind.c: New file.
7698         * hurd/Makefile (sig): Add sigunwind.
7700         * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
7702         * MakeTAGS (tags-sources): Include $(all-dist).
7703         [subdir] (all-dist): Define to $(distribute).
7705 Sat Apr  1 00:08:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7707         * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
7708         parent objdirs.
7710         * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
7711         filtering out $($(lib)-inhibit-o); use that instead of
7712         $(object-suffixes) in all the other variables.
7714         * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
7715         if undefined.
7717         * string/strxfrm.c: Just copy the string (for now).
7718         * string/strcoll.c: Just call strcmp (for now).
7720         * mach/Makefile (lock): Add mutex-init.
7721         * mach/mutex-solid.c (_cthread_mutex_lock_routine,
7722         _cthread_mutex_unlock_routine): Variables removed.
7723         (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
7724         (__mutex_init): Function moved to new file mutex-init.c.
7725         * mach/mutex-init.c: New file, broken out of mutex-solid.c.
7727 Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>
7729         * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
7730         * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
7732 Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7734         * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
7735         both are zero).
7737 Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7739         * elf/dlfcn.h: New file.
7741         * Make-dist (README): Commit it to CVS if there is a CVS directory.
7743         More changes from Germano Caronni <caronni@tik.ethz.ch>:
7744         * malloc/free.c: Relocate _heapinfo when that allows us to return
7745         core to the system.
7747         * malloc/malloc.c: Move #include <errno.h> outside #ifndef
7748         _MALLOC_INTERNAL.
7750 Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7752         * mach/Makefile (headers): Add mach/mach_traps.h.
7754         * Makerules ($(installed-libcs) rule): Fix typos.
7756         * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
7757         * sysdeps/stub/revoke.c: New file.
7758         * misc/Makefile (routines): Add revoke.
7759         * posix/unistd.h [__USE_BSD] (revoke): Declare it.
7760         * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
7761         (forkpty): Declare login_tty.
7762         * misc/logwtmp.c (logwtmp): Declare to return void.
7763         * misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.
7765         * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
7767         * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
7768         unless L_SET already defined.
7769         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
7770         already defined.
7772         Incorporated -lutil library from 4.4-Lite.
7773         * misc/Makefile (extra-libs, libutil-routines): New variables.
7774         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
7775         sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
7777         Support simple, light-weight unwind-protect mechanism for longjmp.
7778         * setjmp/longjmp.c: Call _longjmp_unwind first thing.
7779         * sysdeps/mach/hurd/jmp-unwind.c: New file.
7780         * sysdeps/stub/jmp-unwind.c: New file.
7781         * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
7782         * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
7783         * setjmp/Makefile (routines): Add jmp-unwind.
7784         * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
7785         `prevp' members into new substructure `resource'; add another such
7786         substructure `thread' and members `cleanup' (function ptr) and
7787         `cleanup_data' (generic ptr).
7788         (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
7789         into the `_hurd_self_sigstate ()->active_resources' list via the
7790         `thread' substructure.
7791         * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
7792         (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
7793         LINK->cleanup_data' to the port extracted.
7794         * hurd/hurd/signal.h (struct hurd_sigstate): New member
7795         `active_resources'.
7796         * hurd/port-cleanup.c: New file.
7797         * hurd/Makefile (routines): Add port-cleanup.
7799         * malloc/malloc.c: Include errno.h.
7801 Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7803         * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
7805 Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7807         * misc/Makefile (headers): Add utmp.h.
7808         * misc/utmp.h: New file, incorporated from 4.4-Lite.
7810         * stdio/printf-parse.h: New file, mostly written by drepper.
7811         * stdio/vfprintf.c: Rewritten, mostly by drepper.
7812         * stdio/printf-prs.c: Rewritten.
7813         * stdio/Makefile (distribute): Add printf-parse.h.
7815 Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7817         * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
7818         with asm name.  Just do a ".set start, __start".
7820         * malloc/realloc.c: Call _free_internal instead of free.
7822 Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7824         * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
7825         directory, open LOCALE/LC_*/SYS_LC_* instead.
7827 Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7829         * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
7830         stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
7831         stdio/gen-mpn-copy: Files moved to stdlib.
7832         * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
7833         * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
7834         * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
7835         headers.
7836         * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
7837         headers.
7839         * Makefile (parent-mostlyclean): Don't use $(libc.a).
7840         (parent-clean): Use $(objpfx) to find sysd-*.
7841         * Rules (generated): Append dummy.o dummy.c.
7842         * Makerules (lib): Depend on lib-noranlib.
7843         (lib-noranlib): Depend on $(install-lib) in objdir.
7844         (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
7845         from objdir.  Don't remove TAGS; it comes in the distribution.
7847         * malloc/malloc.c (morecore): Save errno around call to
7848         _realloc_internal.  Don't account for the additional new blocks of
7849         the info table itself when choosing the new table size for the
7850         first crack; if it succeeds, the new blocks will have been found
7851         in existing free space already described by the existing info
7852         table.
7854         * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
7855         read-ahead character.
7857 Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7859         * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
7860           hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
7861           hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
7862           hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
7863         Get anal with unsigned to pacify compiler.
7865         * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
7866         means %d from 3rd arg).
7868         * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
7870         * stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
7871         END, not GROUP.
7873 Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7875         * Makefile (subdirs): Put elf last.
7877         * sunrpc/Makefile (install-lib): Variable removed.
7878         (rpcsvc-objs): Variable removed.
7879         (extra-objs): Don't include $(rpcsvc-objs).
7880         (extra-libs): New variable, contains librpcsvc.
7881         (librpcsvc-routines): New variable.
7882         (librpcsvc-inhibit-o): New variable, contains .so.
7883         (omit-deps): Set this to $(librpcsvc-routines).
7884         ($(objpfx)rpcgen): Don't use $(libc.a).
7885         (lib, $(objpfx)librpcsvc.a): Targets removed.
7887         * o-iterator.mk, extra-lib.mk: New files.
7888         * Makerules (o-iterator): New variable.
7889         [extra-libs]: Include extra-lib.mk to generate rules for each word
7890         of $(extra-libs).
7891         * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
7893 Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7895         * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
7896         Handle 80-bit denormalized numbers correctly.
7898         * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
7899         (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
7900         * stdlib/strtod.c (RETURN): Add parentheses around return value.
7901         (round_and_return): Correct handling of denormalized numbers.
7903         * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
7904         LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
7905         exponent.
7907 Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7909         * locale/C-ctype.c: New correct data generated by drepper.
7911         * Rules: Don't use $(libc.a).
7913         Parsing of grouped numbers contributed by Ulrich Drepper.
7914         * stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
7915         new flag arg; if nonzero, parse locale-dependent thousands
7916         grouping and interpret only the prefix that is correctly grouped.
7917         (strtol): Define this to call _strtol_internal with zero for the flag.
7918         Use a weak symbol for the definition.
7919         * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
7920         Check for the exponent of the number overflowing the float format.
7921         * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
7922         (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
7923         [__OPTIMIZE__]: Define inline functions calling those.
7924         * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
7925         (strtold): Remove weak alias.
7926         * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
7927         (strtof): Remove weak alias.
7928         * stdlib/grouping.h: New file, written by drepper.
7929         * stdlib/Makefile (distribute): Add grouping.h.
7930         * stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
7931         __strtoX_internal with the grouping flag set iff the modifier is
7932         present.
7934 Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7936         * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
7938         * mach/Machrules: Produce static deps for all object flavors.
7939         [interface-library]: Remove all these variables and rules.
7940         ($(interface-library)-routines): Define this variable.
7941         (extra-libs): Append $(interface-library) to this.
7942         * mach/Makefile (interface-library): Omit .a suffix.
7943         * hurd/Makefile: Likewise.
7945 Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7947         * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
7948         early if no new data in buffer after priming.
7950 Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7952         * Makerules (object-suffixes, libtypes): Move all these variables
7953         to Makeconfig.
7954         * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
7956         * Makerules (build-extra-lib): New canned sequence.
7958         * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
7959         fix uses of FILE and PORT.  Remove bogus weak alias for `access'.
7961         * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
7962         Add missing semicolon.
7963         * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
7964         hurd_fd *' temp var, since DIRP->__fd is a `void *'.
7965         * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
7967         * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
7968         locale data format is implemented.
7970         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7971         Pass &__sigreturn on the stack to the trampoline code, so it is
7972         not position-dependent.
7974         * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
7975         Don't include <stdarg.h>.
7976         (__printf_fp): Last arg ARGS is now `const void **const';
7977         dereference ARGS[0] instead of using va_arg.
7979         * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
7980         loop to install data.
7982         * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
7983         to extract number from item code.
7984         (_nl_load_locale): Close the descriptor when finished.
7986         * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
7987         place of malloc.
7989         * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
7991         * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
7992         to avoid warning.
7993         * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
7994         int to avoid warning.
7996         Support building several flavors of objects and libraries.
7997         * Makerules (libtypes, object-suffixes): New variables.
7998         (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
7999         suffix.
8000         (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
8001         (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
8002         (close-check-inhibit-asm): Append a semicolon.
8003         (sysd-rules): Generate rules for each object suffix.
8004         (compile.S, compile.c): Always assume gcc.
8005         (OUTPUT_OPTION): Define unconditionally.
8006         (+make-deps): In generated rule, produce a dependent for each
8007         object suffix.
8008         (.SUFFIXES): Add $(object-suffixes) in place of .o.
8009         (.PRECIOUS): Make all suffix flavors precious.
8010         ($(libc.a)): Target removed.
8011         (lib): Depend on each enabled libtype.
8012         (libobjs, objects, objs): Depend on all the enabled object flavors.
8013         (lib%.a): New pattern rule.
8014         [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
8015         (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
8016         to make one for each flavor; library dep rule likewise rewritten.
8017         ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
8018         flavor.
8019         (symdef.%): New pattern rule; helper for __.SYMDEF targets.
8020         (installed-libcs): New variable.
8021         (install): Depend on that instead of
8022         $(libdir)/lib$(libprefix)$(libc-name).a;
8023         that file's rule rewritten to make each enabled libtype.
8024         (install-lib.so): New variable, filters lib%.so from $(install-lib).
8025         (install-lib): Filter out lib%.so after setting install-lib.so.
8026         [$(build-shared)=yes] (install): Install $(install-lib.so).
8027         (common-mostlyclean): Remove all flavors of objects.
8028         * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
8029         [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
8031 Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8033         * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
8034         * sysdeps/stub/pause.c: Likewise.
8035         * sysdeps/stub/time.c: Likewise.
8037         * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
8038         locale data format is implemented.
8039         * stdlib/wctomb.c: Likewise.
8041         * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
8042         gcc bug is fixed.
8043         * mach/errsystems.c: File removed.
8045         * Makeconfig (libc.a): Variable removed.
8046         (+link): Don't use it.
8048         * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
8049         assuming `yes'.
8051         * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
8052         * malloc/realloc.c (_realloc_internal): Renamed from realloc;
8053         don't use __realloc_hook.
8054         (realloc): New function; call __realloc_hook ?: _realloc_internal.
8055         * malloc/malloc.c (_malloc_internal): Renamed from malloc;
8056         don't use __malloc_hook.
8057         (malloc): New function; call __malloc_hook ?: _malloc_internal.
8058         Changes from Germano Caronni <caronni@tik.ethz.ch>:
8059         (initialize): Set up _heaplimit to cover the _heapinfo table.
8060         (morecore_recursing): New static variable.
8061         (morecore): If that is set, return null immediately.
8062         When growing the info table, before getting new core from the
8063         system for it, set morecore_recursing and try moving _heapinfo
8064         with _realloc_internal.  When that fails and we get new core, set
8065         _heaplimit to cover the core for the new _heapinfo table.
8066         (register_heapinfo): New function.  Record the _heapinfo table's
8067         own blocks in that table and in the statistics variables.
8068         (initialize, _malloc_internal): Use it after allocating new table.
8070 Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)
8072         * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
8073         by other packages.
8074         [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
8076 Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8078         * mach/errorlib.h (errors): Use const for decl.
8080         * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
8081         (decode): New inline function; decode signed 32-bit integers, and
8082         sign-extend properly when long is longer than 32 bits.
8083         (__tzfile_read): Changed all uses of uc2ul to decode.
8084         Decode the transition times properly when sizeof (time_t) > 4.
8086         * stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
8087         (printf_function): Make last arg ARGS a vector of pointers instead of a
8088         pointer to va_list.
8090 Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8092         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
8093         (buffered_vfprintf): Remove line buffer when flush failed.
8095 Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8097         * time/tzfile.c (struct ttinfo): New member `isgmt'.
8098         (__tzfile_read): Read isgmt flags for each type.
8099         (__tzfile_default): When using TZDEFRULES DST rules, adjust
8100         transition times according to the isstd and isgmt flags for the
8101         types of each transition, and adjust each transition to point to
8102         type index either 0 or 1.  Reset type indices 0 and 1 to describe
8103         the user's settings.
8105 Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8107         * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
8108         into just CLASS.  Add standard/optional flag to all items.
8110         * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
8112         * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
8113         Rearrange defn to satisfy compiler.
8115         * locale/localeinfo.h: Declare _nl_current.
8117         * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args
8118         --enable-shared, --enable-profile, --enable-omitfp; pass settings
8119         through to config.make.
8120         * config.make.in (build-shared, build-profile, build-omitfp): New
8121         config vars.
8123         * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
8124         (DT_NUM): New macro.
8126         * locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.
8128         * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
8130         * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
8131         MAP_COPY to MAP_PRIVATE.
8133 Thu Mar  9 17:16:53 1995  Brendan Kehoe  (brendan@zen.org)
8135         * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
8136         that's used inside the alpha sysdep.h.
8138         * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
8139         keyword.
8140         * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
8142         * configure.in: Match `osf*', not `osf1*'.
8143         * configure: Likewise.
8144         * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
8146 Wed Mar  8 13:38:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8148         * posix/glob/configure.bat: Fixes from DJ.
8150         * time/backward, time/europe, time/northamerica, time/pacificnew,
8151         time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
8152         time/ialloc.c: Code and data updated from ADO's 95b.
8153         * time/emkdir.c: File removed.
8154         * time/Makefile (distribute, extra-objs, zic): Omit it.
8156         * time/localtime.c: Deansideclized.  Never #define __tzname et al
8157         to non-__ names.
8159         * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
8160         instead of short int *.
8161         * ctype/ctype-info.c: Likewise.
8162         * ctype/ctype.h: Likewise.
8164         * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
8165         of EB and EL versions.
8167 Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8169         * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
8170         (_IS* enum): Use _ISbit to produce values.
8172 Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8174         * locale/localeinfo.h: Rewritten for new locale system, using
8175         locale data files and with <langinfo.h> interface.
8176         * locale/setlocale.c: Rewritten to use locale data files.
8177         * langinfo.h: New file.
8178         * locale/langinfo.h: New file.
8179         * locale/nl_langinfo.c: New file.
8180         * locale/loadlocale.c: New file.
8181         * locale/lc-ctype.c: New file.
8182         * locale/lc-messages.c: New file.
8183         * locale/lc-monetary.c: New file.
8184         * locale/lc-numeric.c: New file.
8185         * locale/lc-time.c: New file.
8186         * locale/categories.def: New file.
8187         * locale/Makefile (headers): Remove localeinfo.h.
8188         (distribute): New variable; put localeinfo.h here, and categories.def.
8189         (routines): Add loadlocale.
8190         (categories): New variable.
8191         (aux): Use that to get C-category and lc-category.
8192         * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
8193         * ctype/ctype-info.c: For initial tables, use
8194         _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
8195         locale/C-ctype.c.
8196         * locale/C-ctype.c, locale/C-messages.c: New files.
8197         * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
8198         Default "C" locale data updated for new locale system.
8199         * locale/C-collate.c: File removed.
8200         * locale/C-ctype_ct.c: File removed.
8201         * locale/C-ctype_mb.c: File removed.
8202         * locale/C-response.c: File removed.
8203         * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
8204         * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
8205           stdlib/strtod.c, time/asctime.c, time/strftime.c:
8206         Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
8207         locale data.
8208         * time/localtime.c: Don't include <localeinfo.h>.
8209         * time/tzset.c: Don't use locale items for default TZ value or
8210         "GMT" string (use "UTC").
8212         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
8213         WIDTH>0; update DONE.
8215         * malloc/malloc.c (morecore): Fix last change to calculate by
8216         blocks instead of bytes.
8218 Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8220         * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
8221         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
8222         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
8223         * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
8224         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
8225         * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
8226         alias munmap.
8227         * sysdeps/unix/mman/munmap.S: Likewise.
8228         * sysdeps/mach/munmap.c: Likewise.
8229         * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
8230         alias mmap.
8231         * sysdeps/unix/mman/mmap.S: Likewise.
8232         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
8233         * sysdeps/stub/mmap.c: Likewise.
8235         * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
8237         * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
8239 Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8241         * misc/search.h: Add missing semicolon.
8243         * sysdeps/unix/dirfd.c: Fix typo.
8245         * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
8246         in decl.
8248         * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
8249         WIDTH before test.
8251 Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8253         * stdlib/strtod.c: Fixes from drepper.
8254         [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
8255         * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
8256         * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
8258         * stdio/vfprintf.c: Correctly notice Z modifier.
8260         * misc/search.h: New file.
8261         * misc/Makefile (headers): Add search.h.
8262         * misc/insremque.c: Include search.h.
8263         (struct qelem): Type removed.
8265 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8267         * elf/libelf.h: New file.
8268         * elf/elf_hash.c: New file.
8270 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8272         Changes from Germano Caronni <caronni@tik.ethz.ch>:
8273         * malloc/malloc.c (morecore): Account in NEWSIZE for the
8274         malloc_info structures for each new block.
8276 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8278         * sysdeps/mach/hurd/kill.c: When the process has no message port
8279         registered and we have its task port, translate a few signals to
8280         task_suspend/task_resume/task_terminate.
8282 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8284         * io/Makefile (routines): Add euidaccess.
8285         * sysdeps/mach/hurd/euidaccess.c: New file.
8286         * sysdeps/stub/euidaccess.c: New file.
8287         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
8289         * dirent/Makefile (routines): Add dirfd.
8290         * sysdeps/stub/dirfd.c: New file.
8291         * sysdeps/unix/dirfd.c: New file.
8292         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
8293         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
8294         _DIR_dirfd if that is defined.
8295         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
8296         with `void *__fd'.
8297         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
8298         Open the file with `open'; set FD_CLOEXEC on the fd.
8299         * sysdeps/mach/hurd/closedir.c: Likewise.
8300         * sysdeps/mach/hurd/readdir.c: Likewise.
8301         * sysdeps/mach/hurd/dirfd.c: New file.
8303         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
8304         directory.
8305         (glob/ChangeLog): Likewise.
8307         * locale/locale.h (LC_*): Use small integers instead of bit masks.
8309         * stdio/bug4.c: Put temporary files in /tmp.
8310         * stdio/bug3.c: Likewise.
8311         * stdio/bug5.c: Likewise.
8312         * stdio/test-fseek.c: Likewise.
8313         * stdio/test-popen.c: Likewise.
8315 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8317         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
8319         * libc-symbols.h (weak_symbol): New macro.
8321         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
8322         elts with null handlers.
8324         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
8326 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8328         * stdlib/random.c (__srandom): Change algorithm used to populate
8329         the state array.
8330         (randtbl): Recomputed with new algorithm.
8332         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
8333         to original value of `crypt'.
8334         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
8335         (crypt): New variable, set to crypt.solar.
8337 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
8339         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
8341         * config.h.in: Put comment around ^L to pacify Solaris as here too.
8343 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8345         * string/Makefile (distribute): Add pagecopy.h.
8346         * sysdeps/mach/pagecopy.h: New file.
8347         * sysdeps/generic/pagecopy.h: New file.
8348         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
8349         PAGE_COPY_FWD_MAYBE first when word aligned.
8350         * sysdeps/generic/memmove.c: Likewise.
8352         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
8353         (getpgrp): Call __getpgid instead of __getpgrp.
8355         * Makefile (subdirs): Add elf first.
8356         * elf/Makefile: New file.
8357         * elf/elf.h: New file.
8359         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
8360         as a macro.
8361         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
8362         indirection.
8364         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
8365         add crti_s, crtn_s.
8366         (install-lib, extra-objs, generated-, omit-deps): Use that.
8367         (initfini): New canned sequence, broken out of crt[in].s rule.
8368         (crt[in].s rule): Use it.
8369         (crt[in]_s.s): New rule.
8370         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
8371         (_init, _fini): Use GLOBAL as storage class.
8372         Add self reference to avoid GCC optimizing out the functions.
8374         * Makefile (headers): Remove $(stddef.h).
8375         * Makeconfig (stddef.h): Variable removed; now require gcc version
8376         >= 2.2.
8377         * stddef.h: File removed.
8379 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8381         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
8382         definition.
8383         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
8385         * stdlib/strtod.c: Allow the string to start with a decimal point
8386         without a leading zero.
8388 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
8390         * Makefile (subdirs): Put csu first.
8392         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
8394         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
8395         to crt[in].o.
8396         (csu-objpfx): New variable.
8397         (+link): Use it to find start.o and $(+preinit), $(+postinit).
8399         * Rules (subdir_lib, all): Depend on objs.
8401         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
8403         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
8404         access to float.h macros.
8406         * misc/efgcvt.c: New file.
8407         * misc/Makefile (routines): Add efgcvt.
8409 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
8411         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
8412         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
8413         to avoid a misreference that would override sysdeps/generic/mul.c.
8414         * sysdeps/sparc/Dist: Likewise.
8416 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
8418         * posix/Makefile (aux): Add environ.
8419         * posix/environ.c: New file.
8420         * sysdeps/unix/sparc/start.c: Remove __environ definition.
8421         * sysdeps/unix/start.c: Likewise.
8422         * sysdeps/unix/sysv/irix4/start.c: Likewise.
8423         * sysdeps/mach/hurd/start.c: Likewise.
8424         * sysdeps/mach/start.c: Likewise.
8425         * sysdeps/stub/start.c: Likewise.
8427         * sysdeps/unix/make_errlist.c: In produced program, test
8428         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
8429         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
8430         Remove extra weak alias.
8432         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
8433         in #include.
8435         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
8437         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
8438         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
8439         $(CPPFLAGS).
8440         (mk-stdiolim): Use it instead.
8442 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
8444         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
8445         not work to make a weak alias to a bss symbol.
8447         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
8448         (tests): Add test-fwrite.
8449         * stdio/test-fwrite.c: New file.
8451         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
8452         __strtold.
8454         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
8455         there is a CVS directory.
8456         (configure, %/configure): Use $(autoconf-it) for cmds.
8457         * Make-dist: Likewise.
8458         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
8459         if there is a CVS directory.
8460         * sysdeps/sparc/Makefile (divrem output): Likewise.
8461         * sysdeps/alpha/Makefile (divrem output): Likewise.
8462         * Makerules ($(gpl2lgpl)): Likewise.
8464         * Makerules (rule to install lib%.a from $(install-lib)): Fix
8465         patsubst to elide ranlib for $(non-lib.a).
8467         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
8469 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
8471         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
8472         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
8474 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8476         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
8477         DEALLOC_REFPORT; deallocate the refport after use only if it
8478         evaluates to nonzero.
8479         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
8480         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
8482         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
8483         *STATE_CHANGE to indicate whether or not we changed *STATE and it
8484         should be committed to the thread.
8485         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
8486         state for a thread, do thread_set_state on that thread.  Don't use
8487         SS->intr_port for collecting reply ports, it is not safe to
8488         clobber that when suspending; instead, alloca a temporary array.
8489         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
8490         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
8492         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
8493         HURD_FD_PORT_USE will.  Don't use critical sections around
8494         HURD_FD_PORT_USE invocations.
8496         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
8497         * sysdeps/posix/stdio_init.c: Likewise.
8499 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8501         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
8502         locking; don't leave the descriptor locked on return.
8503         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
8504         Use a critical section around locking the descriptor.
8505         Check for an empty descriptor and return EBADF.
8506         * sysdeps/mach/hurd/dup2.c: Likewise.
8507         * sysdeps/mach/hurd/fcntl.c: Likewise.
8508         Use HURD_FD_PORT_USE macro for RPCs.
8509         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
8510         using HURD_FD_PORT_USE.
8511         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
8512         to lock the descriptor.
8513         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
8514         locking the descriptor.
8515         * sysdeps/mach/hurd/fdopen.c: Likewise.
8516         * hurd/fd-close.c: Likewise.
8517         Don't expect the descriptor to be locked on entry.
8518         Check for empty descriptor and return EBADF.
8520         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
8521         new functions _hurd_ctty_input and _hurd_ctty_output, each
8522         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
8523         * hurd/ctty-input.c: New file.
8524         * hurd/ctty-output.c: New file.
8525         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
8526         * hurd/fd-read.c: Use _hurd_ctty_input.
8527         * hurd/fd-write.c: Use _hurd_ctty_output.
8528         * sysdeps/mach/hurd/ioctl.c: Likewise.
8529         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
8531 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8533         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
8534         as appropriate to the type.
8536         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
8537         repeating the union.
8538         (HUGE_VAL, __huge_val): Use it.
8539         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
8540         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
8541         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
8542         (STRTOF): Set to __strtold; define strtold as weak alias.
8543         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
8544         (STRTOF): Set to __strtof; define strtof as weak alias.
8546         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
8547         (IEEE754_FLOAT_BIAS): New macro.
8549         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
8551         * stdlib/testmb.c: Add tests from rfg for using normal chars as
8552         multibyte chars.
8554         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
8555         only the `defined but not used' warning, but also to avoid GCC
8556         optimizing out the entire function (!).
8558         * stdlib/wctomb.c: Include ctype.h.
8560         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
8562         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
8564 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8566         * stdio/printf_fp.c: Include "fpioconst.h".
8567         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
8568         (__printf_fp): All references changed.
8569         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
8570         (group_number): Use memmove instead of memcpy, since operands overlap.
8571         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
8572         * stdio/fpioconst.h: New file, header declaring the table data.
8573         * stdio/Makefile (aux): Add fpioconst.
8574         (distribute): Add fpioconst.h.
8575         * stdlib/strtod.c: Complete rewrite from drepper.
8576         * stdlib/strtof.c: New file.
8577         * stdlib/strtold.c: New file.
8578         * stdlib/Makefile (routines): Add strtof, strtold.
8579         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
8580         * sysdeps/stub/mpn2flt.c: New file.
8581         * sysdeps/stub/mpn2dbl.c: New file.
8582         * sysdeps/stub/mpn2ldbl.c: New file.
8583         * sysdeps/ieee754/mpn2flt.c: New file.
8584         * sysdeps/ieee754/mpn2dbl.c: New file.
8585         * sysdeps/ieee754/mpn2ldbl.c: New file.
8587         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
8588         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
8589         appears in $(non-lib.a).
8591 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8593         * stdlib/wctomb.c: A normal ASCII character translates to itself.
8594         * stdlib/mbtowc.c: Likewise.
8596 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8598         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
8599         Remove `const' from prototypes.
8600         * sysdeps/m68k/__longjmp.c: Likewise.
8601         * setjmp/longjmp.c: Likewise.
8602         * sysdeps/i386/__longjmp.c: Likewise.
8604         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
8605         so when we return a name, it is incremented past the value that
8606         produces that same name.
8608         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
8609         * stdio/stdio.h (fgets): Likewise.
8611         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
8613         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
8614         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
8615         and retry the RPC.
8616         * hurd/fd-read.c: Likewise.
8618 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8620         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
8621         <mach/mig_support.h>.
8622         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
8623         * assert/assert.c: Likewise.
8624         * sysdeps/posix/libc_fatal.c: Likewise.
8626 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8628         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
8629         as macros, to satisfy ANSI pedants.
8631         * stdio/internals.c (flushbuf): When there is no new data after
8632         priming the stream, return without writing out the buffer.
8633         * stdio/Makefile (tests): Add bug7.
8634         * stdio/bug7.c: New file.
8636         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
8637         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
8638         is defined.
8640         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
8642         * stdio/Makefile (tests): Add errnobug.
8643         * stdio/errnobug.c: New file.
8645         * mach/mig_strncpy.c: Include string.h.
8647         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
8648         inlines cause trouble for files defining global register variables.
8650         * stdio/vfprintf.c: Use _strerror_internal for %m.
8652         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
8654         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
8655         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
8656         * stdio/vfprintf.c (group_number): New function.
8657         (vfprintf): Support %' flag for integer formats, by calling
8658         group_number after formatting the number in WORK.
8659         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
8660         (__printf_fp): Implement `group' flag using them.
8662         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
8663         (parent-clean): Remove sysd-rules, not sysdirs.
8664         (distclean): Pass avoid-generated=yes to submake.
8665         (distclean-1): Remove $(sysdep-$(distclean-1)).
8667         * Makerules (objects, objs): Depend on $(extra-objs) too.
8668         (include sysd-Makefile): Protect with ifndef avoid-generated.
8670         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
8671         (CPPFLAGS): Use $(defines) in place of $(+defines).
8672         Replace -D_LIBC with -include $(..)libc-symbols.h.
8674         * stdio/freopen.c: Set seen bit before calling fclose.
8676 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8678         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
8679         successes and each kind of failure.  Return EPERM or EACCES only
8680         if every task failed that way.
8682         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
8683         correctly.
8685         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
8686         or resume the process after frobbing.
8688         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
8689         throughout.
8690         (_hurd_thread_sigstate): Don't lock the sigstate lock.
8691         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
8692         repeated sequences with calls to it.  Don't expect the sigstate
8693         lock to be held on entry; lock it just before examining sigaction.
8694         In handler case, check SS->critical_section after calling
8695         abort_rpcs; if set, mark the signal pending and resume the thread.
8696         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
8697         (_hurd_self_sigstate): Don't lock the sigstate lock.
8698         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
8699         _hurd_self_sigstate_unlocked.
8700         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
8701         the sigstate lock.
8702         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
8703         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
8704         locking.
8705         * hurd/hurd-raise.c: Likewise.
8706         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
8707         * sysdeps/mach/hurd/sigpending.c: Likewise.
8708         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
8709         * sysdeps/mach/hurd/sigaction.c: Likewise.
8710         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
8711         * hurd/fd-write.c: Likewise.
8712         * hurd/fd-read.c: Likewise.
8713         * sysdeps/mach/hurd/ioctl.c: Likewise.
8714         * sysdeps/mach/hurd/fork.c: Likewise.
8715         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
8716         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
8717         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
8718         * hurd/hurdmsg.c (get_int): Likewise.
8720         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
8722         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
8723         global.
8724         (PAD): Caller changed.
8725         * stdio/printf_fp.c (__pad): Function removed.
8726         (PAD): Use __printf_pad instead.
8728 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8730         Merged new FP printer by Ulrich Drepper.
8731         * stdio/printf_fp.c: Rewrite by drepper.
8732         * stdio/Makefile (routines): Add ldbl2mpn.
8733         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
8734         member.
8735         (union ieee854_long_double): New type, from drepper.
8736         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
8737         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
8738         * sysdeps/stub/ldbl2mpn.c: New file.
8739         * math/Makefile (routines): Add isinfl and isnanl.
8740         * sysdeps/ieee754/isinfl.c: New file.
8741         * sysdeps/stub/isinfl.c: New file.
8742         * sysdeps/ieee754/isnanl.c: New file.
8743         * sysdeps/stub/isnanl.c: New file.
8745         * malloc/malloc.c (__malloc_extra_blocks): New variable.
8746         (malloc): When getting more core, get __malloc_extra_blocks extra;
8747         put the new block at the end of the free list and let the next loop
8748         iteration use the initial portion of it.
8749         * malloc/free.c (_free_internal): Account for twice
8750         __malloc_extra_blocks in deciding if we have so much extra memory
8751         we should return it to the system.
8752         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
8753         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
8754         const in parameter decl.
8756         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
8758 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8760         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
8762         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
8763         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
8764         * sysdeps/mips/bsd-setjmp.S: Likewise.
8765         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
8766         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
8767         Use `long int' for sigcode.  Use explicit register numbers instead
8768         of names.
8769         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
8770         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
8772 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8774         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
8776         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
8777         using __stpncpy.
8779         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
8781         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
8783 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8785         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
8786         vm_size_t instead of size_t for arg and return types.
8788         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
8789         already does.
8791 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8793         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
8795         * configure.in (friendly stddef.h check): Write override defn for
8796         `stddef.h' Make variable.
8797         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
8799         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
8801         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
8802         empty file.
8804         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
8806 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8808         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
8810         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
8811         mach/machine/syscall_sw.h with this.
8813 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8815         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
8816         instead of <lock-intern.h>.
8817         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
8818         (_hurd_critical_section_lock): Use spin lock operators.
8819         Don't hold the sigstate lock, unlock it after setting the flag.
8820         (_hurd_critical_section_unlock): Take the sigstate lock
8821         to clear the flag; while holding it, check pending signals.  After
8822         unlocking, sig_post ourselves if there were pending signals.
8824         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
8825         sigstate lock.  If it is locked, clear SS->critical_section and
8826         SS->context, and unlock it.
8828         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
8830         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
8831         * munch-tmpl.c: Likewise.
8833         * mach/Makefile (routines): Don't filter out syscall_% from
8834         $(mach-syscalls).
8836 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
8838         * posix/fnmatch.c: Declare errno if it's not defined.
8839         That's simpler than testing #if !defined(__GNU_LIBRARY__)
8840         && !defined(STDC_HEADERS).
8842 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8844         * csu/Makefile: New file.
8845         * csu/initfini.c: New file.
8846         * Makefile (+other_dirs): Add csu.
8847         (+init): Variable renamed to libc-init.  All references changed.
8848         (aux): Remove start.
8849         (install-lib): Variable removed.
8850         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
8852         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
8853         and $(objpfx)config.h.
8854         (static deps of RPC alias *.o): Removed.
8856         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
8857         Protect macros with this.
8858         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
8859         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
8860         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
8861         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
8862         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
8863         * sysdeps/unix/mips/sysdep.h: Likewise.
8865 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8867         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
8868         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
8870         * hurd/intr-rpc.awk: Emit weak alias.
8872         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
8873         __getpgrp.
8875         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
8876         this.
8877         * sysdeps/unix/i386/sysdep.h: Likewise.
8878         * sysdeps/unix/sparc/sysdep.h: Likewise.
8880         * io/ftw.c: Avoid `ret' as variable name.
8881         * posix/glob.c: Likewise.
8883         * ctype/ctype.h (_ISalpha): Define as its own bit.
8884         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
8886         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
8887         DEFINE_HOOK with this.
8889 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8891         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
8892         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
8893         * mach/shortcut.awk: Emit weak alias.
8894         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
8895         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
8896         __ names.
8897         * mach/Makefile (lock): Remove spin-syms.
8898         (routines): Remove __ names, vm_page_size, msgserver_t.
8899         ($(mach-syscalls) rule): Generate files without __, add weak alias.
8900         Remove symbol alias file rule.
8901         ($(mach-shortcuts) rule): Likewise.
8902         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
8903         * mach/Machrules (if-calls.c): Variable and rule removed.
8904         (interface-headers): Don't add $($(if)-calls).
8905         (transform-user-stub): Define to add weak alias.
8906         * set-hooks.h: Use new libc-symbols.h set access macros.
8907         * time/Makefile (routines): Remove __ names.
8908         (aux): Variable removed.
8909         * hurd/Makefile: Likewise.
8910         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
8911         (data_start): Define as weak alias for __data_start.
8912         * sysdeps/mach/hurd/start.c: Likewise.
8913         * sysdeps/unix/sparc/start.c: Likewise.
8914         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
8915         sys_errlist.
8916         * sysdeps/mach/hurd/errlist.awk: Likewise.
8917         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
8918         alias for __environ.
8919         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
8920         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
8921         * sysdeps/stub/getdomain.c: Likewise.
8922         * sysdeps/stub/vhangup.c: Likewise.
8923         * sysdeps/stub/swapon.c: Likewise.
8924         * sysdeps/stub/sendmsg.c: Likewise.
8925         * sysdeps/stub/recvmsg.c: Likewise.
8926         * sysdeps/stub/acct.c: Likewise.
8927         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
8928         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
8929         * sysdeps/posix/libc_fatal.c: Likewise.
8930         * sysdeps/i386/abort.c: Likewise.
8931         * sysdeps/i386/__longjmp.c: Likewise.
8932         * sysdeps/generic/make_siglist.c: Emit defn always for
8933         _sys_siglist.  Emit weak alias to sys_siglist.
8934         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
8935         * sysdeps/ieee754/log10.c: Likewise.
8936         * time/difftime.c: Likewise.
8937         * stdlib/random.c (srand): Define as weak alias for __srandom.
8938         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
8939         macros for __libc_atexit.
8940         * stdlib/Makefile (routines): Remove __random, srand.
8941         * stdio/gets.c: Use new link_warning macro instead of old
8942         warn_references.
8943         * stdio/Makefile (routines): Remove __ names.
8944         (aux): Remove syms-stdio.
8945         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
8946         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
8947         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
8948         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
8949         * stdio/stdio.h: Likewise.
8950         * misc/Makefile (routines): Remove __ names.
8951         (aux): Remove data_start.
8952         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
8953         * sysdeps/mach/hurd/brk.c: Likewise.
8954         * hurd/hurdid.c: Likewise.
8955         * hurd/hurdpid.c: Likewise.
8956         * hurd/openport.c: Likewise.
8957         * hurd/hurdsock.c: Likewise.
8958         * hurd/hurdsig.c: Likewise.
8959         * hurd/hurdrlimit.c: Likewise.
8960         * hurd/hurdmalloc.c: Likewise.
8961         * hurd/dtable.c: Likewise.
8962         * hurd/setauth.c: Likewise.
8963         * misc/progname.c: Likewise.
8964         * misc/init-misc.c: Likewise.
8965         * sysdeps/generic/vfork.c: Likewise.
8966         * sysdeps/unix/bsd/init-posix.c: Likewise.
8967         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
8968         * time/time.h: Likewise.
8969         * math/Makefile (routines): Remove __ names.
8970         * io/Makefile: Likewise.
8971         * termios/Makefile: Likewise.
8972         * resource/Makefile: Likewise.
8973         * signal/Makefile: Likewise.
8974         * dirent/Makefile: Likewise.
8975         * assert/assert.h: Replace __NORETURN keyword with __attribute__
8976         uses.  Functions return void and macros deal with this.
8977         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
8978         Return void.  Don't include gnu-stabs.h.
8979         * assert/assert.c: Likewise.
8980         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
8981         getpgid.
8982         (aux): Remove environ.
8983         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
8984         __attribute__ use.
8985         * posix/unistd.h (_exit): Likewise.
8986         (__getpgrp, __setpgrp): Declarations removed.
8987         (__getpgid, getpid): Declare these.
8989         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
8990         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
8991         $libc_link_{sources,dests}.
8992         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
8993         create files, just add to libc_link_{dests,sources}.
8995         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
8997         * config.h.in: Add #undefs used by sysdeps configures.
8999         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
9000         __setpgid, __getpgid.
9001         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
9002         from setpgrp.c.
9003         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
9004         from __getpgrp.c.
9005         * sysdeps/unix/bsd/getpgrp.c: File removed.
9006         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
9007         Call __getpgid with zero.
9008         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
9009         weak aliases setpgid and setpgrp.
9010         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
9011         * sysdeps/unix/common/setpgid.S: Likewise.
9012         * sysdeps/mach/hurd/setpgid.c: Likewise.
9013         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
9014         Use subcall 5 to __pgrpsys.
9015         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
9016         weak alias getpgid.
9017         * sysdeps/mach/hurd/getpgid.c: Likewise.
9018         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
9019         * sysdeps/unix/common/getpgid.S: Likewise.
9020         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
9021         Use subcall 4 to __pgrpsys.
9022         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
9023         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
9024         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
9025         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
9026         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
9027         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
9028         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
9029         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
9030         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
9031         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
9032         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
9033         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
9035         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
9036         from __getdents.S.
9038         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
9039         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
9040         warning.
9041         * sysdeps/stub/fexecve.c: Likewise.
9042         * sysdeps/stub/fchdir.c: Likewise.
9043         * sysdeps/stub/fchflags.c: Likewise.
9044         * sysdeps/stub/chflags.c: Likewise.
9046         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
9047         * sysdeps/generic/abort.c: Likewise.
9048         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
9050         * hurd/hurdioctl.c: Include hurd/ioctl.h.
9051         (_hurd_ioctl_handler_lists): Define this set.
9052         (_hurd_lookup_ioctl_handler): New function.
9053         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
9054         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
9055         (_hurd_lookup_ioctl_handler): Declare it.
9056         (ioctl_handler_t): New typedef.  Use it throughout.
9057         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
9058         (_hurd_ioctl_handler_lists): Don't define.
9059         (__ioctl): Call _hurd_lookup_ioctl_handler.
9061         * stdlib/strtol.c (maxquad): Make this const.
9062         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
9064         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
9065         any compile tests.
9067         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
9068         __msg_sig_post_request, not __sig_post_request.
9070         * misc/getusersh.c: Renamed to getusershell.c.
9071         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
9072         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
9073         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
9074         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
9076 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9078         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
9079         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
9080         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
9081         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
9082         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
9083         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
9084         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
9085         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
9086         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
9087         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
9088         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
9089         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
9090         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
9091         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
9092         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
9093         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
9094         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
9095         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
9096         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
9097         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
9098         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
9099         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
9100         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
9101         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
9102         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
9103         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
9104         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
9105         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
9106         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
9107         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
9109         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
9110         of __sig_post.
9111         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
9112         * sysdeps/mach/hurd/kill.c: Likewise.
9113         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
9115         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
9116         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
9118         * sysdeps/stub/remove.c: New file.
9119         * sysdeps/posix/remove.c: New file.
9121 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9123         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
9124         mktime.
9125         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
9126         __mig_strncpy.
9127         * mach/msg-destroy.c: Renamed from __msg_dest.c.
9128         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
9129         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
9130         * time/tzset.c (tzname, daylight, timezone): Define as weak
9131         aliases for __ names.
9132         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
9133         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
9134         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
9135         being defined.
9137 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9139         * string/Makefile (routines): Remove __ names, index, rindex, and
9140         bcmp.
9141         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
9142         alias for strchr.
9143         * sysdeps/generic/strchr.c: Likewise.
9144         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
9145         alias for strrchr.
9146         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
9147         alias for memcmp.
9149         * malloc/free.c (cfree): Define this function, with weak_alias if
9150         available, otherwise a C function.
9151         * malloc/Makefile (gmalloc-routines): Remove cfree.
9153 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9155         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
9156         get_limit.  This has the effect of no-op'ing properly for zero.
9158         * configure.in: Add AC_CONFIG_HEADER(config.h).
9159         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
9160         * config.h.in: New file.
9162         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
9163         All code converted to use weak symbols, defined in the files which
9164         define the real code (with the __ names, the non-__ names are weak).
9165         All old symbol alias files removed.
9166         Many files renamed to remove __ prefix since there is now just
9167         the one file for both the __ and non-__ name for each function.
9168         * libc-symbols.h: New file.
9169         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
9170         sets.
9171         * gnu-stabs.h: Prepend #error this file is obsolete.
9172         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
9173         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
9174         access.
9175         * sysdeps/unix/common/__access.S: Likewise.
9176         * sysdeps/mach/hurd/__access.c: Likewise.
9177         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
9178         adjtime.
9179         * sysdeps/unix/common/__adjtime.S: Likewise.
9180         * sysdeps/mach/__adjtime.c: Likewise.
9181         * sysdeps/mach/hurd/__adjtime.c: Likewise.
9182         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
9183         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
9184         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
9185         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
9186         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
9187         * sysdeps/unix/i386/__brk.S: Likewise.
9188         * sysdeps/unix/sparc/__brk.S: Likewise.
9189         * sysdeps/unix/mips/__brk.S: Likewise.
9190         * sysdeps/mach/hurd/__brk.c: Likewise.
9191         * sysdeps/standalone/__brk.c: Likewise.
9192         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
9193         * sysdeps/unix/__chdir.S: Likewise.
9194         * sysdeps/mach/hurd/__chdir.c: Likewise.
9195         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
9196         * sysdeps/unix/__chmod.S: Likewise.
9197         * sysdeps/mach/hurd/__chmod.c: Likewise.
9198         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
9199         * sysdeps/unix/__chown.S: Likewise.
9200         * sysdeps/mach/hurd/__chown.c: Likewise.
9201         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
9202         * sysdeps/unix/__close.S: Likewise.
9203         * sysdeps/mach/hurd/__close.c: Likewise.
9204         * sysdeps/standalone/__close.c: Likewise.
9205         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
9206         alias copysign.
9207         * sysdeps/ieee754/__copysign.c: Likewise.
9208         * sysdeps/alpha/__copysign.c: Likewise.
9209         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
9210         * sysdeps/m68k/fpu/__drem.c: Likewise.
9211         * sysdeps/stub/__drem.c: Likewise.
9212         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
9213         * sysdeps/stub/__dup.c: Likewise.
9214         * sysdeps/unix/__dup.S: Likewise.
9215         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
9216         * sysdeps/stub/__dup2.c: Likewise.
9217         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
9218         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
9219         * sysdeps/unix/common/__dup2.S: Likewise.
9220         * sysdeps/mach/hurd/__dup2.c: Likewise.
9221         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
9222         execve.
9223         * sysdeps/unix/__execve.S: Likewise.
9224         * sysdeps/mach/hurd/__execve.c: Likewise.
9225         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
9226         expm1.
9227         * sysdeps/m68k/fpu/__expm1.c: Likewise.
9228         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
9229         fchmod.
9230         * sysdeps/unix/common/__fchmod.S: Likewise.
9231         * sysdeps/mach/hurd/__fchmod.c: Likewise.
9232         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
9233         fchown.
9234         * sysdeps/unix/common/__fchown.S: Likewise.
9235         * sysdeps/mach/hurd/__fchown.c: Likewise.
9236         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
9237         * sysdeps/unix/__fcntl.S: Likewise.
9238         * sysdeps/mach/hurd/__fcntl.c: Likewise.
9239         * math/__finite.c: Renamed to finite.c; added weak alias finite.
9240         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
9241         * sysdeps/stub/__flock.c: Likewise.
9242         * sysdeps/unix/bsd/__flock.S: Likewise.
9243         * sysdeps/mach/hurd/__flock.c: Likewise.
9244         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
9245         fopenport.
9246         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
9247         * sysdeps/unix/__fork.S: Likewise.
9248         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
9249         * sysdeps/unix/i386/__fork.S: Likewise.
9250         * sysdeps/unix/sparc/__fork.S: Likewise.
9251         * sysdeps/unix/mips/__fork.S: Likewise.
9252         * sysdeps/mach/hurd/__fork.c: Likewise.
9253         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
9254         alias fpathconf.
9255         * sysdeps/stub/__fpathcon.c: Likewise.
9256         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
9257         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
9258         * sysdeps/unix/__fstat.S: Likewise.
9259         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
9260         * sysdeps/mach/hurd/__fstat.c: Likewise.
9261         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
9262         getdelim.
9263         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
9264         alias getdents.
9265         * sysdeps/unix/__getdents.c: Likewise.
9266         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
9267         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
9268         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
9269         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
9270         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
9271         * sysdeps/unix/sysv/__getdents.c: Likewise.
9272         * sysdeps/mach/hurd/__getdents.c: Likewise.
9273         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
9274         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
9275         alias getdtablesize.
9276         * sysdeps/stub/__getdtsz.c: Likewise.
9277         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
9278         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
9279         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
9280         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
9281         getegid.
9282         * sysdeps/unix/__getegid.S: Likewise.
9283         * sysdeps/mach/hurd/__getegid.c: Likewise.
9284         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
9285         geteuid.
9286         * sysdeps/unix/__geteuid.S: Likewise.
9287         * sysdeps/mach/hurd/__geteuid.c: Likewise.
9288         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
9289         getgid.
9290         * sysdeps/unix/__getgid.S: Likewise.
9291         * sysdeps/mach/hurd/__getgid.c: Likewise.
9292         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
9293         alias getgroups.
9294         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
9295         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
9296         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
9297         * sysdeps/unix/common/__getgrps.S: Likewise.
9298         * sysdeps/mach/hurd/__getgrps.c: Likewise.
9299         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
9300         alias gethostname.
9301         * sysdeps/unix/inet/__gethstnm.S: Likewise.
9302         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
9303         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
9304         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
9305         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
9306         alias getitimer.
9307         * sysdeps/unix/common/__getitmr.S: Likewise.
9308         * sysdeps/mach/hurd/__getitmr.c: Likewise.
9309         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
9310         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
9311         alias getpagesize.
9312         * sysdeps/stub/__getpgsz.c: Likewise.
9313         * sysdeps/unix/__getpgsz.c: Likewise.
9314         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
9315         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
9316         * sysdeps/mach/__getpgsz.c: Likewise.
9317         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
9318         getpid.
9319         * sysdeps/unix/__getpid.S: Likewise.
9320         * sysdeps/mach/hurd/__getpid.c: Likewise.
9321         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
9322         getppid.
9323         * sysdeps/unix/__getppid.S: Likewise.
9324         * sysdeps/mach/hurd/__getppid.c: Likewise.
9325         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
9326         alias gettimeofday.
9327         * sysdeps/stub/__gettod.c: Likewise.
9328         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
9329         * sysdeps/unix/common/__gettod.S: Likewise.
9330         * sysdeps/mach/__gettod.c: Likewise.
9331         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
9332         getuid.
9333         * sysdeps/unix/__getuid.S: Likewise.
9334         * sysdeps/mach/hurd/__getuid.c: Likewise.
9335         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
9336         alias infnan.
9337         * sysdeps/ieee754/__infnan.c: Likewise.
9338         * sysdeps/vax/__infnan.c: Likewise.
9339         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
9340         * sysdeps/unix/__ioctl.S: Likewise.
9341         * sysdeps/mach/hurd/__ioctl.c: Likewise.
9342         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
9343         isatty.
9344         * sysdeps/stub/__isatty.c: Likewise.
9345         * sysdeps/unix/bsd/__isatty.c: Likewise.
9346         * sysdeps/mach/hurd/__isatty.c: Likewise.
9347         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
9348         isinf.
9349         * sysdeps/m68k/fpu/__isinf.c: Likewise.
9350         * sysdeps/stub/__isinf.c: Likewise.
9351         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
9352         isnan.
9353         * sysdeps/ieee754/__isnan.c: Likewise.
9354         * sysdeps/m68k/fpu/__isnan.c: Likewise.
9355         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
9356         * sysdeps/unix/__kill.S: Likewise.
9357         * sysdeps/mach/hurd/__kill.c: Likewise.
9358         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
9359         * sysdeps/unix/__link.S: Likewise.
9360         * sysdeps/mach/hurd/__link.c: Likewise.
9361         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
9362         * sysdeps/m68k/fpu/__logb.c: Likewise.
9363         * sysdeps/stub/__logb.c: Likewise.
9364         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
9365         * sysdeps/unix/__lseek.S: Likewise.
9366         * sysdeps/mach/hurd/__lseek.c: Likewise.
9367         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
9368         lstat.
9369         * sysdeps/stub/__lstat.c: Likewise.
9370         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
9371         * sysdeps/unix/common/__lstat.S: Likewise.
9372         * sysdeps/mach/hurd/__lstat.c: Likewise.
9373         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
9374         alias memccpy.
9375         * sysdeps/vax/__memccpy.c: Likewise.
9376         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
9377         * sysdeps/unix/sysv/__mkdir.c: Likewise.
9378         * sysdeps/unix/common/__mkdir.S: Likewise.
9379         * sysdeps/mach/hurd/__mkdir.c: Likewise.
9380         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
9381         * sysdeps/unix/__mknod.S: Likewise.
9382         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
9383         * sysdeps/mach/hurd/__mknod.c: Likewise.
9384         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
9385         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
9386         mach_msg_server.
9387         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
9388         * sysdeps/unix/__open.S: Likewise.
9389         * sysdeps/mach/hurd/__open.c: Likewise.
9390         * sysdeps/standalone/__open.c: Likewise.
9391         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
9392         alias pathconf.
9393         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
9394         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
9395         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
9396         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
9397         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
9398         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
9399         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
9400         * sysdeps/unix/i386/__pipe.S: Likewise.
9401         * sysdeps/unix/sparc/__pipe.S: Likewise.
9402         * sysdeps/unix/mips/__pipe.S: Likewise.
9403         * sysdeps/mach/hurd/__pipe.c: Likewise.
9404         * stdlib/__random.c: Renamed to random.c; added weak alias random.
9405         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
9406         * sysdeps/unix/__read.S: Likewise.
9407         * sysdeps/mach/hurd/__read.c: Likewise.
9408         * sysdeps/standalone/__read.c: Likewise.
9409         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
9410         alias readlink.
9411         * sysdeps/unix/common/__readlink.S: Likewise.
9412         * sysdeps/mach/hurd/__readlink.c: Likewise.
9413         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
9414         * sysdeps/m68k/fpu/__rint.c: Likewise.
9415         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
9416         * sysdeps/unix/sysv/__rmdir.c: Likewise.
9417         * sysdeps/unix/common/__rmdir.S: Likewise.
9418         * sysdeps/mach/hurd/__rmdir.c: Likewise.
9419         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
9420         * sysdeps/stub/__sbrk.c: Likewise.
9421         * sysdeps/mach/hurd/__sbrk.c: Likewise.
9422         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
9423         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
9424         select.
9425         * sysdeps/unix/common/__select.S: Likewise.
9426         * sysdeps/mach/hurd/__select.c: Likewise.
9427         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
9428         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
9429         setgid.
9430         * sysdeps/unix/__setgid.S: Likewise.
9431         * sysdeps/unix/bsd/__setgid.c: Likewise.
9432         * sysdeps/mach/hurd/__setgid.c: Likewise.
9433         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
9434         setitmr
9435         * sysdeps/unix/common/__setitmr.S: Likewise.
9436         * sysdeps/mach/hurd/__setitmr.c: Likewise.
9437         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
9438         setpgrp
9439         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
9440         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
9441         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
9442         * sysdeps/unix/common/__setpgrp.S: Likewise.
9443         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
9444         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
9445         alias setregid.
9446         * sysdeps/unix/common/__setregid.S: Likewise.
9447         * sysdeps/mach/hurd/__setregid.c: Likewise.
9448         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
9449         alias setreuid.
9450         * sysdeps/unix/common/__setreuid.S: Likewise.
9451         * sysdeps/mach/hurd/__setreuid.c: Likewise.
9452         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
9453         setsid.
9454         * sysdeps/unix/bsd/__setsid.c: Likewise.
9455         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
9456         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
9457         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
9458         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
9459         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
9460         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
9461         * sysdeps/mach/hurd/__setsid.c: Likewise.
9462         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
9463         settimeofday.
9464         * sysdeps/unix/bsd/__settod.S: Likewise.
9465         * sysdeps/unix/sysv/__settod.c: Likewise.
9466         * sysdeps/mach/hurd/__settod.c: Likewise.
9467         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
9468         setuid.
9469         * sysdeps/unix/__setuid.S: Likewise.
9470         * sysdeps/unix/bsd/__setuid.c: Likewise.
9471         * sysdeps/mach/hurd/__setuid.c: Likewise.
9472         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
9473         alias sigblock.
9474         * sysdeps/stub/__sigblock.c: Likewise.
9475         * sysdeps/unix/bsd/__sigblock.S: Likewise.
9476         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
9477         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
9478         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
9479         alias sigpause.
9480         * sysdeps/stub/__sigpause.c: Likewise.
9481         * sysdeps/unix/bsd/__sigpause.S: Likewise.
9482         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
9483         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
9484         alias sigprocmask.
9485         * sysdeps/unix/bsd/__sigproc.c: Likewise.
9486         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
9487         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
9488         * sysdeps/mach/hurd/__sigproc.c: Likewise.
9489         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
9490         alias sigreturn.
9491         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
9492         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
9493         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
9494         * sysdeps/unix/i386/__sigret.S: Likewise.
9495         * sysdeps/unix/mips/__sigret.S: Likewise.
9496         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
9497         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
9498         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
9499         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
9500         sigvec.
9501         * sysdeps/stub/__sigvec.c: Likewise.
9502         * sysdeps/unix/bsd/__sigvec.S: Likewise.
9503         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
9504         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
9505         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
9506         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
9507         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
9508         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
9509         * sysdeps/unix/__stat.S: Likewise.
9510         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
9511         * sysdeps/mach/hurd/__stat.c: Likewise.
9512         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
9513         alias stpncpy.
9514         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
9515         symlink.
9516         * sysdeps/unix/common/__symlink.S: Likewise.
9517         * sysdeps/mach/hurd/__symlink.c: Likewise.
9518         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
9519         alias sysconf.
9520         * sysdeps/stub/__sysconf.c: Likewise.
9521         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
9522         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
9523         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
9524         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
9525         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
9526         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
9527         * sysdeps/unix/bsd/__times.c: Likewise.
9528         * sysdeps/unix/sysv/__times.S: Likewise.
9529         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
9530         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
9531         * sysdeps/unix/__umask.S: Likewise.
9532         * sysdeps/mach/hurd/__umask.c: Likewise.
9533         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
9534         unlink.
9535         * sysdeps/unix/__unlink.S: Likewise.
9536         * sysdeps/mach/hurd/__unlink.c: Likewise.
9537         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
9538         utimes.
9539         * sysdeps/unix/bsd/__utimes.S: Likewise.
9540         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
9541         * sysdeps/mach/hurd/__utimes.c: Likewise.
9542         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
9543         vfork.
9544         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
9545         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
9546         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
9547         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
9548         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
9549         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
9550         * sysdeps/unix/sparc/__vfork.S: Likewise.
9551         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
9552         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
9553         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
9554         * sysdeps/stub/__wait.c: Likewise.
9555         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
9556         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
9557         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
9558         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
9559         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
9560         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
9561         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
9562         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
9563         * sysdeps/unix/i386/__wait.S: Likewise.
9564         * sysdeps/unix/mips/__wait.S: Likewise.
9565         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
9566         * sysdeps/stub/__wait3.c: Likewise.
9567         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
9568         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
9569         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
9570         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
9571         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
9572         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
9573         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
9574         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
9575         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
9576         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
9577         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
9578         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
9579         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
9580         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
9581         * sysdeps/mach/hurd/__wait4.c: Likewise.
9582         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
9583         waitpid.
9584         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
9585         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
9586         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
9587         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
9588         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
9589         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
9590         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
9591         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
9592         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
9593         * sysdeps/unix/__write.S: Likewise.
9594         * sysdeps/mach/hurd/__write.c: Likewise.
9595         * sysdeps/standalone/__write.c: Likewise.
9596         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
9597         alias tcgetattr.
9598         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
9599         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
9600         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
9601         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
9602         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
9603         alias sigaction.
9604         * sysdeps/unix/bsd/__sigact.c: Likewise.
9605         * sysdeps/unix/sysv/__sigact.c: Likewise.
9606         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
9607         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
9608         * sysdeps/mach/hurd/__sigact.c: Likewise.
9609         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
9610         alias sigsetmask.
9611         * sysdeps/stub/__sigstmsk.c: Likewise.
9612         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
9613         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
9614         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
9615         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
9616         alias getrusage.
9617         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
9618         * sysdeps/unix/common/__getrusag.S: Likewise.
9619         * hurd/task2pid.c: File removed.
9620         * hurd/setauth.c: File removed.
9621         * hurd/pid2task.c: File removed.
9622         * hurd/hurdsyms.c: File removed.
9623         * hurd/getdport.c: File removed.
9624         * hurd/fopenport.c: File removed.
9625         * mach/thread-sym.c: File removed.
9626         * mach/spin-syms.c: File removed.
9627         * mach/msgserver_t.c: File removed.
9628         * mach/msgserver.c: File removed.
9629         * mach/msg.c: File removed.
9630         * mach/mig_syms.c: File removed.
9631         * malloc/mcheck-init.c: File removed.
9632         * malloc/cfree.c: File removed.
9633         * io/flock.c: File removed.
9634         * io/write.c: File removed.
9635         * io/unlink.c: File removed.
9636         * io/umask.c: File removed.
9637         * io/symlink.c: File removed.
9638         * io/rmdir.c: File removed.
9639         * io/readlink.c: File removed.
9640         * io/read.c: File removed.
9641         * io/pipe.c: File removed.
9642         * io/open.c: File removed.
9643         * io/mkdir.c: File removed.
9644         * io/lstat.c: File removed.
9645         * io/lseek.c: File removed.
9646         * io/link.c: File removed.
9647         * io/isatty.c: File removed.
9648         * io/stat.c: File removed.
9649         * io/fstat.c: File removed.
9650         * io/fchown.c: File removed.
9651         * io/fchmod.c: File removed.
9652         * io/dup2.c: File removed.
9653         * io/dup.c: File removed.
9654         * io/close.c: File removed.
9655         * io/fcntl.c: File removed.
9656         * io/chmod.c: File removed.
9657         * io/chdir.c: File removed.
9658         * io/access.c: File removed.
9659         * io/chown.c: File removed.
9660         * time/tzset.c: File removed.
9661         * time/timelocal.c: File removed.
9662         * time/syms-time.c: File removed.
9663         * time/settod.c: File removed.
9664         * time/setitmr.c: File removed.
9665         * time/gettod.c: File removed.
9666         * time/getitmr.c: File removed.
9667         * time/adjtime.c: File removed.
9668         * termios/tcgetattr.c: File removed.
9669         * string/stpncpy.c: File removed.
9670         * string/rindex.c: File removed.
9671         * string/memccpy.c: File removed.
9672         * string/index.c: File removed.
9673         * string/bcmp.c: File removed.
9674         * stdlib/srand.c: File removed.
9675         * stdlib/random.c: File removed.
9676         * stdio/vsscanf.c: File removed.
9677         * stdio/vfscanf.c: File removed.
9678         * stdio/syms-stdio.c: File removed.
9679         * stdio/remove.c: File removed.
9680         * stdio/getline.c: File removed.
9681         * stdio/getdelim.c: File removed.
9682         * signal/ssignal.c: File removed.
9683         * signal/sigvec.c: File removed.
9684         * signal/sigsetmask.c: File removed.
9685         * signal/sigret.c: File removed.
9686         * signal/sigproc.c: File removed.
9687         * signal/sigpause.c: File removed.
9688         * signal/sigblock.c: File removed.
9689         * signal/sigaction.c: File removed.
9690         * signal/kill.c: File removed.
9691         * signal/gsignal.c: File removed.
9692         * setjmp/siglongjmp.c: File removed.
9693         * setjmp/_longjmp.c: File removed.
9694         * resource/getrusage.c: File removed.
9695         * posix/waitpid.c: File removed.
9696         * posix/wait4.c: File removed.
9697         * posix/wait3.c: File removed.
9698         * posix/wait.c: File removed.
9699         * posix/times.c: File removed.
9700         * posix/sysconf.c: File removed.
9701         * posix/setuid.c: File removed.
9702         * posix/setsid.c: File removed.
9703         * posix/setpgrp.c: File removed.
9704         * posix/setpgid.c: File removed.
9705         * posix/setgid.c: File removed.
9706         * posix/pathconf.c: File removed.
9707         * posix/getuid.c: File removed.
9708         * posix/getppid.c: File removed.
9709         * posix/getpid.c: File removed.
9710         * posix/getgrps.c: File removed.
9711         * posix/getgid.c: File removed.
9712         * posix/geteuid.c: File removed.
9713         * posix/getegid.c: File removed.
9714         * posix/fpathcon.c: File removed.
9715         * posix/fork.c: File removed.
9716         * posix/execve.c: File removed.
9717         * posix/environ.c: File removed.
9718         * misc/utimes.c: File removed.
9719         * misc/setreuid.c: File removed.
9720         * misc/setregid.c: File removed.
9721         * misc/select.c: File removed.
9722         * misc/sbrk.c: File removed.
9723         * misc/mknod.c: File removed.
9724         * misc/ioctl.c: File removed.
9725         * misc/getpgsz.c: File removed.
9726         * misc/gethstnm.c: File removed.
9727         * misc/getdtsz.c: File removed.
9728         * misc/data_start.c: File removed.
9729         * misc/brk.c: File removed.
9730         * math/scalb.c: File removed.
9731         * math/rint.c: File removed.
9732         * math/logb.c: File removed.
9733         * math/isnan.c: File removed.
9734         * math/isinf.c: File removed.
9735         * math/infnan.c: File removed.
9736         * math/finite.c: File removed.
9737         * math/expm1.c: File removed.
9738         * math/drem.c: File removed.
9739         * math/copysign.c: File removed.
9740         * math/__scalb.c: File removed.
9741         * dirent/getdents.c: File removed.
9743 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9745         * sysdeps/generic/morecore.c (__default_morecore): Use
9746         __malloc_ptrdiff_t; don't cast arg to int.
9748         * resolv/getnetnamadr.c: Include "conf/portability.h".
9750 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9752         * stdlib/strtol.c: Include errno.h.
9753         [QUAD] (ULONG_MAX): Define to a static variable initialized to
9754         ULONG_LONG_MAX. This is to work around a GCC bug in using the
9755         constant in arithmetic.
9757         * posix/unistd.h (daemon): Declare it.
9759         * malloc/mcheck-init.c: Remove GNU ld hacks.
9760         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
9761         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
9762         (initialize): Call the hook if set.
9763         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
9764         (__malloc_initialize_hook): Declare new hook variable.
9766 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9768         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
9769         * hurd/hurdpid.c: Likewise.
9770         * hurd/hurdauth.c: Likewise.
9772 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9774         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
9775         if any are successful.
9777         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
9778         (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
9779         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
9780         functions.
9781         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
9783         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
9784         * hurd/hurd-raise.c: Likewise.
9785         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
9787         * sysdeps/mach/hurd/ptrace.c: New file.
9789         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
9790         interface, which has normal EINTR semantics.  Instead of waiting
9791         for io_select_done notification messages, send io_select messages
9792         with short reply timeout and then wait for io_select_reply
9793         messages.
9795         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
9796         EXEC_INHERITED) to file_exec.
9798         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
9799         use sig_post_untraced_reply.  All callers changed.
9800         (abort_thread, abort_rpcs): Take same new arg and pass it through.
9801         All callers changed.
9802         (_hurd_internal_post_signal): Take new arg UNTRACED.
9803         If zero and process is traced, stop with SIGNO as stop signal.  If
9804         nonzero, resume process before delivering signal (unless
9805         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
9806         SIGNO!=0.
9807         (signal_allowed): New function, broken out of _S_sig_post.
9808         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
9809         _hurd_internal_post_signal.
9810         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
9811         pass true for UNTRACED.
9812         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
9813         UNTRACED.
9814         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
9815         to _hurd_internal_post_signal (value zero).
9817 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9819         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
9820         (_hurd_init): Initialize it from FLAGS arg.
9821         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
9822         raise a SIGTRAP signal (with a sigcode of zero).
9823         * hurd/hurd.h (_hurd_exec_flags): Declare it.
9825         * Version 1.09.5.
9827 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
9829         * malloc/malloc.c (malloc): Fix 1-off in previous change.
9831 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9833         * posix/glob/Makefile.in: Remove config.h and config.log.
9835 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9837         * posix/glob/configure.in: Add AC_CONST check.
9839         * conf/portability.h: #undef sun.
9840         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
9841         * resolv/getnetnamadr.c: Likewise.
9843         * socket/Makefile (headers): Add sockaddrcom.h.
9844         * inet/netinet/in.h: Include <sockaddrcom.h>.
9845         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
9846         * socket/sys/un.h (struct sockaddr_in): Likewise.
9847         * socket/sys/socket.h (struct sockaddr): Likewise.
9848         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
9849         * sysdeps/generic/sockaddrcom.h: New file.
9851         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
9852         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
9853         F_FREESP): New macros.
9854         * sysdeps/posix/truncate.c: New file.
9856         * malloc/malloc.c (malloc): Fix typos in RMS's change.
9858         * malloc/Makefile (dist-routines): Add malloc-find.
9859         * malloc/malloc.h (malloc_find_object_address): Declare it.
9860         * malloc/malloc-find.c: New file.
9862         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
9863         __malloc_size_t.
9864         (malloc_info): Use that type for member `busy.info.size'.
9866         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
9867         `LONG' macro.
9868         [! QUAD] (LONG): Define as long.
9869         [QUAD] (LONG): Define as long long.
9870         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
9871         versions.
9872         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
9873         * stdlib/Makefile (routines): Add strtoq and strtouq.
9874         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
9875         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
9876         Declare them.
9878         * stdio/vfprintf.c: If there was a precision specified, ignore the
9879         0 flag and always pad with spaces.
9881         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
9882         Use a loop and also stop on first !isascii char.
9884 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
9886         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
9888         * malloc/malloc.c (malloc): For a multi-block object, store a
9889         negative number into the busy.info.size of all but the first block.
9891 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
9893         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
9894         instead of t0, t1, and t2.
9896 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9898         * malloc/memalign.c (__memalign_hook): New variable.
9899         (memalign): Call it if set.
9900         * malloc/malloc.h (__memalign_hook): Declare new variable.
9902 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9904         * conf/portability.h: Include string.h and stdlib.h.
9905         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
9906         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
9907         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
9908         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
9909         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
9911         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
9912         all uses of `extern __inline' with `__m81_inline'.
9914         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
9915         * sysdeps/unix/__fork.S: Swap args in subl.
9917         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
9918         compatibility.
9920 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
9922         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
9923         of swtch.
9924         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
9925         * mach/spin-solid.c (__spin_lock_solid): Likewise.
9927 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9929         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
9930         for PBUF.
9931         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
9933         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
9935 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9937         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
9938         in `bis' insn; immediate must be second.
9940         * sysdeps/unix/__fork.S: Use subl instead of decl.
9941         * sysdeps/unix/i386/__fork.S: New file.
9943         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
9944         Remove A macro; just use `asm volatile' with proper quotes in each
9945         line.
9946         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
9947         jmp target register.
9949         * time/africa, time/asia, time/australasia, time/emkdir.c,
9950         time/europe, time/ialloc.c, time/northamerica, time/private.h,
9951         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
9952         and data from ADO 94h distribution.
9954         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
9955         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
9956         absolute pointer.  Put second store in jmp delay slot.
9958 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9960         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
9961         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
9962         absolute pointer.
9963         * sysdeps/sparc/bsd-setjmp.S: Likewise.
9965         * configure.in: Use ; before } in { ... } exprs.
9969 See ChangeLog.4 for earlier changes.