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