Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / ChangeLog
blob984bab71c377160c39d7e341e003d8829a66bf9a
1 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3         * MakeTAGS (extract): Pass --add-comments=TRANS.
4         * sysdeps/gnu/errlist.awk: Write comments into the output with the
5         descriptive paragraphs from the manual preceded by TRANS.
7         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
8         (_dl_start): Move RESOLVE defn inside this function and #include
9         "dynamic-link.h" a second time there.
10         [RTLD_START]: Move use of this after _dl_start function.
12         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
14         * elf/rtld.c: Include <string.h>.
16         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
17         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
18         Conditionalize defns on [RESOLVE].
19         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
20         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
21         Instead use RESOLVE macro with same args.
22         (elf_machine_rel): Conditionalize defn on [RESOLVE].
23         * elf/dl-reloc.c (RESOLVE): New macro, define before including
24         "dynamic-link.h".  It replaces `resolve' local function.
25         * elf/dl-runtime.c: Likewise.
26         * elf/rtld.c: Likewise.
28         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
30         * elf/dl-open.c (_dl_open): Force an indirect call for
31         _dl_relocate_object so there is no chance a PLT fixup will be done
32         and clobber _dl_global_scope before our call happens.
34         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
35         to =t; must operate on top of fp reg stack, not second from top.
36         Correct input constraint to 0 from t; must be explicit when input and
37         output are the same register.
38         (floor): Use __volatile instead of volatile.
39         (ceil): Likewise.
41         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
42         other targets.
44 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
46         * manual/Makefile (lib): New phony target.  Depend on stamp files.
47         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
49 1996-07-13  Paul Eggert  <eggert@twinsun.com>
51         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
52         to match Emacs format-time-string specification.
53         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
55 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
57         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
58         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
59         between MAP and its deps.
60         * elf/link.h: Fix decl.
61         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
62         colon-separated list of names, map those and pass vector of ptrs as
63         PRELOADS list to _dl_map_object_deps.
64         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
65         _dl_map_object_deps with empty preload list.
66         * elf/dl-open.c (_dl_open): Likewise.
68         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
69         removed.
70         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
71         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
72         Conditionalize defn on [! MAP_ANON].
73         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
74         on [! MAP_ANON].
75         * elf/rtld.c (dl_main): Likewise.
76         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
77         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
79         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
81 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
83         * stdlib/random.c (__random): Declare as int32_t to be in sync
84         with declaration.
86         * socket/Makefile (headers): Add socketbits.h.
88         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
89         it that way.
91         * grp/initgroups.c (initgroups): Add groups that user is a member
92         of, not the ones he is _not_ a member of.
94         * nss/nsswitch.c (known_compare): Make known_compare() a static
95         instead of a local function.  The latter are difficult to debug
96         and slow to execute on certain platforms.
98         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
99         place of sizeof (dev).  The size of a literal string includes the
100         NUL byte.
102         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
104 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
106         * misc/mntent.c (addmntent): Seek to end of file before writing
107         entry.  Return 1 on error, not -1.
109 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
111         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
112         syscall.
114 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
116         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
117         shift amount for Jensen must be 5 not 4.
119 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
121         * socket/sys/socket.h (struct osockaddr): New type.
123 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
125         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
126         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
127         and `long double' versions can be generated.
128         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
129         so that included efgcvt{,_r}.c file generate `long double'
130         versions.
131         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
132         functions.
134         * manual/startup.texi: Document new getsubopt function.
135         * manual/examples/subopt.c: New example program for documenting
136         getsubopt function.
138 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
140         * stdlib/Makefile (routines): Add getsubopt.
141         * stdlib/stdlib.h: Add prototype for getsubopt.
142         * stdlib/getsubopt.c: New file.  Implement getsubopt function
143         to handle suboption parsing.
145 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
147         * inet/getnetent_r.c: Define NEED_H_ERRNO.
148         * inet/getnetbynm_r.c: Likewise.
149         * inet/getnetent.c: Likewise.
150         * inet/getnetbyad_r.c: Likewise.
151         * inet/getnetbyad.c: Likewise.
152         * inet/getnetbynm.c: Likewise.
154         * sysdeps/generic/pselect.c: Include <sys/time.h>.
156         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
157         `struct timespec'.
159         * math/Makefile (calls): Add s_frexp, s_ldexp.
160         (routines): Remove them and &f from here.
162         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
164         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
165         and check it.
167         * nss/nss_files/files-XXX.c: Comment fix.
169 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
171         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
172         of reentrant function.
173         (setup): Pass additional argument with function name we are
174         looking for.
175         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
176         new argument {SET,END,GET}FUNC_NAME_STRING.
178         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
179         we return a pointer.
181 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
183         * nss/nss_files/files-parse.c: Add comment about things to #define.
185         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
187         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
188         terminator char as an error.
190         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
192 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
194         * catgets/gencat.c (write_out): Move code to determine new
195         best size out of inner loop.
197 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
199         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
200         implementation of frexp() function.
201         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
202         implementation of ldexp() function.
204         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
205         out before or'ing.
207 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
209         * misc/mntent.c: Include <sys/types.h>.
210         (endmntent): Return 1 one success, 0 on failure.
211         (getmntent): Chop newline and ignore empty lines.
213 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
215         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
216         differently based on [RTLD_BOOTSTRAP].
217         (elf_machine_rela): Use it instead of the fn ptr arg directly.
219 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
221         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
222         __glob_closedir_hook): Remove decls.
224         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
226         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
227         for send and connect syscalls.
229         * socket/sys/socket.h: New file, taken from non-sysdep parts of
230         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
231         Declare __ names for send and connect.
232         * sysdeps/generic/socketbits.h: New file.
233         * sysdeps/unix/sysv/linux/socketbits.h: New file.
234         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
235         * sysdeps/generic/sys/socket.h: File removed.
237         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
238         * sysdeps/mach/hurd/send.c: Likewise.
240         * sysdeps/mach/libc-lock.h: New file.
241         * sysdeps/unix/readdir.c: Do locking.
242         * sysdeps/unix/seekdir.c: Likewise.
243         * sysdeps/unix/rewinddir.c:  Likewise.
244         * sysdeps/unix/closedir.c: Likewise.
245         * sysdeps/unix/bsd/telldir.c: Likewise.
246         * sysdeps/mach/hurd/seekdir.c: Likewise.
247         * sysdeps/mach/hurd/readdir.c: Likewise.
248         * sysdeps/mach/hurd/closedir.c: Likewise.
249         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
250         * sysdeps/unix/opendir.c: Likewise.
251         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
252         (struct __dirstream): Add lock member using __libc_lock_define.
253         * sysdeps/unix/dirstream.h: Likewise.
255         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
257         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
259         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
261 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
263         * locale/programs/stringtrans.c: Fix typo in copyright.
265         * stdio-common/printf-prs.c: Add casts to prevent
266         signed<->unsigned warnings.
268         * stdio-common/printf-parse.h: Initialize state variable before
269         calling mbrlen.
270         * stdio-common/printf-prs.c: Don't initialize state variable here.
271         * stdio-common/vfprintf.c: Don't initialize state variable.
272         (vfprintf): While determining length of multibyte string don't
273         try to be clever in determining characters to use for first
274         call.
276         Add real implementation of multibyte<->wide char conversion
277         functions.  The functions always convert between the fixed wide
278         char format (ISO 10646 in UCS4) and the UTF8 representation of
279         this character set.  Conversion between the currently used
280         8bit character set and ISO 10646 will not take place.  This is
281         what iconv() is for.
282         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
283         dummy definition.
284         Add optimized version of `mbrlen' function.
285         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
286         to 0...0x7f.
287         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
288         to 0..0x7f.
289         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
290         This is needed in the wchar.h header.
291         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
292         encoded character to UCS4.
293         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
294         element of `mbstate_t' for initial state.
295         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
296         encoded string to UCS4 string.
297         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
298         character to UTF8 encoded form.
299         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
300         encoded string to UTF8 encoded form.
302 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
304         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
305         variable name, so new a libc with new requirements won't fail to
306         notice an insufficient Linux version.
308         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
310         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
311         instead of 2.0 headers.
313         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
315         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
316         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
318         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
319         before using it in lhs of weak_alias.
321         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
322         Call __nss_lookup when not setting STARTP.
323         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
324         function-calling loop.
326 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
328         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
329         PENDIN, NOFLSH): Undefine these at start if they are already
330         defined to avoid collision with termbits.h.
331         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
332         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
334 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
336         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
337         already defined to float, long double.  Use those macros for _Mdouble_
338         defns when including mathcalls.h.
339         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
340         -D_Mlong_double_=double.
342         Add more -lm functions to -lc because ldexp uses them.
343         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
344         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
345         ldexp have both f and l code, and those have f though not l code.
347 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
349         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
350         error is 0.  The "placeholder" entries recently added to
351         errno.texi convert to zero since `???/' is at the front of them.
352         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
354         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
355         __const to conform with unistd.h.
357         * stdlib/stdlib.h (random): Declare return type to be int32_t.
359         * string/argz-delete.c (argz_delete): Use memmove instead of
360         memcpy for possibly overlapping strings.
362 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
364         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
365         storage class.  GCC gives an error for non-extern data defns with the
366         alias attribute.
368 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
370         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
371         memmove instead of memcpy for possible overlapping strings.
373 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
375         * libc-symbols.h (weak_function): New macro.
376         For GCC 2.7+ define as __attribute__ ((weak)).
377         * elf/dl-minimal.c: Use weak_function as keyword in function defns
378         instead of weak_symbol (NAME) after the defn.
379         * stdlib/strtol.c: Likewise.
380         * stdlib/strtod.c: Likewise.
381         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
383         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
384         If this is defined, don't declare _dl_rtld_map as weak, and
385         don't check for MAP pointing to it.  RESOLVE is always null in this
386         case, so test with #ifdef instead of if.
388         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
389         weak_symbol.
390         * csu/initfini.c (_init): Likewise.
391         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
392         * misc/efgcvt_r.c: Likewise.
393         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
394         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
396         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
397         It was not used in any assembler code.
398         (weak_symbol_asm): Renamed to weak_extern_asm.
399         (weak_extern): New macro replaces weak_symbol for weak extern refs;
400         define to weak_extern_asm for [!ASSEMBLER].
402 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
404         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
405         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
406         define those now as aliases.
407         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
408         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
409         after GCC weak attribute decl.
411         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
412         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
413         (element printer): Check for elt in ALIAS, instead of special case
414         for EWOULDBLOCK.
416         * io/Makefile (headers): Add sys/vfs.h.
417         * io/sys/vfs.h: New file.
419         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
420         critical section lock before unlinking dying active resources.
421         The unlock just before return is right (i.e. old code unlocked twice).
423 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
425         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
426         Use memmove instead of memcpy where overlap is possible (not
427         necessary using current implementation of memcpy, but...).
428         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
430 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
432         * stdio/linewrap.c (lwupdate): New function, mostly was
433         __line_wrap_update.  Use POINT_COL field instead of POINT.
434         (__line_wrap_output): Use lwupdate.
435         (__line_wrap_update): New function.
436         (ensure_unwrapped, ensure_wrapped): New functions.
437         (line_wrap_set_lmargin, line_wrap_set_rmargin,
438         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
440         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
441         POINT_COL. Add POINT_OFFS field.
442         (__line_wrap_update): New decl.
443         (line_wrap_set_lmargin, line_wrap_set_rmargin,
444         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
446 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
448         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
450         * login/pututline_r.c (pututline_r): Since we assign RESULT from
451         lseek now, check that it's >= 0, not == 0.
453 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
455         * login/login.c (login): Make a copy of *UT, fill in various
456         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
457         in place of UT.
459         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
460         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
462 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
464         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
465         signal during critical section doing interruptible RPC, if
466         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
467         before thread_resume.  If in critical section, pass 0 for SIGNO to
468         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
470         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
472         * sysdeps/unix/sysv/linux/sys/user.h: New file.
473         * sysdeps/unix/sysv/linux/Dist: Add it.
474         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
476         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
477         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
478         itself, no need to skip past a NUL.
480         * nss/nsswitch.h (known_function): Comment fix.
481         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
482         directly.  Do the lookup and insertion with a single call, and fill in
483         the tree node afterwards if new.
484         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
486         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
487         (struct timeval): Add bodiless decl for scope.
489         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
490         Move struct timespec defn outside [_TIME_H] so it can be got with
491         #define __need_timespec.
493         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
494         for `struct timespec' member names.
495         (TIMESPEC_TO_TIMEVAL): Likewise.
497         * nss/Makefile (extra-libs-others): New variable.
499         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
500         $(lib) in $(extra-libs-others).
501         * sunrpc/Makefile (extra-libs-others): New variable.
502         (librpcsvc-no-lib-dep): Variable removed.
504         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
505         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
506         _dl_rtld_map.
507         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
508         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
509         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
510         _dl_rtld_map weak only here.
512         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
514 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
516         * login/utmp.h: Fix typos.
518         * misc/syslog.c (vsyslog): Use __send instead of send and
519         __connect instead of connect to avoid name-space collisions (e.g.,
520         with psgetty).
522 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
524         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
526         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
528         * malloc/malloc-size.c (malloc_usable_size): Renamed from
529         malloc_object_allocation_size.
530         * malloc/malloc.h: Fix decl.
532         * sys/select.h: New file, wrapper header.
534         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
535         fd_set, associated macros, and select decl.
537         * sysdeps/posix/isfdtype.c: New file.
539 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
541         The latest Japanese proposal for POSIX locales renames the
542         CHARMAP keyword in locale definition files to CHARCONV.
543         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
544         function ctype_is_charmap to ctype_is_charconv.
545         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
546         charconv.
547         * locale/programs/locfile-token.h: Add definition of token
548         charconv.
549         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
550         lables according to this.
552         * locale/weight.h (get_weight): Cast constants to prevent
553         warnings.
555         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
556         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
557         warnings.
559         New stuff described in P1003.1g.
560         * misc/Makefile (headers): Add sys/select.h.
561         (routines): Add pselect.
562         * misc/sys/select.h: New file.  Declare select functions and
563         needed data types and macros.
564         * sysdeps/generic/pselect.c: New file.  Add generic implementation
565         of pselect() function which uses select().
567         * posix/getconf.c: Recognize new variables from P1003.1g.
568         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
569         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
570         * posix/unistd.h: Add description of the P1003.1g variables.
571         * sysdeps/generic/confname.h: Define _SC_* values for new
572         variables.
573         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
574         _PC_SOCK_MAXBUF.
575         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
576         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
577         P1003.1g variables.
578         * sysdeps/stub/sysconf.c (sysconf): Ditto.
579         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
580         _POSIX_SELECT since Linux has this.
582         * socket/Makefile (routines): Add isfdtype.
583         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
584         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
585         isfdtype.
587         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
589 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
591         * elf/Makefile (LDFLAGS-dl.so): New variable.
592         (libdl.so): Depend on eval.so.
593         (distribute): Add eval.c.
594         * elf/eval.c: New file.
596         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
597         in case it wrote fewer than MAXDIGITS chars.
599         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
600         newline from flushing full buffer in loop, fix test so no fflush is
601         done when last byte written exactly fills the buffer.
603         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
605         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
606         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
608         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
609         extracting _dl_rtld_map.l_addr.
611         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
612         weak.
613         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
615         * shlib-versions (*-*-*): Set libnss_db=1.
617 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
619         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
621         * rpm/template (%build): Use @prefix@ instead of always /usr.
622         Set up configparms only if @prefix@ is in fact /usr.
623         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
625         * elf/Makefile: Add missing endif.
627         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
629         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
630         (DATABASE): Define this instead of DATAFILE.
631         * nss/nss_files/files-hosts.c: Likewise.
632         (hostbyname): Use LOOKUP_NAME macro.
634         * nss/nss_db/db-XXX.c: New file.
635         * nss/Makefile (services): Add db.
636         (libnss_db-inhibit-o): New variable.
637         (libnss_db-routines): New variable.
638         (distribute): Append db-XXX.c.
639         (libnss_db.so): Depend on libdb.so and libnss_files.so.
640         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
642         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
643         args, ignored.
644         (DATAFILE): New macro.
645         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
646         "files-XXX.c".
647         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
648         Pass db key args to DB_LOOKUP.
649         (DATAFILE): Macro removed.
650         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
651         * nss/nss_files/files-service.c: Likewise.
652         * nss/nss_files/files-pwd.c: Likewise.
653         * nss/nss_files/files-proto.c: Likewise.
654         * nss/nss_files/files-grp.c: Likewise.
655         * nss/nss_files/files-ethers.c: Likewise.
657         * elf/linux-compat.c: File removed.
658         * elf/Makefile (distribute): Remove linux-compat.c.
659         (ld-linux.so.1): Remove target and associated variables.
661         * sunrpc/xdr.c: Remove malloc decl.
662         * sunrpc/portmap.c: Likewise.
664         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
665         casting abort to fn returning bool_t.
667         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
668         the parser function.
669         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
670         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
671         * nss/nss_files/files-grp.c: Likewise.
673         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
675         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
677         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
678         of ld.so so lookups for that soname find it.
680         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
681         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
683         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
684         define parse_line function.
685         (parse_line): #define to _nss_files_parse_pwent and
686         add extern decl for that.
688         * nss/nss_files/files-XXX.c (internal_getent): Return
689         NSS_STATUS_TRYAGAIN for ERANGE error.
691         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
692         of null, so next round returns null again instead of bombing.  Fix
693         from drepper.
695         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
696         Remove ; after `ENTDATA_DECL (data)'.
697         Truncate line at strpbrk (line, EOLSET "\n").
698         (ENTDATA_DECL): Put ; at end.
699         (MIDLINE_COMMENTS): Macro removed.
700         * nss/nss_files/files-ethers.c: Pass new argument.
701         * nss/nss_files/files-hosts.c: Likewise.
702         * nss/nss_files/files-network.c: Likewise.
703         * nss/nss_files/files-parse.c: Likewise.
704         * nss/nss_files/files-proto.c: Likewise.
705         * nss/nss_files/files-rpc.c: Likewise.
706         * nss/nss_files/files-service.c: Likewise.
707         * grp/fgetgrent.c: Likewise.
708         * pwd/fgetpwent.c: Likewise.
709         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
710         fgetpwent.c already defines it.
711         * nss/nss_files/files-grp.c: Likewise.
713         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
714         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
715         string table properly.
717         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
718         invoked directly, and l_libname from that if PT_INTERP missing.
719         Set l_name from l_libname only if not set from argv.
721         * time/europe, time/northamerica: Updated from ADO 96i.
723 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
725         * stdio-common/tst-ungetc.c: Include unistd.h.
727         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
729 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
731         * hurd/report-wait.c (describe_number): Make I unsigned long.
733         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
734         actually found any entry.
736         * login/pututline_r.c (pututline_r): If not located after any
737         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
738         Lock the file before stating.
740 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
742         * nss/Makefile (databases): Change host to hosts.
743         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
745         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
747         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
749         * string/string.h (strndupa): Pass missing arg to strnlen.
751         * inet/getnetbypt_r.c: Renamed to ...
752         * inet/getnetbyad_r.c: this; fixed function name.
753         * inet/getnetbypt.c: Renamed to ...
754         * inet/getnetbyad.c: this; fixed function name.
756 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
758         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
759         struct passwd.
761 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
763         * login/login.c (login): Initialize DATA so that setutent_r will
764         actually do something.
766 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
768         * resolv/res_hconf.c (strndup): Remove function.
770         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
771         using ElfW() instead of Elf32_*.
773         * sysdeps/unix/sysv/linux/alpha/init-first.h,
774         sysdeps/unix/sysv/linux/m68k/init-first.h,
775         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
776         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
777         init-first.h to make abstract machine dependent parts of
778         initialization.
780         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
781         error handling.  It's safer that way.
783         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
784         Fix by Richard Henderson.
786         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
787         typo/extraneous whitespace.
789         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
790         determine what integer sizes we're dealing with.
792 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
794         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
795         check for signal zero, repair logical sense of test by
796         parenthesizing correctly.
798         * hurd/hurdsig.c (_hurd_internal_post_signal): In
799         check-for-pending signals code, release _hurd_siglock before
800         jumping to deliver_pending.
802 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
804         * configure.in (config_machine): Make ELF the default even for
805         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
806         is specified.
808 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
810         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
811         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
812         member only #ifdef ENTDATA.
813         (ENTDATA_DECL): New macro.
814         (LINE_PARSER): Use it for entdata decl.
815         (parse_list): Find the space for LIST from DATA->linebuffer instead of
816         from the input LINE, which might not be writable buffer space.
817         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
818         [ENTDATA] (parser_stclass): #define to `static inline'.
819         [!ENDATA] (parser_stclass): #define to empty.
820         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
821         function is exported to -lnss_files users.
823         * string/strndup.c: Add missing arg.
825         * string/string.h (strndupa): Likewise.
826         * string/strndup.c (strndup): Always terminate the string.
828 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
830         * stdio/Makefile (routines): Add vscanf.
831         * stdio-common/Makefile (routines): Remove vscanf.
832         * stdio-common/vscanf.c: Move to ...
833         * stdio/vscanf.c: here.
835         * rpm/Makefile (headers, install-lib, install-lib.so,
836         versioned, install-bin, install-sbin, install-data,
837         install-others): Add $(-VARIABLE).
839 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
841         * nss/Makefile (databases): New variable.
842         (routines, libnss_files-routines): Use it.
843         (subdir-dirs): Compute from $(services).
845         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
846         init_module, klogctl): Use EXTRA in the "caller" column so these get
847         added to unix-extra-syscalls and thus compiled in misc.
849         * string/Makefile (routines): Add strndup.
850         * string/strndup.c: New file.
851         * string/string.h: Declare strndup.
852         (strndupa): New macro.
854         * string/string.h: Declare __strdup.
855         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
857         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
859 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
861         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
863         * grp/initgroups.c (initgroups): De-ansi-fy.
864         Move declaration of NGROUPS and GROUPS outside #if so that
865         the code compiles for NGROUPS_MAX != 0.
867         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
868         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
869         ether_ntoa, ether_ntoa_r, and ether_ntoh.
870         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
871         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
872         inet/ether_ntoh.c: New files.  Implementation of functions to
873         handle Ethernet address to host mapping.
874         * inet/netinet/ether.h: New file.  Declare ether_* functions.
875         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
876         compilation.
877         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
878         * nss/Makefile (routines): Add ethers-lookup.
879         (libnss_files-routines): Add files-ethers.
881         * nss/getXXent_r.c: Don't define set*ent and end*ent function
882         with _r suffix.
884         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
885         KEEP_STREAM every time called.
886         (_nss_files_end): Reset KEEP_STREAM here instead.
887         (internal_getent): If STREAM == NULL try to open instead of
888         signalling error.
889         Use cast to prevent warning.
890         Terminate read line in case the buffer is too small.
892         * nss/nss_files/files-ethers.c: New file.  Implementation of
893         Ethernet adress<->hostname lookup through files interface.
895         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
896         * stdlib/mbtowc.c: Define based on mbrtowc().
897         * stdlib/wcstombs.c: Define based on wcsrtombs().
898         * stdlib/wctomb.c: Define based on wcrtomb().
900         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
901         unexpected_sizes_in_xdr_u_int.
903         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
904         of `struct ether_addr'.
905         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
906         declaration of `struct ether_addr'.
908         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
909         * wcsmbs/mbsrtowcs.c: Ditto.
910         * wcsmbs/wcrtomb.c: Ditto.
911         * wcsmbs/wcsrtombs.c: Ditto.
913         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
915 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
917         * hurd/get-host.c <fcntl.h>: New include.
918         * hurd/set-host.c <fcntl.h>: New include.
919         (_hurd_set_host_config): Include NEW in args to dir_link.
920         Return NWROTE, not NREAD.
922         * sysdeps/mach/hurd/getcwd.c
923         (_hurd_canonicalize_directory_name_internal): Don't deallocate
924         DOTID & DOTDEVID until we're finished with them (we need to keep
925         them at least until we've fetched the next level of id ports, so
926         that mach will be able to use the same name if they're the same).
927         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
928         jumps to errlose, for those places where such cleanup is needed.
930 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
932         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
934         Move DB code into separate -ldb library.
935         * db/Makefile (extra-libs): New variable, list libdb.
936         (routines): Renamed to libdb-routines.
937         * shlib-versions: Add libdb=2.
939         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
940         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
942         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
943         of strncasecmp.  Extend syntax to grok [!foo=bar].
945         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
946         weak alias.
947         * string/string.h: Declare __strncasecmp.
949         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
950         (service_alias): Variable removed.
951         (nss_parse_service_list): New function, broken out of nss_getline.
952         Remove alias conversion; we will just use symlinks.
953         (__nss_database_lookup): Take new string arg DEFCONFIG.
954         If no entry exists, make one with service list parsed from that.
955         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
956         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
957         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
959         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
960         list size.
962         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
964 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
966         * locale/programs/locale.c (long_options): Short form of
967         --version option is `-V'.
968         (main): Recognize `-V' as option, not `-v'.
969         Call `usage' instead of printing error message for illegal
970         option.
971         (usage): Document `-V'.
973 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
975         * sysdeps/mach/hurd/getcwd.c
976         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
977         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
979 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
981         * inet/getrpcent.c: Fix macros.
982         * inet/getrpcent_r.c: Fix macros.
984         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
986         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
988 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
990         * catgets/gencat.c (write_out): Use %Zu to print variables of type
991         size_t.
992         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
993         cast it to (unsigned long) to make it work both on 32 and 64
994         bit architectures.
996 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
998         * locale/Makefile (distribute): Add `programs/' prefix to all
999         files in that directory.
1001         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1002         subdir' works.
1004         * MakeTAGS (sources, headers): Make them simply expanded variables
1005         so that all-dist is expanded before it is changed.
1007 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1009         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
1010         * Makefile (subdirs): Remove crypt.
1011         * crypt: Directory removed.  It will be made an independent library
1012         distribution.
1014         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1016         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1018         * inet/getrpcbynumber.c (BUFLEN): New macro.
1020         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1022         * Makefile (headers): Add libc-lock.h.
1023         * sysdeps/stub/libc-lock.h: New file.
1025         * inet/getrpcbynumber.c: Remove _r typo.
1027         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1029         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1030         after the first!
1032         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1033         or doesn't mention DATABASE, use an internal default equivalent to
1034         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1035         (nss_lookup_function): Call nss_new_service as needed.
1036         (nss_parse_file): Don't bother calling nss_new_service here.
1038         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1039         * pwd/fgetpwent.c: Likewise.
1041         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1042         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1043         * malloc/malloc-size.c: New file.
1044         * malloc/malloc-walk.c: New file.
1046         * malloc/malloc-find.c (malloc_find_object_address): Return null if
1047         PTR is outside the heap.
1049         * elf/dl-load.c (_dl_map_object): If the requested name matches the
1050         soname of a loaded object, use that object.
1052 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1054         * Makefile (subdirs): Add nss.
1056         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1057         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1058         * inet/getrpcbynumber_r.c: New file.
1059         * inet/getrpcbynumber.c: New file.
1060         * inet/getrpcbyname.c: New file.
1061         * inet/getrpcbyname_r.c: New file.
1062         * inet/getrpcent_r.c: New file.
1063         * inet/getrpcent.c: New file.
1064         * nss/rpc-lookup.c: New file.
1065         * nss/nss_files/files-rpc.c: New file.
1066         * nss/Makefile (routines): Add rpc-lookup.
1067         (libnss_files-routines): Add files-rpc.
1068         * sunrpc/Makefile (routines): Remove getrpcent.
1069         * sunrpc/getrpcent.c: File removed.
1071         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1072         non-null on entry.
1074         * Makeconfig (rpath-link): Add $(nssobjdir).
1075         (nssobjdir): New variable.
1077         * Makerules: Move shared library building before objects rules, so
1078         versions are known before extra-lib.mk gets included.
1079         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1081         * pwd/getpwuid.c: Rewritten using nss.
1082         * pwd/getpwnam.c: Likewise.
1083         * pwd/getpwent.c: Likewise.
1084         * grp/getgrnam.c: Likewise.
1085         * grp/getgrgid.c: Likewise.
1086         * grp/getgrent.c: Likewise.
1087         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1088         * pwd/getpwent_r.c: New file.
1089         * pwd/getpwnam_r.c: New file.
1090         * pwd/getpwuid_r.c: New file.
1091         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1092         * grp/getgrnam_r.c: New file.
1093         * grp/getgrgid_r.c: New file.
1094         * grp/getgrent_r.c: New file.
1095         * grp/Makefile (routines): Remove grpopen, grpread.
1096         * pwd/Makefile (routines): Remove pwdopen, pwdread.
1097         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1099         * pwd/fgetpwent.c: Rewritten using files-parse.c.
1100         * grp/fgetgrent.c: Likewise.
1102         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1103         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1104         * nss/nss_files/files-grp.c: New file.
1105         * nss/nss_files/files-pwd.c: New file.
1107         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1109         * nss/nss_files/files-parse.c: New file.
1110         * nss/nss_files/files-XXX.c: New file.
1111         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1112         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1113         Rewritten using them.
1115         * nss/Makefile (libnss_files-routines): Remove files-host.
1116         Add files-hosts, files-grp, files-pwd.
1118         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1120 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
1122         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1123         A .plt entry now loads the .rela.plt offset directly rather
1124         than making us calculate it.
1126 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1128         * time/Makefile ($(installed-localtime-file) rule): Do
1129         $(make-target-directory) first.
1131         * resolv.h: Fix wrapper for resolv/resolv.h.
1133         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1134         Compile dummy file and pass -nostdlib -nostartfiles so as not to
1135         require installed libraries.
1137         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1138         libnss_dns=1.
1140 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
1142         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1143         and mapv4v6hostent.h.
1144         (routines): Move res* and gethnamaddr into libresolv-routines.
1145         (libresolv-routines): New variable, put them there.
1146         (extra-libs): New variable, list libresolv.
1147         (CPPFLAGS): Add -D for get*by* to res_get*by*.
1149         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1151         * inet/herrno.c: New file.
1153         * resolv/res_init.c: Remove res_hconf calls.
1155         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1156         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1157         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1158         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1159         nss/service-lookup.c: New files.  Implementation of name
1160         service switch, following the approach in Solaris.
1161         Interface specification and general structure inspired by Peter
1162         Eriksson <pen@lysator.liu.se>.
1163         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1164         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1165         Implementation of libnss_files.so module for file based databases
1166         in NSS service.
1167         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1168         if libnss_dns.so module for DNS name lookup in NSS service.
1170         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1171         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1172         Changed to serve as interface to NSS.
1173         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1174         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1175         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1176         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1177         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1178         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1179         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
1180         interfaces to NSS, including reentrant functions.
1182         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1183         resolv/sethostent.c: Removed:  Obsoleted by NSS.
1185         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1186         gethnamaddr.c.  These private functions are now used in more
1187         than one file.
1189         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1191 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1193         * rpm/Makefile ($(config)): Make sure the word list in the for
1194         loop is syntactically non-empty.
1196 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1198         * Version 1.92 test release.
1200 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1202         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1203         to klogctl to match prototype in sys/klog.h.
1205         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1206         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1208         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1209         Remove.  Code is now part of __getcwd again.  The old function
1210         never really worked for anything but THISDIR==".".
1212         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1213         only when building ELF version of library.
1215         * libio/libioP.h (_IO_vscanf): Add prototype.
1217         * posix/unistd.h (syscall): Change sysno arg and return value
1218         to int long.
1220 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1222         * version.h (VERSION): Updated to 1.92.
1224         * misc/Makefile (headers): Add ar.h.
1225         * misc/ar.h: New file.
1227         * config.make.in (BUILD_CC): New variable.
1228         * configure.in: Check for BUILD_CC if $host != $build.
1230         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1232         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1233         (stamp$o files): New targets, create them empty, no deps.
1235         * rpm/template (Source): New field.
1236         (%prep, %build, %install): New sections.
1237         (%files): Add %doc FAQ NEWS NOTES README.
1238         * rpm/rpmrc (builddir): Removed.
1240 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1242         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1243         guessing to not assume p_vaddr of first load cmd is zero.
1245         * sysdeps/sparc/elf/start.S: New file.
1246         * sysdeps/sparc/dl-machine.h: New file.
1248         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1249         only for ?s, not for *s.  Fix from Chet Ramey.
1251         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1252         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1253         Use __{BEGIN,END}_DECLS.
1254         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1255         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1256         New macros, moved here from sysdeps/gnu/utmpbits.h.
1257         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1258         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1259         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1260         Use sizeof instead of UT_*SIZE.
1261         * login/logwtmp.c: Likewise.
1263         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1265         * version.c (banner): Add trailing newline.
1267         * login/utmp.h: Declare login_tty.
1269 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
1271         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1272         Changed to a 12-byte PLT entry to remove dependency on $gp.
1273         Take a new got_addr parameter.
1274         (elf_machine_rela): Pass the new parameter.
1275         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1276         (RTLD_START): Do normal linkage with program entry.
1278 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1280         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1282         * hurd/getuids.c (getuids): New weak link to __getuids.
1284 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1286         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
1287         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1288         argument.
1289         Rename nested function lookup to lookup_op.
1290         (__file_name_lookup, __file_name_lookup_under):
1291         Pass 0 for lookup arg to __hurd_file_name_lookup.
1292         (__file_name_split): Likewise for __hurd_file_name_split.
1293         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1294         Rename nested function lookup to scan_lookup.
1295         (file_name_path_lookup): Pass 0 for lookup arg to
1296         hurd_file_name_path_lookup.
1297         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
1298         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
1299         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1300         Add LOOKUP argument.
1301         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1302         __hurd_file_name_lookup.
1304 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1306         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1307         up a huge list just to discard most of it.
1309         * configure.in (sysnames): Avoid fgrep by using the case shell
1310         builtin.
1312         * Makeconfig (config.status): Fix dependency on Implies files.
1314 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1316         * math/Makefile (distribute): Add ieee-math.c.
1318 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1320         * locale/codeset_name.c: New file.  Provide function for information
1321         about currently used character set.
1322         * locale/Makefile (routines): Add codeset_name.
1323         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1324         * locale/localeinfo.h: Change magic number because of incompatible
1325         change.
1326         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1327         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1329         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1330         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
1332         * locale/setlocale.c (setlocale): Initialize local variables to
1333         prevent warnings.
1335 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1337         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1339         * locale/programs/locale.c: Include string.h.
1341         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1342         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1343         appropriate sign-extension is performed on machines with
1344         sizeof(long) > 4.
1346         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1347         sizeof(int)<sizeof(long), we need to go through a temporary
1348         variable.
1350         * locale/programs/ld-numeric.c: Include <alloca.h>
1352         * libio/stdio.h (__libc_fatal): Add prototype.
1354         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1355         in efect.
1357         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1358         volatile to avoid "might get clobbered by longjmp" warning.
1360         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1361         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1362         probability is a sure loser).
1363         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1365         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1366         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1368         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1369         to be Linux FSSTND compliant.
1371 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1373         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1375         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1376         sysdeps/unix/sysv/linux/alpha/brk.S,
1377         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1378         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1379         sysdeps/unix/sysv/linux/alpha/llseek.S,
1380         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1381         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1382         __syscall_error to avoid intruding application name space.
1384         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1385         to SYS_get?id so that syscall stubs in sysdeps/unix define
1386         these syscalls in terms of getxpid/getxuid/getxgid.
1388         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1389         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1390         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1391         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1393         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1394         (PSEUDO_END): Rename END() to PSEUDO_END().
1396         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1397         to PSEUDO_END to improve branch-prediction.  Include .frame
1398         directive to make syscalls debugabble.
1399         (PSEUDO_END): New macro.
1401         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1402         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1403         latter is illegal under DEC Unix.
1405         * sysdeps/unix/alpha/sysdep.S: Renamed from
1406         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
1407         as well.
1408         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1409         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1410         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1412         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1413         address register in the .frame directive.
1415         * sysdeps/alpha/copysign.c: Remove.
1417         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1418         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1420         * errno.h: Move __END_DECLS to correct place to make file
1421         compilable under c++.
1423         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
1424         d_ino only if <direntry.h> hasn't defined d_fileno.
1426         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1427         arguments to weakext to make .weakext detection work on ECOFF systems.
1429         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
1430         that _validuser() has been replaced by __ivaliduser().
1432 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1434         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1435         as unsigned long, not as int (to avoid incorrect int->long
1436         promotion).
1438 Tue Jun 18 17:56:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1440         * Version 1.91 test release.
1442         * Makerules ($(common-objpfx)distinfo-$(subdir)): Change target from
1443         distinfo to this.
1444         (distinfo): Make phony target depending on that.
1445         (TAGS, po/%.pot, dist): Change deps.
1446         (common-clean): Remove that file.
1447         * rpm/Makefile (distinfo): Change names.
1449         * rpm/Makefile (clean): New target.
1451         * stdlib/test-canon.c: New test program contributed by David Mosberger.
1452         * stdlib/Makefile (tests): Add test-canon.
1453         * stdlib/canonicalize.c: Rewritten by David Mosberger.
1455 Mon Jun 17 17:53:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1457         * mach/Machrules (%_server.c %_server.h rule): Remove gratuitous
1458         mention of $< in mig cmd.  Thanks to Shantanu Goel.
1460         * sysdeps/mach/hurd/brk.c (___brk_addr): Define as weak alias for
1461         _hurd_brk.
1463         * libio/stdio.h [__USE_SVID]: Declare tempnam.
1465 Fri Jun 14 19:28:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1467         * sysdeps/unix/sysv/linux/syscalls.list: Add swapon with two
1468         parameters.
1470 Wed Jun 12 20:40:51 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1472         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix access to
1473         _dl_default_scope.
1475 Sun Jun 16 03:22:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1477         * sysdeps/stub/elfclass.h: New file.
1479         * Make-dist (subdir): Make empty value really empty.
1481         * version.h (VERSION): Update to 1.91.
1483         * hurd/hurdinit.c (map0): Remove [!PIC] conditional.
1485         * shlib-versions (*-*-*): Add libutil=1.
1487         * rpm/Makefile (install-lib): Add libc.a et al.
1488         (install-others): Only add libc.so if $(build-shared) is yes.
1490         * math/Makefile (install-lib): New variable, list libieee.a.
1491         (non-lib.a): Likewise.
1492         (extra-objs): Likewise, and ieee-math.o.
1493         ($(objpfx)libieee.a): New target, link to ieee-math.o.
1494         * math/ieee-math.c: New file.
1495         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]: Remove setfpucw
1496         and libieee.a stuff.
1497         * sysdeps/unix/sysv/linux/ieee-fpucw.c: File removed.
1498         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c: File removed.
1500         * sysdeps/unix/sysv/Makefile (sysdep_headers): Make append of termio.h
1501         and rule for it conditional on termio.h not already being in
1502         sysdep_headers.
1504         * rpm/Makefile (install-others) [libc.so-version]: Get libc.so from
1505         $(libdir), only the versioned named from $(slibdir).
1506         (instfiles): New variable.
1507         (glibc-$(version).$(config).rpm): New target.  Run rpm -bb.
1508         * rpm/rpmrc: New file.  A third of the options controlling rpm can
1509         only be given here (another third is on the command line, and a third
1510         cannot be specified in any way shape or form).
1512 Sun Jun 16 02:44:22 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1514         * rpm/template: New file.
1515         * rpm/Makefile: New file.
1517         * Makeconfig (sysdep-configures): Remove empty variable.
1519         * Makerules (distinfo-vars): Write defns for $(install-lib.so) and
1520         $(versioned).
1522         * manual/Makefile (subdir_%): Add new rule with no deps, secondary to
1523         to rule w/dep on %, with no-op commands.
1525         * Makerules (subdir_distinfo): New phony target; depend on distinfo.
1526         * Makefile (rpm/%): New rule.
1527         (+subdir_targets): Add subdir_distinfo.
1529 Sun Jun 16 00:40:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1531         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add
1532         fpu_control.h here.
1534         * time/Makefile ($(installed-localtime-file)): If target exists, do
1535         nothing but print a message; if not, make it an absolute symlink.
1537         * time/tzset.c (__tzset): After stripping leading :, call
1538         __tzfile_read on TZ even if it's empty or null.
1539         * time/tzfile.c (__tzfile_read): Use "Universal" if passed "".
1541 Sat Jun 15 18:13:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1543         * hurd/Makefile (routines): Add get-host, set-host.
1544         (distribute): Add hurdhost.h.
1545         * hurd/hurdhost.h: New file.
1546         * sysdeps/mach/hurd/gethostname.c: Use _hurd_get_host_config.
1547         * sysdeps/mach/hurd/gethostid.c: Likewise.
1548         * sysdeps/mach/hurd/sethostname.c: Use _hurd_set_host_config.
1549         * sysdeps/mach/hurd/sethostid.c: Likewise.
1550         * hurd/get-host.c: New file.
1551         * hurd/set-host.c: New file.
1553         * math/Makefile (headers): Add fpu_control.h.
1554         (aux): New variable, list fpu_control and setfpucw.
1555         * sysdeps/generic/fpu_control.c: New file.
1556         * sysdeps/stub/fpu_control.h: New file.
1557         * sysdeps/unix/sysv/linux/m68k/fpu_control.h: Moved to ...
1558         * sysdeps/m68k/fpu_control.h: here.
1559         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Moved to ...
1560         * sysdeps/i386/fpu_control.h: here.
1561         * sysdeps/unix/sysv/linux/alpha/fpu_control.h: Moved to ...
1562         * sysdeps/alpha/fpu/fpu_control.h: here.  Fixed copyright.
1563         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1564         setfpucw, fpu_control.
1565         * sysdeps/unix/sysv/linux/alpha/fpu_control.c: File removed.
1566         * sysdeps/unix/sysv/linux/setfpucw.c: Moved to ...
1567         * sysdeps/generic/setfpucw.c: here.
1568         (__fpu_control): Variable removed.
1569         (__setfpucw): Use SET even if zero.
1571         * elf/dl-deps.c (_dl_map_object_deps): Set MAP's mark bit before loop.
1572         Set mark bits of deps as opened, instead of as scanned.
1574         * elf/rtld.c (dl_main): Remove _dl_rtld_map from chain unconditionally.
1575         Then if it has a nonzero l_opencount, add it back in search order.
1577         * elf/dl-load.c (_dl_map_object): Don't use _dl_loaded's DT_RPATH if
1578         it ain't got one!
1580         * sysdeps/unix/sysv/linux/Dist: Add sys/klog.h.
1582         * elf/dl-open.c (_dl_open): Remove PARENT argument, pass null.
1583         * elf/link.h: Update prototype.
1584         * elf/dl-load.c (_dl_map_object): If dependents' DT_RPATHs don't find
1585         NAME, try the DT_RPATH of the executable itself if dynamic.
1586         * elf/dlopen.c (dlopen): Don't pass first arg to _dl_open.
1588         * elf/dl-load.c (_dl_map_object): Exit DT_RPATH checking loop when an
1589         open succeeds.
1591         * Makerules (build-shlib): Give -L opts for each elt of $(rpath-link).
1593         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): Variable removed.
1594         (rpath-link): Append to this instead.
1596 Fri Jun 14 01:51:47 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1598         * version.c (banner): New static const variable, complete version
1599         banner text.
1600         (__libc_print_version): Use it, and use __write instead of printf.
1602         * configure.in (sysnames): Don't cache the value, because it
1603         depends only on libc sources.  Merge uniquifying third pass into
1604         Implies/parent expansion second pass.  Report each unique name as
1605         it is added in partial report string, terminated when finished.
1607         * Makeconfig (sysdep_dir): Move defn before config.status rule that
1608         expands it.
1609         (sysdep-configures): Variable removed.
1610         (config.status): Use its contents directly, tighten up a bit, and
1611         include Implies files.
1613         * elf/dl-open.c (_dl_open) [PIC]: Set PARENT to _dl_loaded if null.
1615         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Make a symlink.
1617 Thu Jun 13 14:29:56 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1619         * hurd/hurdsig.c (_hurd_internal_post_signal): Rename `deliver:'
1620         label to `deliver_pending:' to match goto.
1622 Thu Jun 13 00:02:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1624         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1625         Add comment.
1627         * elf/rtld.c (dl_main): Close _dl_zerofd after mapping deps.
1629         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Define mcount as
1630         weak alias for _mcount.
1631         * sysdeps/alpha/_mcount.S (mcount): Define as weak alias.
1633         * elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is
1634         null, consider it a strong reference and give the error.
1636 Wed Jun 12 15:52:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1638         * elf/dl-open.c (_dl_open): Correctly terminate relocating loop
1639         after relocating NEW when it's the only new object.
1641         * elf/dl-init.c (_dl_init_next): When out of initializers, set
1642         _r_debug.r_state to RT_CONSISTENT and call _dl_debug_state just
1643         before return.
1645         * elf/rtld.c (dl_main): Move _dl_debug_initialize call after
1646         relocation.  Call it unconditionally and only fill in DT_DEBUG
1647         if it's present.  Then call _dl_debug_state with r_state RT_ADD
1648         before running initializers.
1650         * elf/dl-open.c (_dl_open): Call _dl_debug_initialize and then call
1651         _dl_debug_state with r_state RT_ADD before running initializers
1652         * elf/dl-close.c (_dl_close): Call _dl_debug_state with r_state
1653         RT_DELETE before running finalizers and with RT_CONSISTENT just
1654         before return.
1656         * elf/Makefile (dl-routines): Add dl-debug.
1657         * elf/dl-debug.c: New file.
1658         * elf/rtld.c (_dl_r_debug): Rename to _r_debug and move to dl-debug.c.
1659         (_dl_r_debug_state): Rename to _dl_debug_state and likewise move.
1660         (dl_main): Use _dl_debug_initialize.
1661         * elf/link.h: Fix name to _dl_debug_state in decl.
1662         (_dl_debug_initialize): Declare new function from dl-debug.c.
1663         (_r_debug): Declare it.
1665         * Makerules (distinfo-vars): Add install-{lib,data,bin,sbin,others}.
1666         In distinfo set $(subdir)-VAR and then set VAR to $($(subdir)-VAR).
1668         * Makeconfig (rpath-link): New variable; add $(elfobjdir).
1669         (default-rpath): Use it.
1670         (built-program-cmd): Use it in LD_LIBRARY_PATH.
1672         * Makeconfig (sysdep-configures): Prepend $(sysdep_dir) to names tried.
1674         * sysdeps/unix/Dist: Add make-syscalls.sh.
1676         * misc/Makefile (headers): Add sys/swap.h.
1677         * posix/unistd.h: Remove decls for swapon, swapoff.
1678         * sysdeps/generic/sys/swap.h: New file.
1679         * sysdeps/unix/sysv/linux/sys/swap.h: New file.
1681         * sysdeps/unix/sysv/linux/gnu/types.h: Remove temporary hack #define
1682         of __kernel_fsid_t.  It is correctly defines in <linux/types.h> now.
1684 Tue Jun 11 23:23:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1686         * Makerules (LDFLAGS-c.so): Use __libc_main instead of
1687         __libc_print_version as entry point for shared object.
1688         * version.c [HAVE_ELF] (__libc_main): New function.
1690         * elf/dl-load.c (_dl_map_object_from_fd): Relocate l_entry with the
1691         load address.
1693 Tue Jun 11 19:13:04 1996  Richard Henderson  <rth@tamu.edu>
1695         * sysdeps/alpha/dl-machine.h: New file.
1697         * elf/dl-close.c: Include <string.h> for memcpy.
1698         * elf/dl-lookup.c: Same.
1700         * elf/elf.h: Add Elfxx_Symndx for symbol indices.
1701         * elf/dl-lookup.c (_dl_lookup_symbol): Use it.
1702         (_dl_setup_hash): Use it.
1703         * elf/link.h (struct link_map): Use it.
1705         * elf/rtld.c (_dl_start): Don't rely on pointer-to-first-arg hack
1706         for getting the argc/argv/envp block.  Instead, make it the argument.
1707         sysdeps/i386/dl-machine.h (RTLD_START): Do that.
1708         sysdeps/m68k/dl-machine.h (RTLD_START): Same.
1710         * shlib-versions: Add version numbers for alpha-linux.  To avoid
1711         user confusion, make them the same as i386-linux.
1713         * sysdeps/alpha/Makefile [subdir elf]: Add -mno-fp-regs to
1714         sysdep-CFLAGS so that _dl_runtime_resolve doesn't have to save them.
1715         Add -mbuild-constants to CFLAGS-rtld.c to that we can bootstrap
1716         without using literal data.
1718         * sysdeps/generic/dl-sysdep.c: Include <string.h> for memcpy.
1719         Finish Elf32 -> ElfW migration.
1721 Tue Jun 11 15:09:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1723         * Makerules (elfobjdir): Use $(objdir) if set, even in elf subdir.
1725         * elf/Makefile (routines): Remove init-first.
1726         * csu/Makefile (routines): New variable; put it here instead.
1728         * config.make.in (CFLAGS): New variable.
1730         * io/sys/stat.h (S_ISLNK, S_ISSOCK): Make conditional on __USE_BSD,
1731         not __USE_GNU.
1732         * string/string.h (strncasecmp): Likewise.
1734         * elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
1735         to after `include ../Rules', so $(rtld-installed-name) is defined.
1737         * string/basename.c (basename): Cast FILENAME to char * for return.
1739         * Makerules ($(libdir)/libc.so): Put $(rtld-installed) name between
1740         libc.so and libc.a in the deps.
1742         * elf/Makefile ($(objpfx)$(rtld-installed-name)): New target to make
1743         link to ld.so if that is not the installed name.
1744         (lib-noranlib): Depend on the installed name in the build directory
1745         instead of on ld.so.
1747         * Makeconfig (link-libc): Include $(elfobjdir)/$(rtld-installed-name)
1748         between libc.so and libc.a, because with libc.so's DT_NEEDED for ld.so
1749         ld searches libc.a before ld.so (is that an ld bug?).
1750         Add $(elfobjdir) to -rpath-link.
1752         * Makerules (elfobjdir): Define as . when $(subdir) is elf.
1754         * sysdeps/i386/dl-machine.h (elf_machine_rel): In R_386_32 case when
1755         relocating _dl_rtld_map, subtract SYM's value from final reloc value,
1756         but don't change *RELOC_ADDR before calling *RESOLVE, because it might
1757         call the function we are relocating!
1759         * string/basename.c: New file.
1760         * string/Makefile (routines): Add basename.
1762 Mon Jun 10 06:14:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1764         * Makerules ($(common-objpfx)libc.so): Depend on $(elfobjdir)/ld.so.
1766         * elf/dl-close.c: New file.
1767         * elf/link.h: Declare _dl_close.
1768         * elf/Makefile (routines): Add dl-close.
1769         * elf/dlclose.c (dlclose): Use _dl_close.
1771         * elf/Makefile ($(objpfx)librtld.so): Remove libelf from deps.
1773         * elf/dl-runtime.c (_dl_global_scope): New variable.
1774         (_dl_object_relocation_scope): New function.
1775         (fixup): Use it.
1776         * elf/rtld.c (dl_main): Use it.
1777         * elf/dl-open.c (_dl_open): Use it.  If (MODE & RTLD_GLOBAL), set the
1778         l_global bit and append the new map to _dl_global_scope.
1779         * elf/link.h: Declare _dl_global_scope, _dl_global_scope_alloc,
1780         and _dl_object_relocation_scope.
1782         * elf/link.h (struct link_map): Add l_loader member.
1783         Remove _dl_map_object_from_fd decl.
1784         * elf/dl-load.c (_dl_map_object): Pass LOADER to ...
1785         (_dl_map_object_from_fd): Take new arg LOADER and set l_loader member.
1786         (_dl_map_object): Try DT_RPATH from all loaders up the chain.
1788         * elf/dl-object.c (_dl_loaded): Variable removed.
1789         (_dl_default_scope): New variable replaces it.
1790         * elf/link.h (_dl_loaded): Remove variable decl; instead define as
1791         macro for _dl_default_scope[2].
1792         (_dl_default_scope): Declare it.
1793         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_default_scope[2]
1794         instead of _dl_loaded.
1795         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
1796         * elf/rtld.c (dl_main): Use _dl_default_scope for symbol lookups.
1798         * elf/dl-reloc.c (_dl_relocate_object): Remove check for _dl_rtld_map.
1799         * elf/rtld.c (dl_main): Pass 0 for LAZY flag when re-relocating self.
1801         * elf/link.h (struct link_map.l_type): Remove lt_interpreter.
1802         (struct link_map): Add new flag member l_global.
1804         * elf/dl-reloc.c (_dl_relocate_object): Check for _dl_rtld_map
1805         directly instead of looking for lt_interpreter.
1806         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1807         * elf/rtld.c (_dl_start): Don't bother setting BOOTSTRAP_MAP.l_type.
1808         (dl_main): Set _dl_rtld_map.l_type to lt_library.
1810         * elf/dl-deps.c (_dl_map_object_deps): Propagate MAP->l_type to
1811         dependencies loaded, downgrading lt_executable -> lt_library.
1813         * elf/dl-load.c (_dl_map_object_from_fd): Take new arg TYPE and set
1814         l_type from that, translating lt_library->lt_executable based on the
1815         file's ELF type.
1816         (_dl_map_object): Likewise.
1817         * elf/link.h: Update prototypes.
1818         * elf/dl-open.c: Pass type lt_loaded.
1819         * elf/rtld.c: Pass type lt_library.
1821         * elf/dl-load.c (_dl_map_object_from_fd): Handle null return from
1822         _dl_new_object.
1823         (_dl_map_object_from_fd: lose): Unchain and free L if it's not null.
1824         Free REALNAME, and just use NAME in error message.
1825         * elf/dl-object.c (_dl_new_object): If malloc fails, return null
1826         instead of calling _dl_signal_error.
1828         * elf/dl-load.c (_dl_map_object_from_fd): Close FD before signalling
1829         error for _dl_zerofd setup failure.
1831         * elf/dl-object.c (_dl_startup_loaded): Variable removed.
1832         * elf/link.h: Remove its decl.
1834         * elf/dl-reloc.c (_dl_relocate_object): Take new SCOPE arg and pass it
1835         through to _dl_lookup_symbol.
1836         * elf/link.h (_dl_relocate_object): Update comment and prototype.
1837         * elf/rtld.c (dl_main): Pass scope vector to _dl_relocate_object.
1839         * elf/dl-lookup.c (_dl_lookup_symbol): Arg SYMBOL_SCOPE is now a
1840         null-terminated vector of pointers, no longer a vector of exactly two.
1841         * elf/link.h (_dl_lookup_symbol): Update comment and prototype.
1843         * elf/dl-runtime.c (fixup): Set up scope for symbol lookup properly as
1844         done in _dl_relocate_object.
1846         * elf/dlopen.c: Pass "" to _dl_open when FILE is null.
1848         * elf/link.h: Include elfclass.h to define __ELF_NATIVE_CLASS.
1849         (ElfW, ELFW): Use it.
1850         * elf/Makefile (headers): Add elfclass.h.
1851         * sysdeps/wordsize-32/elfclass.h: New file.
1852         * sysdeps/wordsize-64/elfclass.h: New file.
1853         * sysdeps/alpha/Implies: Add wordsize-64.
1854         * sysdeps/i386/Implies: Add wordsize-32.
1855         * sysdeps/m68k/Implies: Add wordsize-32.
1856         * sysdeps/mips/Implies: Add wordsize-32.
1857         * sysdeps/sparc/Implies: Add wordsize-32.
1859         * sysdeps/mach/hurd/dl-sysdep.c (__open): Define this instead of open.
1860         (__close, __mmap): Likewise define with __ names now.
1862 Mon Jun 10 05:13:18 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1864         * elf/dl-support.c: New file.
1865         * elf/Makefile (CFLAGS-dl-support.c): New variable.
1866         (routines, elide-routines.so): Add dl-support.
1868         * elf/dl-minimal.c (_dl_pagesize): Remove common defn.
1869         * elf/dl-load.c (_dl_pagesize): Define it here.
1870         (_dl_map_object_from_fd): Initialize it if zero.
1871         * elf/link.h (_dl_pagesize): Remove const.
1873 Sun Jun  9 04:04:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1875         * elf/Makefile (routines): Add dl-symbol.
1876         * elf/dl-lookup.c (_dl_symbol_value): Moved to ...
1877         * elf/dl-symbol.c: New file.
1879         * elf/elf.h (Elf32_Xword, Elf32_Sxword): New types.
1880         (Elf32_Section, Elf64_Section): New types, 16 bits.
1881         (Elf32_Sym, Elf64_Sym): Use it.
1883         * elf/dl-deps.c (_dl_open): Moved to ...
1884         * elf/dl-open.c: New file.
1885         * Makefile (routines): Add dl-open.
1887         * elf/Makefile (dl-routines): New variable.
1888         (routines): Add $(dl-routines).
1889         (elide-routines.so): New variable, set to $(dl-routines).
1890         (libdl-inhibit-o): Variable removed; build all flavors of -ldl.
1891         (rtld-routines): All but rtld, dl-sysdep, and dl-minimal moved to
1892         $(dl-routines).
1894         * elf/dl-lookup.c (_dl_lookup_symbol): Remove magic symbol grokage.
1896         * elf/dladdr.c: Use ELFW(ST_BIND) in place of ELF32_ST_BIND.
1898         * elf/dl-load.c (open_path): Use __ names for open and close.  Avoid
1899         using strdup.
1900         (_dl_map_object): Likewise.
1901         (_dl_map_object_from_fd): Use __ names for mmap, munmap, and mprotect.
1902         * elf/dl-minimal.c (malloc): Likewise.
1903         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1905         * elf/dl-minimal.c (_dl_pagesize): New variable.
1906         (malloc): Use that instead of a static variable.
1907         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_pagesize instead of
1908         calling getpagesize.
1909         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1910         * elf/link.h: Declare _dl_pagesize.
1912         * elf/rtld.c (dl_r_debug): Renamed to _dl_r_debug.
1914         * elf/link.h (struct link_map): Use Half for l_phnum instead of Word.
1915         * elf/rtld.c (dl_main): Use Half for phdr count arg.
1916         (_dl_sysdep_start): Update prototype of DL_MAIN function ptr arg.
1918         * elf/dl-load.c (_dl_map_object_from_fd): Use explicit Elf32_Word to
1919         extract 4-byte magic number, not ElfW(Word).  Match EI_CLASS against
1920         native wordsize, either 32 or 64.
1922         * elf/elf.h (Elf64_Byte, Elf64_Section): Typedefs removed.  In C a
1923         char is always a byte, no need for a typedef.  Section indices are
1924         16-bit quantities in elf64, which already have a typedef Elf64_Half.
1926         Remove partial -lelf implementation.  There is now a
1927         separately-distributed `libelf' package that implements it.
1928         * elf/dl-lookup.c: Don't #include <libelf.h> any more.
1929         (_dl_elf_hash): New function, moved from
1930         libelf.h:elf_hash.
1931         (_dl_lookup_symbol): Use it instead of elf_hash.
1932         * elf/libelf.h: File removed.
1933         * elf/elf_hash.c: File removed.
1934         * elf/Makefile (headers): Remove libelf.h.
1935         (extra-libs): Remove libelf.
1936         (libelf-routines): Variable removed.
1938         * elf/Makefile (libdl.so): Remove commands from this target.  The
1939         implicit rule commands are correct, this explicit rule just serves to
1940         add some dependencies.
1942         * elf/dl-lookup.c (_dl_lookup_symbol): Use ELFW(ST_TYPE) in place of
1943         ELF32_ST_TYPE.  Likewise ST_BIND.
1944         * elf/do-rel.h (elf_dynamic_do_rel): Likewise R_SYM.
1946         * elf/link.h (ElfW): New macro for wordsize-independent ElfXX_* type
1947         naming.
1948         (ELFW): New macro, likewise for ELFXX_* macro naming.
1949         (_ElfW, _ElfW_1): New macros, subroutines of ElfW and ELF.
1951 Sat Jun  8 20:52:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1953         * elf/link.h, elf/do-rel.h, elf/dynamic-link.h, elf/dl-deps.c,
1954         elf/dl-init.c, elf/dl-load.c, elf/dl-lookup.c, elf/dl-reloc.c,
1955         elf/dl-runtime.c, elf/dladdr.c, elf/dlclose.c, elf/dlsym.c,
1956         elf/linux-compat.c, elf/rtld.c: Change all uses of `Elf32_XXX' to
1957         `ElfW(XXX)' for wordsize-independence.
1959 Sat Jun  8 20:50:42 1996  Richard Henderson  <rth@tamu.edu>
1961         * elf/elf.h: Move Elf64_* types in parity with Elf32 counterparts.
1962         (Elf64_auxv_t): New type.
1963         (EM_ALPHA, R_ALPHA_*): New macros for elf64-alpha format.
1965 Mon Jun 10 02:22:24 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1967         * sysdeps/unix/sysv/linux/configure.in: New file, start with configure.
1968         Add check for installed <linux/version.h> being v2.0 or later.
1970         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill): Call __open
1971         instead of open.
1972         (_dl_sysdep_fatal): Call __write instead of write.
1973         (_dl_sysdep_message): Likewise.
1975 Sun Jun  9 20:40:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1977         * sysdeps/m68k/fpu/e_acosl.c: New file.
1979 Sun Jun  9 01:11:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1981         * Makerules (o-objects): New variable.  Use it in place of
1982         $(objects:.o=$o); it filters out $(elide-routines$o).
1983         Use o-iterator for ar and ranlib rules so they use the per-type object
1984         list.
1986         * elf/dl-load.c (_dl_map_object_from_fd): Close FD before return.
1988         * sysdeps/mach/mprotect.c: Define with __ name and weak alias.
1989         * sysdeps/stub/mprotect.c: Likewise.
1990         * sysdeps/unix/mman/syscalls.list (mprotect): Likewise.
1991         * sysdeps/generic/sys/mman.h: Declare __mprotect.
1992         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
1993         * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
1994         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
1995         * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
1996         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
1998         * Make-dist ($(tardir).tar): Use sed to check for file names longer
1999         than 14 chars, instead of doschk which checks for other things we
2000         don't care about.
2002         * Version 1.90 test release.
2004         * Makerules (make-target-directory): Use ./mkinstalldirs so we do not
2005         assume . is in PATH.
2007 Sat Jun  8 22:05:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2009         * math/Makefile (distribute): Comment out addition of
2010         $(long-m-routines) sources until they are all written.
2012         * math/Makefile (distribute): Append long double source names to this
2013         instead of using elided-routines.
2015 Sat Jun  8 15:15:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2017         * mach/mach_shortcuts.c: Obsolete file removed.
2018         * mach/mach_syscalls.h: Likewise.
2020         * hurd/Makefile (distribute): Consolidate defns into one.
2022         * time/Makefile (tzfiles): Add solar87 solar88 solar89.
2024 Fri Jun  7 16:48:13 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2026         * sysdeps/unix/sysv/linux/i386/Dist: New file, list sys/perm.h and
2027         sys/vm86.h.
2029         Removed old math code no longer used since the fdlibm integration.
2030         * sysdeps/stub/acos.c: File removed.
2031         * sysdeps/stub/asin.c: File removed.
2032         * sysdeps/stub/atan2.c: File removed.
2033         * sysdeps/stub/cosh.c: File removed.
2034         * sysdeps/stub/exp.c: File removed.
2035         * sysdeps/stub/fmod.c: File removed.
2036         * sysdeps/stub/frexp.c: File removed.
2037         * sysdeps/stub/log.c: File removed.
2038         * sysdeps/stub/log10.c: File removed.
2039         * sysdeps/stub/sinh.c: File removed.
2040         * sysdeps/stub/tan.c: File removed.
2041         * sysdeps/stub/tanh.c: File removed.
2042         * sysdeps/generic/acos.c: File removed.
2043         * sysdeps/generic/acosh.c: File removed.
2044         * sysdeps/generic/asin.c: File removed.
2045         * sysdeps/generic/asinh.c: File removed.
2046         * sysdeps/generic/atan.c: File removed.
2047         * sysdeps/generic/atan2.c: File removed.
2048         * sysdeps/generic/atanh.c: File removed.
2049         * sysdeps/generic/cabs.c: File removed.
2050         * sysdeps/generic/ceil.c: File removed.
2051         * sysdeps/generic/copysign.c: File removed.
2052         * sysdeps/generic/cosh.c: File removed.
2053         * sysdeps/generic/exp.c: File removed.
2054         * sysdeps/generic/expm1.c: File removed.
2055         * sysdeps/generic/fabs.c: File removed.
2056         * sysdeps/generic/floor.c: File removed.
2057         * sysdeps/generic/fmod.c: File removed.
2058         * sysdeps/generic/frexp.c: File removed.
2059         * sysdeps/generic/hypot.c: File removed.
2060         * sysdeps/generic/infnan.c: File removed.
2061         * sysdeps/generic/isnan.c: File removed.
2062         * sysdeps/generic/ldexp.c: File removed.
2063         * sysdeps/generic/log.c: File removed.
2064         * sysdeps/generic/log10.c: File removed.
2065         * sysdeps/generic/log1p.c: File removed.
2066         * sysdeps/generic/modf.c: File removed.
2067         * sysdeps/generic/pow.c: File removed.
2068         * sysdeps/generic/rint.c: File removed.
2069         * sysdeps/generic/sinh.c: File removed.
2070         * sysdeps/generic/tan.c: File removed.
2071         * sysdeps/generic/tanh.c: File removed.
2072         * sysdeps/ieee754/cabs.c: File removed.
2073         * sysdeps/ieee754/copysign.c: File removed.
2074         * sysdeps/ieee754/frexp.c: File removed.
2075         * sysdeps/ieee754/hypot.c: File removed.
2076         * sysdeps/ieee754/infnan.c: File removed.
2077         * sysdeps/ieee754/ldexp.c: File removed.
2078         * sysdeps/ieee754/log10.c: File removed.
2080         * posix/Makefile (headers): Add schedbits.h.
2082         * math/Makefile (elided-routines): Add long double routines.
2084 Fri Jun  7 11:02:22 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2086         * sysdeps/mach/hurd/getpriority.c (getpriority): Use new interface
2087         to __proc_getprocinfo.
2089         * login/login.c (tty_name): New function.
2090         (login): Use it.
2091         (PATH_MAX): MACRO removed.
2092         <stdlib.h>: New include.
2094 Fri Jun  7 09:11:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2096         * sysdeps/unix/sysv/linux/Dist: Add sys/sysinfo.h, sys/mount.h,
2097         sys/kdaemon.h, sys/io.h, sys/mount.h, sysctl.c.
2099         * gmon/Makefile (distribute): Add profil-counter.h.
2101         * sysdeps/unix/sysv/linux/alpha/Dist: New file.
2103         * sysdeps/unix/Dist: Add s-proto.S.
2105         * sysdeps/unix/common/mk-local_lim.c: Obsolete file removed.
2107         * Make-dist (+sysdep-tsrcs): Get all syscalls.list files too.
2109         * csu/Makefile (distribute): Add start.c.
2111         * elf/Makefile (distribute): Add dl-machine.h.
2113         * sysdeps/alpha/Dist: Add _mcount.S.
2115         * sysdeps/alpha/Makefile (sysdep_routines): Append instead of
2116         resetting; don't add bb_init_func.
2118         * string/Makefile (routines): Add strerror_r.
2119         * string/string.h (strerror_r): Use int for BUFLEN arg.
2121         * Makefile (distribute): Add shlib-versions.
2123         * po/Makefile (distribute): Add SYS_libc.pot.
2125         * misc/Makefile (routines): Add lsearch.
2127         * manual/lang.texi (Consistency Checking): Merge in assert_perror defn
2128         and other changes inadvertently made to the obsolete assert.texi.
2129         * manual/assert.texi: File removed.
2131         * mach/mach_syscalls.c: Obsolete file removed.
2132         * mach/mach_syscalls.h: Likewise.
2133         * mach/mach_traps.S: Likewise.
2134         * mach/msg_destroy.c: Likewise.
2135         * mach/vm_page_size.c: Likewise.
2137         * locale/Makefile (distribute): Add weight.h, charset.h.
2139         * Makefile (distribute): Add version.h.
2141         * hurd/Makefile (headers): Add hurd/ioctl.h.
2142         (distribute): Add intr-rpc.d, intr-rpc.h, faultexc.defs.
2144         * csu/Makefile (distribute): Add gmon-start.c.
2146         * Makefile (distribute): Add config.h.in.
2148 Wed Jun  5 22:06:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2150         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Fix type of reloc
2151         argument.
2152         [case R_68K_32]: Check for resolve being null.
2153         (RTLD_START): Add missing label.
2155 Fri Jun  7 1996 05:29:32  Ulrich Drepper  <drepper@cygnus.com>
2157         * misc/lsearch.c: New file.  Implementation of lfind and
2158         lsearch functions.
2160         * misc/search.h: Add prototype for functions from tsearch
2161         family with __ prefix.
2162         Correct prototype for lsearch: BASE parameter must not be
2163         const.
2165         * misc/tsearch.c: prepend all global function names with __
2166         and make normal names weak aliases.
2168 Fri Jun  7 00:15:24 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2170         * Make-dist (sysdep_dirs): Skip CVS dirs.
2172 Thu Jun  6 16:12:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2174         * malloc/Makefile (distribute): Change malloc/gmalloc-head.c to
2175         gmalloc-head.c.
2176         (malloc/gmalloc.c): Depend on malloc/gmalloc-head.c.
2177         (malloc/Makefile): Do $(make-target-directory) first.
2178         * malloc/gmalloc-head.c: New file.
2180         * po/Makefile (linguas.mo): Don't commit .mo files to cvs.
2182         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO==0 pending
2183         check, deliver a pending blocked signal if its action might be to
2184         ignore.
2185         * sysdeps/mach/hurd/sigaction.c: If new action is SIG_IGN or SIG_DFL
2186         and SIG is pending, wake up signal thread to check us.
2188         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't mark a signal
2189         pending while blocked or stopped when the action is to ignore it.
2191 Thu Jun  6 12:56:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2193         * hurd/hurdsig.c (_hurd_internal_post_signal: resume): Only set
2194         SS_SUSPENDED when the thread is really suspended.
2196         * elf/rtld.c (dl_main): Don't dereference _dl_rtld_map.l_next if null.
2198         * Makerules (headers): Move append of $(sysdep_headers) after include
2199         of sysdep makefiles.
2201         * sysdeps/mach/hurd/errlist.c: File removed.
2203 Thu Jun  6 07:32:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2205         * resolv/gethnamaddr.c (struct hstorage): Make NAME field a pointer.
2206         (_gethtbyname2): Remove ALIAS variable.
2207         Initialize NAME field of SELF and TARGET to 0.
2208         Add SELF_NAME_SIZE static variable.
2209         Add loop to call gethostname until the space we allocated is enough.
2210         Use malloced strings instead of fixed size buffers.
2211         <stdlib.h>, <unistd.h>: New includes.
2212         * sysdeps/generic/sys/socket.h (PF_INET6, AF_INET6): New macros.
2214         * sysdeps/mach/hurd/errlist.c (_sys_errlist): Add EILSEQ.
2215         (_sys_nerr): Initialize to 107.
2216         Update _HURD_ERRNOS consistency check.
2218         * stdlib/canonicalize.c (canonicalize): Use pathconf for PATH_MAX,
2219         not sysconf.
2221         * login/login.c [!PATH_MAX] (PATH_MAX): Define to be 1024 if not
2222         already defined.
2224         * sysdeps/mach/hurd/setitimer.c (timer_thread): Supply SIGCODE
2225         argument to __msg_sig_post_request.
2227         * hurd/hurdmalloc.c: Changes to bring in line with the hurd
2228         libthreads/malloc.c:
2229         (more_memory): Use assert_perror instead of MACH_CALL.
2230         "cthread_internals.h": Include removed.
2231         (realloc): Use LOG2_MIN_SIZE.
2232         (LOG2_MIN_SIZE): New macro.
2233         (realloc): Don't bother allocating a new block if the
2234         new size request fits in the old one and doesn't waste any space.
2235         Only free the old block if we successfully got a new one.
2236         [MCHECK] (struct header): New type.
2237         (union header): Only define if !MCHECK.
2238         (HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros.
2239         [MCHECK] (MIN_SIZE): Add correct definition for this case.
2240         (more_memory, malloc, free, realloc): Use above macros, and add
2241         appropiate checks & frobs in MCHECK case.
2243 Thu Jun  6 02:00:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2245         * Makerules (distinfo-vars): Don't write constant line to frob sources.
2246         * Make-dist (sources): Append $(elided-routines) and $(extra-libs)
2247         routines.
2249 Tue Jun  4 22:03:02 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2251         * sysdeps/m68k/fpu/__math.h: Define long double versions of
2252         the inline functions.
2253         * sysdeps/m68k/fpu/e_asinl.c, sysdeps/m68k/fpu/e_atanl.c,
2254         sysdeps/m68k/fpu/e_acosl.c, sysdeps/m68k/fpu/e_expl.c,
2255         sysdeps/m68k/fpu/e_fmodl.c, sysdeps/m68k/fpu/e_log10l.c,
2256         sysdeps/m68k/fpu/e_logl.c, sysdeps/m68k/fpu/e_powl.c,
2257         sysdeps/m68k/fpu/e_remainderl.c, sysdeps/m68k/fpu/e_scalbl.c,
2258         sysdeps/m68k/fpu/e_sinhl.c, sysdeps/m68k/fpu/e_sqrtl.c,
2259         sysdeps/m68k/fpu/k_cosl.c, sysdeps/m68k/fpu/k_sinl.c,
2260         sysdeps/m68k/fpu/k_tanl.c, sysdeps/m68k/fpu/s_atanl.c,
2261         sysdeps/m68k/fpu/s_ceill.c, sysdeps/m68k/fpu/s_cosl.c,
2262         sysdeps/m68k/fpu/s_expm1l.c, sysdeps/m68k/fpu/s_fabsl.c,
2263         sysdeps/m68k/fpu/s_finitel.c, sysdeps/m68k/fpu/s_floorl.c,
2264         sysdeps/m68k/fpu/s_frexpl.c, sysdeps/m68k/fpu/s_ilogbl.c,
2265         sysdeps/m68k/fpu/s_isinfl.c, sysdeps/m68k/fpu/s_isnanl.c,
2266         sysdeps/m68k/fpu/s_ldexpl.c, sysdeps/m68k/fpu/s_log1pl.c,
2267         sysdeps/m68k/fpu/s_logbl.c, sysdeps/m68k/fpu/s_modfl.c,
2268         sysdeps/m68k/fpu/s_rintl.c, sysdeps/m68k/fpu/s_scalbnl.c,
2269         sysdeps/m68k/fpu/s_significandl.c, sysdeps/m68k/fpu/s_sinl.c,
2270         sysdeps/m68k/fpu/e_atanhl.c, sysdeps/m68k/fpu/e_coshl.c: New files.
2272         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_fmod.c,
2273         sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_sin.c,
2274         sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/s_atan.c,
2275         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_ilogb.c,
2276         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_ldexp.c,
2277         sysdeps/m68k/fpu/s_modf.c: Define generic functions using FUNC and
2278         float_type with appropriate defaults.
2280         * sysdeps/m68k/fpu/e_acosf.c, sysdeps/m68k/fpu/e_fmodf.c,
2281         sysdeps/m68k/fpu/k_cosf.c, sysdeps/m68k/fpu/k_sinf.c,
2282         sysdeps/m68k/fpu/k_tanf.c, sysdeps/m68k/fpu/s_atanf.c,
2283         sysdeps/m68k/fpu/s_frexpf.c, sysdeps/m68k/fpu/s_ilogbf.c,
2284         sysdeps/m68k/fpu/s_isinff.c, sysdeps/m68k/fpu/s_ldexpf.c,
2285         sysdeps/m68k/fpu/s_modff.c: Include the corresponding double
2286         versions with appropriate definitions to get float functions,
2287         instead of defining them directly.
2289         * sysdeps/m68k/fpu/acos.c: File removed.
2290         * sysdeps/m68k/fpu/asin.c: File removed.
2291         * sysdeps/m68k/fpu/atan.c: File removed.
2292         * sysdeps/m68k/fpu/atan2.c: File removed.
2293         * sysdeps/m68k/fpu/atanh.c: File removed.
2294         * sysdeps/m68k/fpu/ceil.c: File removed.
2295         * sysdeps/m68k/fpu/cos.c: File removed.
2296         * sysdeps/m68k/fpu/cosh.c: File removed.
2297         * sysdeps/m68k/fpu/drem.c: File removed.
2298         * sysdeps/m68k/fpu/exp.c: File removed.
2299         * sysdeps/m68k/fpu/expm1.c: File removed.
2300         * sysdeps/m68k/fpu/fabs.c: File removed.
2301         * sysdeps/m68k/fpu/fl.h: File removed.
2302         * sysdeps/m68k/fpu/floor.c: File removed.
2303         * sysdeps/m68k/fpu/fmod.c: File removed.
2304         * sysdeps/m68k/fpu/frexp.c: File removed.
2305         * sysdeps/m68k/fpu/isinf.c: File removed.
2306         * sysdeps/m68k/fpu/isinfl.c: File removed.
2307         * sysdeps/m68k/fpu/isnan.c: File removed.
2308         * sysdeps/m68k/fpu/isnanl.c: File removed.
2309         * sysdeps/m68k/fpu/ldexp.c: File removed.
2310         * sysdeps/m68k/fpu/log.c: File removed.
2311         * sysdeps/m68k/fpu/log10.c: File removed.
2312         * sysdeps/m68k/fpu/log1p.c: File removed.
2313         * sysdeps/m68k/fpu/logb.c: File removed.
2314         * sysdeps/m68k/fpu/pow.c: File removed.
2315         * sysdeps/m68k/fpu/rint.c: File removed.
2316         * sysdeps/m68k/fpu/sin.c: File removed.
2317         * sysdeps/m68k/fpu/sinh.c: File removed.
2318         * sysdeps/m68k/fpu/sqrt.c: File removed.
2319         * sysdeps/m68k/fpu/tan.c: File removed.
2320         * sysdeps/m68k/fpu/tanh.c: File removed.
2322 Thu Jun  6 00:02:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2324         * sysdeps/unix/sysv/linux/syscalls.list: Add select (the syscall name
2325         is _newselect).
2326         * sysdeps/unix/sysv/linux/select.S: File removed.
2328         * sysdeps/unix/sysv/linux/m68k/select.S: File removed; obsolete with
2329         current kernels, generic linux version is fine.
2331         * locale/Makefile: Add vpath for %.gperf to programs.
2333         * Make-dist (+tsrcs): Variable removed.
2334         (dist): Process $^ here instead of using $(+tsrcs).
2336         * sysdeps/unix/sysv/linux/Makefile (install-others): Don't set.
2337         ($(includedir)/sys/syscall.h): Target removed.
2338         (sysdep_headers): Add syscall-list.h.
2339         ($(objpfx)syscall-%.[dh]): New rule to build syscall-list.[dh].
2340         (generated): Add those.
2341         * sysdeps/unix/sysv/linux/syscall.h: Include <syscall-list.h>.
2343 Wed Jun  5 15:57:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2345         * misc/sys/syscall.h: New file.
2346         * misc/Makefile (headers): Add sys/syscall.h.
2348         * time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
2349         time/africa, time/asia, time/australasia, time/europe,
2350         time/northamerica, time/southamerica: Updated from ADO 96h.
2352         * Make-dist (all-headers): Filter $(sysdep_headers) out of $(headers).
2353         (try-sysdeps, +sysdep-names): Check sysdeps/libm-ieee754 too.
2355         * Makerules (distinfo-vars): Add sysdep_headers.
2356         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Append to
2357         this instead of $(headers).
2358         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2359         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2361         * Make-dist [subdirs-dirs]: Don't prefix $(subdir-dirs) with
2362         $(subdir); we are already there.
2364         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: Removed.
2366         * mach/Machrules: Undo last change.
2367         (mach-generated): List .uh and .__h files only for $(user-interfaces),
2368         not for each .h in $(interface-headers); server-interfaces have no .uh
2369         or .__h files.
2371 Wed Jun  5 15:42:51 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2373         * mach/Machrules (%_server.uh, %_server.__h): New rules, so that the
2374         corrsponding .defs file with without the `_server' will be used.
2376         * mach/Makefile (mach/mach_interface.defs): Renamed from
2377         mach_interface.defs.
2378         (mach/memory_object_user.defs): New variable.
2380 Wed Jun  5 15:10:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2382         * Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
2384         * locale/Makefile (subdir-dirs): New variable.
2386 Wed Jun  5 00:01:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2388         * Makerules (distinfo-vars): Add sysdep_routines.
2390         * mach/Machrules (include-%.defs): New canned sequence.
2391         Change all uses of `#include <$*.defs>' in cmds to use it.
2392         * mach/Makefile (mach_interface.defs): New variable, set to mach.defs.
2394         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle RESOLVE being
2395         null in all cases but R_386_COPY.
2396         (elf_machine_rel):
2398 Wed Jun  5 00:01:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2400         * sysdeps/unix/bsd/ultrix4/mips/Dist: Updated.
2401         * sysdeps/unix/bsd/ultrix4/Dist: Removed.
2402         * sysdeps/unix/sysv/sysv4/Dist: Updated.
2403         * sysdeps/unix/sysv/sco3.2.4/Dist: Removed.
2404         * sysdeps/unix/sysv/irix4/Dist: Updated.
2405         * sysdeps/unix/sysv/linux/i386/Dist: Removed.
2406         * sysdeps/unix/sysv/Dist: Updated.
2407         * sysdeps/unix/bsd/sun/sunos4/Dist: Removed.
2408         * sysdeps/unix/bsd/sony/newsos4/Dist: Removed.
2409         * sysdeps/gnu/Dist: New file.
2410         * sysdeps/alpha/Dist: Updated.
2411         * sysdeps/mach/hurd/Dist: Updated.
2413         * Make-dist [subdir-dirs]: Set a vpath for %.c.
2415         * Make-dist (README): Fix typo in cvs cmd.
2417         * elf/dl-lookup.c (_dl_lookup_symbol): Fix typos in last change.
2418         Comment out ref to nonexistent _dl_close.
2420 Tue Jun  4 21:01:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2422         * math/Makefile (libm-support, libm-calls): New variables.
2423         (libm-routines): Construct this from those.
2424         (calls): New variable.
2425         (routines): Construct this from it.
2427         * resolv/res_debug.c: Add missing #include <ctype.h>.
2429         * sysdeps/unix/getlogin.c: Must pass struct utmp ptr to getutline_r.
2430         * sysdeps/unix/getlogin_r.c: Likewise.
2432         * sysdeps/libm-ieee754/w_hypotl.c: Fix typo.
2434         * sysdeps/libm-ieee754/w_cabsl.c: __cabsl_complex -> __cabs_complexl
2436         * math/Makefile (long-m-routines): Define recursive variable as
2437         $(long-m-$(long-double-fcts)).
2438         (long-m-yes): Put list of routines here.
2439         (long-c-routines, long-c-yes): Likewise.
2441         * sysdeps/unix/sysv/linux/schedbits.h: File removed.
2443         * sysdeps/i386/Makefile (long-double-fcts): New variable, set to yes.
2444         * sysdeps/m68k/Makefile: Likewise.
2446         * math/Makefile [$(long-double-fcts)!=yes] (CPPFLAGS): Append
2447         -DNO_LONG_DOUBLE.
2449         * sysdeps/mach/hurd/getlogin_r.c: New file.
2451 Wed Jun  5 02:11:30 1996  Ulrich Drepper  <drepper@cygnus.com>
2453         * io/Makefile (routines): Add ttyname_r.
2455         * resolv/res_debug.c, resolv/resolv.h: Update from bind-4.3.4-T4A.
2457         * sysdeps/libm-i387/e_asinl.S, sysdeps/libm-i387/e_atan2l.S,
2458         sysdeps/libm-i387/e_expl.S, sysdeps/libm-i387/e_fmodl.S,
2459         sysdeps/libm-i387/e_log10l.S, sysdeps/libm-i387/e_logl.S,
2460         sysdeps/libm-i387/e_remainderl.S, sysdeps/libm-i387/e_scalbl.S,
2461         sysdeps/libm-i387/e_sqrtl.S, sysdeps/libm-i387/s_atanl.S,
2462         sysdeps/libm-i387/s_cosl.S, sysdeps/libm-i387/s_ilogbl.S,
2463         sysdeps/libm-i387/s_log1pl.S, sysdeps/libm-i387/s_logbl.S,
2464         sysdeps/libm-i387/s_scalbnl.S, sysdeps/libm-i387/s_sinl.S,
2465         sysdeps/libm-i387/s_tanl.S: New files.  i387 assembler versions
2466         of `long double' math functions.
2468         * sysdeps/libm-ieee754/k_standard.c: Add handling for errors
2469         in long double functions.
2471         * sysdeps/libm-ieee754/s_ilogbl.c, sysdeps/libm-ieee754/s_logbl.c,
2472         sysdeps/libm-ieee754/s_modfl.c:  New files.  Generic versions
2473         of `long double' math functions.
2475         * sysdeps/libm-ieee754/s_isinf.c [NO_LONG_DOUBLE]: Add string
2476         alias for __isinfl.
2478         * sysdeps/libm-ieee754/w_acoshl.c, sysdeps/libm-ieee754/w_acosl.c,
2479         sysdeps/libm-ieee754/w_asinl.c, sysdeps/libm-ieee754/w_atan2l.c,
2480         sysdeps/libm-ieee754/w_atanhl.c, sysdeps/libm-ieee754/w_cabsl.c,
2481         sysdeps/libm-ieee754/w_coshl.c, sysdeps/libm-ieee754/w_dreml.c,
2482         sysdeps/libm-ieee754/w_expl.c, sysdeps/libm-ieee754/w_fmodl.c,
2483         sysdeps/libm-ieee754/w_gammal.c, sysdeps/libm-ieee754/w_gammal_r.c,
2484         sysdeps/libm-ieee754/w_hypotl.c, sysdeps/libm-ieee754/w_j0l.c,
2485         sysdeps/libm-ieee754/w_j1l.c, sysdeps/libm-ieee754/w_jnl.c,
2486         sysdeps/libm-ieee754/w_lgammal.c, sysdeps/libm-ieee754/w_lgammal_r.c,
2487         sysdeps/libm-ieee754/w_log10l.c, sysdeps/libm-ieee754/w_logl.c,
2488         sysdeps/libm-ieee754/w_powl.c, sysdeps/libm-ieee754/w_remainderl.c,
2489         sysdeps/libm-ieee754/w_scalbl.c, sysdeps/libm-ieee754/w_sinhl.c,
2490         sysdeps/libm-ieee754/w_sqrtl.c: New files.  Wrapper functions
2491         around long double function implementations.
2493         * sysdeps/posix/ttyname_r.c (ttyname_r): Use _D_EXACT_NAMLEN
2494         to determine length of directory entry name.
2496         * posix/Makefile (routines): Add getlogin_r.
2497         * posix/unistd.h: Add prototype for getlogin_r.
2498         * sysdeps/stub/getlogin_r.c: New file.  Reentrant version of
2499         getlogin function, specified in P1003.1c/D6.  Stub version.
2500         * sysdeps/unix/getlogin.c (getlogin): Use ttyname_r instead of
2501         ttyname.  This avoids saving and restoring the old content.
2502         Also use setutent_r, getutline_r and endutent_r instead of
2503         accing UTMP file directly.
2504         * sysdeps/unix/getlogin_r.c: New file.  Reentrant version of
2505         getlogin function, specified in P1003.1c/D6.
2507 Tue Jun  4 20:10:09 1996  J.T. Conklin  <jtc@cygnus.com>
2509         * sysdeps/libm-i387/s_finitef.S: Fix mask for exponent.
2511 Tue Jun  4 18:57:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2513         * elf/dl-lookup.c (_dl_lookup_symbol): Grok magical undefined symbols
2514         _GNU_libc_dl_{open,close,symbol} and resolve them to dl functions.
2516         * elf/rtld.c (rtld_map): Renamed to _dl_rtld_map, made global.
2517         * elf/link.h: Declare _dl_rtld_map.
2519         * elf/dl-lookup.c (_dl_symbol_value): New function.
2520         * elf/link.h: Declare it.
2522         * elf/dladdr.c: Remove #include <setjmp.h>, we don't use it.
2524         * shlib-versions: Set libdl=2.
2526         * elf/dl-deps.c (_dl_map_object_deps): Use a linked list of alloca'd
2527         elements and then scan it to fill the single malloc'd array, instead
2528         of using realloc to grow the array in the first pass.  _dl_map_object
2529         may do some mallocs that break our stream of reallocs, and the minimal
2530         realloc can't handle that.
2532         * elf/dl-init.c (_dl_init_next): Take argument, link_map whose
2533         searchlist describes the piece of the DT_NEEDED graph to be
2534         initialized.
2535         * elf/link.h: Update prototype.
2536         * sysdeps/i386/dl-machine.h (RTLD_START): Pass _dl_loaded as argument
2537         to _dl_init_next.
2538         * sysdeps/m68k/dl-machine.h: Likewise.
2539         * elf/dl-deps.c (_dl_open): Pass new object as arg to _dl_init_next.
2541         * elf/link.h (struct link_map): Add `l_reserved' member, soaking up
2542         extra bits in last byte.
2543         * elf/dl-deps.c (_dl_map_object_deps): Use that for mark bit to avoid
2544         putting dup elts in search list.
2546         * elf/dlclose.c: Use MAP->l_searchlist to find deps to close.
2548         * elf/dlsym.c: Don't tweak linked list.  Scope array given to
2549         _dl_lookup_symbol does the right thing.
2551         * elf/Makefile (subdir_lib): Change this target to lib-noranlib.
2552         (lib-noranlib): Depend on on $(extra-objs).
2554         * errno.h: Move __END_DECLS out of #ifdef's so it matches
2555         __BEGIN_DECLS.
2557 Tue Jun  4 02:25:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2559         * stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as
2560         macro.  _IO_size_t is just an alias for the real size_t anyway.
2562         * elf/Makefile (libdl-routines): Add dladdr.
2563         * elf/dladdr.c: New file.
2564         * elf/dlfcn.h (Dl_info): New typedef.
2565         (dladdr): Declare it.
2567         * sysdeps/libm-i387/s_finite.S: Use `setne' instead of `setnel'.
2569         * intl/l10nflist.c: Fix conditional on #include <argz.h>.
2571         * libio/stdio.h (FOPEN_MAX, FILENAME_MAX, TMP_MAX, L_tmpnam): Macros
2572         removed.  Instead, include <stdio_lim.h>.
2574         * libio/_G_config.h: New file.
2575         * libio/Makefile (headers): Add _G_config.h.
2577         * MakeTAGS (po/errlist.pot): Extract from sysdeps/gnu/errlist.c.
2579         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Define
2580         this macro too; current Linux kernels test that instead of
2581         _LINUX_TYPES_DONT_EXPORT.
2583         * elf/linux-compat.c (_init): Pass reloc_addr arg to _dl_lookup_symbol.
2585         * elf/dl-lookup.c (_dl_lookup_symbol): Use l_searchlist.
2587         * elf/dl-deps.c: New file.
2588         * elf/Makefile (rtld-routines): Add dl-deps.
2589         * elf/link.h: Declare _dl_map_object_deps, _dl_open.
2590         * elf/rtld.c (dl_main): Use _dl_map_object_deps.
2591         * elf/dlopen.c: Use _dl_open.
2593         * elf/rtld.c (dl_main): Remove BEFORE_RTLD variable and list
2594         frobnication based on its value.  Detach RTLD_MAP from the chain if
2595         its l_opencount is zero after loading deps.
2597         * elf/dlfcn.h (RTLD_BINDING_MASK): New macro.
2599         * elf/link.h (struct link_map): Replace l_deps_loaded flag member with
2600         `struct link_map **l_searchlist' and `unsigned int l_nsearchlist'.
2601         * elf/dl-lookup.c (_dl_lookup_symbol): Make SYMBOL_SCOPE arg an array
2602         of two link_map ptrs.  Search the maps in the l_searchlist of each
2603         elt that is not null.
2604         * elf/dl-reloc.c (_dl_relocate_object): Pass proper SCOPE array.
2605         * elf/dl-runtime.c: Likewise.
2606         * elf/dlsym.c: Likewise.
2607         * elf/rtld.c (dl_main): Likewise.
2609         * elf/dl-minimal.c (realloc): Support realloc of the block most
2610         recently returned by the minimal malloc.
2612 Tue Jun  4 00:16:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2614         * sysdeps/gnu/errlist.awk: Produce N_("..."), not _N("...").
2616         * intl: Updated from gettext-0.10.13.
2617         * intl/localealias.c, intl/dcgettext.c [_LIBC]: Define HAVE_ALLOCA.
2619         * signal/siggetmask.c: New file.  Wrapper around sigblock with
2620         link_warning about obsolescence.
2621         * signal/Makefile (routines): Add siggetmask.
2623         * sysdeps/gnu/errlist.awk: New file, adapted from ...
2624         * sysdeps/mach/hurd/errlist.awk: File removed, above file replaces it.
2625         * sysdeps/mach/hurd/Makefile (errlist.c): Target removed.
2626         * sysdeps/gnu/Makefile: New file.
2627         (sysdeps/gnu/errlist.c): Make the errlist.c generation rule into this.
2629 Mon Jun  3 21:03:54 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2631         * manual/errno.texi (Error Codes): Add placeholder items for missing
2632         Linux/i386 errno codes, with perror text but no documentation.
2633         Some existing perror texts changed.
2635         * malloc/mcheck.c (freehook, reallochook): Handle null pointer args.
2637         * hurd/hurdsig.c (_hurd_internal_post_signal): When setting ACT to
2638         `ignore, resume the thread if SS_SUSPENDED, regardless of old action.
2640 Sun Jun  2 20:14:30 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2642         * locale/programs/linereader.c (lr_open): Don't pass NULL to
2643         xstrdup; fix memory leak.
2644         (lr_close): Fix memory leak.
2646 Mon Jun  3 15:58:22 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
2648         * hurd/hurdsig.c (_hurd_internal_post_signal): When turning the action
2649         for a HANDLE signal to IGNORE because the signal is blocked, clean
2650         up any pending suspension left over from a call to resume.
2652 Mon Jun  3 00:30:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2654         * elf/dl-lookup.c (_dl_lookup_symbol): Take new arg RELOC_ADDR and
2655         don't allow a defn resolving to that address.
2657         * elf/link.h: Update prototype and comment.
2658         * elf/dl-runtime.c (fixup): Define local `resolve' function and pass
2659         it to elf_machine_relplt.
2660         * elf/dl-reloc.c (_dl_relocate_object: resolve): Take new arg
2661         RELOC_ADDR and pass it through to _dl_lookup_symbol.
2662         * elf/do-rel.h (elf_dynamic_do_rel): Pass RESOLVE to elf_machine_rel
2663         instead of calling it ourselves and passing its results.
2664         (elf_dynamic_do_rel): RESOLVE fn takes new arg RELOC_ADDR.
2665         * elf/rtld.c (dl_main): Pass 0 for RELOC_ADDR to _dl_lookup_symbol.
2666         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove SYM_LOADADDR
2667         arg.  Add RESOLVE function ptr arg.  Call *RESOLVE as necessary.
2668         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
2669         * sysdeps/stub/dl-machine.h: Likewise.
2671 Sun Jun  2 14:56:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2673         * csu/initfini.c (_fini): Add extern decl for i_am_not_a_leaf.
2675         * elf/dlfcn.h (dl_open_mode): Enumerated type removed.
2676         (RTLD_LAZY, RTLD_NOW): Define these as macros instead.
2677         (RTLD_GLOBAL): New macro.
2678         (dlopen): Take arg of type int instead of dl_open_mode.
2679         * elf/dlopen.c: Likewise.
2681         * math/math.h (_Mldbl): New macro, either produces L suffix or not.
2682         (M_*): Use it for these constants.
2684         * elf/dl-lookup.c (_dl_lookup_symbol): Arg NOSELF renamed to NOPLT.
2685         Reject SHN_UNDEF defns iff NOPLT is nonzero.
2686         * elf/link.h (_dl_lookup_symbol): Update prototype and comment.
2687         * elf/dl-runtime.c (fixup): Pass 1 to _dl_lookup_symbol for NOPLT.
2688         * elf/dlsym.c (dlsym): Pass 0.
2689         * elf/rtld.c (dl_main): Likewise.
2690         * elf/dl-reloc.c (_dl_relocate_object: resolve): Second arg R_OFFSET
2691         replaced with NOPLT flag.  Pass it through to _dl_lookup_symbol.
2692         * elf/do-rel.h (elf_dynamic_do_rel): Update prototype of RESOLVE arg.
2693         Pass `elf_machine_pltrel_p (R->r_type)' result as NOPLT flag value.
2694         * sysdeps/i386/dl-machine.h (elf_machine_pltrel_p): New macro.
2695         * sysdeps/m68k/dl-machine.h (elf_machine_pltrel_p): Likewise.
2696         * sysdeps/stub/dl-machine.h (elf_machine_pltrel_p): Likewise.
2698         * login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca.
2700         * sysdeps/generic/gnu/types.h (__clock_t): New type.
2702 Wed May 29 00:57:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2704         * sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define
2705         using kernel types.
2706         * time/time.h (clock_t): Include <gnu/types.h> and define using
2707         __clock_t.
2709         * time/Makefile (tests): Add test-tz.
2711         * time/test-tz.c: New test.
2713         * time/clocktest.c: Rewrite to test more meaningfully.
2715         * sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
2716         create_module, delete_module, get_kernel_syms, init_module,
2717         klogctl.
2719         * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
2720         instead of SYMLOOP_MAX, which is nowhere to be found.
2722         * sysdeps/unix/sysv/linux/sys/msq_buf.h,
2723         sysdeps/unix/sysv/linux/sys/sem_buf.h,
2724         sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
2725         control ops and datastructures.
2727         * sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
2728         I/O related functions.
2730         * sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
2731         daemon related functions/operations.
2733         * sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
2734         logging related functions/operations.
2736         * sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
2737         module related functions/operations.
2739         * sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
2740         for non-Alpha based Linux systems.
2742         * sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
2744         * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
2745         sys/io.h, sys/klog.h, and sys/kdaemon.h.
2747         * sysdeps/unix/sysdep.h (END): Define empty END macro for
2748         platforms that don't need some sort of end directive at the
2749         end of functions.
2751         * sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
2752         syscall wrapper to allow correct generation of debugging
2753         information.
2755         * sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
2756         directive for both ELF and ECOFF.
2757         (ret): Delete macro.  It was a dangerous macro and unnecessary
2758         since the Alpha assemblers recognizes "ret" as a macro themselves.
2760         * sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
2761         ut_session to guarantee long alignment.  This is important for
2762         Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
2763         This will all get cleaned up as programs start to use ut_tv
2764         instead ut_time.
2766         * sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
2768         * sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
2769         _setjmp.
2771         * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
2772         sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
2773         sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
2774         sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
2775         sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
2776         sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
2777         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2778         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2779         sysdeps/unix/sysv/linux/alpha/llseek.S,
2780         sysdeps/unix/sysv/linux/alpha/pipe.S,
2781         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2782         sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
2783         .end directive.
2785         * csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
2786         function by having it contain a dummy function call.
2788         * configure.in (config_machine): Don't make ELF the default for
2789         Linux/Alpha just yet (use --with-elf instead).
2790         (.init/.fini check): Generate .text to ensure function start and
2791         end are in same section.
2793         * sysdeps/unix/bsd/osf/alpha/brk.S,
2794         sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
2795         break value, not just the low 32 bits to accomodate large
2796         memories.
2798 Tue May 28 10:46:04 1996  Richard Henderson  <rth@tamu.edu>
2800         * sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
2801         dynamically resolve _end for initializing __curbrk, support the
2802         brk(0) query idiom.
2804         * sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
2806         * sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
2808 Sun May 26 22:17:38 1996  Richard Henderson  <rth@tamu.edu>
2810         * stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
2811         stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
2813 Thu May 23 02:15:56 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2815         * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
2816         sys/klog.h, and sys/kdaemon.h.
2818         * sysdeps/unix/sysv/linux/sys/io.h: New file.
2819         * sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
2820         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
2822         * sysdeps/unix/alpha/sysdep.h (ret): Remove macro.  It is
2823         dangerous and unnecessary since both OSF/1 as and gas define "ret"
2824         as a pseudo-instruction.
2826 Sat Jun  1 17:18:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2828         * time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
2829         them.  Bug found by David Mosberger-Tang.
2831         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
2832         of PTR.
2834         * extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
2835         to work around Make bug when A contains var ref.
2837 Fri May 31 18:27:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2839         * string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
2841         * sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
2842         strong names and [gs]etpgid as weak aliases.
2844 Thu May 30 11:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2846         * math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
2848         * po/header.pot: Replace with exact boilerplate pinard dictates.
2850         * sysdeps/i386/strtok.S (Lillegal_argument): Remove this code to set
2851         errno and the check that jumped to it.
2853         * sysdeps/mach/hurd/Makefile (errnos.d): Use $(sed-remove-objpfx).
2855 Thu May 30 03:21:57 1996  Ulrich Drepper  <drepper@cygnus.com>
2857         * FAQ: Document need of gperf program for developers.
2859         * elf/elf.h: Fix typos in comments.
2861         * libio/stdio.h [!__STRICT_ANSI__ || _POSIX_SOURCE]: Add
2862         prototypes for `ctermid' and `cuserid'.
2864         * locale/programs/locale.c: Switch to user selected locale
2865         before printing variables.
2867         * math/Makefile [$(long-double-fcts)==yes]: Define long-m-routines
2868         and long-c-routines.  Only if the `long double' data type is
2869         available we need to compile the functions.
2870         (libm-routines): Add $(long-m-routines).
2871         (routines): Remove isinfl, isnanl.  Use new file s_isinfl and
2872         s_isnanl instead if `long double' is available.
2874         * math/math.h: Include <mathcalls.h> again to define `long double'
2875         functions.
2877         * math/math_private.h: Define data types, prototypes and access
2878         macros for `long double'.
2880         * stdlib/stdlib.h: Add prototypes for `strtoll' and `strtoull'.
2881         [GCC2 && OPTIMIZE]: Define strto{,u}ll as inline function which
2882         calls __strto{,u}q_internal.
2884         * stdlib/strfmon.c: Replace PTR by `void *'.
2886         * stdlib/strtoq.c: Define strtoll as weak alias.
2887         * stdlib/strtouq.c: Define strtoull as weak alias.
2889         * string/tester.c: Correct `strsep' test.
2891         * sysdeps/generic/strsep.c: Make compatible with BSD version.
2892         Trailing characters of skip set are not skipped.  In this case
2893         empty tokens are returned.
2895         * sysdeps/i386/isinfl.c, sysdeps/i386/isnanl.c,
2896         sysdeps/ieee754/isinf.c, sysdeps/ieee754/isinfl.c,
2897         sysdeps/ieee754/isnan.c, sysdeps/ieee754/isnanl.c: Removed.  We
2898         now use the versions part of libm.
2900         * sysdeps/i386/strsep.S: Removed.  Generic C version is of
2901         similar speed.
2902         * sysdeps/i386/strtok.S: Remove support for `strsep'.
2904         * sysdeps/libm-i387/e_acosl.S, sysdeps/libm-i387/s_ceill.S,
2905         sysdeps/libm-i387/s_copysignl.S, sysdeps/libm-i387/s_finitel.S,
2906         sysdeps/libm-i387/s_floorl.S, sysdeps/libm-i387/s_isinfl.c,
2907         sysdeps/libm-i387/s_isnanl.c, sysdeps/libm-i387/s_nextafterl.c,
2908         sysdeps/libm-i387/s_rintl.S, sysdeps/libm-i387/s_significandl.S:
2909         New i387 specific math functions implementing `long double'
2910         versions.
2912         * sysdeps/libm-ieee754/s_ceill.c,
2913         sysdeps/libm-ieee754/s_copysignl.c,
2914         sysdeps/libm-ieee754/s_fabsl.c, sysdeps/libm-ieee754/s_finitel.c,
2915         sysdeps/libm-ieee754/s_floorl.c, sysdeps/libm-ieee754/s_isinfl.c,
2916         sysdeps/libm-ieee754/s_isnanl.c,
2917         sysdeps/libm-ieee754/s_nextafterl.c,
2918         sysdeps/libm-ieee754/s_rintl.c, sysdeps/libm-ieee754/s_scalbnl.c,
2919         sysdeps/libm-ieee754/s_significandl.c: New generic `long double'
2920         versions of libm functions.
2922         * sysdeps/libm-i387/e_exp.S: Add a few comments to explain the
2923         Intel FPU nonsense.
2925         * sysdeps/libm-i387/s_ceil.S, sysdeps/libm-i387/s_ceilf.S,
2926         sysdeps/libm-i387/s_floor.S, sysdeps/libm-i387/s_floorf.S: Correct
2927         handling of local variables.  The old version created a stack
2928         frame but stored the values outside.
2930         * sysdeps/libm-ieee754/s_isinf.c, sysdeps/libm-ieee754/s_isnan.c
2931         [!NO_LONG_DOUBLE]: Define alias with `long double' versions name.
2933 Wed May 29 12:53:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2935         * login/pututline_r.c: Include sys/stat.h.  Fix typos.
2937         * version.h (VERSION): Set to 1.90.
2939         * Makerules (distinfo-vars): Write extra-libs and *-routines for each
2940         of its elts.
2941         * MakeTAGS (sources): Add those sources.
2943         * MakeTAGS (all-sources): Add $(others:=.c) and $(tests:=.c).
2945 Wed May 29 08:53:08 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2947         * hurd/report-wait.c (_S_msg_report_wait): Return `itimer' for the
2948         itimer thread.
2950         * hurd/hurdinit.c (_hurd_init): Set _HURDSIG_TRACED before calling
2951         _hurd_proc_init.
2953 Wed May 29 00:52:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2955         * string/tester.c (main): Fix strsep tests 6, 7, 20 to expect null
2956         token instead of it being implicitly skipped.
2958         * sysdeps/i386/fpu/__math.h (logb): Correct contraint from =u to =t.
2959         Must operate on top of fp reg stack, not second from top.
2961         * extra-lib.mk (alltypes-$(lib)): Don't append $(objpfx)$(lib).so.
2962         (others): Instead, make this depend on it.
2964 Tue May 28 04:38:10 1996  Ulrich Drepper  <drepper@cygnus.com>
2966         * limits.h: Change MB_LEN_MAX to 6.  A 31-bit ISO 10646
2967         character in UTF-8 encoding has that many bytes.
2969         * locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
2970         * locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
2971         * locale/Makefile (routines): Add mb_cur_max.
2972         * locale/mb_cur_max.c: New file.  This function gets called
2973         when the macro MB_CUR_MAX is used.
2974         * locale/C-ctype.c: Initialize new mb_cur_max field.
2975         * locale/localeinfo.h: Change magic value because of incompatible
2976         change.
2977         * locale/programs/ld-ctype.c: Determine value of mb_cur_max
2978         according to current character set and write it out with the rest.
2979         * stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore.  Get value
2980         according to currently used locale for category LC_CTYPE by
2981         calling the function __ctype_get_mb_cur_max.
2983 Tue May 28 03:27:46 1996  Ulrich Drepper  <drepper@cygnus.com>
2985         * FAQ:  Fix some typos.
2986         Tell that for Linux the kernel header files are necessary.
2988         * PROJECTS: New file.  List of open jobs for glibc.
2989         * Makefile (distribute): Add PROJECTS.
2991         * crypt/GNUmakefile (headers): New variable.  Mention crypt.h.
2992         * crypt/crypt.h: Header for crypt functions.
2994         * elf/elf.h: Add some new constants from recent Cygnus ELF
2995         header files.
2997         * login/getutid_r.c: Test for correct type.
2998         Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
2999         _HAVE_UT_ID resp. are defined.
3000         Make really compliant with specification.
3002         * login/getutline_r.c, login/pututline_r.c: Don't depend on
3003         ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
3004         defined.
3005         Make really compliant with specification.
3007         * login/setutent_r.c: Don't depend on ut_type and ut_id unless
3008         _HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
3010         * login/login.c, login/logout.c, login/logwtmp.c: Complete
3011         rewrite.  Now based on getut*/setut* functions.
3013         * stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
3014         This prevented using this file in other GNU packages.
3016         * sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
3017         and _HAVE_UT_TV because struct utmp has these members.
3019         * sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
3021         * utmp.h: New file.  Wrapper around login/utmp.h.
3023 Tue May 28 13:11:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3025         * elf/dl-error.c (struct catch): New type.
3026         (catch): New static variable, struct catch *.
3027         (catch_env, signalled_errstring, signalled_objname): Variables removed.
3028         (_dl_signal_error): If CATCH is non-null, set its errstring and
3029         objname members and jump to CATCH->env.  If it is null, call
3030         _dl_sysdep_fatal with a standard message.
3031         * elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
3032         No longer use _dl_catch_error.
3034         * Makerules (sed-remove-objpfx): Avoid extra space in regexp due to
3035         continuation line.
3037         * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in
3038         setting %ecx to 2nd syscall arg: we have pushed nothing, so function
3039         args are found at 4(%esp), not 8(%esp).
3041 Mon May 27 10:10:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3043         * Makefile ($(includedir)/stubs.h): Add missing backslash.
3045         * sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
3046         can be aliased.
3048         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
3049         Append termio.h.
3051         * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.
3053         * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
3054         defined.
3056         * sysdeps/unix/sysv/linux/termio.h: New file.
3057         * sysdeps/unix/sysv/linux/Dist: Add it.
3059         * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
3060         kernel header <asm/termios.h>.
3062         * misc/Makefile (headers): Add ioctl-types.h.
3063         * sysdeps/generic/ioctl-types.h: New file.
3064         * misc/sys/ioctl.h: Include <ioctl-types.h>.
3065         (struct tchars, struct ltchars, struct sgttyb, struct winsize,
3066         struct ttysize): Types moved there.
3068         * Makefile ($(includedir)/stubs.h): Don't touch target if new one is
3069         identical.
3071         * time/Makefile (z.% rule): Generate generic zone%/ rule after
3072         zone%/right/ and zone%/posix/ rules so they match first.
3074 Sun May 26 15:15:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3076         * features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
3077         _POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
3079         * time/Makefile (tzcompile): Add missing backslash.
3081         * stdlib/ldiv.c: Deansideclized.
3083         * wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
3084         [! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
3085         stddef.h doesn't define it.
3086         * wcsmbs/wchar.h: Likewise.
3087         * stdlib/strtod.c: Likewise.
3089         * wcsmbs/wcstok.c: Fix argument name typo.
3091 Sun May 26 19:39:53 1996  Ulrich Drepper  <drepper@cygnus.com>
3093         * intl/loadmsgcat.c (_nl_load_domain): Test correct variable
3094         after malloc.
3096         * string/Makefile (tester-ENV): New variable to suppress message
3097         translation in test.
3099         * string/tester.c: Add tests for strtok_r and strsep.
3101         * sysdeps/i386/i486/strcat.S: Correct some more 8bit operation
3102         <-> 32 bit operand conflicts.
3104         * sysdeps/i386/strsep.S: Wrapper around <sysdeps/i386/strtok.S>
3105         to produce strsep function.
3106         * sysdeps/i386/strtok.S: Optimized implementation of strtok
3107         function.
3108         * sysdeps/i386/strtok_r.S: Wrapper around <sysdeps/i386/strtok.S>
3109         to produce strtok_r function.
3111         * sysdeps/generic/strtok.c: Moved here from string/strtok.c.
3112         Corrected example in comment.
3114         * string/Makefile (routines): Add strtok_r.
3115         * sysdeps/generic/strtok_r.c: New file.  Implement reentrant version
3116         of strtok_r.
3117         * string/string.h: Add prototype for strtok_r.
3118         * wcsmbs/wcstok.c: Handle illegal SAVE_PTR argument the same
3119         as in strtok_r.
3121 Sun May 26 13:28:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3123         * time/tzset.c (__tzset): Ignore leading : in $TZ; always try tzfile
3124         first and fall back to 1003.1 syntax only if it fails.
3126         * time/Makefile (install-others): Also install posix/ZONE and
3127         right/ZONE for each ZONE in $(zonenames).
3128         (z.% rule): Generate rules for right/ZONE and posix/ZONE targets too,
3129         the difference begin leapseconds vs /dev/null as 3rd dep.  For
3130         original ZONE targets use $(leapseconds), to be set in Makeconfig.
3131         (target-zone-flavor): New variable.
3132         (tzcompile): Use it to get the right -d for posix/ and right/ flavors.
3133         * Makeconfig (leapseconds): New variable.
3135         * mach/Machrules (%.udeps rule): Depend on Machrules.
3136         Emit deps for .uh and .__h files.
3137         (%.uh, %.__h rules): Don't depend on %.defs; use #include <$*.defs>
3138         instead.
3140 Sun May 26 01:06:47 1996  Ulrich Drepper  <drepper@cygnus.com>
3142         * stdlib/Makefile (routines): Add llabs, lldiv.
3143         * stdlib/llabs.c: New file.  Implementation of return
3144         absolute value of long long argument.
3145         * stdlib/lldiv.c: New file.  Implementation of division with remainder
3146         of long long argument.
3147         * stdlib/stdlib.h [__USE_GNU] (lldiv_t): New type for lldiv
3148         function.
3149         Define prototypes for lldiv and llabs functions.
3151         * locale/C-collate.c: Initialize _NL_COLLATE_NRULES element.
3153         * stdlib/strtod.c: Replace wchar_t with wint_t.  The later is
3154         really the type for a single wide character.
3156         * string/strxfrm.c (print_val): Define separate version for
3157         use as wcsxfrm.  Here we don't need UTF8 encoding.
3159         * wcsmbs/wchar.h:  gcc-2.7.2-960517 finally introduces wint_t
3160         in <stddef.h>.  Use this value and only for older gcc version
3161         define in place.
3162         (uwchar_t): Remove definition.
3164         * wcsmbs/wcscmp.c, wcsmbs/wcscoll.c, wcsmbs/wcsncmp.c,
3165         wcsmbs/wcsxfrm.c, wcsmbs/wmemcmp.c: : Don't use uwchar_t as unsigned
3166         type.  wint_t is intended for this.
3168 Sat May 25 14:10:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3170         * sysdeps/unix/bsd/direntry.h: Use [1] instead of [0] for d_name to
3171         quiet -ansi -pedantic.
3172         * sysdeps/unix/common/direntry.h: Likewise.
3174         * login/Makefile (headers): Add lastlog.h.
3175         * login/lastlog.h: New file.
3177         * login/Makefile (CFLAGS): Don't append -D_THREAD_SAFE.
3178         * login/utmp.h [_REENTRANT || _THREAD_SAFE]: Replace this conditional
3179         with #ifdef __USE_REENTRANT.
3181         * features.h (__GNU_LIBRARY__): Set to 6.
3182         [_GNU_SOURCE] (_POSIX_SOURCE, _POSIX_C_SOURCE, _BSD_SOURCE,
3183         _SVID_SOURCE): Make sure they are all defined.
3185         * sysdeps/unix/sysv/linux/gnu/types.h: Instead of including
3186         <linux/posix_types.h>, define _LINUX_TYPES_DONT_EXPORT and then
3187         include <linux/types.h>.
3189         * resource/sys/resource.h: Remove trailing commas from enums.
3191 Fri May 24 17:30:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3193         * sysdeps/generic/netinet/in.h: Remove trailing commas from enums.
3194         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
3196         * login/getutline_r.c: Include string.h.
3198         * Rules (static-only-routines): Restore the rule to make these .so's
3199         empty objects.
3201         * login/pututline_r.c: Use struct assignment instead of memcpy.
3203         * login/getutline_r.c: Use strncmp instead of comparing two pointers
3204         that will only be equal if you are overwriting the data and screwing
3205         yourself anyway.
3207 Fri May 24 02:31:36 1996  Ulrich Drepper  <drepper@cygnus.com>
3209         * sysdeps/unix/sysv/linux/speed.c: Add new speed value 460800.
3211 Thu May 23 23:09:33 1996  Ulrich Drepper  <drepper@cygnus.com>
3213         * FAQ: Add answer for 100% source code compatibility to Linux
3214         libc by David Mosberger-Tang.
3216         Update from bind-4.9.4-T3B.
3217         * inet/arpa/inet.h: Add prototypes for inet_pton, inet_ntop,
3218         inet_nsap_addr, and inet_nsap_ntoa.
3219         * resolv/gethnamaddr.c: Correct compatibility problems (sprintf),
3220         remove fourth argument to inet_pton and correct handling of
3221         host_addr passing.
3222         * resolv/inet_ntop.c: Correct compatibility problems (sprintf).
3223         * resolv/inet_pton.c: Remove fourth argument.
3224         * resolv/resolv.h: Remove prototypes for inet_nsap_addr and
3225         inet_nsap_ntoa.  Now in <arpa/inet.h>.
3227         * stdlib/gmp-impl.h: Add prototypes for internal functions.
3229 Thu May 23 22:49:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3231         * Rules (subdir_install): Remove dep on sor-$(subdir).
3232         (static-only-routines): Removed variable and associated rules.
3234 Wed May 22 00:40:50 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3236         * sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
3237         460800 baud.
3239         * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
3241         * sysdeps/unix/sysv/linux/alpha/Makefile (headers): Add
3242         alpha/ptrace.h.
3243         * sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
3245         * sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
3246         scalbnf.
3248         * sysdeps/generic/sigset.h (__sigismember, __sigaddset,
3249         __sigdelset): Add declaration to keep ANSI compilers quiet.
3251         * sysdeps/alpha/__math.h (cabs): Remove underscores from struct
3252         __cabs_complex member names in call to __hypot().
3254         * sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
3256         * sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
3257         name collision with math library.
3259         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
3260         sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
3261         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
3262         of divrem.S.
3264         * sysdeps/unix/alpha/sysdep.h: Include regdef.h.  Define LEAF macro
3265         to simplify declaration of leaf functions.
3267         * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
3268         sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/ffs.S,
3269         sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
3270         sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
3271         sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
3272         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3273         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3274         sysdeps/unix/sysv/linux/alpha/pipe.S,
3275         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
3276         sysdeps/unix/sysv/linux/alpha/syscall.S,
3277         sysdeps/unix/sysv/linux/alpha/start.S,
3278         sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
3279         sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
3280         framesize declaration.  Replace "lda pv,sym/jsr pv" by "jsr sym".
3282         * sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
3283         define.
3285         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
3286         ptrace, and sysctl.
3288         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
3290         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
3291         dynamic recognition of platform type.
3292         (_bus_base): New function.
3294         * sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
3296         * sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
3297         they produce ugly warnings by gcc.
3299         * posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
3301 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3303         * sysdeps/alpha/setjmp.S: Must establish global pointer before
3304         address of __sigsetjmp_aux can be loaded.
3306 Wed May 22 22:10:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3308         * stdlib/canonicalize.c: New file.
3309         * stdlib/stdlib.h: Declare canonicalize_file_name, realpath.
3310         * stdlib/Makefile (routines): Add canonicalize.
3312         * posix/unistd.h: Declare __canonicalize_directory_name_internal.
3314 Thu May 23 00:01:10 1996  Ulrich Drepper  <drepper@cygnus.com>
3316         * db/recno/rec_seq.c: Prevent `sccsid' definition by using the
3317         same #if condition as in the other db files.
3319         * intl/Makefile: Add -Wno-unused CFLAGS for compilation of
3320         bindtextdom.c, finddomain.c, and localealias.c.
3322         * intl/dcgettext.c: Don't define prototype for getcwd() when
3323         compiling in glibc.
3325         * libio/cleanup.c: Add prototype for _IO_register_cleanup.
3327         * libio/filedoalloc.c, libio/fileops.c, libio/iopopen.c: Don't
3328         define _POSIX_SOURCE unconditionally.
3330         * libio/filedoalloc.c, libio/iopopen.c: Include <unistd.h> if
3331         compiling in glibc.
3333         * libio/fileops.c (_IO_file_close_it): Don't sync file, call
3334         flush instead.  This relaxes the rules from POSIX.1 about
3335         changing the active handle a bit.
3337         * libio/iofopncook.c (struct _IO_cookie_file): Move definition
3338         into <libio.h>.
3339         Add prototypes for local functions to prevent warnings.
3341         * libio/iopopen.c: Change prototypes for _IO_fork, _IO_pipe, and
3342         _IO_dup2 to contain complete parameter list.
3344         * libio/libio.h: Add definition of struct _IO_cookie_file.
3346         * libio/libioP.h: Add prototypes for _IO_vasprintf, _IO_vdprintf,
3347         and _IO_vsnprintf.
3349         * libio/memstream.c: Include <stdio.h>.
3351         * libio/stdio.h: Add prototypes for fopencookie,
3352         __stdio_gen_tempname, __vfscanf, __vsscanf, and __vsnprintf.
3354         * libio/strops.c: Avoid useless expression in `for' initializer.
3356         * locale/findlocale.c: Add some casts to prevent warnings.
3358         * locale/programs/locfile.c (write_locale_data): Don't use
3359         double `/' in locale binary file.
3361         * posix/unistd.h: Remove prototype for `reboot'.
3363         Update from bind-4.9.4-T1A.
3364         * resolv/Makefile (routines): Add inet_ntop and inet_pton.
3365         * resolv/arpa/nameser.h: Add definition of IN6ADDRSZ.
3366         * resolv/gethnamaddr.c, resolv/getnetnamadr.c, resolv/res_comp.c,
3367         resolv/res_debug.c, resolv/res_init.c
3369         * resolv/inet_ntop.c, resolv/inet_pton.c: New files.
3371         * resolv/resolv.h: Add RES_USE_INET6 flag.
3372         (__dn_isvalid): Renamed to __res_dnok.
3373         Add prototypes for __res_ownok and __res_mailok.
3375         * stdio-common/Makefile: Add -Wno-unused to CFLAGS for _itoa.c.
3377         * stdio-common/getline.c, stdio-common/vfscanf.c,
3378         sysdeps/posix/tempname.c: Don't use <ansidecl.h> anymore.
3380         * sysdeps/unix/sysv/linux/Makefile [$subdir == misc]
3381         (sysdep_routines): Add s_reboot.
3382         (install-others): Add $(includedir)/sys/syscall.h.
3383         New rule for $(includedir)/sys/syscall.h to produce from
3384         <asm/unistd.h>.
3386         * sysdeps/unix/sysv/linux/reboot.c: New file.  Make single
3387         argument function call 3 argument system call.
3389         * sysdeps/unix/sysv/linux/sys/reboot.h: New file.  Linux specific
3390         definition for reboot function.
3392         * sysdeps/unix/sysv/linux/syscall.h: Remove old and obsolete
3393         comment.
3395         * sysdeps/unix/sysv/linux/syscalls.list: Rename function for
3396         reboot syscall to __syscall_reboot.
3398         * wcsmbs/wchar.h: Protect prototypes for wcstof and wcstold by
3399         __USE_GNU, not USE_GNU.
3401 Tue May 21 21:55:49 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
3403         * locale/programs/charset.c, locale/programs/ld-collate.c:
3404         Add casts to prevent warnings on 64-bit machines.
3406         * locale/programs/ld-monetary.c: Don't do unnecessary tests for
3407         int_frac_digits and frac_digits which only produce warnings.
3409 Mon May 13 23:45:29 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
3411         * inet/arpa/inet.h: Backup return type of inet_addr to u_long.
3412         * resolv/inet_addr.c: Likewise.
3414         * resolv/Makefile (distribute): Add res_hconf.h
3415         (routines): Add res_hconf.
3417         * resolv/gethnamaddr.c: Add support for /etc/host.conf.
3419         * resolv/res_init.c: Initialize /etc/host.conf reader.
3421         * resolv/res_hconf.c, resolv/res_hconf.h: New files.
3422         Implementation of reading /etc/host.conf.
3424 Wed May 22 21:21:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3426         * Rules (%.out rules): Prepend $($*-ENV) to the command.
3428         * sysdeps/unix/sysv/linux/i386/brk.c (___brk_addr): Define as weak
3429         alias for __curbrk.
3431 Wed May 22 19:37:27 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3433         * hurd/hurdexec.c (_hurd_exec): Pass INIT_TRACEMASK.
3434         * hurd/hurdmsg.c (set_int): Support INIT_TRACEMASK.
3436 Wed May 22 18:47:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3438         * sysdeps/mach/hurd/getcwd.c
3439         (_hurd_canonicalize_directory_name_internal): New function, broken out
3440         of __getcwd.
3441         (__getcwd): Use it.
3442         (__canonicalize_directory_name_internal): New function using it.
3444         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal): New
3445         function, broken out of __getcwd.
3446         (__getcwd): Use it.
3448 Wed May 22 18:14:05 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3450         * string/argz-create.c (__argz_create): Correctly calculate length.
3452         * string/argz-extract.c (__argz_extract): Add terminating 0 entry.
3453         * hurd/hurdstartup.c (_hurd_startup): ... and don't so here.
3455 Wed May 22 17:22:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3457         * posix/glob.c [VMS]: Don't include <pwd.h>.
3458         [HAVE_VMSDIR_H]: Include "vmsdir.h".
3459         (glob) [VMS]: Don't grok ~.
3461 Wed May 22 14:46:53 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3463         * hurd/hurdstartup.c (_hurd_startup): Terminate the vectors we get
3464         back from argz_extract.
3466 Wed May 22 13:56:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3468         * configure.in: Remove checks for objdump, objcopy, and awk.
3469         * config.make.in (OBJDUMP, OBJCOPY, AWK): Variables removed.
3470         * Makefile (distribute): Remove extract-dynsym.
3471         * extract-dynsym: File removed.
3473 Tue May 21 22:17:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3475         * termios/cfmakeraw.c: Set MIN to 1 and TIME to 0.
3477 Wed May 22 01:48:54 1996  Ulrich Drepper  <drepper@cygnus.com>
3479         * stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
3480         macros if they are not available.
3481         (WEAKNAME): New macro to declare argument as weak.
3482         Define function with __ prefix and add normal name as weak alias.
3484         * sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
3485         these macros if not already available based on R_OK, W_OK, and
3486         X_OK.
3488 Tue May 21 18:48:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3490         * misc/sys/syslog.h (__need___va_list): Define this instead of
3491         __need_va_list before including <stdarg.h>.
3493         * Makerules (o-iterator): Use $(object-suffixes-left) instead
3494         of $(object-suffixes) to produce repetitions; this is used for other
3495         lists than just that one.
3496         [versioned]: Use $(o-iterator) properly.
3498         * sysdeps/unix/sysv/linux/Implies: Include `gnu'.
3499         * sysdeps/mach/hurd/Implies: Likewise.
3501 Sat May 18 02:57:46 1996  Ulrich Drepper  <drepper@cygnus.com>
3503         * login/Makefile: New file.  This directory contains functions
3504         for user administration.
3505         * Makefile (subdirs): Add login.
3507         * misc/Makefile (headers): Remove utmp.h.  Now in login/utmp.h.
3508         (extra-libs, libutil-routines): Ditto.
3509         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
3510         misc/utmp.h: Moved to misc/.
3511         * login/login.c, login/login_tty.c, login/logout.c,
3512         login/logwtmp.c, login/utmp.h: Moved to here from misc/.
3514         * login/utmp.h: Split file.  Definitions of data structures
3515         and constants are now in the system dependent utmpbits.h file.
3517         * login/setutent_r.c, login/setutent.c, login/endutent_r.c,
3518         login/endutent.c, login/getutent_r.c, login/getutent.c,
3519         login/getutid_r.c, login/getutid.c, login/getutline_r.c,
3520         login/getutline.c, login/pututline_r.c, login/pututline.c:
3521         New files.  Routines to handle utmp-style files.
3523         * sysdeps/gnu/utmpbits.h: New file.  Contains GNU/Linux
3524         specific definitions of utmp data structures and constants.
3526         * sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
3528         * sysdeps/generic/utmpbits.h: New file.  Generic (BSDish) version of
3529         definitions of utmp data structures and constants.
3531 Fri May 17 00:01:31 1996  Ulrich Drepper  <drepper@cygnus.com>
3533         * locale/C-monetary.c: Default value for mon_decimal_point should be
3534         '.'.
3536         * stdio-common/printf.h: Remove Linux libc compatibility stuff.
3537         Add `extra' flag.  Currently used in __printf_fp.
3539         * stdio-common/printf_fp.c (__guess_grouping): Renamed from
3540         `guess_grouping' and extend visibility to extern.  This function
3541         is now used in `strfmon'.
3542         (__printf_fp): Recognize new bit flag in info struct.  This
3543         triggers to use the grouping information and decimal point from
3544         the LC_MONETARY category instead of the LC_NUMERIC category.
3546         * stdio-common/vfprintf.c (process_arg): Correct major bug.  In
3547         `complicated' loop we must not use the varargs because the args
3548         are already available in the ARGS_VALUE array.
3550         * stdlib/Makefile (headers): Add monetary.h.
3551         (routines): Add strfmon.
3552         * stdlib/monetary.h: New file.  Header for strfmon function.
3553         * stdlib/strfmon.c: New file.  Implement strfmon function to print
3554         monetary amounts according to current locale's rules.
3556         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
3557         now (>= Linux-1.3.100) called <asm/vm86.h>.
3559 Thu May 16 00:31:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3561         * Makerules [versioned]: Make symlinks in the build directory, because
3562         the versioned names might be referenced by a DT_NEEDED in another
3563         library.
3565 Wed May 15 18:59:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3567         * manual/examples/longopt.c: Include stdlib.h and getopt.h.
3569 Tue May 14 03:36:21 1996  Ulrich Drepper  <drepper@cygnus.com>
3571         * sysdeps/unix/sysv/linux/Makefile [$subdir == misc] (headers):
3572         Add sys/acct.h and sys/sysctl.h.
3574 Tue May 14 19:42:04 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3576         * sysdeps/generic/strrchr.c: Deansideclized.
3578         * elf/Makefile (ldd): Depend on Makefile.
3579         Find ld.so in $(slibdir) instead of $(libdir).
3581         * sysdeps/i386/strrchr.S: Use `testl $3, %esi' instead of `testb $3,
3582         %esi'; gas misassembles the latter into `testb $3, %dh'.
3584         * mach/Machrules (%.udeps rule): Do $(make-target-directory) first.
3586 Tue May 14 16:38:44 1996  David Mosberger-Tang <davidm@AZStarNet.com>
3588         * sunrpc/getrpcent.c (interpret): Declare args.  Rewrite parsing using
3589         strpbrk.
3591 Tue May 14 20:18:38 1996  Ulrich Drepper  <drepper@cygnus.com>
3593         * time/Makefile (routines): Add strptime.
3594         * time/time.h: Add prototype for strptime.
3595         * time/strptime.c: New file.  Implementation according to XPG4.
3597 Tue May 14 14:07:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3599         * libc-symbols.h (lint): Macro removed.  The sunrpc code does some
3600         really stupid things #ifdef lint.
3602         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Fix
3603         struct member name: sc_eip -> eip.
3605 Mon May 13 19:52:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3607         * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
3608         output redirect outside it.
3610         * elf/Makefile (subdir_lib): Depend on ld.so.
3612 Sun May 12 22:52:22 1996  Bruce Elliott  <belliott@accessone.com>
3614         * stdio-common/vfprintf.c: Correct handling of unsigned short
3615         values.
3617 Mon May 13 12:03:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3619         * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
3620         $(common-objpfx).
3621         * Makerules [install-lib.a]: Find them there.
3623         * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
3625         * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
3627         * posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.
3629         * configure.in (--with-fp): Note in help string that it's the default.
3631         * locale/programs/ld-ctype.c (struct locale_ctype_t): Use u_int32_t
3632         instead of unsigned int for map_collection_max and map_collection_act.
3634         * stdio-common/vfprintf.c [USE_IN_LIBIO] (flockfile, funlockfile):
3635         Macros removed; they are in <stdio.h>.
3636         * stdio-common/vfscanf.c: Likewise.
3638         * posix/glob.c [_AMIGA]: Don't include <pwd.h>.
3639         (glob): Remove bogus & in call to globfree.
3640         [_AMIGA]: Use AmigaDOS file name conventions.
3642         * time/Makefile (zonenames): Target removed.
3643         (extra-objs): Remove it from here.
3644         Include the z.* files directly instead of including zonenames; use
3645         `-include' to not complain before they exist.
3647         * sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
3648         $(common-objpfx) instead of $(objpfx).
3650         * sysdeps/unix/bsd/telldir.c (seekdir, telldir): Use new struct member
3651         names without __.
3653         * Makerules [install-lib-non.a]: Find these things with $(objpfx)
3654         instead of $(common-objpfx).
3656         * Makeconfig (sysdep-configures): New variable.
3657         (config.status): Depend on $(sysdep-configures).
3659 Fri May 10 20:07:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3661         * sysdeps/unix/sysv/linux/profil.c: New file.
3663 Fri May 10 19:59:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3665         * sysdeps/m68k/Makefile (CFLAGS-setjmp.c): New variable.
3667 Fri May 10 19:55:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3669         * shlib-versions: Use libm=6 and libc=6 for m68k-linux.
3671 Sun May 12 11:16:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3673         * string/envz.c: Fix uses of unsigned to size_t.
3675         * Makerules ($(libdir)/libc.so): Make the file an ld script.
3677         * sysdeps/mach/hurd/configure.in: Don't grok --with-hurd option.
3679         * sysdeps/mach/configure.in: File removed.
3680         * sysdeps/mach/configure: File removed.
3682         * mach/Machrules (%.udeps rule): Write deps for %_server.[ch] too.
3683         (%_server.[ch] rule): Don't depend on %.defs; use #include to get
3684         installed .defs file.
3686         * stdio-common/vfprintf.c (flockfile, funlockfile): Define to
3687         nothing for stdio.  Fix fUNlockfile -> funlockfile for libio.
3688         * stdio-common/vfscanf.c: Likewise.
3690 Sat May 11 13:43:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3692         * hurd/hurdfault.c: Include faultexc_server.h instead of faultexc.h.
3694         * mach/Machrules (%.ir rule): Don't produce deps for imports.
3696         * elf/dl-fini.c (_dl_fini): Clear L->l_init_called after calling fn.
3698         * Makerules (install): Depend on $(slibdir)/libc.so$(libc.so-version).
3699         [!subdir] ($(libdir)/libc.so, $(common-objpfx)/libc-syms.so): Protect
3700         these targets and install dep on $(libdir)/libc.so with this.
3702         * hurd/Makefile: Removed all rules and defns for using code from Hurd
3703         sources and installing headers from there.
3705         * sysdeps/mach/hurd/errnos.awk: Set in_mach_errors to FILENAME when we
3706         set it.  In Mach error matching clause, only match if FILENAME is
3707         still the same value.
3709         * sysdeps/mach/hurd/Makefile: Don't include sysdeps/mach/Makefile;
3710         $(mach-srcdir) no longer exists.
3711         (hurd-srcdir): Variable removed.
3712         (includes): Don't append -I$(hurd-srcdir).
3713         (last-includes): Variable removed.
3714         Remove vpath specs using $(hurd-srcdir).
3715         (mach-errno-h): New canned sequence.
3716         ($(common-objpfx)errnos.d): New target, generated included makefile
3717         to determine absolute file names of Mach headers to search for error
3718         codes and set variable mach-errnos-deps.
3719         ($(common-objpfx)stamp-errnos): Depend on $(mach-errnos-deps) instead
3720         of prior explicit list.
3721         (generated): Add errnos.d, stamp-errnos.
3723         * mach/Machrules (some-if-rtn): New variable and target; compute deps
3724         of some if routine and make all if routines depend on that .d file
3725         instead of static list of .h files.
3727         * mach/Makefile (mach/mach_interface.defs,
3728         mach/memory_object_user.defs): Targets removed.
3729         ($(objpfx)mach-syscalls.mk): Tweak this kludge so it doesn't depend
3730         directly on Mach sources.
3732         * sysdeps/mach/Makefile (mach-srcdir): Variable removed.
3733         (includes): Don't append -I$(mach-srcdir).
3734         Remove vpath specs using $(mach-srcdir).
3736         * hurd/Makefile (server-interfaces): Add faultexc.
3737         (sig): Remove it from here.
3738         (fault%.[ch]): Rule removed.
3739         (MIGFLAGS-faultexc): New variable.
3741         * hurd/faultexc.defs: New file.
3743         * mach/Machrules (%.ustamp rule): Pass $(MIGFLAGS-$*) to mig.
3744         (%_server.[ch] rule): Likewise.
3746         * mach/Makefile: Removed all rules and defns for using code from Mach
3747         sources and installing headers from there.
3749         * Makeconfig [$(build-shared)=yes] (link-libc): Append
3750         $(libc.so-version) to libc.so.
3752 Fri May 10 18:36:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3754         * mach/Machrules (%.ustamp rule): Don't depend on %.defs.
3755         (%.udeps): New rule parallel to that one, generating included
3756         makefiles with -M output from `#include <%.defs>'.
3758         * Makerules (sed-remove-objpfx): Remove space before \ at eol.
3760         * Makefile (distribute): Add FAQ.
3761         * FAQ: New file contributed by drepper.
3763         * time/Makefile (headers): Add timebits.h.
3764         * sysdeps/unix/sysv/linux/timebits.h: New file.
3765         * sysdeps/stub/timebits.h: New file.
3766         * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
3767         (CLOCKS_PER_SEC): Remove this macro.  Instead #include <timebits.h>.
3769 Fri May 10 16:22:44 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
3771         * string/argz-create.c (__argz_create): Restore const keyword to
3772         ARGV parm.
3773         * string/argz.h (__argz_create, argz_create): Restore const
3774         keyword.
3775         * string/envz.c (envz_get): Don't declare ENTRY const.
3777 Fri May 10 11:48:03 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3779         * string/argz.h (argz_create): Fix param type.
3780         * string/argz-create.c (__argz_create): Remove const from param type.
3781         * string/envz.c (envz_get): Remove const from return type.
3783 Fri May 10 09:41:54 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
3785         * string/argz.h (__argz_create, argz_create): Omit const keyword
3786         from declaration of ARGV.
3787         * string/envz.h (envz_get): Omit const from declaration of return
3788         type.
3790 Thu May  9 09:17:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3792         * aclocal.m4 (AC_FD_MSG, AC_FD_CC): Fix these for autoconf weirdness.
3794         Cleanups in sunrpc code from NIIBE Yutaka <gniibe@mri.co.jp>.
3795         * sunrpc/clnt_tcp.c (clnttcp_create): Don't close *SOCKP if it's -1.
3796         * sunrpc/clnt_simp.c (callrpc): Don't close CRP->socket if it's
3797         RPC_ANYSOCK.
3798         * sunrpc/pmap_clnt.c (pmap_set): Don't close SOCKET, since
3799         CLNT_DESTROY already has.
3800         (pmap_unset): Likewise.
3801         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
3802         * sunrpc/pm_getport.c (pmap_getport): Likewise.
3803         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
3804         * sunrpc/portmap.c (callit): Likewise.
3806         * Makerules (versioned): Strip whitespace.
3808         * Rules (static-only-routines rule): Remove spurious space in dep.
3810         * misc/getusershell.c: Undo changes of 7 May 96 (rev 1.6).
3811         Cast string constants to char *.
3813         * posix/glob/SMakefile, posix/glob/SCOPTIONS, posix/glob/Makefile.ami:
3814         New files, AmigaDOS support from Aaron Digulla.
3815         * posix/Makefile (glob.tar): Add AmigaDOS support files.
3817         * sysdeps/unix/sysv/linux/net/if.h: New file.
3818         * sysdeps/unix/sysv/linux/Dist: Add it.
3819         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
3820         net/if.h.
3822         * Makeconfig (link-libc): Add libc.a after libc.so in link.
3824         * Rules (static-only-routines rule): Use empty.o instead of dummy.o.
3825         (empty.o): New target.
3826         (generated): Add empty.c, empty.o.
3828         * resolv: Code updated from BIND-4.9.3P2C3.
3830         * Rules (static-only-routines rule): Use dummy.o, not dummy.so.
3832 Wed May  8 20:04:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3834         * extract-dynsym: New file.
3835         * Makefile (distribute): Add it.
3836         * Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
3837         [! libc.so-version]: Clear static-only-routines.
3838         ($(common-objpfx)sor-$(subdir)): New target.
3839         [static-only-routines]: New static pattern rule for these .so's.
3840         * Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
3841         [libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
3842         New targets replace it.
3843         (install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
3844         $(slibdir)/libc.so.
3845         * io/Makefile (static-only-routines): New variable.
3846         * configure.in: Check for tools objdump and objcopy, and for awk.
3847         * config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
3849 Thu May  9 01:24:00 1996  Ulrich Drepper  <drepper@cygnus.com>
3851         * locale/programs/config.h: Remove definition of wint_t.
3853         * locale/programs/ld-collate.c: Include <wchar.h> instead of
3854         <wcstr.h>.
3856         * manual/time.texi: Add some more description for %U and %W
3857         format of strftime.  Describe new format %V of strftime.
3859         * resolv/gethnamaddr.c: Prevent warning by preventing variable
3860         definition.
3861         * stdio-common/_itoa.c: Ditto.
3863 Tue May  7 23:43:07 1996  Ulrich Drepper  <drepper@cygnus.com>
3865         * libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
3866         libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
3867         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
3868         libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
3869         libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
3870         libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
3871         libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
3872         libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
3873         libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
3874         libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
3875         stdio-common/vfscanf.c: Prepare for reentrant libio.
3877         * libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
3878         libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
3879         libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
3880         Used in reentrant libio.
3882         * misc/getusershell.c: Prevent warnings.
3884 Wed May  8 12:08:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3886         * Makerules (install-lib.so rules): Undouble $s in target and dep
3887         parts of o-iterator-doit defns.
3888         (unversioned libraries install rule): Fix pattern.
3890         * mach/Makefile (mach-src-headers): Use $(base-machine) instead of
3891         $(config-machine).
3892         ($(includedir)/machine): Likewise.
3894         * config.make.in (base-machine): New variable.
3895         * configure.in (machine): Move case stmt to set $machine out of sysdep
3896         dirs AC_CACHE_CHECK.
3897         (base_machine): New variable, set in that switch and AC_SUBST'd.
3899         * Makerules (stub-$(subdir)): Use file name in directory as output,
3900         since cmd is cd'd.
3902         * configure.in (MSGFMT): Use : if none found.
3904         * po/Makefile: Include ../Rules instead of ../Makerules.
3906 Tue May  7 23:18:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3908         * po/Makefile: New file.
3909         * Makefile (subdirs): Add po.
3911         * configure.in: Check for msgfmt.
3912         * config.make.in (MSGFMT): New variable.
3914 Sun May  5 23:49:10 1996  Ulrich Drepper  <drepper@cygnus.com>
3916         * misc/Makefile (routines): Add swapoff.
3918         * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
3920         * sysdeps/unix/sysv/linux/sys/quota.h: New file.  Wrapper around
3921         kernel header file.
3923 Tue May  7 19:00:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3925         * string/argz-extract.c: Remove const from decl.
3926         * string/argz.h: Here too.
3928         * Makeconfig (version.mk): Fix regexp in sed cmd.
3929         Depend on $(..)Makeconfig.
3931         * GMP code updated from gmp-2.0 release.
3932         * stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
3933         * sysdeps/generic/add_1.c: File removed.
3934         * stdlib/strtod.c: mp_limb is now mp_limb_t.
3935         * stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
3936         * stdio-common/_itoa.c: Likewise.
3937         * stdio-common/printf_fp.c: Likewise.
3938         Don't include ansidecl.h.
3940         * sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
3942         * shlib-versions: New file.
3943         * Makerules (soversions.mk): New target, include file generated from
3944         shlib-versions.  Moved shared library rules before installation rules.
3945         Rewrote shared library installation rules for versioned libraries.
3946         * math/Makefile (libm.so-version): Variable removed.
3948         * sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
3950         * hurd/report-wait.c (_S_msg_describe_ports): New function.
3952         * configure.in: Add AC_PROG_LN_S check.
3953         * config.make.in (LN_S): New variable.
3955 Sun May  5 03:10:44 1996  Ulrich Drepper  <drepper@cygnus.com>
3957         * misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug.  gcc does
3958         not know about weak aliases now and optimizes necessary `if'
3959         statement away.
3961         * posix/unistd.h: Add swapoff prototype.
3963         * sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
3965         * sysdeps/posix/fpathconf.c (__fpathconf): Get information
3966         for _PC_PATH_MAX from fstatfs function if available.
3968         * sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
3969         _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
3970         _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
3971         _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
3972         _SC_TIMER_MAX.
3973         * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
3975         * sysdeps/stub/swapoff.c: New file.  Stub version for swapoff
3976         function.
3978         * sysdeps/unix/syscalls.list:  Add swapoff.
3980         * sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
3982         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
3983         (sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
3984         sysinfo, and uselib.
3985         (headers): Add sys/sysinfo.h.
3987         * sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
3989         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
3990         (sysdep_routines): Add ioperm, iopl, and vm86.
3991         (headers): Add sys/perm.h and sys/vm86.h.
3993         * sysdeps/unix/sysv/linux/i386/sys/perm.h: New file.  Contains
3994         prototypes for iopl and ioperm.
3996         * sysdeps/unix/sysv/linux/i386/sys/vm86.h:  New file.  Contains
3997         prototype for vm86.
3999         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.  Add
4000         vm86 system call.
4002         * sysdeps/unix/sysv/linux/sys/acct.h: New file.  Contains
4003         prototypes for acct function.
4005         * sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
4006         file with prototypes.
4008         * sysdeps/unix/sysv/linux/sys/sysinfo.h: New file.  Contains
4009         prototype for sysinfo function.
4011         * sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
4012         llseek, setfsgid, setfsuid, sysinfo, and uselib.
4014         * sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
4015         posix/sysconf.c now only handle cases different to that
4016         implementation.
4018 Tue May  7 15:08:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4020         * stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
4021         (all references changed).  Now exported.
4023         * stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
4024         (wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
4025         line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
4026         instead of struct data.
4027         (lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
4028         occurences of `wrap' and `wrapmargin' to `wmargin'.
4029         (line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
4030         line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
4031         line_wrap_set_wmargin, line_wrap_point): New functions.
4032         * stdio/linewrap.h: New file.
4033         * stdio/Makefile (headers): Add linewrap.h.
4035 Tue May  7 14:19:12 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4037         * sysdeps/unix/sysv/linux/i386/Makefile: File removed.
4039         * stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
4041         * sysdeps/unix/sysv/linux/schedbits.h: New file.
4043 Tue May  7 13:47:02 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4045         * stdio/linewrap.c (struct data): Make margin fields not-pointers.
4046         (lwoutput): Adjust uses acordingly.
4048 Tue May  7 10:51:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4050         * sysdeps/mach/hurd/fdatasync.c: New file.
4051         * sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
4053         * sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
4054         * sysdeps/mach/hurd/symlink.c: Likewise.
4055         * sysdeps/mach/hurd/link.c: Likewise.
4056         * sysdeps/mach/hurd/bind.c: Likewise.
4057         * hurd/hurdsig.c (write_corefile): Likewise.
4059         * hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
4061         * sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
4063         * sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
4064         proc_mark_exit.
4065         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
4067         * sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
4069         * sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
4071         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
4072         hurd_signal_detail.
4073         * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4074         * hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
4075         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4076         Likewise.
4077         * sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
4079         * hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
4081         * hurd/hurdsig.c (write_corefile): Take const struct
4082         hurd_signal_detail * arg.  Pass all details to crash_dump_task.
4083         (_hurd_internal_post_signal): Pass DETAIL to write_corefile.
4084         (_hurd_internal_post_signal: suspend): Pass code and error to
4085         proc_mark_stop.
4087         * hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
4088         proc_getprocinfo by reference.
4090         * wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos.
4092         * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo.
4094         * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>.
4095         * sysdeps/stub/sched_sets.c: Likewise.
4096         * sysdeps/stub/sched_setp.c: Likewise.
4097         * sysdeps/stub/sched_rr_gi.c: Likewise.
4098         * sysdeps/stub/sched_gets.c: Likewise.
4100         * hurd/hurdsig.c: Use struct hurd_signal_detail.
4101         * hurd/hurd/fd.h (_hurd_fd_error): Likewise.
4102         * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
4104 Mon May  6 09:51:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4106         * stdio/linewrap.c: New file.
4107         * stdio/Makefile (routines): Add linewrap.
4108         * stdio/stdio.h [__USE_GNU]: Declare line_wrap_stream,
4109         line_unwrap_stream.
4111 Mon May  6 14:53:26 1996  Ulrich Drepper  <drepper@cygnus.com>
4113         * time/strftime.c (week): Add third parameter telling how
4114         many days must be in new year so that it is called week 1.
4115         (Following ISO 8601).
4116         Correct computation for %U and %V formats when day was first
4117         day of the week.
4118         (strftime): Implement %V format according to Spec1170.
4120 Mon May  6 17:01:09 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
4122         * hurd/hurd/signal.h (_hurd_intr_rpc_mach_msg): New declaration.
4124 Sat May  4 05:44:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4126         * hurd/hurd/sigpreempt.h (struct hurd_signal_preempter): Change
4127         prototype of `preempter' elt to use struct hurd_signal_detail.
4129         * hurd/hurd/signal.h (struct hurd_signal_detail): New type.
4130         (struct hurd_sigstate): Make `pending_data' member an array of that.
4131         Use the new type in several decls.
4133         * locale/setlocale.c (_nl_C_name): Variable removed.
4134         * locale/C_name.c: New file.
4135         (_nl_C_name): Put it here instead.
4136         * locale/Makefile (aux): Add C_name.
4138         * sysdeps/mach/hurd/dl-sysdep.c (open): Don't pass io port in
4139         auth_user_authenticate rpc.
4140         (open): Avoid using strtol in digit conversion for "fd/N" magic.
4141         (_dl_sysdep_start): Likewise for memobj name in magic switches.
4143         * elf/Makefile (reloc-link): New variable.
4144         (dl-allobjs.so): New target, link together $(rtld-routines).
4145         (librtld.so): Depend on that instead of the rtld components.
4146         (generated): Add dl-allobjs.so.
4148         * hurd/hurd-raise.c (_hurd_raise_signal): Pass sigcode in msg_sig_post
4149         rpc.
4151         * hurd/hurdmsg.c (_S_msg_set_environment): Use argz.h functions
4152         instead of _hurd_split_args.
4153         (_S_msg_*_exec_flags): Functions removed.
4154         (_S_msg_startup_dosync): Stub removed.
4156 Sat May  4 02:11:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4158         * sysdeps/mach/hurd/ptrace.c: Set _hurdsig_traced instead of
4159         EXEC_TRACED bit in _hurd_exec_flags.
4160         Pass sigcode arg in msg_sig_post_untraced rpc.
4162         * sysdeps/mach/hurd/access.c: Don't pass io port in
4163         auth_user_authenticate rpc.
4165         * posix/sched.h: Fix typos.
4167         * sysdeps/mach/hurd/fork.c: Use new critical section lock.
4168         Clear _hurdsig_traced instead of EXEC_TRACED.
4170         * sysdeps/stub/nanosleep.c (nanosleep): Fix typo.
4172         * wcsmbs/wcstol.c: Find strtol.c in ../stdlib.
4173         * wcsmbs/wcstof.c: Find strtod.c in ../stdlib.
4174         * wcsmbs/wcstod.c: Likewise.
4175         * wcsmbs/wcstold.c: Likewise.
4177         * wcsmbs/wcwidth.h: Find cname-lookup.h in ../wctype.
4179         * string/envz.c (envz_entry): Use const.
4180         (envz_get, envz_remove): Likewise.
4181         (envz_entry): Return char *, not const char *.
4183         * string/envz.h: Fix decl.
4185         * string/argz-create.c: Use const in prototype.
4186         * string/argz-next.c: Likewise.
4188 Fri May  3 13:32:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4190         * sysdeps/mach/hurd/sigprocmask.c: Pass sigcode arg to msg_sig_post.
4191         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
4192         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
4193         * sysdeps/mach/hurd/kill.c: Likewise.
4195         * hurd/hurdexec.c (_hurd_exec): Use new critical section lock.
4196         * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4197         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Likewise.
4198         * hurd/thread-cancel.c (hurd_thread_cancel, hurd_check_cancel):
4199         Likewise.
4200         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
4201         * sysdeps/mach/hurd/sigaction.c: Likewise.
4203         * sysdeps/mach/hurd/errnos.awk: Don't use ARGV in comment; it can
4204         change meaninglessly.
4206         * hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
4207         flag with a spin lock.
4208         (_hurd_critical_section_lock): Use spin_try_lock on that to see if we
4209         get it.  No need to take SS->lock at all.
4210         (_hurd_critical_section_unlock): Unlock SS->critical_section_lock
4211         instead of clearing the old flag member.
4212         * hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
4213         test the critical section state.
4215         * hurd/hurdinit.c (_hurd_init): Set _hurdsig_traced from the intarray.
4217         * hurd/hurdkill.c (_hurd_sig_post): Pass 0 sigcode in msg_sig_post.
4219         * hurd/hurdsig.c (_hurd_internal_post_signal): Test _hurdsig_traced
4220         instead of testing (_hurd_exec_flags & EXEC_TRACED).
4221         (_S_msg_sig_post): Take sigcode arg and pass it through.
4222         (_S_msg_sig_post_untraced): Likewise.
4223         (reauth_proc): Don't pass proc port in auth_user_authenticate.
4225         * hurd/setauth.c (_hurd_setauth): Don't pass object ports in
4226         auth_user_authenticate RPCs, just the one-off rendezvous port.
4227         * hurd/dtable.c (reauth_dtable): Likewise.
4228         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
4230         * hurd/hurdexec.c (_hurd_exec): Pass 0 flags to file_exec.
4231         Pass sigcode arg to msg_sig_post.
4233         * string/argz.h (argz_create): Use const in prototype.
4235         * hurd/hurdinit.c (_hurd_proc_init): Test _hurdsig_traced instead of
4236         testing (_hurd_exec_flags & EXEC_TRACED).
4237         Pass sigcode arg to msg_sig_post.
4239         * hurd/hurd.h: Declare _hurdsig_traced.
4241         * string/argz.h (__argz_next): Cast ENTRY before returning it.
4243         * hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
4244         to msg_sig_post.
4246         * hurd/path-lookup.c: New file.
4247         * hurd/Makefile (routines): Add path-lookup.
4248         * hurd/hurd/lookup.h: Declare file_name_path_scan,
4249         hurd_file_name_path_lookup.
4250         * hurd/hurd.h: Declare file_name_path_lookup.
4252         * sysdeps/mach/hurd/select.c: The io_select rpc no longer has a TAG_ID
4253         argument.  Instead, use a separate reply port for each RPC and put them
4254         all in a port set to wait for slow replies.
4256         * intl/Makefile (CPPFLAGS): Change $(nlsdir) to $(i18ndir) in
4257         LOCALE_ALIAS_PATH.
4259 Fri May  3 03:14:02 1996  Ulrich Drepper  <drepper@cygnus.com>
4261         * intl/Makefile (routines): Add l10nflist and explodename.
4262         (distribute): Add loadinfo.h and locale.alias.
4263         (install-others): New variable to install locale.alias.
4265         * intl/dcgettext.c, intl/finddomain.c, intl/gettextP.h,
4266         intl/loadmsgcat.c: Adapt for upcoming gettext-0.10.13.  Some code
4267         is now shared with the locale implementation.
4269         * intl/explodename.c, intl/l10nflist.c, intl/loadinfo.h: New file.
4270         Extracted from finddomain.c.  This is also used in the locale
4271         implementation.
4273         * intl/locale.alias: New file.  Locale alias database compatible
4274         with X Window System's locale alias file.  Can now be used in
4275         locale and gettext code.
4277         * libio/stdio.h: Add prototypes for asprint and vasprintf.
4279         * locale/C-collate.c, locale/C-ctype.c, locale/C-messages.c,
4280         locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c: Add new
4281         field in structure with name of locale ("C" in this case).
4283         * locale/Makefile (routines): Add findlocale.
4285         * locale/findlocale.c: New file.  Instead of trying to load the
4286         directly described file we now try to be much smarter when this
4287         fails.  Use the same code as gettext does.
4289         * locale/loadlocale.c, locale/setlocale.c: Rewrite to know about
4290         new loading scheme.
4292         * locale/localeinfo.h: Adapt prototypes and declarations for new
4293         setlocale implementation.  Remove definition of u32_t type.  We
4294         now use u_int32_t from <sys/types.h>.
4296         * locale/programs/charset.h (ILLEGAL_CHAR_VALUE): Provide type
4297         with constant.
4299         * locale/programs/config.h, locale/lc-collate.c,
4300         locale/localeinfo.h, locale/programs/ld-collate.c,
4301         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
4302         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
4303         locale/programs/ld-time.c, locale/weight.h, string/strcoll.c:
4304         Change to use u_int32_t and u_int16_t.
4306         * locale/programs/localedef.c (construct_output_path): Change name
4307         of output locale to contain normalized form of the character set
4308         portion.
4310         * string/Makefile (routines): Add agrz-ctsep and argz-next.
4311         (tests): Add tst-strlen.
4313         * string/argz-ctsep.c: New file.  Implement reverse operation
4314         from argz-stringify.
4316         * string/argz-next.c: Non-inline version of function from argz.h.
4318         * string/argz.h, string/envz.h: Make usable as global header file.
4320         * string/envz.c: Fix declarations to use size_t where prototypes
4321         say so.
4323         * string/tst-strlen.c: New file.  Another test for critical
4324         situation in strlen implementations.
4326         * sysdeps/i386/i586/strlen.S: Fix bug with highest byte in word
4327         being zero.
4329         * wctype/test_wctype.c: Fix controlling comparison after change to
4330         32 bit character class array.
4332 Fri May  3 12:53:12 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4334         * sysdeps/unix/sysv/linux/sys/socket.h: Remove spurious doubled line.
4336 Thu May  2 22:50:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4338         * sysdeps/unix/sysv/linux/getpriority.c: New file.
4339         * sysdeps/unix/sysv/linux/syscalls.list: Add s_getpriority.
4341 Thu May  2 22:41:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4343         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_DEFAULT):
4344         Disable all exceptions.
4346 Thu May  2 22:33:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4348         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
4349         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
4350         sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
4351         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
4352         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
4353         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
4354         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
4355         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
4356         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c: Don't
4357         define __NO_MATH_INLINES, which is already defined on command
4358         line.
4360 Thu May  2 22:18:28 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4362         * sysdeps/libm-ieee754/e_j0f.c (__ieee754_j0f, __ieee754_y0f):
4363         Replace 0x80000000 by 0x48000000.
4364         * sysdeps/libm-ieee754/e_j1f.c (__ieee754_j1f): Likewise.
4366 Thu May  2 21:30:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4368         * sunrpc/svc_simple.c: Make global variable pl local to
4369         registerrpc.
4371 Thu May  2 00:24:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4373         * time/Makefile (tz-cflags): New variable.
4374         (CFLAGS-tzfile.c): New variable.
4375         (CFLAGS-zic.c): Add $(tz-cflags).
4376         (tz-cc): Remove variable.
4377         ($(objpfx)tzfile.o, $(objpfx)zic.o): Remove targets.
4379 Wed May  1 09:10:04 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4381         * sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
4382         name, instead of checking for reaching end of buffer, which happens
4383         when the match is the last entry in the buffer.
4385         * time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
4386         include.
4388 Mon Apr 29 02:48:26 1996  Ulrich Drepper  <drepper@cygnus.com>
4390         * ctype/ctype-info.c: (__ctype_width): New variable.
4391         (__ctype_names): Initialize correctly without offset.
4393         * locale/C-collate.c, locale/C-ctype.c,
4394         locale/C-messages.c, locale/C-monetary.c,
4395         locale/C-numeric.c, locale/C-time.c: Change copyright.
4397         * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Correct
4398         endianess for initialization value.
4400         * locale/lc-ctype.c (current): Add parameter for offset.
4401         (__ctype32_b, __ctype_width): Add initialization for these
4402         variables.
4404         * locale/programs/charmap.c: Finish support for WIDTH information.
4405         (new_width): New function.
4407         * locale/programs/charset.h (width_rule): new data structure.
4408         (charset_t): Add elements for width information.
4410         * locale/programs/ld-ctype.c (locale_ctype_t): Add element
4411         for width information.
4412         (allocate_arrays): Add new argument for charset.
4413         (ctype_finish): Make sure all characters named in charset
4414         width table are known to name table.
4415         (ctype_output): Correct handling of class and map name
4416         information and write out width information.
4417         (find_idx): Prepare for being called with NULL pointer as
4418         TABLE argument.  This means only allocate name entry.
4419         (allocate_arrays): Correct handling of array element -1.
4420         Because EOF == -1 the value of element 127 must *not* be
4421         mirrored here.
4422         Fill width information from charset tables.
4424         * locale/programs/localedef.c (main): Correct loop over all
4425         categories after change of order from Thu Mar 28 14:22:51 1996.
4426         Add new charset argument to call of `write_all_categories'.
4428         * locale/programs/locales.h (ctype_finish, ctype_output): New
4429         charset argument.
4431         * locale/programs/locfile.c (write_all_categories): Call
4432         `ctype_output' with additional argument charset.
4434         * posix/getconf.c (vars): Add _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4435         and _POSIX_PRIO_IO definitions.
4437         * posix/posix2_lim.h: Add definition of _POSIX2_CHARCLASS_NAME_MAX
4438         and CHARCLASS_NAME_MAX.
4440         * posix/unistd.h: Document _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4441         and _POSIX_PRIO_IO.
4443         * stdlib/grouping.h: Prepare for use in wide string functions.
4445         * stdlib/stdlib.h: Correct prototypes for __strto*_internal
4446         functions.
4448         * stdlib/strtod.c: Extend for use as `wcsto{f,d,ld}'.
4450         * stdlib/strtol.c: Extend for use as `wcsto{l,ul,q,uq}'.
4452         * string/strcoll.c: Extend for use as `wcscoll'.
4454         * string/strxfrm.c: Extend for use as `wcsxfrm'.
4456         * sysdeps/generic/confname.h: Add definition of _PC_SYNC_IO,
4457         _PC_ASYNC_IO, _PC_PRIO_IO and _SC_CHARCLASS_NAME_MAX.
4459         * sysdeps/generic/stpncpy.c: Correct return value.
4461         * sysdeps/posix/fpathconf.c: Add handling of _PC_SYNC_IO,
4462         _PC_ASYNC_IO, and _PC_PRIO_IO.
4464         * sysdeps/posix/sysconf.c: Add handling of _SC_REALTIME_SIGNALS,
4465         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
4466         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC,
4467         _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4468         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES,
4469         _SC_SHARED_MEMORY_OBJECTS, and _SC_CHARCLASS_NAME_MAX.
4470         * sysdeps/stub/sysconf.c: Ditto.
4471         * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4473         * sysdeps/unix/sysv/linux/Dist: Add sys/sysctl.h.
4475         * sysdeps/unix/sysv/linux/Makefile [subdir == misc]
4476         (sysdep_routines): Add s_sysctl and sysctl.
4478         * sysdeps/unix/sysv/linux/sys/mman.h: Add declaration of mremap.
4480         * sysdeps/unix/sysv/linux/sys/socket.h: New file.  Wrapper
4481         around kernel header.
4483         * sysdeps/unix/sysv/linux/sys/sysctl.h: New file.  Define
4484         interface to `sysctl' function.
4486         * sysdeps/unix/sysv/linux/syscalls.list: Add mremap and _sysctl.
4488         * sysdeps/unix/sysv/linux/sysconf.c: Add handling of
4489         _SC_CHARCLASS_NAME_MAX.
4491         * sysdeps/unix/sysv/linux/sysctl.c: new file.  Implement caller
4492         of _sysctl system call.
4494         * sysvipc/Makefile (routines): Add ftok.
4496         * sysvipc/ftok.c: use variable `proj_id' not `id'.  Patch by
4497         David Mosberger-Tang.
4499         * wcsmbs/Makefile (routines): Add wcpcpy, wcpncpy, wcstol,
4500         wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4501         wcsxfrm, wcwidth, and wcswidth.
4503         * wcsmbs/wchar.h: Add declarations for wcpcpy, wcpncpy, wcstol,
4504         wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4505         wcsxfrm, wcwidth, and wcswidth.
4506         Declare internal interfaces for wcsto* functions.
4507         [OPTIMIZE]: Define inline functions for wcsto* functions to
4508         call internal interface functions.
4510         * wcsmbs/wcpcpy.c, wcsmbs/wcpncpy.c: New files.  Implement non-
4511         standard function equivalent to stpcpy/stpncpy.
4513         * wcsmbs/wcscoll.c: Implement `wcscoll' function by using
4514         `strcoll' implementation.
4516         * wcsmbs/wcscpy.c, wcsmbs/wcsncpy.c: Use wint_t instead of
4517         wchar_t.
4519         * wcsmbs/wcstod.c: Implement `wcstod' function by using `strtod'
4520         implementation.
4521         * wcsmbs/wcstof.c: Same for `wcstof'.
4522         * wcsmbs/wcstold.c: Same for `strtold'.
4524         * wcsmbs/wcstol.c: Implement `wcstol' function by using `strtol'
4525         implementation.
4526         * wcsmbs/wcstoq.c: Same for `wcstoq'.
4527         * wcsmbs/wcstoul.c: Same for `wcstoul'.
4528         * wcsmbs/wcstouq.c: Same for `wcstouq'.
4530         * wcsmbs/wcswidth.c: Implement `wcswidth' function from X/Open
4531         CAE.
4532         * wcsmbs/wcwidth.c: Ditto for `wcwidth'.
4533         * wcsmbs/wcwidth.h: Common function for definitions of above two
4534         functions.
4536         * wcsmbs/wcsxfrm.c: Implement `wcsxfrm function by using
4537         `strxfrm implementation.
4539         * wctype/wctype.c: Remove case for `wctype_t' being 16 bit type.
4541         * wctype/wctype.h (wint_t): Protect against multiple definition.
4542         (wctype_t): Always define as `unsigned long int'.
4544         * wctype.h: New file.  Wrapper around wctype/wctype.h.
4546 Tue Apr 30 17:30:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4548         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Add timeout argument to
4549         interrupt_operation call.
4550         (_hurdsig_interrupt_timeout): New variable.
4552         * hurd/report-wait.c (describe_number): Correctly allocate space
4553         in DESCRIPTION for the digits in I.
4555 Mon Apr 29 00:11:59 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4557         * hurd/hurdstartup.c (_hurd_split_args): Function removed.
4558         (_hurd_startup): Use argz functions.
4560         * hurd/hurdexec.c: Use argz functions.
4562         * errno.h [!__error_t_defined] (error_t): New type.
4563         * sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
4564         typedef in errnos.h.
4566         * string/envz.c, string/envz.h: New files.
4567         * string/argz.h, string/argz-append.c, string/argz-count.c,
4568         string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
4569         string/argz-insert.c, string/argz-stringify.c: New files.
4570         * string/Makefile (routines): Add envz, argz-*.
4571         (headers): Add argz.h, envz.h.
4573 Sun Apr 28 14:14:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4575         * sysdeps/unix/sysv/linux/i386/Makefile: New file.
4577 Wed Apr 24 17:35:30  Ulrich Drepper  <drepper@cygnus.com>
4579         * inet/netinet/in.h, socket/sys/socket.h: Move to
4580         sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
4581         * netinet/in.h, sys/socket.h: Remove file.
4583         * misc/Makefile (routines): Add fdatasync.
4585         * posix/Makefile (headers): Add sched.h.
4586         (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
4587         sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
4589         * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
4590         _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
4591         _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
4592         _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
4593         _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
4594         _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
4596         * posix/sched.h: New file.  Header for POSIX scheduling interface.
4598         * posix/unistd.h: Describe options from POSIX.4.
4599         Add declaration of fdatasync.
4601         * sysdeps/generic/confname.h: Add definition for
4602          _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
4603         _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
4604         _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4605         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
4606         _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
4608         * sysdeps/generic/fdatasync.c: New file.  Default implementation
4609         simply uses fsync.
4611         * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
4613         * sysdeps/generic/schedbits.h: New file.  System dependent
4614         defintion for POSIX.4 scheduling interface.
4616         * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
4618         * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
4619         sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
4620         sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
4621         sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
4622         sysdeps/stub/sched_yield.c: New file:  Stub implementation
4623         for systems missing these POSIX.4 system calls.
4625         * sysdeps/unix/sysv/linux/gnu/types.h,
4626         sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
4627         data type definitions.
4629         * sysdeps/unix/sysv/linux/netinet/in.h: New file.  Linux
4630         specific version.
4632         * sysdeps/unix/sysv/linux/posix_opt.h: New file.  Define POSIX
4633         options applicable for Linux.
4635         * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
4636         fdatasync, nanosleep, sched_setparam, sched_getparam,
4637         sched_setscheduler, sched_getscheduler, sched_yield,
4638         sched_get_priority_max, sched_get_priority_min, and
4639         sched_rr_get_interval.
4641         * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
4642         options.
4644         * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
4646         * time/sys/time.h: Remove definition of `struct timespec'.
4648         * time/time.h (struct timespec): Move definition to here.
4650 Fri Apr 26 01:55:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4652         * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
4654 Thu Apr 25 15:49:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4656         * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
4657         the scan for a name, avoid doing another readdir (which overwrites
4658         NENTRIES, and was resulting in a bogus ENOENT).
4660         * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
4662 Wed Apr 24 00:22:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4664         * stdio/internals.c (seek_to_target): Set errno if seek function
4665         returns the wrong offset.
4667         * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
4668         * wcsmbs/wcrtomb.c: Likewise.
4670         * stdio-common/vfprintf.c: Include errno.h.
4672 Tue Apr 23 21:09:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4674         * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
4675         variable, LUCKY, to use instead of setting D to -1 (which fouls
4676         things up).
4678 Tue Apr 23 15:56:56 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4680         * config.h.in (HAVE_REGEX): New macro.
4682         * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
4683         * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
4684         (routines): Add statfs, fstatfs.
4685         * sysdeps/mach/hurd/statfs.c: New file.
4686         * sysdeps/mach/hurd/fstatfs.c: New file.
4687         * sysdeps/stub/fstatfs.c: New file.
4688         * sysdeps/stub/statfs.c: New file.
4689         * io/sys/statfs.h: New file.
4690         * sysdeps/generic/statfsbuf.h: New file.
4691         * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
4693 Tue Apr 23 00:06:47 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4695         * malloc/Makefile (gmalloc-routines): Add valloc back here.
4696         (dist-routines): Remove it here.
4697         * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
4698         (ELIDE_VALLOC): Define it.
4699         [! ELIDE_VALLOC]: Make whole file conditional on this.
4700         * malloc/malloc.h (valloc): Make decl conditional on
4701         [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
4703 Mon Apr 22 00:02:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4705         * MakeTAGS: Include version.mk.
4706         (po/SYS_libc.pot): Add missing / in sed s cmd.
4708 Sat Apr 20 18:13:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4710         * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
4711         $(libc_cv_ld_no_whole_archive).
4713 Sat Apr 20 17:07:17 1996  Ulrich Drepper  <drepper@cygnus.com>
4715         * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
4716         grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
4717         math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
4718         misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
4719         posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
4720         posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
4721         resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
4722         stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
4723         string/string.h, sysdeps/generic/sigaction.h,
4724         sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
4725         sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
4726         sysdeps/unix/sysv/linux/sys/ptrace.h,
4727         sysdeps/unix/sysv/minix/sigaction.h,
4728         sysdeps/unix/sysv/sco3.2.4/sigaction.h,
4729         sysdeps/unix/sysv/sysv4/sigaction.h,
4730         sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
4731         time/sys/time.h, time/time.h: Fix copyright comment.
4733 Fri Apr 19 00:49:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4735         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
4736         not given in stack aux vector, fetch them with syscalls.
4738         * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
4739         for nonmatching nonerror (instead of !MATCH).
4740         (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
4742         * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
4743         unsigned long for variable NET2.
4745         * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
4747 Tue Apr  9 14:37:31 1996  Ulrich Drepper  <drepper@cygnus.com>
4749         * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
4750         catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
4751         catgets/open_catalog.c: New files.  Implementation of XPG4
4752         compliant catgets() function and needed tools.
4753         * Makefile (subdirs): Add catgets.
4755 Thu Apr 18 23:36:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4757         * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
4759 Wed Apr 10 20:48:43 1996  Ulrich Drepper  <drepper@cygnus.com>
4761         * stdio-common/vfprintf.c: Correct some typos.
4763         * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
4764         sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
4765         __signgam.
4767 Thu Apr 18 21:07:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4769         * Makerules (no-whole-archive): New variable.
4770         (build-shlib): Use it.
4771         * elf/Makefile (libdl.so): Use it.
4772         * configure.in (libc_cv_ld_no_whole_archive): New check for
4773         --no-whole-archive.
4774         * config.make.in (have-no-whole-archive): New variable.
4776         * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
4777         from 3 to 4.
4779         * Make-dist: Include version.mk.
4780         (version, release): Variables removed.
4781         * Makeconfig (version.mk): New target.
4783 Fri Apr 19 01:42:18 1996  Ulrich Drepper  <drepper@cygnus.com>
4785         * locale/Makefile (headers): Add langinfo.h.
4786         (CPPFLAGS): Remove -Iliblib.
4788 Mon Apr 15 16:49:04 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4790         * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
4791         function and its declaration.
4793 Wed Apr 10 14:13:45 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4795         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
4796         MACH_PORT_DEAD in the thread reply-port variable before destroying
4797         the signal handler's reply port, to avoid infinite recursion.
4799 Mon Apr  8 18:27:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4801         * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
4802         user passes in TZ, just zero it (emacs passes in a dummy variable,
4803         and rms says the hurd should be the one to change).
4805 Sun Apr  7 10:37:30 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4807         * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
4808         port in the parent.
4810 Fri Apr  5 17:43:41 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4812         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
4813         MACH_PORT_DEAD in the thread reply-port variable before destroying
4814         the signal handler's reply port to avoid infinite recursion.
4815         * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
4816         attempt to destroy PORT if it's a valid port name.
4818 Wed Apr  3 17:10:44 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4820         * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
4821         * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
4822         instead of $(objpfx).
4824 Tue Apr  2 21:27:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4826         * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
4827         the pattern ends with a backslash and quoting is enabled.
4828         * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
4829         patterns.
4831 Mon Apr  1 13:34:55 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4833         * stdio-common/tst-printf.c (main): Add new test case.
4835         * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
4837 Mon Apr  1 11:39:10  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4839         * stdlib/strtod.c (STRTOD): Fix handling of American style FP
4840         numbers.
4842         * stdio-common/vfprintf.c (vfprintf): Don't increment format
4843         string pointer twice after seeing `*'.
4845 Sun Mar 31 17:31:54 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4847         * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
4848         po/header.pot.
4850 Sun Mar 31 18:07:32 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4852         * locale/Makefile (others, install-bin): Compiling locale works
4853         again.
4854         (locale-modules): locale has no --dump option anymore.  Remove
4855         ctypedump.
4857         * locale/programs/config.h: Don't declare euidaccess.
4858         Use #include_next to get libc's config.h.
4860         * locale/programs/ctypedump.c: Not needed anymore.  Dump option
4861         of locale is removed.
4863         * locale/programs/locale.c: Adapt for new locale implementation.
4865         * stdio-common/_itoa.h (_itoa_word): Define as inline function.
4866         * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
4867         Don't declare static because used in _itoa_word inline function.
4869         * stdio-common/printf-parse.h: Prepare for use in wide-char
4870         stdio implementation.
4871         (find_spec): Take additional argument to work with mbrlen instead
4872         of mblen.
4873         (parse_one_spec): Ditto.
4875         * stdio-common/printf-prs.c: Prepare for use in wide-char
4876         stdio implementation.
4878         * stdio-common/printf.h: Mark change for wide-char handling.
4879         Changing it now would result in incompatibilities.
4881         * stdio-common/vfprintf.c: New and fast implementation.
4883         * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
4884         mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
4885         mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
4886         Change wcswcs to wcsstr.
4887         Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
4888         mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
4890         * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
4891         wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
4892         wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
4893         wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
4894         wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
4895         function according to ISO C amendment 1.
4896         * wchar.h: Wrapper around "wcsmbs/wchar.h".
4898         * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
4899         wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
4900         wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
4901         wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
4902         wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
4903         amendment 1.
4905         * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
4906         wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
4907         wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
4908         wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
4909         wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
4910         Implement functions from early drafts, not part of final standard.
4912 Sun Mar 31 16:50:41 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4914         * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
4915         __jmp_bug_tag so its C++ implicit typedef does not conflict with the
4916         __jmp_buf typedef.
4918         * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
4919         compiling in the source directories.
4921 Fri Mar 29 16:26:35 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4923         * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
4924         * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
4926 Fri Mar 29 11:29:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
4928         * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
4929         with weak alias signgam.
4931 Thu Mar 28 18:32:34 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4933         * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
4935 Thu Mar 28 14:22:51 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
4937         * sunrpc/rpc_main.c (main): Call textdomain.
4939         * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
4940         --no-location.
4941         (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
4942         ($P/subdirs.pot): New target.
4943         ($P/SYS_libc.pot): Add -n switch.
4945         * locale/locale.h (LC_*): Values reordered to match Linux libc.
4947         * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
4948         the process is a zombie; send no messages and return success.
4950 Thu Mar 28 11:53:26 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4952         * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
4953         * wctype/wctype.c: Likewise.
4954         * wctype/wctrans.c: Likewise.
4956 Thu Mar 28 03:00:43 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4958         * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
4959         DATA->strings.
4961         * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
4963         * configure.in (.weakext check): Fix asm code to use .weakext instead
4964         of .weak!  Fix bogus test calls.
4965         * configure: Regenerated.
4967 Thu Mar 28 03:25:10 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
4969         * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
4971         * locale/programs/ld-collate.c (collate_finish): Use error_at_line
4972         instead of error_with_loc.
4974         * locale/weight.h: Use u_int32_t instead of u32_t.
4975         * string/strxfrm.c: Likewise.
4977         * string/strxfrm.c: Find weight.h in ../locale; don't #include
4978         "localeinfo.h".
4979         * string/strcoll.c: Likewise.
4981         * intl/Makefile (copysrc): Add missing > in sed cmd.
4983 Sat Mar 23 17:52:49 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4985         * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
4986         change value to $(datadir)/i18n.  `nls' is not an appropriate
4987         name.
4989         * Makefile (subdirs): Add new subdir wctype.
4991         * ctype/ctype-info.c: Add new global variable __ctype_names
4992         and initialize from _nl_C_LC_CTYPE.
4994         * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
4995         class.  Use bit 11.
4996         [_ISbit]: Protect definition of bitmasks because they are also
4997         used in wctype.h.
4999         * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
5000         after successfully pushing back a character.
5002         Fundamental changes in locale implementation.  Almost nothing
5003         from the old code is used anymore.
5004         * locale/charmap.c, locale/collate.c, locale/config.h,
5005         locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
5006         locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
5007         locale/locale.c locale/localeconv.c, locale/localedef.c,
5008         locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
5009         locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
5010         locale/numeric.c, locale/setlocale.c, locale/token.h,
5011         locale/xmalloc.c: Removed.
5013         * locale/Makefile: Update for new locale implementation with
5014         program source code distributed in subdir.
5016         * locale/categories.def, locale/iso-4217.def: Updated file
5017         for new locale implementation.
5019         * locale/langinfo.h: Updated for new locale implementation.
5020         (ERA_D_T_FMT, ERA_T_FMT): New official values according to
5021         P1003.2b/D11.
5022         (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
5023         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
5024         _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
5025         _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
5026         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
5027         _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
5028         extended LC_CTYPE and LC_COLLATE implementation.
5030         * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
5031         locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
5032         for locale related programs.
5034         * locale/C-collate.c, locale/C-ctype.c,
5035         locale/C-messages.c, locale/C-monetary.c,
5036         locale/C-numeric.c, locale/C-time.c,
5037         locale/lc-collate.c, locale/lc-ctype.c,
5038         locale/lc-messages.c, locale/lc-monetary.c,
5039         locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
5040         functions, and new generated "C" locale data.
5042         * locale/loadlocale.c: Now handles word fields in locale binary
5043         automatically by changing the endianess if necessary.
5045         * locale/localeinfo.h (LIMAGIC): Changed magic number because
5046         of incompatible changes.
5047         (locale_data): Changed definition to allow word as a value type.
5048         (coll_sort_rule): Values for collation sorting mode.
5049         (_NL_CURRENT_WORD): New macro to access word value of locale entry.
5050         (__collate_table, __collate_extra): Declare new global variables
5051         for collation tables.
5053         * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
5054         locale/programs/charmap.c, locale/programs/charset.c,
5055         locale/programs/charset.h, locale/programs/config.h,
5056         locale/programs/ctypedump.c, locale/programs/ld-collate.c,
5057         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
5058         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
5059         locale/programs/ld-time.c, locale/programs/linereader.c,
5060         locale/programs/linereader.h, locale/programs/locale.c,
5061         locale/programs/localedef.c, locale/programs/locales.h,
5062         locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
5063         locale/programs/locfile-token.h, locale/programs/locfile.c,
5064         locale/programs/locfile.h, locale/programs/stringtrans.c,
5065         locale/programs/stringtrans.h: Implementation of locale related
5066         programs.
5068         * locale/weight.h: Functions to access collation tables.
5070         * posix/unistd.h: Define _POSIX2_LOCALEDEF.
5072         * stdio-common/printf_fp.c: Fix bug with printing certain numbers
5073         < 10^-1.  Reported by Bill Metzenthen.
5075         * stdio-common/tfformat.c: Add new test for above bug.
5077         * string/strcoll.c, string/strxfrm.c: Real implementation of
5078         string collation according to ISO C.
5080         * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
5081         wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
5082         wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
5083         Implementation of wide character classes and mapping.
5085 Wed Mar 27 14:52:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5087         * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
5088         _dl_relocate_object loop.  Avoid relocating RTLD_MAP in that loop, and
5089         do it individually if necessary after _dl_sysdep_start_cleanup call.
5091         * stdlib/Makefile (mpn-routines): Add divrem.
5093 Tue Mar 26 22:54:14  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5095         * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
5096         instead of __mpn_divmod.
5098 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5100         * sysdeps/alpha/setjmp.S: Must establish global pointer before
5101         address of __sigsetjmp_aux can be loaded.
5103 Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5105         * sysdeps/i386/i586/memset.S: New file.  Highly optimized
5106         version for i586 contributed by Torbjorn Granlund.
5107         Adapted for use as bzero.
5108         * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
5109         code to implement bzero().
5111 Tue Mar 26 20:01:17 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5113         * stdlib/Makefile (mpn-routines): Remove divmod.
5115 Tue Mar 26 15:40:14 1996  Brendan Kehoe  <brendan@zen.org>
5117         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
5118         wrapped with #ifndef, to avoid config.h defining it.
5120 Mon Mar 25 13:10:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5122         * malloc/realloc.c (_realloc_internal): In case of growing large
5123         block, leave _heaplimit zero across _malloc_internal call.
5125         * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
5127 Mon Mar 25 03:35:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5129         * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
5130         table when _heaplimit==0 during realloc growing large block.
5132         * MakeTAGS (extract): Remove /dev/null from xgettext command line.
5133         (text-srcs): New variable: extract only C sources from $(tags_sources).
5134         (po/$(domain).pot): Depend on that.
5135         If it's empty, cp /dev/null $@ instead of $(extract).
5137         * misc/Makefile (headers): Add iovec.h.
5138         * sysdeps/unix/sysv/linux/iovec.h: New file.
5139         * sysdeps/generic/iovec.h: New file.
5140         * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
5142         * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
5143         AC_TRY_COMPILE.
5145         * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
5146         macros inside [! __STDC__].
5148         * stdlib/rpmatch.c: New file.
5149         * stdlib/Makefile (routines): Add rpmatch.
5150         * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
5152         * MakeTAGS (MSGJOIN): Variable removed.
5153         (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
5155 Wed Mar 20 20:08:46 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5157         * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
5159         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
5160         NO_UNDERSCORES.
5162 Thu Mar 21 11:19:15 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5164         * mach/devstream.c (input): Translate \r to \n on input.
5166 Wed Mar 20 11:28:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5168         * stdio-common/printf.h, stdio-common/printf_fp.c,
5169         stdio-common/vfprintf.c: Place const in parameter list at
5170         correct place.
5172 Wed Mar 20 23:58.12 1996  Ulrich Drepper <drepper@gnu.ai.mit.edu>
5174         * sysdeps/i386/ldbl2mpn.c: Copy of former version of
5175         sysdeps/ieee754/ldbl2mpn.c.
5176         * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
5177         Reported by Andreas Schwab.
5179 Wed Mar 20 19:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5181         * version.c: Include version.h to define RELEASE and VERSION macros.
5182         (__libc_release, __libc_version): Use them.
5183         * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
5184         use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
5185         * Make-dist (rel+vers): Snarf the macro values from version.h.
5187         * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
5188         (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
5189         pass -a for these files.
5191         * Makerules (po/%.pot): Depend on FORCE target so recursive make is
5192         always run.
5194 Mon Mar 18 22:54:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5196         * sysdeps/unix/sysv/linux/wait3.c: New file.
5197         * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
5198         one from sysdeps/posix.
5200 Wed Mar 20 09:42:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5202         * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
5204         * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
5205         lt_executable, then lt_library.
5206         * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
5208 Wed Mar 20 00:08:23 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5210         * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
5212 Tue Mar 19 16:31:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5214         * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
5215         VEOL2, VMIN, VTIME): Corrected.
5216         (PAGEOUT, WRAP, VDSUSP): Deleted.
5218 Tue Mar 19 14:18:42 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5220         * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
5221         (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
5223         * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
5225         * math/math.h: Move M_* constants before __math.h include.
5226         [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
5228         * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
5229         If log10 is not defined (i.e. no -lm), use stupid loop instead.
5231         * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
5232         and no other _*_SOURCE macro is.
5233         (_GNU_SOURCE): Don't define by default.
5234         * libc-symbols.h (_GNU_SOURCE): Define it.
5236         * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
5238         * config.make.in (weak-symbols): Variable removed.
5239         * configure.in (--with-weak-symbols): Option removed.
5240         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5241         New tests.
5243         * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
5244         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5245         New #undefs.
5246         * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
5248         * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
5250 Mon Mar  4 20:17:28 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5252         * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
5253         * inet/inet_mkadr.c: Likewise.
5254         * inet/inet_net.c: Likewise.
5255         * inet/inet_netof.c: Likewise.
5256         * inet/rcmd.c: Likewise.
5257         * inet/arpa/inet.h: Likewise.
5258         * inet/netinet/in.h: Likewise.
5259         * inet/netinet/tcp.h: Likewise.
5260         * inet/protocols/rwhod.h: Likewise.
5261         * inet/protocols/talkd.h: Likewise.
5262         * resolv/inet_addr.c: Likewise.
5264         * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
5266         * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
5268         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
5269         umount.
5271         * sysdeps/alpha/__math.h (atan, cabs): New functions.
5273         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
5274         expects set-value, not pointer to it).
5276 Sun Feb 25 22:36:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5278         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
5280         * gmon/gmon.c (__bb_head): new variable.
5281         (write_hist, write_call_graph, write_bb_counts): new functions.
5282         (_mcleanup): modified to call above functions instead of directly
5283         writing out gmon.out.
5284         * gmon/sys/gmon.h (struct __bb): New type.
5285         (struct gmonhdr): Type removed.
5286         (struct gmonparam): New member `log_hashfraction'.
5287         (GMONVERSION): Macro removed.
5289         * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
5290         sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
5291         files.
5292         * gmon/Makefile (headers): Add sys/gmon_out.h.
5293         (routines): Add bb_init_func, bb_exit_func.
5295         * gmon/mcount.c: Avoid integer division.
5297 Wed Feb 21 23:56:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5299         * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
5300         passed to match what __sigsetjmp_aux() expects.
5302 Tue Feb 20 11:33:46 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5304         * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
5305         connect, getpeername, getsockname, listen, recv, recvfrom,
5306         recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
5307         added to override same-name assembly file in the parent directory.
5309         * stdlib/stdlib.h: add include of sys/types.h in front of random
5310         etc declarations to ensure int32_t is declared.
5312         * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
5313         where 32 bit integers are required.  Also change LONG_MAX into
5314         0x7fffffff since the intent is to turn off the sign bit in a
5315         32 bit integer.
5317         * time/offtime.c (__offtime): Use Paul Eggert's code to deal
5318         with very large values for "days" (e.g., 64 bit values).
5320 Mon Feb 19 22:22:12 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5322         * stdlib/stdlib.h (__random, __random_r, random_r, struct
5323         random_data): use int32_t instead of `long int'.
5325 Sat Feb 17 11:29:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5327         * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
5329         * sysdeps/alpha/ffs.S: new file.
5331         * sysdeps/alpha/fabs.c: File removed.
5333         * time/tzfile.c (__tzfile_read): counter variable is i, *not*
5334         num_transitions!
5336         * time/offtime.c: make capable of dealing with very large (64 bit)
5337         time_t values.  Use old algorithm until a year is reached that
5338         is an integer multiple of 400, then use DAYS_PER_400_YEARS to
5339         do the remainder in a single division.
5341         * sysdeps/generic/ffs.c (ffs): fix variable declarations to
5342         be unsigned int, not unsigned long.
5344         * string/test-ffs.c (main): add test case with all upper bits
5345         set.
5347         * stdlib/tst-strtol.c: add tests cases for machines where
5348         sizeof(long)==8.
5350         * stdlib/testrand.c (main): disallow rand() to return negative
5351         integers.
5353         * stdlib/testmb.c (main): fix format to use %lx instead of %x.
5355         * stdlib/stdlib.h: on 64 bit machines, declare
5356         struct random_data, __random(),  __random_r, and random_r to
5357         return "int" instead of "long int".
5359         * stdlib/random_r.c: 64 bit machines use "int" instead of "long
5360         int".  Similarly, use INT_MAX instead of LONG_MAX.
5362         * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
5363         need to operate on "int" instead of "long int".
5365         * locale/locfile-hash.c (compute_hashval): make shifted constant
5366         a long to avoid loosing bits on 64 bit machines.
5368         * dirent/tst-seekdir.c (main): fix confusing comment; print
5369         a line to mark point where directory is rewound.
5371 Fri Feb 16 15:01:49 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5373         * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
5375 Wed Feb 14 00:21:17 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5377         * sysdeps/unix/sysv/linux/alpha/Makefile,
5378         sysdeps/unix/sysv/linux/alpha/brk.S,
5379         sysdeps/unix/sysv/linux/alpha/fpu_control.c,
5380         sysdeps/unix/sysv/linux/alpha/fpu_control.h,
5381         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
5382         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
5383         sysdeps/unix/sysv/linux/alpha/pipe.S,
5384         sysdeps/unix/sysv/linux/alpha/setfpucw.c,
5385         sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
5386         sysdeps/unix/sysv/linux/alpha/speed.c,
5387         sysdeps/unix/sysv/linux/alpha/start.S,
5388         sysdeps/unix/sysv/linux/alpha/syscall.S,
5389         sysdeps/unix/sysv/linux/alpha/syscalls.list,
5390         sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
5391         sysdeps/unix/sysv/linux/alpha/sysdep.S,
5392         sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
5394         * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
5395         address register before returning (gcc 2.7.1 doesn't do it,
5396         presumably because $26 is declared as a global variable).
5398         * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
5399         argument.
5401         * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
5402         instead of multiplication.
5404         * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
5405         currently blocked signals instead of the empty mask to ensure
5406         that execution of alarm handler occurs with none of the currently
5407         blocked signals enabled.
5409         * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
5411         * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
5412         sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
5414         * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
5415         sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
5416         sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
5417         sysdeps/alpha/strlen.S: New files.
5419         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
5420         sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
5421         sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
5422         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
5423         Removed.
5425         * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
5426         int.
5428         * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
5429         to end of function to avoid a jump across NOPs.
5431         * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
5432         pertaining to integer division/remainder routines since new code
5433         doesn't require them.
5435         * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
5436         where 32 bit quantities are consumed/stored.  Various other minor
5437         64-bit cleanups (casting).
5439         * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
5440         whether xdr_long or xdr_short should be used to encode an int.
5441         Notice that an xdr_long is 4 bytes independent of the architecture
5442         (otherwise no Alpha could interoperate with existing NFS servers,
5443         for example).  Ditto for enums.
5445         * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
5446         to 16 since it really wants 16 bytes.
5448         * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
5450         * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
5451         u_int32_t (instead of u_long).
5453         * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
5454         "buf" pointer by casting it to a char* first since a long* may be 8
5455         bytes or more and oa->oa_length may be any multiple of 4.
5457         * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
5458         since it really is testing for 32 bits.  Fixed casts to use
5459         u_int32 instead of u_long.
5460         * sunrpc/xdr_rec.c: Likewise.
5462         * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
5463         * sunrpc/rpc/auth.h: Likewise.
5465         * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
5466         for Alpha.
5468 Tue Mar 19 13:27:49 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5470         * sysdeps/i386/fpu/__math.h: New file.
5471         Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
5473 Sun Mar 17 00:28:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5475         * sysdeps/posix/clock.c: Don't multiply the return value by
5476         CLOCKS_PER_SEC or CLK_TCK.
5478 Mon Mar 18 13:20:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5480         * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
5481         scan finds no match.
5483         * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
5484         * misc/bsd-compat.c (setpgrp): New function, two arg version.
5485         * sysdeps/stub/setpgid.c: Remove setpgrp alias.
5486         * sysdeps/mach/hurd/setpgid.c: Likewise.
5487         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
5488         * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
5489         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
5490         * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
5491         * posix/setpgrp.c (setpgrp): New file.
5492         * posix/Makefile (routines): Add setpgrp.
5494         * elf/Makefile (rtld-link): New canned sequence.
5495         (ld.so, ld-linux.so.1): Use it.  Pass -soname option.
5497         * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
5499 Sun Mar 17 23:15:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5501         * sysdeps/unix/sysv/linux/tcgetpgrp.c,
5502         sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
5504 Sun Mar 17 07:19:33 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5506         * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
5507         (CFLAGS): Append -Wno-unitialized.
5509 Sat Mar 16 20:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5511         * stdlib/erand48_r.c: Use FP division by powers of two to distribute
5512         short bits into double.
5514 Sat Mar 16 20:08:22 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5516         * sysdeps/alpha/memchr.S: New file.
5517         * sysdeps/alpha/memchr.c: Obsolete file removed.
5518         * string/tester.c: Soup up memchr tests.
5520 Sat Mar 16 16:26:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5522         * misc/Makefile (headers): Add sysexits.h.
5523         * misc/sysexits.h: New file.
5525 Thu Mar 14 15:20:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5527         * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
5528         call to __atan.
5529         * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
5530         call to __atanf.
5532         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
5533         sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
5534         sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
5535         sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
5536         sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
5537         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
5538         sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
5539         sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
5540         sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
5541         sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
5542         sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
5543         sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
5544         sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
5545         sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
5546         sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
5547         sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
5548         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
5549         sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
5550         sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
5551         sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
5552         sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
5553         sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
5554         sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
5555         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
5556         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
5557         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
5558         sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
5559         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
5560         sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
5561         sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
5562         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
5563         sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
5564         sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
5565         sysdeps/m68k/fpu/s_significand.c,
5566         sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
5567         sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
5568         sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
5569         sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
5571         * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
5573         * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
5574         * sysdeps/m68k/fpu/isnanl.c: Likewise.
5576 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5578         * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
5579         calculation to include trailing invariant portion.  Don't use alloca;
5580         instead use a dynamic auto array for GCC, malloc for non-GCC.
5581         Handle nested braces properly.
5583         * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
5585         * libc-symbols.h (lint): New macro.
5587 Fri Mar 15 01:18:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5589         * libio/iosetvbuf.c: Add weak alias setvbuf.
5591 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5593         * string/strnlen.c: New file.
5594         * string/Makefile (routines): Add strnlen.
5595         * string/string.h [__USE_GNU] (strnlen): Declare new function.
5596         [__OPTIMIZE__]: Define extern inline implementation of it.
5598         * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
5599         addition, to avoid using anything from -lm.
5601 Mon Mar  4 21:57:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5603         * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
5605         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
5606         (CALL_MCOUNT): New macro, empty unless [PROF].
5607         (ENTRY): Do CALL_MCOUNT just after the label.
5608         (JUMPTARGET): New macro.
5609         (SYSCALL_ERROR_HANDLER): Fix syntax.
5611 Thu Mar 14 04:20:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5613         * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
5614         function instead of using inline asm i386 syscall.
5615         * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
5617         * posix/unistd.h [__USE_BSD]: Declare usleep.
5619 Tue Mar 12 04:57:57 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5621         * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
5622         (fcvt, ecvt): Use it for buffer size.
5624         * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
5625         conditionalizing long vs long long.
5627         * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
5628         pointers; never return EFAULT.
5629         * stdlib/drand48_r.c (drand48_r): Likewise.
5630         * stdlib/erand48_r.c (erand48_r): Likewise.
5632         * setjmp/Makefile (tests): Add jmpbug.
5633         * setjmp/jmpbug.c: New file.
5635 Tue Mar 12 04:42:01 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5637         * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
5638         * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
5639         * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
5640         `restore' until the target frame is hit.
5642 Sun Mar 10 20:29:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5644         * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
5645         * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
5646         s_sigsuspend.
5648 Thu Mar  7 21:30:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5650         * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
5651         left side of sed substitutions.
5653 Sun Mar 10 16:58:10 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5655         * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
5656         is not available anymore.  Do it ourselves.
5658         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
5659         Correct GCC `asm' syntax.
5661 Tue Mar 12 03:15:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5663         * stdio-common/Makefile (tests): Add tst-ungetc.
5664         * stdio-common/tst-ungetc.c: New test from drepper.
5665         * stdio-common/tstscanf.c (main): New %[ test case from drepper.
5667         * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
5668         somehow this was missed, though the weak alias is already there.
5670         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
5671         default to double precision, all interrupts masked; fdlibm requires.
5673 Sat Mar  9 18:44:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5675         * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
5677 Fri Mar  8 22:16:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5679         * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
5681 Tue Mar  5 18:45:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5683         * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
5684         final loop.
5686 Mon Mar  4 20:54:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5688         * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
5690 Tue Mar  5 12:14:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5692         * sysdeps/mach/hurd/select.c (__select): Also don't fault just
5693         because some fdmask is 0.
5695 Mon Mar  4 17:35:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5697         * sysdeps/mach/hurd/select.c (__select):
5698         Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
5699         Don't return without frobbing the bitmasks after a timeout.
5700         When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
5702 Mon Mar  4 17:35:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5704         * hurd/catch-signal.c (hurd_safe_memmove): New function.
5705         (hurd_safe_copyin, hurd_safe_copyout): New functions.
5706         * hurd/hurd/sigpreempt.h: Declare them.
5708 Sun Mar  3 08:43:44 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5710         Replace math code with fdlibm from Sun as modified for netbsd by
5711         JT Conklin and Ian Taylor, including x86 FPU support.
5712         * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
5713         * math/math_private.h: New file.
5714         * sysdeps/i386/fpu/Implies: New file.
5715         * sysdeps/ieee754/Implies: New file.
5716         * math/machine/asm.h, math/machine/endian.h: New files.
5717         * math/Makefile, math/math.h: Rewritten.
5718         * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
5719         * math/finite.c: File removed.
5720         * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
5722         * math/test-math.c: Include errno.h and string.h.
5724         * sysdeps/unix/bsd/dirstream.h: File removed.
5725         * sysdeps/unix/bsd/readdir.c: File removed.
5727 Sat Mar  2 16:35:40 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5729         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
5730         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
5731         removed.
5732         * sysdeps/generic/profil-counter.h: New file.
5734 Fri Mar  1 17:11:59 1996  Brendan Kehoe  <brendan@zen.org>
5736         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
5737         including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
5738         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
5739         same as linux/m68k/profil-counter.h except the comment.
5741 Fri Mar  1 10:09:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5743         * stdlib/Makefile (mpn-stuff): New target.
5744         (copy-mpn): Use it.
5746         * Code copied from GMP updated to 1.937 version.
5747         * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
5749         * posix/glob.c: Use canonical code from autoconf manual for dirent
5750         include.
5751         [_D_NAMLEN]: Redefine NAMLEN using this.
5752         (glob_in_dir): Use NAMLEN macro.
5754         * sysdeps/posix/profil.c: New file.
5756 Thu Feb 29 20:55:57 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5758         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
5760 Tue Feb 27 12:14:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5762         * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
5763         `extern' keyword.
5765         * time/strftime.c: Support - and _ flags to affect number padding.
5767         * sysdeps/unix/common/tcsendbrk.c: New file.
5769 Mon Feb 26 10:22:30 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5771         * sysdeps/unix/dirstream.h: Rewritten.
5772         * sysdeps/unix/readdir.c: Rewritten.
5773         * sysdeps/unix/telldir.c: Rewritten.
5774         * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
5775         Remove __ from DIR struct member names.
5776         * sysdeps/unix/dirfd.c: Likewise.
5777         * sysdeps/unix/seekdir.c: Likewise.
5778         * sysdeps/unix/rewinddir.c: Likewise.
5779         * sysdeps/unix/opendir.c: Likewise.  Don't allocate extra space after
5780         DIR structure.
5781         * sysdeps/stub/direct.h: File removed.
5782         * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
5783         * sysdeps/unix/bsd/direct.h: File removed.
5784         * sysdeps/unix/common/direct.h: File removed.
5785         * sysdeps/unix/sysv/irix4/direct.h: File removed.
5786         * sysdeps/unix/sysv/isc3/direct.h: File removed.
5787         * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
5788         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
5789         * sysdeps/unix/common/direntry.h: New file.
5790         * sysdeps/unix/bsd/direntry.h: New file.
5791         * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
5792         * sysdeps/unix/sysv/direntry.h: New file.
5793         * sysdeps/stub/direntry.h: New file.
5794         * dirent/dirent.h (struct dirent): Type removed.  Include <direntry.h>
5795         to define it.
5796         (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
5797         * dirent/Makefile (headers): Add direntry.h.
5798         (distribute): Remove direct.h.
5799         * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
5800         * dirent/scandir.c: Likewise.
5801         * io/fts.c (fts_build): Likewise.
5802         * io/ftw.c (ftw_dir): Likewise.
5803         * sysdeps/posix/ttyname.c: Likewise.
5805         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
5807         * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
5808         (collector_timeout): New static variable.
5809         (update_waiter): Actually call __task_enable_pc_sampling.
5810         Set collector_timeout based on the `tick' count returned.
5811         (profile_waiter): Use MAX_PC_SAMPLES.  Set nsamples before RPC.
5812         Use collector_timeout in __mach_msg call.
5814         * gmon/Makefile (noprof): New variable containing mcount.
5815         Append profil unless it is in $(unix-syscalls).
5816         (mcount.po): Use $(noprof) for list of targets in this rule.
5818         * libc-symbols.h: Define _LIBC before #include <config.h>.
5820 Sun Feb 25 12:29:23 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5822         * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
5823         Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
5825         * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
5827 Fri Feb  9 12:40:19 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
5829         * libio/cleanup.c (_IO_cleanup_registration_needed)
5830         [!_G_HAVE_ATEXIT]: Init to NULL.
5831         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
5833 Thu Feb  8 08:12:50 1996  Brendan Kehoe  <brendan@cygnus.com>
5835         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
5836         previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
5838 Wed Feb  7 15:10:17 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
5840         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
5841         extern.
5843 Sat Feb 24 11:34:13 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5845         * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
5847         * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
5849 Wed Feb 21 02:25:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5851         * Rules (others): Depend on $(extra-objs), $(install-lib),
5852         $(install-bin), $(install-sbin), in object directory.
5854         * Makeconfig (link-libc): Don't pass -rpath option with default
5855         path, since ld.so should use the same default.
5856         * Makerules (build-shlib): Likewise.
5858         * Makerules (make-target-directory): Use mkinstalldirs.
5860         * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
5861         redefine ENTRY et al.
5863         * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
5864         Macros removed.  The code in unix/i386/sysdep.h should now suffice.
5866         * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
5867         [HAVE_ELF] and not.
5868         (ENTRY): Use it in .align directive.
5869         (CALL_MCOUNT): New macro, empty unless [PROF].
5870         (ENTRY): Do CALL_MCOUNT just after the label.
5872         * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
5873         code can call mcount.
5875 Tue Feb 20 23:05:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5877         * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
5878         translation markings are now integrated in his distribution.
5880         * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
5882 Mon Feb 19 18:31:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5884         * po: New directory where `LANG.po' files for message translations
5885         will reside.
5886         * po/SYS_libc.pot: New file, template of message strings as in source.
5887         * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
5888         the source using xgettext.
5889         * Makerules ($(..)po/%.pot): New rule.
5890         * manual/Makefile (../po/manual.pot): New target, make it empty.
5892         * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
5893         * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
5894         * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
5895         * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
5896         * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
5898         * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
5899         Updated from ADO 96d.
5901 Sun Feb 18 14:08:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5903         * csu/initfini.c (_init): Remove bogus volatile declarations and
5904         extra variable, take the address of __gmon_start__ only implicitly
5905         to avoid the test being optimized out.
5907 Sun Feb 18 15:08:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5909         * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
5910         sec.
5912 Sun Feb 18 13:56:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5914         * elf/Makefile, time/Makefile: Make `all' the default target.
5916 Mon Feb 19 18:09:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5918         * misc/sys/ptrace.h: Moved to ...
5919         * sysdeps/generic/sys/ptrace.h: ... here.
5920         * sys/ptrace.h: File removed.
5922 Sun Feb 18 12:13:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5924         * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
5926         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
5927         so that the symbol alias works.
5929         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
5931         * sysdeps/unix/sysv/linux/resourcebits.h: New file.
5933         * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
5935         * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
5936         getppid and reboot.
5938         * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
5939         use getdtablesize.
5941 Sat Feb 17 10:30:21 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
5943         * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
5944         sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
5945         sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
5946         to `long' where necessary.
5948 Thu Feb 15 20:04:50 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5950         * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
5951         * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
5952         to correctly access MPN array depending on architecture.
5954 Mon Feb 19 15:30:26 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5956         * stdio-common/tstscanf.c (main): Add check for "0" as %d.
5958         * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
5959         Only some systems have three args; let them define their own stub.
5961         * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
5963         * sysdeps/generic/machine-gmon.h: New file.
5964         * gmon/Makefile (distribute): Add machine-gmon.h.
5965         * gmon/mcount.c: Undo changes of Feb 13.
5966         Include "machine-gmon.h".
5968 Sun Feb 18 13:24:06 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5970         * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
5971         identical to unix/common/direct.h.
5973         * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
5975         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
5977         * stdio-common/Makefile (tests): Remove scanf6.
5979         * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
5981         * time/mktime.c (mktime): Move static variable localtime_offset to
5982         file scope.
5984         * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
5985         base indicator.
5987 Thu Feb 15 16:56:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5989         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
5990         (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
5991         (_dl_runtime_resolve): Save %a1 as well.
5992         (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
5993         (elf_machine_relplt): Define.
5995         * elf/dl-runtime.c: Include possible extra args in declaration of
5996         fixup.
5998 Fri Feb 16 11:01:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6000         * time/tzset.c: Limit hours to 23, not 12.  From jaffer.
6002 Fri Feb 16 10:14:05 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6004         * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
6006 Thu Feb 15 13:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6008         * mach/Machrules: Use -include for $(*.ir).
6010         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
6011         request values.
6012         * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
6013         (_IOT_COUNT2): Field is 3 bits, not 2.
6014         * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
6015         * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
6016         bits before looking up handler.
6017         (fioctl): Use __hurd_dfail.
6018         (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
6020 Thu Feb 15 11:49:45 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6022         * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
6023         (sysdep_routines): Don't add sys-sig.
6025         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6027 Wed Feb 14 00:21:17 1996 David Mosberger-Tang  <davidm@azstarnet.com>
6029         * sysdeps/alpha/memchr.c (memchr): loop searching for matching
6030         character bailed out one too early; changed constant 6 to
6031         7 to fix this.
6033 Wed Feb 14 01:08:58 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6035         * posix/execvp.c: When executing shell on script, first arg is
6036         full file name, not argv[0].
6038         * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
6039         * mach/Machrules [no_deps]: Inhibit interface rules.
6041         * malloc/Makefile (distribute): Removed TODO.
6043 Tue Feb 13 05:12:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6045         * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
6046         caller column.
6048         * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
6050         * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
6052         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
6053         (sysdep_routines): Append setfpucw.
6054         (extra-objs): Append ieee-fpucw.o.
6055         (install-lib): Append libieee.a.
6056         (libieee.a): New target.
6057         * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
6058         * sysdeps/unix/sysv/linux/i386/fpu_control.h
6059         (_FPU_GETCW, _FPU_SETCW): New macros.
6060         (fpu_control_t): New typedef.
6061         (__setfpucw): Use fpu_control_t for argument type.
6062         * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
6064         * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
6066         * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
6067         * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
6069 Sat Feb 10 13:09:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6071         * sysdeps/unix/sysv/linux/m68k/brk.c,
6072         sysdeps/unix/sysv/linux/m68k/mmap.S,
6073         sysdeps/unix/sysv/linux/m68k/select.S,
6074         sysdeps/unix/sysv/linux/m68k/sigcontext.h,
6075         sysdeps/unix/sysv/linux/m68k/sigreturn.S,
6076         sysdeps/unix/sysv/linux/m68k/socket.S,
6077         sysdeps/unix/sysv/linux/m68k/syscall.S,
6078         sysdeps/unix/sysv/linux/m68k/sysdep.S,
6079         sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
6081         * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
6083         * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
6084         sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
6086         * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
6087         MAP_FILE if not already defined.
6089         * elf/elf.h: Add m68k reloc definitions.
6090         * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
6092 Tue Feb 13 00:12:12 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6094         * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
6095         this macro declare extra leading args.
6097         * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
6099         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
6100         elf_machine_relplt): New macros.
6101         * elf/dl-runtime.c: New file.
6102         * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
6104         * gmon/Makefile (headers): Remove machine-gmon.h.
6105         * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
6106         * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
6107         the asm name.
6108         (_mcount): Define normally, taking no args.
6109         Use __builtin_return_address to fetch PC values of caller and caller's
6110         caller.
6112         * Makerules: Rewrote rules to update libc archives of all flavors.
6113         Define separate specific rules for each flavor using o-iterator.
6115         * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
6117 Sat Feb 10 11:35:16 1996 Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6119         * Makerules (ar-symtab-name): New macro.  Replace all occurences
6120         of __.SYMDEF by $(ar-symtab-name).
6121         * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
6123 Mon Feb 12 03:10:41 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6125         * Makefile (configure, %/configure): Depend on aclocal.m4.
6126         * Make-dist (configure, %/configure): Likewise.
6128         * sysdeps/unix/Makefile: Include s-proto.d for its deps.
6130         * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
6131         only needed in the implementation, not for any users.
6133         * time/northamerica: Updated from ADO 96c, new rules for Mexico in
6134         1996.
6136         * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
6137         * sunrpc/pm_getmaps.c: Likewise.
6139         * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
6140         so real syscalls override unix/sysv/*.c on sysv-derived systems
6141         that have them.
6142         * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
6143         override unix/sysv/settimeofday.c since that overrides
6144         unix/syscalls.list.
6146         * Makeconfig (+link): Put $(link-libc) after deps from $^,
6147         regardless of where libc.a appears in the deps.
6149         * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
6150         Add __waitid.
6151         * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
6152         Define __ name for sigprocmask.
6153         * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
6154         Add getsysinfo.
6155         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
6156         * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
6157         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
6158         * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
6159         Add getdents, wait3, waitpid.
6160         * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
6161         settimeofday, sigsuspend, sstk, utimes.
6162         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6163         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6164         * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
6165         Removed sigtramp.
6166         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
6167         * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
6168         * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
6169         * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
6170         * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
6171         * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
6172         * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
6173         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6174         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
6175         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6176         * sysdeps/unix/sysv/irix4/wait3.S: File removed.
6177         * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
6178         * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
6179         * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
6180         * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
6181         * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
6182         * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
6184         * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
6185         FORWARD_SIGEXC to one.  Uncomment setting of thread exc port, and
6186         move it to last thing.
6188 Sat Feb 10 05:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6190         * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
6192         * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
6194 Sat Feb 10 04:18:48 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6196         * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
6197         the file.
6199 Fri Feb  9 11:46:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6201         * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
6202         CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
6204         * hurd/Makefile (user-interfaces): Added hurd/tioctl.
6206 Thu Feb  8 18:55:27 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6208         * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
6210 Wed Feb  7 18:48:30 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6212         * Makefile (subdirs): Added wcsmbs.
6213         * wcsmbs: New directory of wide char/multibyte char functions from
6214         drepper.
6216         * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
6217         * hurd/report-wait.c: New file.
6218         * hurd/Makefile (routines): Added report-wait.
6220         * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
6222         * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
6223         New type.
6224         (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
6225         * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
6226         Structure moved to intr-msg.h; include that.
6228         * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
6229         (CFLAGS-scheck.c): New variable.
6231         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
6232         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
6233         __hurd_threadvar_stack_mask): New variables.
6235         * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
6236         its new message port.
6238         * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
6240         * configure.in (uname): Add quoting.
6242         * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
6243         * hurd/fchroot.c: Likewise.
6245         * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
6246         __attribute__ ((__mode__ (__XX__))).
6248 Wed Feb 7 03:24:05 1996 Torbjorn Granlund  <tege@tmg.se>
6250         * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
6251         destination cache lines.
6252         (WORD_COPY_BWD): Likewise.
6254 Wed Feb  7 14:16:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6256         * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
6257         file name first thing, before $(native-compile) changes directories.
6259         From Gord Matzigkeit <gord@enci.ucalgary.ca>:
6260         * sysdeps/unix/make_errlist.c: Use strerror if available.
6261         * sysdeps/unix/configure.in: New file
6263         * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
6264         * sysdeps/unix/bsd/sun/sigvec.S: File removed.
6266         * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
6267         * sysdeps/stub/connect.c: Likewise.
6268         * sysdeps/stub/bind.c: Likewise.
6270         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
6271         "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
6272         another dir_lookup of "".
6274 Tue Feb  6 12:46:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6276         * libc-symbols.h (weak_alias, weak_symbol): added definitions
6277         for ECOFF (HAVE_ECOFF).
6279 Fri Feb  2 13:09:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6281         * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
6283 Wed Jan 31 20:08:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6285         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
6286         when cancelled before RPC.
6288 Tue Jan 30 13:32:05 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6290         * dirent/scandir.c: Allocate dirents with correct size for name, and
6291         copy with correct size.
6293         * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
6295         * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
6296         flag bits.
6297         (__vfscanf): Fix checking of extra type modifiers.
6299         * time/asia, time/australasia, time/backward: Updated from ADO 96b.
6301 Tue Jan 30 12:17:26 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
6303         * stdlib/strtod.c: Only negate exponent when there really is one.
6305         * stdio-common/vfscanf.c: Accept type modifiers on %n.
6306         Fix FP number parsing.
6308 Mon Jan 29 21:53:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6310         * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
6312         * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
6314 Mon Jan 29 16:29:16 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6316         * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
6317         include an increment for each operation allowed on each fd.
6319 Mon Jan 29 11:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6321         * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
6323         * Makefile: Use -include for sysd-dirs.
6325         * configure.in (uname): Check for uname in syscalls.list files.
6326         * sysdeps/unix/sysv/syscalls.list: Remove uname.
6327         * sysdeps/unix/syscalls.list: Add uname.
6329         * stdlib/strtol.c (weak1): New macro, to get the right name declared
6330         weak.
6332         * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
6334         * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
6335         (dbm_open): Use dynamic allocation for file name buffer, instead of
6336         limitting its size to MAXPATHLEN.
6338         * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
6339         buffer, instead of limitting its size to MAXPATHLEN.
6341         * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
6342         * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
6344 Sun Jan 28 19:42:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6346         * time/Makefile: Fix check for cross compiling.
6348 Thu Jan 25 21:10:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6350         * db/Makefile (subdir-dirs): Renamed from dbdirs.
6352         * Makerules (distinfo-vars): Add subdir-dirs.
6354         * MakeTAGS: Remove vpath directives.
6355         (all-dirs): Prepend $(subdir-dirs).
6356         (all-sources, all-headers): Use wildcard to find sources.
6358 Mon Jan 29 10:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6360         * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
6361         variables.
6363         * mach/msgserver.c: Declare DEMUX arg with prototype.
6365 Sun Jan 28 17:25:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6367         * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
6368         make C++ happy.
6369         * alpha/jmp_buf.h: Likewise.
6370         * m68k/jmp_buf.h: Likewise.
6371         * mips/jmp_buf.h: Likewise.
6372         * sparc/jmp_buf.h: Likewise.
6373         * vax/jmp_buf.h: Likewise.
6375         * sysdeps/generic/memmem.c: Fix return value in case where
6376         NEEDLE_LEN==0.
6378         * hurd/hurdlookup.c (__file_name_lookup_under,
6379         __file_name_lookup): Restrict mode with umask.
6380         * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
6381         * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
6383 Fri Jan 26 12:20:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6385         * stdlib/strtol.c: Undo last change.  ANSI C changed since the
6386         draft I checked yesterday.  Sigh.
6388 Thu Jan 25 18:58:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6390         * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
6392 Wed Jan 24 03:22:07 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6394         * malloc/mcheck.c (mabort): Declare prototype.
6396         * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
6398         * Makerules: Use -include for generated makefiles.
6400         * errno.h: Don't declare errno if it's defined as a macro.
6402         * stdio-common/vfscanf.c: Disallow l flag after ll or L.
6404         * stdio-common/Makefile (tests): Add scanf[1-9].
6405         * stdio-common/scanf[1-9].c: New files.  Bug tests from hjl.
6407 Wed Jan 24 04:18:36 1996  Paul Eggert  <eggert@twinsun.com>
6409         * strftime.c (strftime):
6410         When invoking self, check whether the subsidiary invocation failed.
6411         Use "???" (not "") to denote unknown time zone information.
6413         Make this source file portable to standalone contexts (e.g. GNU Emacs).
6414         <config.h>: Include if HAVE_CONFIG_H is defined.
6415         (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
6416         defined if _LIBC or if <config.h> defines them.
6417         <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
6418         <sys/types.h>: New include; some hosts require it for `time_t'.
6419         <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
6420         <limits.h>: Include only if HAVE_LIMITS_H.
6421         <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
6422         (memcpy): Define in terms of bcopy if !STDC_HEADERS.
6423         (__P, PTR): Define if not already defined.
6424         (__tzname, __daylight, __timezone): Remove macros; no longer needed.
6425         (add, strftime): Don't use NULL, for portability to some weird hosts.
6426         (fmt): If !_LIBC, don't assume sprintf returns a count.
6427         (week, strftime): Use old-style function declarations.
6428         (weekday_name, month_name): New constants.
6429         (strftime): Use traditional C values if locale support isn't available.
6430         Use `const' instead of CONST.  For time zones, use tm_zone if
6431         possible, then fall back on tzname.  Don't check for multibyte
6432         characters unless mblen is supported.  Use formats like %02d instead
6433         of %.2d, for portability to older hosts.
6435 Wed Jan 24 00:07:52 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6437         * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
6438         (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
6439         Fix bug in recognition of %ll flag for long long.
6440         Fix overeager checks for conflicting type modifiers.
6441         With ' flag, match thousands separators for decimal numbers.
6443 Tue Jan 23 22:02:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6445         * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
6447         * resolv/Makefile (CFLAGS): Disable some warnings.
6449         * sysdeps/generic/Makefile (elided-routines): Removed hypot.
6450         (+gccwarn): Set with override.
6452         * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
6454         * posix/Makefile (CFLAGS-regex.c): New variable.
6456         * malloc/Makefile (CFLAGS-obstack.c): New variable.
6458         * io/Makefile (CFLAGS-fts.c): New variable.
6459         * io/fts.c (fts_open): Use prototypes for COMPAR decl.
6461 Tue Jan 23 21:35:32 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6463         * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
6464         case is '\0'-terminated.
6466 Tue Jan 23 19:49:54 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6468         * elf/rtld.c (dl_main): Support additional args in --list mode for
6469         debugging: look them up as symbol names and print values.
6471         * misc/getttyent.c (skip, value): Declare with prototypes in file
6472         scope.
6474         * csu/initfini.c (_init): Explicitly set a variable that is
6475         pointer to volatile with the address of __gmon_start__, to avoid
6476         the test being optimized out.
6478 Mon Jan 22 10:40:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6480         * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
6482         * io/fts.h (FTSENT): Define fts_compar member with prototype.
6484         * hurd/hurd.h: Use prototype in getcttyid decl.
6486         * stdlib/l64a.c: Fix typo in last change.
6488         * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
6489         for determining size of types.
6490         * stdlib/srand48_r.c: Likewise.
6492         * misc/utmp.h: Declare login, logout, logwtmp.
6493         * misc/logout.c: Declare argument as pointer to const.
6494         * misc/login.c: Likewise.
6495         * misc/logwtmp.c: Likewise.
6496         Include time.h, string.h.
6498         * misc/efgcvt_r.c: Include stdlib.h.
6500         * io/mknod.c: Include sys/types.h.
6502         * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
6504         * csu/gmon-start.c (_start, etext): Declare with prototypes.
6506         * stdio-common/vfscanf.c (%[): Fix range handling.
6508 Sun Jan 21 00:55:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6510         * misc/Makefile (headers): Rename queue.h to sys/queue.h.
6511         * misc/queue.h: Moved to misc/sys/queue.h.
6513         * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
6514         sys/sem.h.
6516         * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
6518         * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
6519         literal byte values.
6521         * misc/bsd-compat.c (getpgrp): Define with prototype.
6523         * misc/init-misc.c (__progname_full): New variable.
6524         (program_invocation_name, program_invocation_short_name): New aliases.
6525         (__init_misc): Define with prototype.  Set __progname_full.
6526         * misc/progname.c: File removed.
6527         * misc/Makefile (aux): Remove progname.
6529         * misc/hsearch_r.c (isprime): Define with prototype.
6531         * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
6532         * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
6533         * sysdeps/unix/bsd/setegid.c: Likewise.
6535 Fri Jan 19 13:28:59 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6537         * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
6538         __tcdrain.
6540         * posix/glob.c (glob): Use prototype in getlogin decl.
6542         * db/ndbm.h: Declare dbm_error, dbm_clearerr.
6543         * db/db/db.c (__dberr): Define with prototype.
6544         (__dbpanic): Use prototypes in casts.
6545         * db/hash/hash_log2.c: Add prototype decl.
6547         * sysdeps/generic/_strerror.c (_strerror_internal): Define with
6548         prototype.
6550         * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
6551         They will be overridden with syscalls if extant by unix/syscalls.list.
6553         * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
6555         * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
6556         * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
6558 Thu Jan 18 00:32:43 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6560         * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
6562         * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
6563         get args.
6565         * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
6566         defines GNU extensions.
6567         * posix/fnmatch.c: Likewise.
6569         Replaced all simple system call files *.S throughout sysdeps/unix
6570         with syscalls.list files to be processed by make-syscalls.sh.
6571         * sysdeps/unix/s-proto.S: New file.
6572         * sysdeps/unix/syscalls.list: New file.
6573         * sysdeps/unix/bsd/syscalls.list: New file.
6574         * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
6575         * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
6576         * sysdeps/unix/bsd/osf/syscalls.list: New file.
6577         * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
6578         * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
6579         * sysdeps/unix/bsd/sun/syscalls.list: New file.
6580         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
6581         * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
6582         * sysdeps/unix/common/syscalls.list: New file.
6583         * sysdeps/unix/inet/syscalls.list: New file.
6584         * sysdeps/unix/mman/syscalls.list: New file.
6585         * sysdeps/unix/sysv/syscalls.list: New file.
6586         * sysdeps/unix/sysv/irix4/syscalls.list: New file.
6587         * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
6588         * sysdeps/unix/sysv/linux/syscalls.list: New file.
6589         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
6590         * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
6591         * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
6592         * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
6593         * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
6594         * sysdeps/unix/acct.S: File removed.
6595         * sysdeps/unix/chdir.S: File removed.
6596         * sysdeps/unix/chmod.S: File removed.
6597         * sysdeps/unix/chown.S: File removed.
6598         * sysdeps/unix/chroot.S: File removed.
6599         * sysdeps/unix/close.S: File removed.
6600         * sysdeps/unix/configure: File removed.
6601         * sysdeps/unix/configure.in: File removed.
6602         * sysdeps/unix/dup.S: File removed.
6603         * sysdeps/unix/fcntl.S: File removed.
6604         * sysdeps/unix/fsync.S: File removed.
6605         * sysdeps/unix/getgid.S: File removed.
6606         * sysdeps/unix/getpid.S: File removed.
6607         * sysdeps/unix/getuid.S: File removed.
6608         * sysdeps/unix/ioctl.S: File removed.
6609         * sysdeps/unix/kill.S: File removed.
6610         * sysdeps/unix/link.S: File removed.
6611         * sysdeps/unix/lseek.S: File removed.
6612         * sysdeps/unix/open.S: File removed.
6613         * sysdeps/unix/ptrace.S: File removed.
6614         * sysdeps/unix/read.S: File removed.
6615         * sysdeps/unix/reboot.S: File removed.
6616         * sysdeps/unix/setgid.S: File removed.
6617         * sysdeps/unix/setuid.S: File removed.
6618         * sysdeps/unix/sync.S: File removed.
6619         * sysdeps/unix/umask.S: File removed.
6620         * sysdeps/unix/unlink.S: File removed.
6621         * sysdeps/unix/write.S: File removed.
6622         * sysdeps/unix/bsd/flock.S: File removed.
6623         * sysdeps/unix/bsd/getdtsz.S: File removed.
6624         * sysdeps/unix/bsd/getpagesize.S: File removed.
6625         * sysdeps/unix/bsd/killpg.S: File removed.
6626         * sysdeps/unix/bsd/profil.S: File removed.
6627         * sysdeps/unix/bsd/readv.S: File removed.
6628         * sysdeps/unix/bsd/settimeofday.S: File removed.
6629         * sysdeps/unix/bsd/sigblock.S: File removed.
6630         * sysdeps/unix/bsd/sigpause.S: File removed.
6631         * sysdeps/unix/bsd/sigsetmask.S: File removed.
6632         * sysdeps/unix/bsd/sigstack.S: File removed.
6633         * sysdeps/unix/bsd/sigvec.S: File removed.
6634         * sysdeps/unix/bsd/utimes.S: File removed.
6635         * sysdeps/unix/bsd/writev.S: File removed.
6636         * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
6637         * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
6638         * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
6639         * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
6640         * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
6641         * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
6642         * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
6643         * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
6644         * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
6645         * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
6646         * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
6647         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
6648         * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
6649         * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
6650         * sysdeps/unix/bsd/osf/msync.S: File removed.
6651         * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
6652         * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
6653         * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
6654         * sysdeps/unix/bsd/sun/getdents.S: File removed.
6655         * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
6656         * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
6657         * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
6658         * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
6659         * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
6660         * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
6661         * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
6662         * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
6663         * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
6664         * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
6665         * sysdeps/unix/common/access.S: File removed.
6666         * sysdeps/unix/common/adjtime.S: File removed.
6667         * sysdeps/unix/common/dup2.S: File removed.
6668         * sysdeps/unix/common/fchmod.S: File removed.
6669         * sysdeps/unix/common/fchown.S: File removed.
6670         * sysdeps/unix/common/ftruncate.S: File removed.
6671         * sysdeps/unix/common/getgroups.S: File removed.
6672         * sysdeps/unix/common/getitimer.S: File removed.
6673         * sysdeps/unix/common/getpgid.S: File removed.
6674         * sysdeps/unix/common/getpriority.S: File removed.
6675         * sysdeps/unix/common/getrlimit.S: File removed.
6676         * sysdeps/unix/common/getrusage.S: File removed.
6677         * sysdeps/unix/common/gettimeofday.S: File removed.
6678         * sysdeps/unix/common/mkdir.S: File removed.
6679         * sysdeps/unix/common/readlink.S: File removed.
6680         * sysdeps/unix/common/rename.S: File removed.
6681         * sysdeps/unix/common/rmdir.S: File removed.
6682         * sysdeps/unix/common/select.S: File removed.
6683         * sysdeps/unix/common/setgroups.S: File removed.
6684         * sysdeps/unix/common/setitimer.S: File removed.
6685         * sysdeps/unix/common/setpgid.S: File removed.
6686         * sysdeps/unix/common/setpriority.S: File removed.
6687         * sysdeps/unix/common/setregid.S: File removed.
6688         * sysdeps/unix/common/setreuid.S: File removed.
6689         * sysdeps/unix/common/setrlimit.S: File removed.
6690         * sysdeps/unix/common/swapon.S: File removed.
6691         * sysdeps/unix/common/symlink.S: File removed.
6692         * sysdeps/unix/common/truncate.S: File removed.
6693         * sysdeps/unix/common/vhangup.S: File removed.
6694         * sysdeps/unix/inet/accept.S: File removed.
6695         * sysdeps/unix/inet/bind.S: File removed.
6696         * sysdeps/unix/inet/connect.S: File removed.
6697         * sysdeps/unix/inet/gethostid.S: File removed.
6698         * sysdeps/unix/inet/gethostname.S: File removed.
6699         * sysdeps/unix/inet/getpeername.S: File removed.
6700         * sysdeps/unix/inet/getsockname.S: File removed.
6701         * sysdeps/unix/inet/getsockopt.S: File removed.
6702         * sysdeps/unix/inet/listen.S: File removed.
6703         * sysdeps/unix/inet/recv.S: File removed.
6704         * sysdeps/unix/inet/recvfrom.S: File removed.
6705         * sysdeps/unix/inet/recvmsg.S: File removed.
6706         * sysdeps/unix/inet/send.S: File removed.
6707         * sysdeps/unix/inet/sendmsg.S: File removed.
6708         * sysdeps/unix/inet/sendto.S: File removed.
6709         * sysdeps/unix/inet/sethostid.S: File removed.
6710         * sysdeps/unix/inet/sethostname.S: File removed.
6711         * sysdeps/unix/inet/setsockopt.S: File removed.
6712         * sysdeps/unix/inet/shutdown.S: File removed.
6713         * sysdeps/unix/inet/socket.S: File removed.
6714         * sysdeps/unix/inet/socketpair.S: File removed.
6715         * sysdeps/unix/mman/madvise.S: File removed.
6716         * sysdeps/unix/mman/mmap.S: File removed.
6717         * sysdeps/unix/mman/mprotect.S: File removed.
6718         * sysdeps/unix/mman/msync.S: File removed.
6719         * sysdeps/unix/mman/munmap.S: File removed.
6720         * sysdeps/unix/sysv/alarm.S: File removed.
6721         * sysdeps/unix/sysv/ftime.S: File removed.
6722         * sysdeps/unix/sysv/nice.S: File removed.
6723         * sysdeps/unix/sysv/pause.S: File removed.
6724         * sysdeps/unix/sysv/poll.S: File removed.
6725         * sysdeps/unix/sysv/s_getdents.S: File removed.
6726         * sysdeps/unix/sysv/signal.S: File removed.
6727         * sysdeps/unix/sysv/stime.S: File removed.
6728         * sysdeps/unix/sysv/time.S: File removed.
6729         * sysdeps/unix/sysv/times.S: File removed.
6730         * sysdeps/unix/sysv/ulimit.S: File removed.
6731         * sysdeps/unix/sysv/uname.S: File removed.
6732         * sysdeps/unix/sysv/utime.S: File removed.
6733         * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
6734         * sysdeps/unix/sysv/irix4/msync.S: File removed.
6735         * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
6736         * sysdeps/unix/sysv/irix4/signal.S: File removed.
6737         * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
6738         * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
6739         * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
6740         * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
6741         * sysdeps/unix/sysv/linux/fork.S: File removed.
6742         * sysdeps/unix/sysv/linux/getpgid.S: File removed.
6743         * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
6744         * sysdeps/unix/sysv/linux/getsid.S: File removed.
6745         * sysdeps/unix/sysv/linux/gtty.S: File removed.
6746         * sysdeps/unix/sysv/linux/mlock.S: File removed.
6747         * sysdeps/unix/sysv/linux/mlockall.S: File removed.
6748         * sysdeps/unix/sysv/linux/mount.S: File removed.
6749         * sysdeps/unix/sysv/linux/munlock.S: File removed.
6750         * sysdeps/unix/sysv/linux/munlockall.S: File removed.
6751         * sysdeps/unix/sysv/linux/pipe.S: File removed.
6752         * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
6753         * sysdeps/unix/sysv/linux/setpgid.S: File removed.
6754         * sysdeps/unix/sysv/linux/setsid.S: File removed.
6755         * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
6756         * sysdeps/unix/sysv/linux/sigpending.S: File removed.
6757         * sysdeps/unix/sysv/linux/stty.S: File removed.
6758         * sysdeps/unix/sysv/linux/umount.S: File removed.
6759         * sysdeps/unix/sysv/linux/wait4.S: File removed.
6760         * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
6761         * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
6762         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
6763         * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
6764         * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
6765         * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
6766         * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
6767         * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
6768         * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
6769         * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
6770         * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
6771         * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
6772         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
6774         * io/mknod.c: New file.
6776         * Makerules (COMPILE.s): New variable.
6778         * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
6779         make-syscalls.sh and include it.
6780         [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
6781         sysd-syscalls.
6782         * sysdeps/unix/make-syscalls.sh: New file.
6784         * Makerules (COMPILE.S): New variable.
6786 Wed Jan 17 11:04:58 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6788         * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
6789         _STAT_VER_SVR4, _STAT_VER): New macros.
6790         (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
6792         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
6793         New macros.
6795         * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
6796         (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
6797         [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
6798         as `extern inline's calling the `x' functions.
6799         * io/fstat.c: New file.
6800         * io/lstat.c: New file.
6801         * io/stat.c: New file.
6802         * sysdeps/generic/lstat.c: File removed.
6803         * sysdeps/generic/lxstat.c: New file.
6804         * sysdeps/mach/hurd/fstat.c: File removed.
6805         * sysdeps/mach/hurd/fxstat.c: New file.
6806         * sysdeps/mach/hurd/lstat.c: File removed.
6807         * sysdeps/mach/hurd/lxstat.c: New file.
6808         * sysdeps/mach/hurd/mknod.c: File removed.
6809         * sysdeps/mach/hurd/stat.c: File removed.
6810         * sysdeps/mach/hurd/xmknod.c: New file.
6811         * sysdeps/mach/hurd/xstat.c: New file.
6812         * sysdeps/stub/fstat.c: File removed.
6813         * sysdeps/stub/fxstat.c: New file.
6814         * sysdeps/stub/lstat.c: File removed.
6815         * sysdeps/stub/lxstat.c: New file.
6816         * sysdeps/stub/mknod.c: File removed.
6817         * sysdeps/stub/stat.c: File removed.
6818         * sysdeps/stub/xmknod.c: New file.
6819         * sysdeps/stub/xstat.c: New file.
6820         * sysdeps/unix/common/lstat.S: File removed.
6821         * sysdeps/unix/common/lxstat.c: New file.
6822         * sysdeps/unix/fstat.S: File removed.
6823         * sysdeps/unix/fxstat.c: New file.
6824         * sysdeps/unix/mknod.S: File removed.
6825         * sysdeps/unix/stat.S: File removed.
6826         * sysdeps/unix/sysv/linux/fstat.c: File removed.
6827         * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
6828         * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
6829         * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
6830         * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
6831         * sysdeps/unix/sysv/linux/lstat.c: File removed.
6832         * sysdeps/unix/sysv/linux/mknod.c: File removed.
6833         * sysdeps/unix/sysv/linux/stat.c: File removed.
6834         * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
6835         * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
6836         * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
6837         * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
6838         * sysdeps/unix/xmknod.c: New file.
6839         * sysdeps/unix/xstat.c: New file.
6840         * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
6841         * misc/Makefile (routines): Remove mknod.
6843         * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
6844         Add missing ; in little-endian case.
6846         * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
6847         Define this instead of ELF_DYNAMIC_DO_RELA.
6849         * sysdeps/unix/sysv/time.S: Moved from sysv4.
6850         * sysdeps/unix/sysv/irix4/time.S: File removed.
6852         * sysdeps/unix/sysv/linux/signum.h: Moved from
6853         sysdeps/unix/sysv/linux/i386.
6854         (_NSIG): Move inside #ifdef _SIGNAL_H.
6856 Tue Jan 16 17:37:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6858         * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
6859         * sysdeps/unix/telldir.c: Fix position calculation to account for
6860         buffered data properly.
6862         * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
6863         library.
6865         * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
6866         * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
6867         global.
6868         [! HAVE_INITFINI]: Only make it a constructor in this case.
6870         * gmon/Makefile (CFLAGS-mcount.c): New variable.
6871         (mcount.po): New target.
6873         * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
6875         * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
6876         (initfini): Compile initfini.c with -fPIC.
6878 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
6880         * sysdeps/mips/bytesex.h: Add default byte sex.  By Ralf Baechle.
6882         * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
6883         member of `struct timex' instead of `modes'.  From Andreas Schwab.
6885         * sysdeps/unix/sysv/linux/mknod.c: New file.  Generic C version.
6886         * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
6888         * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
6889         [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
6890         [$(subdir) = misc] (headers): Append sys/mount.h.
6892         * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
6893         New files.  Implement system calls.
6894         * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
6896         * sysdeps/unix/sysv/linux/ptrace.c: New file.  Wrapper around
6897         ptrace system call.
6898         * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
6900         * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
6901         types for i386/Linux.
6903 Sun Jan 14 17:51:09 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6905         * MakeTAGS (all-sources, all-headers): Always search the
6906         current directory first.
6908         * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
6909         found.
6911         * stdio-common/vfscanf.c (inchar, conv_error, input_error,
6912         memory_error): Add cast to void to avoid gcc warning.
6913         (vfscanf): Rewrite character class parsing to make it more efficient.
6915         * misc/efgcvt_r.c (ecvt_r): Handle negative values.
6917         * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
6918         * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
6919         sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
6921         * stdio-common/printf_fp.c (__printf_fp): Fix parameter
6922         declaration.
6924         * sysdeps/generic/putenv.c (putenv): Fix second argument of
6925         setenv.
6927         * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
6928         * sysdeps/ieee754/cabs.c: Don't define hypot here.
6930         * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
6931         definition of ieee_nan alternative.
6933         * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
6934         prefix spec.
6936         * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
6938         * sysdeps/m68k/fpu/__math.h: Include <errno.h>.  Replace obsolete
6939         __CONSTVALUE by attribute.
6940         (floor): Round to negative infinity.
6941         (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
6942         clash when compiling source.
6943         (pow): Handle x == 0 and x < 0.
6944         (ceil, __isinf, __isnan): Fix register constraints.
6945         (__isinfl, __isnanl): Added.
6946         * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
6947         sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
6948         sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
6950         * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
6951         assembler syntax.
6953         * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
6954         argument.
6956         * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
6957         clock_t conversion.
6958         (clock): Don't multiply by CLOCKS_PER_SEC.
6960         * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
6962         * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
6963         __end.
6965         * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
6967         * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
6969         * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
6971 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
6973         * stdlib/strtol.c: Return correct pointer for strings
6974         like "0xyz" and base 0 or 16.
6976         * string/strxfrm.c: Handle case for LENGTH == 0 correct.
6978         * sunrpc/etc.rpc: Add some more known protocols.
6980 Fri Jan 12 13:40:01 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6982         * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
6984         * posix/glob.c (glob): Add parens in glob call flags arg for
6985         GLOB_BRACE case.
6987         * string/string.h (strdupa): New macro.
6989         * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
6990         terminator on empty set.  From drepper.
6992 Thu Jan 11 13:09:20 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6994         * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
6995         referent for STB_LOCAL.
6997 Wed Jan 10 10:11:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6999         * time/africa, time/antarctica, time/asia, time/australasia,
7000         time/europe, time/northamerica, time/pacificnew, time/solar87,
7001         time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
7003 Tue Jan  9 16:10:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7005         * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
7006         segment to find location, mprotect excess region to no access,
7007         don't munmap it.
7009         * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
7010         KERN_NO_SPACE for fixed location, deallocate it and try again.
7012 Mon Jan  8 17:43:23 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7014         * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
7015         * locale/hash.c: Renamed to locale/locfile-hash.c.
7017 Sat Jan  6 16:39:14 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7019         * Makefile (subdirs): Added db.
7021         * resolv/Makefile (routines): Add res_data.
7022         * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
7023         Updated from BIND 4.9.3 final release.
7025         * elf/dynamic-link.h (elf_get_dynamic_info): Handle
7026         processor-specific tags.
7027         (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
7029         * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
7030         * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
7032         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
7033         arg LAZY.  Only do our work if LAZY and there is a DT_JMPREL record.
7034         * elf/dl-reloc.c (_dl_relocate_object): Call
7035         elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
7037         * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
7038         Align end of load segment only to page size, not to segment alignment.
7040 Thu Jan  4 11:35:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7042         * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
7043         preemption interface.
7045         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7046         Use _hurdsig_catch_memory_fault.
7048         * hurd/Makefile (headers): Add hurd/sigpreempt.h.
7049         (sig): Add catch-signal.
7051         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
7052         Rewritten using a preempter in new interface.
7053         * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
7054         (_hurdsig_catch_memory_fault): New macro.
7056 Wed Jan  3 20:23:42 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7058         * hurd/catch-signal.c: New file.
7060         * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
7062         * hurd/hurdsig.c: Use new hurdfault.h interface.
7063         (abort_all_rpcs): Mutate return value to EINTR in threads whose
7064         replies we will wait for.
7066         * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
7067         do ourselves last.
7069 Wed Jan  3 19:17:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
7071         * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
7072         to auth_makeauth() in the right order.
7074 Wed Jan  3 17:19:04 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7076         * sysdeps/generic/strsep.c: Rewritten.
7078         * sysdeps/mach/hurd/fork.c: Use a different workaround for the
7079         suspended page fault deadlock kernel bug: thread_abort our signal
7080         thread first thing after proc_dostop.
7082         * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
7083         recognize rootness properly.
7085 Tue Jan  2 00:50:10 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7087         * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
7088         (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
7089         * hurd/hurd/sigpreempt.h: New file.
7090         * hurd/preempt-sig.c: Rewritten with new interface.
7091         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
7092         preempters being unwound past.
7093         * hurd/hurdsig.c: Use new signal preemption interface.
7095         * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
7096         release.
7098         * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
7099         compatibility.
7101         * misc/queue.h: New file, incorporated from 4.4BSD.
7102         * misc/Makefile (headers): Add queue.h.
7104         * posix/sys/types.h [__USE_BSD]: Include endian.h.
7106         * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
7107         New macros.
7109 Thu Dec 28 10:21:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7111         * sysdeps/generic/confname.h: Define all names as self-referential
7112         macros so #ifdef works.
7114         * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
7115         of _hurd_signal_preempters[SIGNO].
7117 Mon Dec 25 20:56:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7119         * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
7120         EADDRINUSE.  If translated node doesn't grok ifsock protocol,
7121         return EADDRINUSE.
7123         * sysdeps/mach/hurd/connect.c: Make address arg
7124         `const struct sockaddr_un *'.
7125         The redecl is kosher and avoids another variable for AF_LOCAL case.
7126         * sysdeps/mach/hurd/sendto.c: Likewise.
7127         * sysdeps/mach/hurd/bind.c: Likewise.
7129         * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
7130         code for GCC >= 2.7; use __transparent_union__ for name safety;
7131         add several sockaddr flavors.
7132         (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
7133         constructing the transparent union declarations.
7134         (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
7135         (bind, connect, sendto): Make the sockaddr argument use that.
7137 Fri Dec 22 00:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7139         * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
7140         old vector.
7141         * sysdeps/mach/hurd/setuid.c: Likewise.
7143         * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
7144         right thing.
7145         * sysdeps/mach/hurd/setgid.c: Likewise.
7146         * sysdeps/mach/hurd/setreuid.c: Likewise.
7147         * sysdeps/mach/hurd/setregid.c: Likewise.
7148         * sysdeps/mach/hurd/setegid.c: Likewise.
7149         * sysdeps/mach/hurd/seteuid.c: Likewise.
7151         * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
7152         proc_dostop call to work around kernel paging bug.
7154 Fri Dec 22 00:38:00 1995  H.J. Lu  <hjl@nynexst.com>
7156         * stdio-common/vfscanf.c: Correctly handle white space skipping.
7157         * stdio-common/Makefile (tests): Add bug11.
7158         * stdio-common/bug11.c: New file.
7160 Thu Dec 21 12:19:32 1995  Miles Bader  <miles@gnu.ai.mit.edu>
7162         * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
7163         instead of putting it (and other uids) in the gids and leaving the
7164         old uids as is.
7166 Wed Dec 20 18:23:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7168         * stdio/internals.c (flushbuf): If the target is -1, always
7169         discard the buffer of read data.
7170         Only set TWIDDLED flag in !ALIGNED case.
7171         Never increment target or offset when old value is -1.
7173 Tue Dec 19 17:00:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7175         * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
7176         pgrp changes.
7178 Mon Dec 18 13:40:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7180         * stdio/fread.c: Don't increment __offset when it's -1.
7182         * elf/rtld.c (dl_main): Prepend tab to "statically linked".  Exit
7183         0 in that case.
7185         * misc/err.c (vwarnx, vwarn): Fix major brainos.
7187         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
7188         inheritance.
7190 Sun Dec 17 15:56:35 1995  Miles Bader  <miles@gnu.ai.mit.edu>
7192         * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
7194 Sat Dec 16 10:33:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7196         * Makerules: Use $(do-install-so) for installing shared objects.
7197         (do-install-so): New canned sequence.  Make a symlink LIB.so after
7198         installing LIB.so.VERSION.
7200         * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
7202 Fri Dec 15 04:41:22 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7204         * stdio-common/Makefile (tests): Add bug10.
7205         * stdio-common/bug10.c: New file.  From HJ Lu.
7207         * stdio-common/tstdiomisc.c: Make more test-suite like: exit
7208         status tells about successful run.
7210         * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
7211         format correctness.
7212         Correct handling of trailing white spaces in format + EOF.
7214 Fri Dec 15 01:31:56 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7216         * stdio-common/Makefile (tests): Add bug8 and bug9.
7217         * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
7219         * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
7221         * stdlib/strtod.c: Correct spelling: nominator -> numerator.
7222         Thanks to Jim Meyering.
7224 Sat Nov 25 06:05:12 1995  H.J. Lu  <hjl@nynexst.com>
7226         * stdio-common/vfscanf.c: Always check width !=0.
7227         Correctly handle %%.
7229 Thu Dec 14 02:28:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7231         * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
7232         and cast STREAM to DIR * before passing to readdir and closedir.
7234 Wed Dec 13 22:06:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7236         * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
7237         after aborting RPCs but before calling proc_mark_stop.
7239 Mon Dec 11 20:07:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7241         * posix/glob.c [! STDC_HEADERS]: Declare getenv.
7242         (glob): Avoid using function as value.
7244         * elf/rtld.c (dl_main): When mapping argument executable, set
7245         l_name to "", not l_libname.
7246         After loading DT_NEEDED library, set its l_type to lt_library.
7248         * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
7249         VM_INHERIT.  We can't handle MAP_INHERIT easily.
7250         Handle non-page-aligned addresses if congruent to offset.
7252         * elf/dl-init.c: Skip the initializer for l_type lt_executable
7253         with l_name "". Start at _dl_loaded; don't skip the first element.
7255         * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
7256         (MAP_COPY): Define to MAP_PRIVATE if undefined.
7257         (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
7258         If file it ET_EXEC, set its l_type to lt_executable.
7260 Sun Dec 10 09:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7262         * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
7264 Fri Dec  8 13:04:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7266         * locale/error.c, locale/error.h: Files removed.
7267         * locale/Makefile (distribute): Remove error.h.
7268         (lib-modules): Remove error.
7270         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
7271         magic, return ENXIO if no ctty.
7273         * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
7274         mapping if vm_map fails for that reason.
7276         * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
7277         GLOB_TILDE, GLOB_NOMAGIC.
7278         (glob): Use stat instead of lstat to determine directoriness.
7279         * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
7280         New flag bits.
7281         (__GLOB_FLAGS): Include them.
7282         (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
7283         gl_stat.
7285         * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
7287         * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
7288         define all the bit values.
7289         (MAP_*, MCL_*): Macros removed.
7291 Thu Dec  7 02:27:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7293         * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
7294         Updated from BIND 4.9.3-BETA27.
7296 Wed Dec  6 18:44:01 1995  Miles Bader  <miles@gnu.ai.mit.edu>
7298         * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
7300         * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
7301         we get a delayed reply.
7302         Only grab values out of entries in TYPES that have SELECT_RETURNED
7303         turned on, and turn it on whenever an rpc returns.
7304         Only clear bits in the user's fdsets -- those needing to be set
7305         should be already.
7306         Use SELECT_ALL in appropiate places.
7307         (SELECT_RETURNED, SELECT_ALL): New macros.
7309 Wed Dec  6 09:10:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7311         * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
7313         * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
7315 Tue Dec  5 14:00:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7317         * misc/Makefile (headers): Add error.h, err.h.
7318         (routines): Add error, err.
7319         (gpl2lgpl): New variable.
7320         * misc/err.c: New file.
7321         * misc/err.h: New file.
7322         * misc/error.c, misc/error.h: New files.
7324         * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
7326         * Makeconfig (+link): Translate libc% from $^, not just libc.a.
7327         (link-libc): Append $(libc.so-version) to libc.so.
7328         (built-program-cmd): Fix comma usage.
7329         * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
7330         symlink to libc.so in the build directory.
7331         * Rules ($(others) $(tests)): Depend on the library that appears
7332         in $(link-libc).
7333         (%.out): Use $(built-program-cmd) in commands.
7335         * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
7337         * sysdeps/generic/setenv.c: Added canonical portability cruft.
7338         (setenv): Use realloc on LAST_ENVIRON instead of always copying.
7339         (unsetenv): New function.
7340         * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
7341         * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
7343 Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7345         * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
7347         * libio/iofscanf.c: Remove file.
7349         * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
7350         termination.
7352         * libio/iopopen.c: New file from GNU libio.
7354         * libio/memstream.c: Fixed bug in fclose handling.  Instead of
7355         providing a close callback we need a finish callback.
7357         * libio/pclose.c: New file.  Derived from popen.c in GNU libio.
7359         * posix/gnu/types.h: Fixed typo.
7361         * stdio-common/errnobug.c: fputs returns EOF in error case.  Do
7362         not test for != 0.
7364         * stdio-common/printf-parse.h (parse_one_spec): Do not force
7365         padding with ' ' if precision is given.  Fix by HJ Lu.
7367         * stdio-common/printf_fp.c: Fix comment.
7369         * stdio-common/tfformat.c, stdio-common/tiformat.c,
7370         stdio-common/tstdiomisc.c: New files from GNU libio test suite.
7372         * stdio-common/tstgetln.c: Provide ssize_t type when testing
7373         libio.
7375         * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
7376         (vfprintf): Cleasr args_type array before using it.
7377         When printing 0 as an integer with precision 0 nothing must be
7378         written for the number.
7379         Based on patch by HJ Lu.
7381         * stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
7382         have a dynamically extended buffer.
7384         * stdlib/strtod.c: Merge with version in Linux libc.  This fixes
7385         some bugs with handling of very small numbers and has different
7386         solution for formaer patches.
7388         * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
7389         macros r1 and r2 to t1, and t2 resp.  This is necessary because
7390         glibc headers also define r1.
7392 Mon Dec  4 12:10:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7394         * stdlib/gen-mpn-copy (translations): Updated for new layout in
7395         GMP 1.910.
7397         * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
7398         made global.
7399         (malloc): Caller changed.
7400         * malloc/realloc.c (realloc): Call __malloc_initialize if
7401         necessary, before checking hook.
7402         * malloc/malloc.h: Declare __malloc_initialize.
7404         * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
7405         as integer_t arg in RPC.
7407 Sat Dec  2 03:47:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7409         * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
7410         (_hurd_set_brk): Try to allocate more space when we run out.
7412         * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
7413         zero and examine it again.
7414         * sysdeps/unix/sysv/linux/i386/brk.c: New file.
7415         * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
7416         * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
7417         * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
7418         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
7419         Invoke this macro before calling DL_MAIN.
7421         * malloc/malloc.c (malloc): Do initialization here, before
7422         checking the hook.
7423         (_malloc_internal): Don't do it here.
7425 Wed Nov 29 12:30:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7427         * libio/vsnprintf.c (__vsnprintf): Define as alias.
7428         * libio/iovsscanf.c (__vsscanf): Define as alias.
7429         * asprintf.c: Remove libio adaptation code added by drepper.
7430         * dprintf.c: Likewise.
7431         * printf.c: Likewise.
7432         * scanf.c: Likewise.
7433         * snprintf.c: Likewise.
7434         * sprintf.c: Likewise.
7435         * sscanf.c: Likewise.
7436         * vprintf.c: Likewise.
7437         * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
7438         function.
7439         (vfscanf): Define unconditionally.
7441         * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
7442         zero for value.
7444         * misc/getpass.c: Write a newline after reading the unechoed
7445         password.
7447 Mon Nov 27 19:24:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7449         * posix/Makefile (routines): Add getsid.
7450         * sysdeps/unix/sysv/linux/getsid.S: New file.
7451         * sysdeps/mach/hurd/getsid.c: New file.
7452         * sysdeps/stub/getsid.c: New file.
7453         * posix/unistd.h [__USE_GNU]: Declare getsid.
7455 Sun Nov 26 12:44:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7457         * libc-symbols.h (N_): New macro.
7459 Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7461         * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
7462         malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
7463         resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
7464         sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
7465         sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
7466         sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
7467         sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
7468         sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
7469         strings.
7471 Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7473         * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
7475 Thu Nov 23 02:21:55 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7477         * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
7478         New files.
7479         * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
7480         mlock, munlock, mlockall, and munlockall.
7482 Thu Nov 23 18:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7484         * configure.in (--enable-libio): Set $stdio based on $enableval,
7485         not always to libio.
7487 Thu Nov 23 18:06:48 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
7489         * malloc/malloc.c (_malloc_internal): Can't use
7490         get_contiguous_space when the heap info table
7491         will be growing.  Account for new contiguous space in _heaplimit.
7493 Wed Nov 22 12:37:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7495         * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
7496         for errno.
7498         * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
7499         alias for _IO_vfprintf.
7501         * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
7503         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
7504         __fpu_control instead of ___fpu_control.
7505         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
7506         (___fpu_control): Renamed to __fpu_control.
7507         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
7508         * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
7510         * elf/dl-minimal.c: New file.
7511         * elf/Makefile (rtld-routines): Add dl-minimal.
7512         * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
7513         Functions moved to dl-minimal.c.
7514         * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
7515         sigjmp_save, longjmp): Likewise.
7517         * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
7518         to &_end, regardless of PIC.
7520         * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
7522 Tue Nov 21 14:12:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7524         * malloc/malloc.c (align): Don't check contiguity and call abort.
7526         * hurd/hurdsig.c (post_reply): Function removed.
7527         (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
7528         Take single callback fn arg instead of reply port and type.
7529         (_hurd_internal_post_signal): Callers changed.
7530         Cache reply stub fn ptr in local var before UNTRACED might be changed.
7532         * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
7533         PROT_READ|PROT_WRITE copy mapping.  Pass a proper vm_inherit_t to
7534         vm_map.
7536         * elf/rtld.c (_dl_start): For --list, do output and exit before
7537         relocating.
7539 Mon Nov 20 16:19:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7541         * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
7542         get .c and .h files.
7544         * malloc/malloc.c (align): Use abort instead of assert.
7546 Sun Nov 19 18:23:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7548         * Makeconfig (+includes): Add $($(stdio)-include).
7549         (libio-include): New variable.
7551         * stdlib/strtod.c: Put weak_symbol after function defn.
7552         * stdlib/strtol.c: Likewise.
7554         * configure.in (--enable-libio): If not present, set $stdio to
7555         "default".  Move stdio/libio check to end, so sysdeps fragments
7556         can affect it.  Reset $stdio to "stdio" if it's "default".
7557         * sysdeps/unix/sysv/linux/configure: New file.
7559 Sat Nov 18 16:46:01 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7561         * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
7562         libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
7563         libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
7564         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
7565         libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
7566         libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
7567         libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
7568         libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
7569         libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
7570         libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
7571         libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
7572         libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
7573         libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
7574         libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
7575         libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
7576         New files.  Slightly modified version from Linux libc.
7578         * libio/memstream.c, libio/vdprintf.c: New files for functions not
7579         (yet) part of GNU libio.
7581         * libio/iofopncook.c: Implementation of `fopencookie', mainly written
7582         by Per Bothner.
7584         * stdio-common/getline.c: Adapted to libio.
7585         * stdio-common/snprintf.c: Adapted to libio.
7586         * stdio-common/vfprintf.c: Adapted to libio.
7587         * stdio-common/vfscanf.c: Adapted to libio.
7588         * sysdeps/posix/tempname.c: Adapted to libio.
7590 Fri Nov 17 17:57:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7592         * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
7594         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7595         function.
7597         * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
7598         (_hurdsig_fault_init): Remove #if 0 from setting exception port.
7599         Insert send right for SIGEXC before thread_set_special_port.
7600         * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
7601         (_hurdsig_init): Remove #if 0 from setting exception port.
7603         * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
7604         HURD_MSGPORT_RPC macro.
7606 Thu Nov 16 06:07:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7608         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7609         function.
7610         (_dl_sysdep_start): Move cleanup code there.
7612         * Makeconfig (default-rpath): New variable.
7613         (link-libc): Use it.
7614         * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
7615         * elf/rtld.c (_dl_rpath): New variable.
7616         (_dl_start): Set it from rtld_map's DT_RPATH.
7617         Call _dl_setup_hash on rtld_map.
7618         (dl_main): Cache address of _exit in variable before relocating,
7619         and use that in later calls.  Call _dl_sysdep_start_cleanup before
7620         relocating.  Keep track of dependency order while loading; remove
7621         rtld_map from chain, and reinsert in proper order if there is a
7622         dependency on it.
7624         * sysdeps/generic/Makefile (make_siglist): Pass
7625         -DSIGNUM_H=... with config's signum.h location.
7626         * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
7627         signal numbers.
7628         (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
7629         (main): Deansideclize output.
7631         * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
7632         of DEFAULT_RPATH macro.
7633         * elf/Makefile: Undo last change.
7635         * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
7637 Wed Nov 15 19:22:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7639         * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
7640         error if weak.
7642         * elf/Makefile (default-rpath): New variable.
7643         (CPPFLAGS): Append -DDEFAULT_RPATH=....
7644         * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
7645         hard-coded "/lib:/usr/lib".
7647         * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
7648         instead of stdio.
7649         (_dl_sysdep_start): If passed user entry is zero and
7650         EXEC_STACK_ARGS flag set, reset user entry to &_start.
7652         * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
7653         DT_HASH element.
7655         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
7656         repeat weak decl using weak_symbol macro, in case using broken GCC
7657         (<2.8).
7659 Wed Nov 15 18:49:55 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7661         * sysdeps/i386/isnanl.c: New file.
7662         * sysdeps/i386/isinfl.c: New file.
7664 Tue Nov 14 18:44:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7666         * malloc/free.c (free): Moved null and aligned_blocks checks
7667         inside _free_internal.
7669 Mon Nov 13 15:23:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7671         * malloc/malloc.c (morecore): Fix inverted test in allocating new
7672         info table.
7674         * malloc/malloc.c (align): Fix assertion.
7676         * malloc/malloc.c: Include assert.h.
7678         * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
7680         * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
7681         (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
7683 Fri Nov 10 14:15:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7685         * malloc/malloc.c (align): Assert that space for alignment
7686         adjustment is same original space.
7688         * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
7689         arg to vm_address_t.
7691         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
7692         skip straight to pending check.  When UNTRACED, resume process
7693         from suspension first.
7695         * intl/Makefile (headers): New variable, libintl.h.
7696         [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
7697         * configure.in: Check for --with-gettext arg.
7699 Fri Nov 10 13:51:30 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
7701         * malloc/malloc.c (get_contiguous_space): New function.
7702         (morecore): Rewrite allocating new malloc info table.
7703         (_malloc_internal): Use get_contiguous_space.
7705 Fri Nov 10 13:03:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7707         * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
7708         _hurd_msgport to be destroyed.
7710         * Makerules (installed-libcs): Filter out %_pic.a.
7712         * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
7713         to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
7715         * hurd/Makefile (user-interfaces): Add hurd/process_request.
7717 Wed Nov  8 16:31:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7719         * termios/Makefile (headers): Add sys/ttychars.h.
7720         * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
7721         for compatibility.
7723         * signal/signal.h [__USE_BSD] (sig_t): New typedef.
7725 Wed Nov  8 15:12:47 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
7727         * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
7728         proc server that we are now traced.
7730 Tue Nov  7 12:29:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7732         * elf/Makefile (ldd): Make it executable.
7734         * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
7736         * Makeconfig (slibdir): New variable.
7737         * Makerules (install): Install libc.so in $(slibdir).
7738         * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
7739         in $(slibdir).
7741         * elf/linux-compat.c: New file.
7742         * elf/Makefile (distribute): Add linux-compat.c.
7743         (generated): Add librtld.so.
7744         [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
7745         [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
7746         (librtld.so): New target.
7747         (ld.so, ld-linux.so.1): Make from librtld.so.
7749         * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
7750         call our own DT_INIT if we have one (and then clear it).
7751         (__dgettext): New weak function.
7753         * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
7754         by hand instead.
7756         * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
7757         instead of snprintf.
7759         * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
7760         BUF[BUFLEN].
7762         * elf/rtld.c (rtld_map): New static variable.
7763         (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
7764         bootstrapping.  Then copy data into `rtld_map'.
7765         (dl_main): Finish filling in rtld_map and link it into the chain,
7766         instead of allocating a new structure.
7767         (dl_main): Call _dl_compat_init if it is defined (use weak ref).
7769         * elf/dlsym.c: Fix last change: move REF out of `doit'.
7771 Mon Nov  6 16:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7773         * elf/dlsym.c: Return the proper value, not just the defining
7774         object's loadbase.
7776 Sun Nov  5 16:09:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7778         * stdio-common/vfprintf.c (%c): Count the character itself towards
7779         the field width in all cases.
7781         * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
7782         __vm_deallocate arg to vm_address_t.
7784 Fri Nov  3 17:27:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7786         * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
7787         socket_create_address.
7788         * sysdeps/mach/hurd/connect.c: Likewise.
7789         * sysdeps/mach/hurd/bind.c: Likewise.
7791         * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
7792         args to proc_getprocinfo.
7793         * sysdeps/mach/hurd/getpriority.c: Likewise.
7795         * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
7797 Thu Nov  2 19:24:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7799         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
7801 Tue Oct 31 00:07:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7803         * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
7804         PI_FETCH_TASKINFO to proc_getprocinfo and through
7805         _hurd_priority_which_map.
7807         * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
7808         _hurd_priority_which_map.
7809         * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
7810         passed through to proc_getprocinfo RPC.
7811         * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
7813         * sysdeps/mach/hurd/group_member.c: New file.
7814         * sysdeps/generic/group_member.c: New file.
7816         * Makerules (lib-noranlib): Don't depend on $(install-lib).
7817         (others): Do.
7818         * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
7820 Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7822         * Rules (others): Depend on $(extra-objs).
7824         * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
7825         * posix/Makefile (routines): Add group_member.
7827         * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
7829         * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
7830         SIG operand in asm so it must be a register.
7831         Add dead return to quiet gcc warning.
7833         * Makerules (sysd-rules): Write a defn for sysd-rules-done.
7834         [! sysd-rules-done]: Inhibit deps.
7836 Thu Oct 26 23:11:11 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7838         * sysdeps/unix/sysv/linux/poll.c: Don't define as stub.  Use
7839         simulation of system call using select.
7841         * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
7843         * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
7845         * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
7846         name usage (new->act, old->oact).
7847         Correct asm statement because of gcc strangeness.
7849         * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
7851         * sunrpc/clnt_perr.c: Remove declaration of sys_errlist.  They
7852         conflict with the ones in stdio.h.
7854         * string/tester.c: %Z is no complete format.  Change to %Zd.
7856 Thu Oct 26 18:13:33 1995  Miles Bader  <miles@gnu.ai.mit.edu>
7858         * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
7859         * sysdeps/mach/hurd/link.c (__link): Ditto.
7860         * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
7861         * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
7862         Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
7864 Thu Oct 26 00:11:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7866         * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
7868         * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
7869         on syscall_error.  For PIC, it is a local label;
7870         for non-PIC, JUMPTARGET expands to the unadorned name anyway.
7871         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
7872         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7873         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7874         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
7875         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7876         * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
7878 Thu Oct 26 03:01:22 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7880         * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
7881         comment to the necessary ones.  Add _readv and _writev.
7883         * sysdeps/unix/configure.in: Change syntax for system call test
7884         candidates and adapt sed script for this.  Now use : to separate
7885         syscall name and file name.
7887         * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
7888         number is now set is DO_CALL.  So call with additional argument.
7889         (DO_CALL): Takes an additional argument.  Load system call
7890         number according to new argument.
7891         (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
7892         * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
7893         locally using SYSCALL_ERROR_HANDLER macro.
7894         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7895         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
7896         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7897         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
7898         * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
7899         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7900         Don't use DO_CALL macro; instead use lower level macros for better
7901         control.
7903         * sysdeps/unix/sysv/linux/sigaction.h: New file.
7904         * sysdeps/unix/sysv/linux/sigaction.S: File removed.
7905         * sysdeps/unix/sysv/linux/signal.S: File removed.
7907 Wed Oct 25 14:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7909         * hurd/hurdstartup.c (_hurd_startup): Use new
7910         exec_startup_get_info RPC from exec_startup.defs
7911         in place of old exec_startup from exec.defs.  Remove kludge to
7912         guess user entry and phdr locations, since the new RPC gives us
7913         that info.
7915         * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
7916         * sysdeps/generic/_strerror.c: Undo last change.
7918         * sysdeps/unix/sysv/linux/stat.c: New file.
7919         * sysdeps/unix/sysv/linux/fstat.c: New file.
7920         * sysdeps/unix/sysv/linux/lstat.c: New file.
7921         * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
7922         * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
7923         * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
7925 Tue Oct 24 15:22:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7927         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7928         New macro.
7929         (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
7931         * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
7932         only #ifndef PIC.
7934         * Makeconfig (built-program-cmd): New variable.
7935         * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
7936         * time/Makefile (zic-cmd): Likewise.
7938         * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
7940         * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
7941         * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
7942         make `others' rather than `lib-noranlib' depend on the libraries.
7944         * sysdeps/unix/configure.in: Check for fchdir syscall.
7945         Improve sed script to allow / on rhs without / on lhs.
7947 Thu Oct 19 03:47:32 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7949         * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
7951         * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
7953         * sysdeps/unix/sysv/linux/select.S: New file.
7955 Wed Oct 18 03:33:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7957         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
7958         SYSCALL_PIC_SETUP before jumping to syscall_error.
7959         * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
7960         (PSEUDO): Use it before jumping to syscall_error.
7961         * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
7962         expect it in %ebx on entry.  Pop old %ebx value off stack after
7963         using it.
7965         * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
7966         them.
7968         * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
7970         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
7971         `fd/', pass the right pointer to strtol to parse the number.
7973 Tue Oct 17 23:00:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7975         * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
7976         of stdio/_itoa.h.
7978 Tue Oct 17 19:51:17 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7980         * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
7981         register %ebx before calling __xstat through PLT.
7983         * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
7985         * sysdeps/unix/sysv/linux/sigset.h: Remove file.
7987 Tue Oct 17 01:21:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7989         * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
7990         stdio/_itoa.h.
7991         * hurd/hurdlookup.c: Likewise.
7993         * hurd/hurd/signal.h: Declare hurd_preempt_signals and
7994         hurd_unpreempt_signals.
7996         * stdio/stdio.h: Declare __snprintf and __vsnprintf.
7998         * stdio-common/psignal.c: Translate signal description strings.
7999         * string/strsignal.c: Likewise.
8000         * sysdeps/generic/_strerror.c (_strerror_internal): Translate
8001         error strings.
8002         * sysdeps/mach/_strerror.c: Likewise.
8004         * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
8005         call __vsnprintf.
8006         (snprintf): Define as weak alias.
8007         * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
8008         (vsnprintf): Define as weak alias.
8010 Mon Oct 16 03:22:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8012         * Makerules (install-lib): Filter out %_pic.a; install only the
8013         linked shared objects.
8015         * locale/Makefile (aux): Add SYS_libc.
8016         * locale/SYS_libc.c: New file.
8017         * libc-symbols.h [! ASSEMBLER] (_): New macro.
8019         * configure.in (libc_cv_asm_set_directive): Link program into
8020         conftest instead of letting it default to a.out.
8022         * elf/Makefile (install-others): Add missing slash.
8024         * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
8025         won't search LD_LIBRARY_PATH.
8027         * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
8028         * configure.in: Grok arg --enable-libio.
8029         ($stdio = libio): Define USE_IN_LIBIO.
8030         * config.h.in (USE_IN_LIBIO): Add #undef.
8031         * config.make.in (stdio): New variable, set by configure.
8032         * Makeconfig (stdio): New variable.
8033         * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
8034         stdio/stdio.h.
8035         * stdio-common/Makefile: New file.
8036         * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
8037         * stdio/_itoa.c: Moved to stdio-common.
8038         * stdio/_itoa.h: Moved to stdio-common.
8039         * stdio/asprintf.c: Moved to stdio-common.
8040         * stdio/bug1.c: Moved to stdio-common.
8041         * stdio/bug1.input: Moved to stdio-common.
8042         * stdio/bug2.c: Moved to stdio-common.
8043         * stdio/bug3.c: Moved to stdio-common.
8044         * stdio/bug4.c: Moved to stdio-common.
8045         * stdio/bug5.c: Moved to stdio-common.
8046         * stdio/bug6.c: Moved to stdio-common.
8047         * stdio/bug6.input: Moved to stdio-common.
8048         * stdio/bug7.c: Moved to stdio-common.
8049         * stdio/dprintf.c: Moved to stdio-common.
8050         * stdio/errnobug.c: Moved to stdio-common.
8051         * stdio/getline.c: Moved to stdio-common.
8052         * stdio/getw.c: Moved to stdio-common.
8053         * stdio/perror.c: Moved to stdio-common.
8054         * stdio/printf-parse.h: Moved to stdio-common.
8055         * stdio/printf-prs.c: Moved to stdio-common.
8056         * stdio/printf.c: Moved to stdio-common.
8057         * stdio/printf.h: Moved to stdio-common.
8058         * stdio/printf_fp.c: Moved to stdio-common.
8059         * stdio/psignal.c: Moved to stdio-common.
8060         * stdio/putw.c: Moved to stdio-common.
8061         * stdio/reg-printf.c: Moved to stdio-common.
8062         * stdio/scanf.c: Moved to stdio-common.
8063         * stdio/snprintf.c: Moved to stdio-common.
8064         * stdio/sprintf.c: Moved to stdio-common.
8065         * stdio/sscanf.c: Moved to stdio-common.
8066         * stdio/tempnam.c: Moved to stdio-common.
8067         * stdio/temptest.c: Moved to stdio-common.
8068         * stdio/test-fseek.c: Moved to stdio-common.
8069         * stdio/test-fwrite.c: Moved to stdio-common.
8070         * stdio/test-popen.c: Moved to stdio-common.
8071         * stdio/test_rdwr.c: Moved to stdio-common.
8072         * stdio/tmpfile.c: Moved to stdio-common.
8073         * stdio/tmpnam.c: Moved to stdio-common.
8074         * stdio/tst-fileno.c: Moved to stdio-common.
8075         * stdio/tst-printf.c: Moved to stdio-common.
8076         * stdio/tstgetln.c: Moved to stdio-common.
8077         * stdio/tstgetln.input: Moved to stdio-common.
8078         * stdio/tstscanf.c: Moved to stdio-common.
8079         * stdio/tstscanf.input: Moved to stdio-common.
8080         * stdio/vfprintf.c: Moved to stdio-common.
8081         * stdio/vfscanf.c: Moved to stdio-common.
8082         * stdio/vprintf.c: Moved to stdio-common.
8083         * stdio/xbug.c: Moved to stdio-common.
8084         * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
8085         stdio-common instead of stdio.
8086         * sysdeps/unix/Makefile (errlist.c rules): Likewise.
8087         * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
8088         function.
8089         * stdio-common/dprintf.c: Likewise.
8090         * stdio-common/printf.c: Likewise.
8091         * stdio-common/scanf.c: Likewise.
8092         * stdio-common/snprintf.c: Likewise.
8093         * stdio-common/sprintf.c: Likewise.
8094         * stdio-common/sscanf.c: Likewise.
8095         * stdio-common/vprintf.c: Likewise.
8097         * Makerules: Include $(+depfiles) directly instead of generating
8098         depend-$(subdir).
8099         (depend-$(subdir)): Target removed.
8100         (common-clean): Don't remove depend-$(subdir).
8102         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
8103         (config-LDFLAGS): Variable removed.
8105         * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
8106         * sysdeps/mach/hurd/bind.c: Likewise.
8107         * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
8108         calling convention.
8110         * hurd/hurdexec.c: Undo last change (10 Oct 95).
8112 Sun Oct 15 21:04:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8114         * hurd/hurd/lookup.h: New file.
8115         * hurd/hurdlookup.c (__file_name_lookup_under): New function.
8116         (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
8117         __hurd_file_name_split): Rewritten to take callback functions for
8118         using any needed init or dtable port, instead of passing in crdir
8119         and cwdir ports.
8120         (__file_name_lookup, __file_name_split): Use new calling
8121         convention; pass _hurd_ports_use and __getdport as the callback
8122         functions.
8124         * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
8125         of __hurd_file_name_lookup.
8126         * sysdeps/mach/hurd/chdir.c: Likewise.
8127         * sysdeps/mach/hurd/fchdir.c: Likewise.
8128         * hurd/fchroot.c: Likewise.
8130         * stdlib/Makefile (mpn-found): Don't omit %.s.
8131         (mpn-copy-sysdep): Omit files in nonexistent directories.
8132         (copy-mpn): Commit files to CVS.
8133         * stdlib/gen-mpn-copy (translations): Update translations for GMP
8134         1.906.7.
8136         * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
8138 Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8140         * malloc/malloc.c (_malloc_internal): Performance fix.  Move
8141         if statement out of loop.
8143         * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
8144         implementation using GMP functions.  Contributed by
8145         Torbjorn Granlund and Ulrich Drepper.
8147         * stdio/test_rdwr.c: Include <errno.h>.
8149         * sysdeps/i386/i586/Implies: New file.
8151         New highly optimized string functions for i[345]86.
8152         * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
8153         * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
8154         * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
8155         * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
8156         * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
8157         * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
8158         * sysdeps/i386/i586/strlen.S: New file.
8159         * sysdeps/i386/memchr.c: Removed.  There is now an assembler version.
8161         * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
8162         not correspond to used values.
8164         * sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
8165         around a kernel header file.
8166         * sysdeps/unix/sysv/linux/Dist: Add it.
8167         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
8168         Likewise.
8170         * sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
8171         defining ourself we use a kernel header file.
8173         * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
8174         call handler for i586.
8176         * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
8178 Thu Oct 12 15:45:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8180         * hurd/hurd.h (file_name_lookup_under): Declare it.
8181         * hurd/Makefile (headers): Add hurd/lookup.h.
8183         * hurd/hurdinit.c (_hurd_ports_use): New function.
8184         * hurd/hurd.h (_hurd_ports_use): Declare it.
8185         (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
8186         hurd_file_name_lookup_retry): Remove these decls.
8187         * hurd/Makefile (routines): Remove invoke-trans.
8189 Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8191         * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
8192         apply R_386_PC32 reloc.
8194         * Makeconfig (config-LDFLAGS): Add missing slash.
8196         * sysdeps/mach/hurd/profil.c (fork_profil): Only call
8197         update_waiter if profiling was enabled in the parent.
8199         * csu/initfini.c: Don't pass -f flag to cp.
8201 Tue Oct 10 23:08:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8203         * Makerules (build-shlib): Pass -rpath and -rpath-link options.
8204         (LDFLAGS-c.so): Don't pass -dynamic-linker here.
8205         * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
8206         (link-libc): Pass -rpath and -rpath-link options.
8208         * MakeTAGS (all-dirs): Omit CVS directories.
8209         Specify vpath directives to find source files in $(all-dirs).
8210         (sources, headers): Append sources and headers from $(all-dist) to
8211         these.
8212         (all-dist): Filter them out of this.
8213         (all-headers, all-sources): Use $(shell find ...) instead of
8214         $(wildcard ...).
8216         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
8217         -rpath-link.
8219         * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
8221         * elf/Makefile (install-others): Add missing $.
8223 Mon Oct  9 02:54:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8225         * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
8227         * Makeconfig (config-LDFLAGS): Define to
8228         -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
8229         (rtld-installed-name): New variable.
8230         * elf/Makefile (install-lib): Variable removed.
8231         (install-others): Define this instead, to
8232         $(libdir)(rtld-installed-name).
8233         ($(libdir)(rtld-installed-name)): New target; install from ld.so.
8235         * elf/ldd.sh.in: New file.
8236         * elf/Makefile (distribute): Add ldd.sh.in.
8237         (install-bin): Add ldd.
8238         ($(objpfx)ldd: ldd.sh.in): New rule.
8240         * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
8241         * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
8242         Translate some Mach errors to Hurd errors.
8244         * elf/rtld.c (dl_main): Under --list, print msg if executable is
8245         statically linked.
8247         * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
8248         table processing.
8250 Sat Oct  7 01:25:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8252         * sysdeps/stub/machine-gmon.h: Add #error.
8254 Fri Oct  6 01:49:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8256         * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
8257         examine it.
8259 Fri Sep 29 03:43:51 1995  Paul Eggert  <eggert@twinsun.com>
8261         Rewrite mktime from scratch for performance, and for correctness
8262         in the presence of leap seconds.
8264         * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
8265         New functions.
8266         (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
8267         TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
8268         <limits.h>, <stdlib.h>: New #includes.
8269         (main): Support tests with given broken-down value; support benchmarks.
8270         (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
8271         do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
8272         <ctype.h>): Remove.
8274         * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
8275         * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
8277         * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
8278         time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
8280         * time/offtime.c (__offtime): Remove useless assignment
8281         `tp->tm_isdst = -1'.
8283         * manual/maint.texi: Update credits.
8285 Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8287         * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
8288         * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
8289         * sysdeps/unix/sysv/linux/readv.c: File removed.
8290         * sysdeps/unix/sysv/linux/writev.c: File removed.
8291         * sysdeps/unix/configure.in: Check for readv and writev syscalls.
8293         * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
8294         set it to $unix_syscall instead of $unix_function.
8296 Thu Oct  5 00:59:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8298         * elf/rtld.c (dl_main): Grok --list flag.
8299         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
8301 Wed Oct  4 00:21:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8303         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
8304         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
8305         * elf/link.h (_dl_sysdep_message): Declare it.
8307         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
8308         the list.
8310         * time/northamerica: Corrections to Canada data from ADO 95i.
8312         * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
8313         unconditionally.  In socket subdir, append sys/socketcall.h; in
8314         time subdir, append sys/timex.h.
8315         (config-LDFLAGS): New variable.
8316         * sysdeps/unix/sysv/linux/Dist: New file.
8317         * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
8319         * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
8321         * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
8323 Sat Sep 30 11:47:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8325         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
8326         kernel with args on stack, point _dl_hurd_data at zero data
8327         instead of garbage.  When ld.so run as program, grok args
8328         -LIB=MEMOBJ and pre-load shared object files found in memory
8329         objects loaded by the boot loader.
8331         * elf/link.h (struct link_map): New member `l_entry'.
8332         (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
8333         * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
8334         last arg ENTRY_POINT.  Store the entry point location in the
8335         `l_entry' member of the new map.
8336         * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
8337         _dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
8338         * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
8339         _dl_map_object.
8341         * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
8343         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
8344         restore %ebx by hand for personality syscall.
8345         GCC cannot deal with spilling the dedicated GOT register.
8347         * misc/Makefile (routines): Add mntent, which was somehow omitted.
8349 Fri Sep 29 15:07:10 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8351         * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
8352         Change name of field `mode' in `struct timex' to `modes'.
8353         Linux-1.3.28 updates this name according to RFC 1489.
8355 Thu Sep 28 13:05:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8357         Merge new message handling code from GNU gettext, by Drepper.
8358         * intl: New directory.
8359         * Makefile (subdirs): Add intl.
8361         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
8362         USER_ENTRY instead of storing it on our stack.
8364         * elf/rtld.c (rtld_command): Variable removed.
8365         (_dl_skip_args): New variable.
8366         (dl_main): Increment _dl_skip_args instead of setting rtld_command.
8367         If the link_map for the executable itself is not first in the chain,
8368         make it so.
8369         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
8370         count of args to skip.
8372 Thu Sep 28 09:20:04 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
8374         * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
8375         leading zeroes.
8377 Wed Sep 27 00:27:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8379         * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
8380         (getcwd): Define as weak alias.
8381         * sysdeps/posix/getcwd.c: Likewise.
8382         * sysdeps/stub/getcwd.c: Likewise.
8383         * posix/unistd.h: Declare __getcwd.
8385         * string/string.h: Declare __strcasecmp.
8386         * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
8387         strcasecmp.
8388         (strcasecmp): Define as weak alias.
8390         * string/string.h: Declare __stpcpy.
8391         * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
8392         (stpcpy): Define as weak alias.
8394         * sysdeps/unix/sysv/linux/Implies: Add unix/common.
8396         * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
8397         Don't use `type' for arg name, since we are using it as a keyword
8398         in the rhs.
8400         * sysdeps/unix/configure.in: Check for syscalls getpriority,
8401         setpriority, getrlimit, setrlimit.
8403         * sysdeps/posix/truncate.c: Include fcntl.h.
8405         * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
8407         * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
8408         use new stub_warning syntax.
8409         * sysdeps/stub/setpriority.c: Likewise.
8410         * sysdeps/stub/__longjmp.c: Likewise.
8411         * sysdeps/stub/_exit.c: Likewise.
8412         * sysdeps/stub/accept.c: Likewise.
8413         * sysdeps/stub/acos.c: Likewise.
8414         * sysdeps/stub/alarm.c: Likewise.
8415         * sysdeps/stub/asin.c: Likewise.
8416         * sysdeps/stub/atan2.c: Likewise.
8417         * sysdeps/stub/bind.c: Likewise.
8418         * sysdeps/stub/cbrt.c: Likewise.
8419         * sysdeps/stub/chroot.c: Likewise.
8420         * sysdeps/stub/closedir.c: Likewise.
8421         * sysdeps/stub/connect.c: Likewise.
8422         * sysdeps/stub/cos.c: Likewise.
8423         * sysdeps/stub/cosh.c: Likewise.
8424         * sysdeps/stub/ctermid.c: Likewise.
8425         * sysdeps/stub/cuserid.c: Likewise.
8426         * sysdeps/stub/defs.c: Likewise.
8427         * sysdeps/stub/exp.c: Likewise.
8428         * sysdeps/stub/fmod.c: Likewise.
8429         * sysdeps/stub/frexp.c: Likewise.
8430         * sysdeps/stub/fsync.c: Likewise.
8431         * sysdeps/stub/getcwd.c: Likewise.
8432         * sysdeps/stub/getenv.c: Likewise.
8433         * sysdeps/stub/gethostid.c: Likewise.
8434         * sysdeps/stub/getlogin.c: Likewise.
8435         * sysdeps/stub/getpeername.c: Likewise.
8436         * sysdeps/stub/getrlimit.c: Likewise.
8437         * sysdeps/stub/getsockname.c: Likewise.
8438         * sysdeps/stub/getsockopt.c: Likewise.
8439         * sysdeps/stub/listen.c: Likewise.
8440         * sysdeps/stub/log.c: Likewise.
8441         * sysdeps/stub/log10.c: Likewise.
8442         * sysdeps/stub/mkfifo.c: Likewise.
8443         * sysdeps/stub/morecore.c: Likewise.
8444         * sysdeps/stub/nice.c: Likewise.
8445         * sysdeps/stub/nlist.c: Likewise.
8446         * sysdeps/stub/opendir.c: Likewise.
8447         * sysdeps/stub/pipestream.c: Likewise.
8448         * sysdeps/stub/ptrace.c: Likewise.
8449         * sysdeps/stub/putenv.c: Likewise.
8450         * sysdeps/stub/readdir.c: Likewise.
8451         * sysdeps/stub/reboot.c: Likewise.
8452         * sysdeps/stub/recv.c: Likewise.
8453         * sysdeps/stub/recvfrom.c: Likewise.
8454         * sysdeps/stub/rename.c: Likewise.
8455         * sysdeps/stub/rewinddir.c: Likewise.
8456         * sysdeps/stub/seekdir.c: Likewise.
8457         * sysdeps/stub/send.c: Likewise.
8458         * sysdeps/stub/sendto.c: Likewise.
8459         * sysdeps/stub/setegid.c: Likewise.
8460         * sysdeps/stub/seteuid.c: Likewise.
8461         * sysdeps/stub/setgroups.c: Likewise.
8462         * sysdeps/stub/sethostid.c: Likewise.
8463         * sysdeps/stub/sethostname.c: Likewise.
8464         * sysdeps/stub/setjmp.c: Likewise.
8465         * sysdeps/stub/setrlimit.c: Likewise.
8466         * sysdeps/stub/setsockopt.c: Likewise.
8467         * sysdeps/stub/shutdown.c: Likewise.
8468         * sysdeps/stub/signal.c: Likewise.
8469         * sysdeps/stub/sigsuspend.c: Likewise.
8470         * sysdeps/stub/sin.c: Likewise.
8471         * sysdeps/stub/sinh.c: Likewise.
8472         * sysdeps/stub/socket.c: Likewise.
8473         * sysdeps/stub/socketpair.c: Likewise.
8474         * sysdeps/stub/sqrt.c: Likewise.
8475         * sysdeps/stub/sync.c: Likewise.
8476         * sysdeps/stub/system.c: Likewise.
8477         * sysdeps/stub/tan.c: Likewise.
8478         * sysdeps/stub/tanh.c: Likewise.
8479         * sysdeps/stub/tcdrain.c: Likewise.
8480         * sysdeps/stub/tcflow.c: Likewise.
8481         * sysdeps/stub/tcgetpgrp.c: Likewise.
8482         * sysdeps/stub/tcsendbrk.c: Likewise.
8483         * sysdeps/stub/tcsetattr.c: Likewise.
8484         * sysdeps/stub/tcsetpgrp.c: Likewise.
8485         * sysdeps/stub/telldir.c: Likewise.
8486         * sysdeps/stub/tempname.c: Likewise.
8487         * sysdeps/stub/ttyname.c: Likewise.
8488         * sysdeps/stub/ttyname_r.c: Likewise.
8489         * sysdeps/stub/utime.c: Likewise.
8491         * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
8493         * time/mktime.c (localtime_r): Use 0 instead of NULL.
8495         * config.make.in (AS): New variable; set to `$(CC) -c'.
8497         * posix/unistd.h [__USE_BSD]: Declare profil.
8499         * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
8500         of _dl_map_object.
8501         (_dl_map_object): Call it.
8502         * elf/link.h (_dl_map_object_from_fd): Declare it.
8504 Tue Sep 26 16:50:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8506         * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
8507         gettext code.
8509         * sysdeps/unix/sysv/linux/sys/param.h: New file.
8510         * sysdeps/unix/sysv/linux/Subdirs: File removed.
8512         * libc-symbols.h (_LIBC): Define to 1, not just empty.
8514         * gmon: New directory of profiling code, incorporated from
8515         4.4BSD-Lite and modified.
8516         * sysdeps/i386/machine-gmon.h: New file.
8517         * sysdeps/stub/machine-gmon.h: New file.
8518         * sysdeps/mach/hurd/profil.c: New file.
8519         * sysdeps/stub/profil.c: New file.
8520         * sysdeps/unix/bsd/profil.S: New file.
8521         * Makefile (subdirs): Add gmon.
8522         * csu/gmon-start.c: New file.
8523         * csu/Makefile (extra-objs): Add gmon-start.o,
8524         g$(start-installed-name).
8525         (install-lib, omit-deps): Add g$(start-installed-name).
8526         ($(objpfx)g$(start-installed-name)): New target.
8528 Fri Sep 22 14:24:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8530         * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
8531         time being.
8533 Thu Sep 21 00:03:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8535         * sysdeps/unix/configure.in: Check for `profil' syscall.
8537         * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
8538         removed.
8540         * time/africa, time/asia, time/europe, time/northamerica,
8541         time/yearistype: New data from ADO 95h.
8543         * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
8544         $(notdir $*), so it wins for the explicit libc.so rule as well as the
8545         pattern rule.
8547         * sysdeps/stub/sys/sem_buf.h (union semun): New type.
8549         * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
8550         __libc_global_ctors.
8551         * sysdeps/i386/init-first.c: Rewritten.
8552         * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
8553         * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
8555         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
8556         ___fpu_control.
8558         * Makerules (build-shlib): New canned sequence, broken out of
8559         lib%.so rule.  Link in $^ instead of just $<.
8560         (lib%.so: lib%_pic.a): Use it.
8561         (libc.so): New target; use $(build-shlib) for cmds, but also depend
8562         on soinit.so first and sofini.so last.
8564         * elf/soinit.c: New file.
8565         * elf/sofini.c: New file.
8566         * elf/Makefile (distribute): Add soinit.c and sofini.c.
8567         (extra-objs): Add soinit.so and sofini.so.
8569         * sysvipc/sys/shm.h (shmat): Fix return type to char *.
8570         * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
8572         * misc/syslog.c (vsyslog): Rewritten using open_memstream to
8573         dynamically allocate buffers.
8575         * Makerules (install-lib-nosubdir): Make this, rather than
8576         install-no-libc.a, depend on the installed shared libraries.
8578 Wed Sep 20 18:02:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8580         * locale/locale.c: Include errno.h.
8581         * locale/localedef.c: Likewise.
8583 Tue Sep 19 00:02:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8585         * Makefile (distclean-1): Remove config.cache, config.log, config.h.
8586         (parent-mostlyclean): Remove all flavors of the parent library.
8588         * misc/mntent.c (getmntent): Skip multiple whitespace chars
8589         between fields.
8591         * hurd/hurdstartup.c (_hurd_startup): If RPC returns
8592         EXEC_STACK_ARGS flag, get args from stack.
8593         If args on stack but have info from RPC, relocate args on stack to make
8594         space for struct hurd_startup_data.
8596 Mon Sep 18 15:06:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8598         * elf/dl-object.c: Include errno.h.
8599         * posix/execvp.c: Likewise.
8600         * dirent/scandir.c: Likewise.
8601         * sysdeps/posix/system.c: Likewise.
8602         * sysdeps/generic/setenv.c: Likewise.
8603         * stdlib/msort.c: Likewise.
8604         * stdio/memstream.c: Likewise.
8605         * stdio/fclose.c: Likewise.
8606         * stdio/getdelim.c: Likewise.
8607         * stdio/setvbuf.c: Likewise.
8608         * sysdeps/ieee754/ldexp.c: Likewise.
8609         * locale/locfile-parse.c: Likewise.
8611         * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
8612         * stdlib/seed48_r.c: Likewise.
8613         * stdlib/srand48_r.c: Likewise.
8614         * stdlib/jrand48_r.c: Likewise.
8615         * stdlib/nrand48_r.c: Likewise.
8617         * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
8618         to be useless.
8620 Mon Sep 18 12:39:22 1995  Paul Eggert  <eggert@twinsun.com>
8622         * mktime.c (localtime_r): Add substitute if the system doesn't
8623         provide one.
8625 Mon Sep 18 14:39:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8627         * time/gmtime.c (gmtime_r): Define as weak alias.
8628         * time/localtime.c (localtime_r): Define as weak alias.
8629         * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
8631         * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
8632         #undef __need_Emath after including errnos.h.
8633         [_ERRNO_H]: Protect decls with this.
8635 Sun Sep 17 08:22:12 1995  Paul Eggert  <eggert@twinsun.com>
8637         Fix mktime so that it does not write over localtime's returned value.
8638         * localtime.c (__localtime_r): New function, with extra arg
8639         specifying where to store result.
8640         (localtime): Use it.
8641         (_tmbuf): New var.
8642         * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
8643         * mktime.c (__mktime_internal): Conversion function is now
8644         __localtime_r style, not localtime style.
8645         (mktime): Pass __localtime_r, not localtime.
8646         * timegm.c (timegm): Pass __gmtime_r, not gmtime.
8647         * offtime.c (__offtime): New arg specifying where to store result.
8648         * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
8649         (__gmtime_r, __localtime_r): New decls.
8651         * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
8652         <stdlib.h>, <string.h>: Remove includes.
8653         <errno.h>: Add include.
8655         * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
8656         Renamed from _mktime_internal to avoid namespace pollution.
8658         * time/gmtime.c: Clear tm_isdst.
8660 Mon Sep 18 01:58:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8662         * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
8663         * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
8664         size_t.
8666         * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
8667         __file_pathconf.
8668         * sysdeps/mach/hurd/pathconf.c: Likewise.
8670         * Makefile (subdirs): Add sysvipc.
8672         * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
8673         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8675 Sun Sep 17 18:29:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8677         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
8678          __file_set_size instead of __file_truncate.
8680         * features.h (__USE_REENTRANT): New macro.
8682         * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
8683         __file_truncate.
8684         * sysdeps/mach/hurd/ftruncate.c: Likewise.
8686         * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
8688 Sat Sep 16 17:47:19 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8690         * elf/elf.h (AT_GID): Fix typo: Read -> Real.
8692         * misc/efgvt_r.c: New file.  Reentrant version of [efg]cvt functions.
8693         * misc/efgcvt.c: Rewrite to use reentrant functions.
8694         * misc/search.h: Many decls for hsearch functions.
8695         * misc/hsearch_r.c: New file.  Reentrant version of functions from
8696         hsearch family.
8697         * misc/hsearch.c, misc/tsearch.c: New files.
8698         * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
8700         * posix/unistd.h (ttyname_r): Add prototype for new function.
8702         * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
8703         stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
8704         stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
8705         stdlib/drand48-iter.c: New files implementing reentrant versions
8706         of functions from drand48 family.
8707         * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
8708         stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
8709         stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
8710         Rewrite to use reentrant versions.
8711         * stdlib/a64l.c, stdlib/l64a.c: New files.  Implement a64l()
8712         and l64a() functions from SysV library.
8713         * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
8714         nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
8715         drand48-iter, a64l, l64a.
8716         * stdlib/stdlib.h: Declare them.
8718         * stdlib/random_r.c: New file.  Reentrant version of functions
8719         from random family.
8720         * stdlib/stdlib.h: Declare them.
8721         * stdlib/random.c: Rewrite to use reentrant functions.
8723         * string/strerror_r.c: New file.  Reentrant version.
8724         * string/strerror.c: Change for new _strerror_internal form.
8725         * string/Makefile (routines): Add strerror_r.
8727         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
8728         value of user_entry to `_start'.
8729         Close AT_ENTRY case with `break'.
8731         * sysdeps/generic/strstr.c: New and much faster implementation
8732         by Stephen R. van den Berg.
8734         * sysdeps/generic/_strerror.c: _strerror_internal now takes
8735         three argument and has and explicit buffer length.
8736         * sysdeps/mach/_strerror.c: Change for new interface with three
8737         arguments.
8738         * stdio/perror.c, stdio/vfprintf.c: Callers changed.
8740         * sysdeps/mach/hurd/ttyname_r.c: New file.  Reentrant version.
8741         * sysdeps/posix/ttyname_r.c: New file.  Reentrant version.
8742         * sysdeps/stub/ttyname_r: New file.  Define as dummy function.
8744         * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
8745         (utimes): First parameter to utime must be file, not path.
8747         * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
8748         _SC_CLK_TCK and return it when available.
8749         Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
8750         available.
8751         Add case for _SC_2_LOCALEDEF which is now available.
8753         * posix/sys/types.h [__USE_SVID] (key_t): New type.
8754         * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
8755         sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
8756         sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
8757         sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
8758         sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
8759         sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
8760         sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
8761         sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
8762         Add implementation of System V IPC.
8764 Fri Sep 15 21:34:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8766         * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
8767         (write_corefile): Call __crash_dump_task instead of __core_dump_task.
8768         Use envariable CRASHSERVER instead of CORESERVER.
8769         * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
8771 Tue Sep 12 14:30:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8773         * misc/mntent.c: New file.
8774         * misc/mntent.h: New file.
8775         * misc/Makefile (headers): Added mntent.h.
8776         (routines): Added mntent.
8777         * misc/fstab.c: Rewritten using mntent functions.
8779 Mon Sep 11 14:00:14 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
8781         * posix/glob.c (glob): Comment fix.
8783 Fri Sep  8 16:25:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8785         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
8786         symbols weak.
8788         * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
8789         not empty.
8791 Fri Sep  8 16:32:12 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
8793         * sysdeps/unix/sysv/linux/Implies,
8794         sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
8795         sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
8796         sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
8797         sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
8798         sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
8799         sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
8800         sysdeps/unix/sysv/linux/gethostname.C,
8801         sysdeps/unix/sysv/linux/getpeername.S,
8802         sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
8803         sysdeps/unix/sysv/linux/getsockname.S,
8804         sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
8805         sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
8806         sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
8807         sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
8808         sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
8809         sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
8810         sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
8811         sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
8812         sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
8813         sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
8814         sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
8815         sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
8816         sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
8817         sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
8818         sysdeps/unix/sysv/linux/settimeofday.S,
8819         sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
8820         sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
8821         sysdeps/unix/sysv/linux/shutdown.S,
8822         sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
8823         sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
8824         sysdeps/unix/sysv/linux/sockaddrcom.h,
8825         sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
8826         sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
8827         sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
8828         sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
8829         sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
8830         sysdeps/unix/sysv/linux/tcsetattr.c,
8831         sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
8832         sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
8833         sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
8834         sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
8835         sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
8836         New Linux/ELF specific, architecture independent files.
8837         * sysdeps/unix/sysv/linux/i386/Dist,
8838         sysdeps/unix/sysv/linux/i386/Makefile,
8839         sysdeps/unix/sysv/linux/i386/brk.S,
8840         sysdeps/unix/sysv/linux/i386/fcntlbits.h,
8841         sysdeps/unix/sysv/linux/i386/fpu_control.c,
8842         sysdeps/unix/sysv/linux/i386/fpu_control.h,
8843         sysdeps/unix/sysv/linux/i386/fstat.S,
8844         sysdeps/unix/sysv/linux/i386/fxstat.S,
8845         sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
8846         sysdeps/unix/sysv/linux/i386/init-first.S,
8847         sysdeps/unix/sysv/linux/i386/ipc.S,
8848         sysdeps/unix/sysv/linux/i386/lstat.S,
8849         sysdeps/unix/sysv/linux/i386/lxstat.S,
8850         sysdeps/unix/sysv/linux/i386/mknod.S,
8851         sysdeps/unix/sysv/linux/i386/mmap.S,
8852         sysdeps/unix/sysv/linux/i386/sbrk.S,
8853         sysdeps/unix/sysv/linux/i386/setfpucw.c,
8854         sysdeps/unix/sysv/linux/i386/signum.h,
8855         sysdeps/unix/sysv/linux/i386/socket.S,
8856         sysdeps/unix/sysv/linux/i386/stat.S,
8857         sysdeps/unix/sysv/linux/i386/syscall.S,
8858         sysdeps/unix/sysv/linux/i386/sysdep.S,
8859         sysdeps/unix/sysv/linux/i386/sysdep.h,
8860         sysdeps/unix/sysv/linux/i386/xmknod.S,
8861         sysdeps/unix/sysv/linux/i386/xstat.S:
8862         New Linux i386/ELF specific files.
8863         * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
8864         sysdeps/unix/sysv/linux/sys/mman.h,
8865         sysdeps/unix/sysv/linux/sys/msq_buf.h,
8866         sysdeps/unix/sysv/linux/sys/sem_buf.h,
8867         sysdeps/unix/sysv/linux/sys/shm_buf.h,
8868         sysdeps/unix/sysv/linux/sys/socketcall.h,
8869         sysdeps/unix/sysv/linux/sys/timex.h:
8870         New Linux/ELF specific, architecture independent header files.
8871         * sysdeps/unix/sysv/sysv4/linux: Tree removed.
8873 Thu Sep  7 17:05:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8875         * stdlib/msort.c (msort_with_tmp): Fixed alignment test.  B1 and
8876         B2 are always congruent; just test that B1 is aligned.
8878 Wed Sep  6 19:41:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8880         * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
8881         than WEAK_VALUE.a to see if a weak value has been set.  A valid
8882         weak value may set WEAK_VALUE.a to 0.
8884 Fri Sep  1 16:16:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8886         * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
8887         jmp_buf.
8889         * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
8890         for a warning on references to that specific symbol, not the
8891         entire containing object file.
8892         (stub_warning): Pass symbol name to link_warning.
8893         * stdio/gets.c: Pass function name in link_warning invocation.
8895         * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
8896         MACH_SEND_INTERRUPTED.  That indicates interrupt_operation was
8897         sent, but failed.
8899         * stdlib/msort.c: Include memcopy.h.
8900         (msort_with_tmp): If operating on aligned op_t words, use direct word
8901         fetches and stores.
8903         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
8904         missing backslash.
8906 Thu Aug 31 13:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8908         * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
8910         Rewrote i386 setjmp code in assembly, so as to avoid fighting
8911         with the compiler for the register values.
8912         * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
8913         * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
8914         * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
8915         [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
8916         (_JMPBUF_UNWINDS): Use JB_SP.
8918 Wed Aug 30 16:44:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8920         * sysdeps/mach/hurd/select.c: Deal with out of order replies
8921         during io_select request loop.
8922         Handle MACH_RCV_TIMED_OUT error from requests.
8923         * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
8924         distinguish MACH_RCV_TIMED_OUT from EINTR.
8926         * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
8927         slash.
8928         (glob_in_dir): Don't allocate extra byte here.
8930         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
8931         Decrement the DT_RELSZ value for the skipped reloc.
8933 Tue Aug 29 12:35:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8935         * time/australasia: Updated data from ADO.
8937 Mon Aug 28 17:47:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8939         * dirent/dirent.h: Don't include <dirstream.h>.
8940         Instead, define DIR as typedef for (undefined) `struct __dirstream'.
8942 Fri Aug 25 12:12:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8944         * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
8945         instead of `DIR'.
8946         * sysdeps/unix/bsd/dirstream.h: Likewise.
8947         * sysdeps/stub/dirstream.h: Likewise.
8948         * sysdeps/unix/dirstream.h: Likewise.
8949         * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
8950         * sysdeps/mach/hurd/seekdir.c: Likewise.
8951         * sysdeps/mach/hurd/opendir.c: Likewise.
8952         * sysdeps/mach/hurd/closedir.c: Likewise.
8953         * sysdeps/mach/hurd/readdir.c: Likewise.
8954         * sysdeps/unix/telldir.c: Likewise.
8955         * sysdeps/unix/seekdir.c: Likewise.
8956         * sysdeps/unix/rewinddir.c: Likewise.
8957         * sysdeps/unix/readdir.c: Likewise.
8958         * sysdeps/unix/opendir.c: Likewise.
8959         * sysdeps/unix/closedir.c: Likewise.
8960         * sysdeps/unix/bsd/telldir.c: Likewise.
8961         * sysdeps/unix/bsd/readdir.c: Likewise.
8962         * dirent/Makefile (headers): Remove dirstream.h.
8963         (distribute): Put it here instead.
8965         * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
8967         * stdio/vfscanf.c (number): Allow field width to inhibit first
8968         digit after base detection.
8970         * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
8971         specified by the precision.
8973         * grp/grpread.c (__grpscan): New function.
8974         * grp/grp.h (__grpscan): Declare it.
8975         * grp/getgrgid.c: Use __grpscan.
8976         * grp/getgrnam.c: Likewise.
8977         * pwd/pwdread.c (__pwdscan): New function.
8978         * pwd/pwd.h (__pwdscan): Declare it.
8979         * pwd/getpwnam.c: Use __pwdscan.
8980         * pwd/getpwuid.c: Likewise.
8982 Thu Aug 24 16:29:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8984         * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
8985         MAP_FILE.
8987         * hurd/thread-cancel.c: Return EINTR when called on self.
8988         * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
8989         __data_start.
8991 Tue Aug 22 16:49:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8993         * inet/netdb.h: Moved to resolv.
8994         * inet/Makefile (headers): Remove netdb.h.
8995         * resolv/Makefile (headers): Add netdb.h.
8996         * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
8997         resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
8999         * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
9000         resuming the thread.
9001         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
9003         * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
9005 Mon Aug 21 16:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9007         * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
9008         relocs, and do nothing.  Why the linker generates them we may
9009         never know.
9011 Thu Aug 17 16:18:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9013         * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
9014         `subdirs' variable.
9016         * sysdeps/mach/hurd/i386/intr-msg.h: New file.
9017         * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
9018         "intr-msg.h" for special syscall code, instead of i386-specific asm.
9019         * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
9020         machine-dependent "intr-msg.h" before mutating thread state to
9021         skip RPC.
9023         * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
9024         _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
9025         %ecx.
9027         * Makeconfig (link-libc): New variable; use shared library if
9028         available.
9029         (+link): Use it.
9031         * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
9032         Instead, declare with `symbol_set_declare'.
9033         (fork): Use symbol_set_* macros for _hurd_fork_locks.
9034         Use SS->thread instead of __mach_thread_self ().  Suspend all
9035         other threads during task_create and port copying.
9037 Wed Aug 16 17:04:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9039         * hurd/intr-msg.c: Fixed calculation of syscall %esp.
9041 Tue Aug 15 12:26:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9043         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
9045         * hurd/Makefile (sig): Add intr-msg.
9047 Mon Aug 14 16:51:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9049         * hurd/thread-cancel.c: New file.
9050         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
9051         rpc_wait case, frob mach_msg args to set timeout on receive.
9052         (_hurdsig_rcv_interrupted_p): Function removed.
9053         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
9054         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
9055         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
9056         * hurd/intr-msg.c: New file.
9057         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
9058         (_hurdsig_rcv_interrupted_p): Declaration removed.
9059         (HURD_EINTR_RPC): Macro removed.
9060         (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
9061         these.
9062         * hurd/intr-rpc.h: New file.
9063         * hurd/intr-rpc.defs: Just import intr-rpc.h.
9064         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
9065         (interrupted_reply_port_location): Take new flag arg; only catch
9066         faults if it's set.
9067         (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
9068         No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
9069         &_hurd_intr_rpc_msg_in_trap.  If before it, mutate state to simulate
9070         MACH_SEND_INTERRUPTED return; on it, interrupt the operation.  All
9071         callers changed.
9072         * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
9073         * hurd/Makefile (distribute): Remove intr-rpc.awk.
9074         (sig): Add thread-cancel.
9075         (transform-user-stub, transform-user-stub-output): Variables removed.
9076         * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
9077         `__hurd_intr_rpc_*' to `__*'.
9078         (_hurd_intr_rpc_mach_msg): New function.
9079         (_hurd_thread_sigstate): Function removed.
9080         * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
9081         instead of __mach_msg inside HURD_EINTR_RPC macro.
9083         * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
9084         to take ptrdiff_t arg.
9086         * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
9088         * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
9090         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
9091         weak_alias): Use `extern' storage class.
9093 Wed Aug  9 14:25:35 1995  Miles Bader  <miles@geech.gnu.ai.mit.edu>
9095         * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
9096         port-count parameters to __auth_makeauth.
9097         * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
9099 Tue Aug  8 12:22:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9101         * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
9103         * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
9105 Tue Aug  8 12:06:04 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>
9107         * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
9108         IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
9109         layer socket options.
9110         (IPPROTO_GGP): Delete obsolote protocol.
9111         (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
9112         (struct ip_mreq): New type.
9114 Mon Aug  7 14:04:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9116         * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
9118         * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
9119         (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
9121         * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
9122         when __stdio_open fails with a code other than ENFILE or EMFILE.
9124 Fri Aug  4 16:01:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9126         * Makefile (headers): Added gnu-versions.h.
9128 Thu Aug  3 14:41:11 1995  Michael I. Bushnell  <mib@duality.gnu.ai.mit.edu>
9130         * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
9131         equality, not assignment, to test bitfields.
9133 Sat Jul 29 10:41:06 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
9135         * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
9136         resolve AF_LOCAL addresses.
9138         * sysdeps/mach/hurd/accept.c (accept): If the protocol family
9139         can't tell us what an address means, just return a zero-length
9140         buffer instead.
9141         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
9143 Fri Jul 28 15:29:11 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
9145         * sysdeps/mach/hurd/bind.c (bind): Don't use
9146         file_invoke_translator, as it doesn't work.  Instead just lookup
9147         the translated node again, and hope we're not hit by any race
9148         conditions.
9150 Wed Jul 26 02:00:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9152         * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
9153         [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
9154         [start-installed-name-rule]: If this is defined, elide rule for
9155         $(objpfx)$(start-installed-name).
9156         * csu/initfini.c (SECTION): New macro, different definitions for
9157         #ifdef HAVE_ELF and not.
9158         (_init, _fini): Use that macro.
9159         * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
9160         (start-installed-rule, start-installed-name-rule): New variables;
9161         specify crt1.o, created by our own rule.
9162         ($(objpfx)crt1.o): New rule.
9163         * configure.in: Require autoconf 2.4.2 or later.  Change all
9164         AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
9165         prettify some messages.
9166         [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
9167         sections.
9168         * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
9169         this case rather than #ifdef HAVE_ELF.
9170         * config.h.in (HAVE_INITFINI): New macro.
9171         * config.make.in (have-initfini): New variable, set by configure.
9173         * stdio/vfscanf.c (conv_error): Simplify expression to avoid
9174         "value computed is not used" warning.
9176         * Makeconfig (+gccwarn): Removed -Wconversion.
9178         * csu/initfini.c (GLOBAL): Macro removed.
9179         (_init, _fini): Always define globally.
9180         * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
9182         * asia, backward, europe, leapseconds, southamerica: New data from
9183         ADO's 95e.
9185         * inet/Makefile (routines): Removed inet_addr.
9186         * inet/inet_addr.c: Moved to resolv/ subdirectory.
9187         * resolv/Makefile (routines): Added inet_addr.
9188         * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
9189         * resolv/gethnamaddr.c: Likewise.
9190         * resolv/getnetbyaddr.c: Likewise.
9191         * resolv/getnetbyname.c: Likewise.
9192         * resolv/getnetent.c: Likewise.
9193         * resolv/getnetnamadr.c: Likewise.
9194         * resolv/herror.c: Likewise.
9195         * resolv/nsap_addr.c: Likewise.
9196         * resolv/res_comp.c: Likewise.
9197         * resolv/res_debug.c: Likewise.
9198         * resolv/res_init.c: Likewise.
9199         * resolv/res_mkquery.c: Likewise.
9200         * resolv/res_query.c: Likewise.
9201         * resolv/res_send.c: Likewise.
9202         * resolv/resolv.h: Likewise.
9203         * resolv/sethostent.c: Likewise.
9204         * resolv/arpa/nameser.h: Likewise.
9205         * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
9206         [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
9207         its declarations (and doing so only #ifdef sun!).
9208         * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
9210         * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
9211         [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
9213         * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
9214         if possible.
9216         * mach/shortcut.awk: Emit decls for RPC.
9218         * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
9219         weak_alias, strong_alias): Define using GCC __attribute__ syntax.
9221         * Makerules ($(installed-libcs)): Depend on `lib' (only).
9223 Tue Jul 25 09:14:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9225         * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
9227         * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
9229         * sysdeps/unix/sysv/ftime.S: New file.
9231         * locale/locfile-parse.c (categories_write): Cast "" to char *.
9233         * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
9235         * time/strftime.c: Use year modulo 100 for %y.
9237         * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
9239         * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
9240         of one, to work around bug in sunos4.1.2 sed.
9242         * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
9243         memchr instead of strlen to limit search for NUL by precision.
9245 Mon Jul 24 03:13:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9247         * sysdeps/posix/pathconf.c: New file.
9249 Sat Jul 22 20:53:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9251         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
9252         before @PLT.
9253         * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
9254         * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
9255         * sysdeps/i386/bsd-setjmp.S: Likewise.
9257 Sat Jul 22 19:58:54 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
9259         * inet/Makefile (routines): Added `ruserpass'.
9260         * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
9261         client.  Modified to remove the fourth arg AACCT.  Do nothing for
9262         the `account' and `macdef' keywords.  Other incidental changes
9263         because we are not in the FTP source tree.
9265 Sat Jul 22 01:56:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9267         * sysdeps/stub/init-posix.c: Removed stub warning.
9269         * Makefile (autoconf-it): Make it executable and unwritable.
9271         * configure.in (sysnames): Under --enable-debug-configure, spew
9272         potential sysnames.
9274         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
9275         #ifdef PIC.
9276         (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
9277         * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
9278         jump insn.
9280         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
9281         * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
9282         * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
9283         <sys/socketcall.h>.  Save %ebx in call-clobbered %edx instead of
9284         stack.  Use JUMPTARGET(syscall_error) in jump insn.
9286         * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
9288         * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
9289         ASM_TYPE_DIRECTIVE.
9290         (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
9292         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
9293         Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
9294         * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
9296         * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
9297         instead of unix/sysv.
9298         * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
9299         socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
9300         to new directory sysdeps/unix/sysv/sysv4/linux.
9301         * sysdeps/unix/sysv/linux: Directory removed.
9302         * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
9303         to new directory sysdeps/unix/sysv/sysv4/linux/i386.
9304         * sysdeps/unix/sysv/linux/i386: Directory removed.
9306         Fixes to help Linux, inspired by drepper's work:
9307         * sysdeps/posix/utimes.c: New file.
9308         * sysdeps/generic/getdomain.c: New file.
9309         * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
9310         * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
9311         externals _dl_argc, _dl_argc, and _environ.
9313 Fri Jul 21 12:57:29 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
9315         * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
9316         EOPNOTSUPP as indications that the server has died.
9317         * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
9318         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
9320 Mon Jul 17 08:45:40 1995  Jim Meyering  (meyering@comco.com)
9322         * strtol.c: Portability changes from Uli Drepper.
9323         [!STDC_HEADERS && !defined(NULL)]: Define NULL.
9325 Mon Jul 10 05:39:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9327         * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
9328         DATA for the entry SP; DATA[-1] is always the return address
9329         location.  In both cthreads and non-cthreads cases, use asm to
9330         force parameters into %eax and %ecx before return, and mutate
9331         DATA[-1] to return to specific asm code to set up the user from
9332         %eax and %ecx.
9333         [PIC] (_init): Caller changed.
9334         (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
9335         with SP unwound to argument data ptr.
9337 Thu Jul  6 14:28:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9339         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
9340         when 0x08000000 and up are not mapped.
9342         * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
9343         before touching it.
9344         (lib%.so): Use -Wl to get -soname to ld.
9346         * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
9348         * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
9350 Tue Jun 20 02:18:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9352         * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
9353         library's name including $(libprefix) and major version number.
9355         * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
9356         in place of xcalloc.
9358         * Makeconfig (prefix, exec_prefix, libprefix): Instead of
9359         `ifndef', use the $(origin) function to only set these if they are
9360         undefined, and not if they are defined to empty.
9362         * gnu-versions.h: New file.
9363         * features.h (__GNU_LIBRARY__): Increase value to 5.
9365 Wed Jun 14 03:45:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9367         * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
9368         expression, to avoid gcc's "value computed is not used" warning.
9370         * libc-symbols.h (_elf_set_element): Give the set-element variable
9371         an `unused' attribute.
9373         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
9374         __attribute__ ((__const__)).
9375         * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
9377         * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
9378         LINK->resource.next->resource.prevp when appropriate, not
9379         LINK->resource.next->thread.prevp!!!
9381 Tue Jun 13 15:45:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9383         * configure.in (libc_cv_asm_set_directive): Make sure that the
9384         `.set' directive really worked by linking against a reference to
9385         the alias.
9387         * sysdeps/stub/init-first.c: Don't include <hurd.h>.
9388         [PIC] (soinit): Renamed to (global) _init.
9390 Mon Jun 12 13:15:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9392         * malloc/Makefile (gmalloc-routines): Remove valloc.
9393         (dist-routines): Add it here.
9395         * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
9396         emacs_loser_valloc to inhibit valloc declaration below.
9398         * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
9399         installation rules.
9401         * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
9402         it uses the `.type' directive, which is necessary for shared
9403         libraries to work properly.
9405 Thu Jun  8 02:50:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9407         * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
9408         from zero fill.
9410         * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
9411         if nonzero, don't let *REF satisfy the reference itself.
9412         * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
9413         * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
9414         _dl_lookup_symbol.
9415         * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
9416         R->r_offset to RESOLVE callback.
9417         * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
9418         satisfy the reference itself if its value equals the reloc's
9419         offset.
9421         * elf/rtld.c (dl_main): Write a newline in fatal msg.
9423         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
9425         * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
9427         * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
9428         and user entry point addresses.
9430         * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
9431         (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
9433         * Makerules (install-lib.so): Don't include libc.so.
9434         [$(build-shared)=yes] (install): Depend on the installed libc.so file.
9435         [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
9436         install, depend on the installed $(install-lib.so) files.
9437         [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
9439         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
9440         allocate high addresses to avoid random mappings appearing there.
9441         (mmap): Comment out mask; always pass zero.
9443 Tue Jun  6 13:34:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9445         * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9446         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
9448         * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
9449         when successful.
9451         * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
9452         (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
9453         variables, using the `threadvars' buffer.
9455         * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
9456         * sysdeps/i386/dl-runtime.c: Likewise.
9458         * elf/rtld.c (dl_main): Add missing NULL terminating argument in
9459         _dl_sysdep_fatal call.
9460         (__assert_fail): Likewise.
9462         * locale/Makefile (localedef-modules): Renamed ctype to
9463         locale-ctype so as not to conflict with the object file for
9464         ctype/ctype.c in the build directory.
9466 Mon Jun  5 04:02:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9468         * elf/elf.h (ELFMAG): Use \177 instead of \x7f.  It seems GCC
9469         insists on seeing the following E as part of hex 7FE, and
9470         complaining that is wider than a byte.
9472 Sun Jun  4 22:14:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9474         * hurd/Makefile (sig): Added thread-self.
9475         * hurd/hurd.h: Declare hurd_thread_self.
9476         * hurd/thread-self.c: New file.
9478 Thu Jun  1 12:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9480         * elf/rtld.c: Initialize RTLD_MAP.l_type.
9481         * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
9482         the dynamic linker itself.
9483         * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
9484         lt_interpreter, first undo relocation done during bootstrapping.
9486 Tue May 30 15:52:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9488         * mach/Makefile (server-interfaces): Removed notify and
9489         device_reply.  For shlibs with eager binding, libmachuser.so must
9490         not refer to any functions not defined in libc.
9492 Sat May 27 16:23:22 1995  Jim Meyering  (meyering@comco.com)
9494         * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
9495         to avoid error from Irix-4.0.5's C compiler.  From Kaveh Ghazi.
9497 Fri May 26 13:00:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9499         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
9500         pending signals if the thread is in a critical section.  It will
9501         send us a msg when it finishes.
9503         * sysdeps/mach/hurd/pathconf.c: New file.
9504         * sysdeps/mach/hurd/fpathconf.c: New file.
9506         * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
9507         SIGCHLD when the SA_NOCLDSTOP bit actually changes.
9509 Sun May 21 05:05:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9511         * elf/Makefile (ld.so): Use -nostartfiles in addition to
9512         -nostdlib.
9514 Sun May 21 02:01:29 1995  Jim Meyering  (meyering@comco.com)
9516         * sysdeps/generic/memchr.c: Don't include <string.h> at all.
9517         HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
9518         memchr unless one manually arranges for them to define __STDC__.
9520 Fri May 19 17:16:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9522         * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
9523         args on stack from kernel.
9525         * posix/Makefile, sysdeps/alpha/Makefile,
9526         * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
9527         * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
9528         in the absence of CVS dirs.
9530         * hurd/hurdstartup.c: Don't call __mach_init.  Grok args from the
9531         kernel on the stack properly.
9533         * set-init.c: Never call _init/_fini; just run __libc_subinit.
9535         * Makerules (LDFLAGS-c.so): Add -nostartfiles.
9536         * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
9538         * configure.in: Move defaulting of --with-elf and --with-gnu-*
9539         based on host os outside the AC_CACHE_VAL for the sysdirs
9540         calculation.
9542         * Makeconfig (localedir, nlsdir): New variables.
9544         * values.h: New file.
9545         * Makefile (headers): Add values.h.
9547         * locale/Makefile (distribute): Add error.h.
9548         * locale/localedef.c: Include "error.h".
9549         (main): Use error_message_count instead of warning_cntr.
9551 Wed May 17 16:50:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9553         Merged 1003.2 locale and localedef programs by Ulrich Drepper.
9554         * locale/charmap.c: New file.
9555         * locale/collate.c: New file.
9556         * locale/config.h: New file.
9557         * locale/ctype.c: New file.
9558         * locale/ctypedump.c: New file.
9559         * locale/hash.c: New file.
9560         * locale/hash.h: New file.
9561         * locale/iso-4217.def: New file.
9562         * locale/keyword.gperf: New file.
9563         * locale/keyword.h: New file.
9564         * locale/libintl.h: New file.
9565         * locale/locale.c: New file.
9566         * locale/localedef.c: New file.
9567         * locale/localedef.h: New file.
9568         * locale/locfile-lex.c: New file.
9569         * locale/locfile-parse.c: New file.
9570         * locale/messages.c: New file.
9571         * locale/monetary.c: New file.
9572         * locale/numeric.c: New file.
9573         * locale/token.h: New file.
9575         * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
9576         * posix/Makefile (headers): Add regex.h.
9577         (routines): Add regex.
9578         (gpl2lgpl): Add regex.c and regex.h.
9580 Tue May 16 17:35:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9582         * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
9583         instead of hard-coding "/share/locale".
9585 Sat May 13 02:16:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9587         * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
9589 Fri May 12 15:31:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9591         * elf/elf.h (ELFMAG, SELFMAG): New macros.
9593 Fri May 12 11:24:53 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>
9595         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
9596         the case where it starts out less than _hurd_dtablesize.
9598 Thu May 11 20:51:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9600         * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
9601         make sure the new size exceeds FIRST_FD.
9603 Wed May 10 21:00:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9605         * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
9607 Tue May  9 01:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9609         * Makerules (install-lib.so): Add %.so for each %_pic.a.
9611         * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
9612         the first thing in .data.
9614         * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
9616         * hurd/hurdstartup.h: New file.
9618         * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
9619         are the same.  Use `jz' instead of `jeq'.
9621         * Makeconfig (config.make): Depend on config.status, and run it to
9622         update.
9623         (config.status): New target; depend on configure.
9624         If target (config.status) exists, run it with --recheck to update;
9625         if not, give error msg saying to run confiugre by hand.
9626         * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
9627         (sysd-Makefile-force): Set this variable to FORCE in this case, to
9628         force a rebuild of sysd-Makefile.
9629         (sysd-Makefile): Depend on $(sysd-Makefile-force).
9630         Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
9631         [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
9632         variable to FORCE in this case, to force a rebuild of sysd-rules.
9633         (sysd-rules): Depend on $(sysd-rules-force).
9634         Write into the file sysd-rules-sysdirs:=$(sysdirs).
9636         * Makerules (LDFLAGS-c.so): Change ld option -interp to
9637         -dynamic-linker.
9639         * Makerules (do-install-program): New canned sequence.
9640         (install-bin, install-sbin): Use it.
9641         (install for lib*.so): Use it instead of $(do-install).
9642         Fix .so installation rules to handle lib*.so and *.so, deal with
9643         $(libprefix) right, and install *.so as *.so$($(*.so)-version);
9644         i.e. "libc.so-version = .1".
9646 Mon May  8 05:10:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9648         * elf/do-rel.h: New file, split out of dynamic-link.h.
9649         * elf/Makefile (distribute): Add do-rel.h.
9651 Sat May  6 11:06:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9653         * Makeconfig (+gccwarn): Add -Winline.
9655         * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
9656         set, avoid abort_rpcs, and use reply and intr ports saved in
9657         SS->context.
9658         * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
9659         from SS->context.  Don't clear SS->context.
9660         * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
9661         setting SS->context.  If msg_sig_post returns, re-lock and clear
9662         SS->context.
9664 Fri May  5 10:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9666         * mach/Makefile (errsystems.c): Comment out generation rule.
9668         * sysdeps/mach/_strerror.c: Consider a system unknown if its
9669         bad_sub member is null.
9671         * mach/mig-alloc.c: Add weak alias to non-__ name.
9673 Wed May  3 11:56:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9675         * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
9677 Tue May  2 01:52:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9679         * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
9680         function.  Duh.
9682         * hurd/Makefile (distribute): Added hurdstartup.h.
9683         * hurd/hurd.h: Remove _hurd_startup decl.
9685         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
9686         ((__unused__)) instead of gratuitous self reference.
9688         * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
9689         table if FD2 doesn't fit.
9691         * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
9692         not the current table size.
9694         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
9696         Implemented runtime dynamic linker to support ELF shared libraries.
9697         * elf/Makefile: Added rules to make ld.so and libdl.
9698         * elf/dl-error.c: New file.
9699         * elf/dl-fini.c: New file.
9700         * elf/dl-init.c: New file.
9701         * elf/dl-load.c: New file.
9702         * elf/dl-lookup.c: New file.
9703         * elf/dl-object.c: New file.
9704         * elf/dl-reloc.c: New file.
9705         * elf/dlclose.c: New file.
9706         * elf/dlerror.c: New file.
9707         * elf/dlopen.c: New file.
9708         * elf/dlsym.c: New file.
9709         * elf/dynamic-link.h: New file.
9710         * elf/link.h: New file.
9711         * elf/rtld.c: New file.
9712         * sysdeps/i386/dl-machine.h: New file.
9713         * sysdeps/stub/dl-machine.h: New file.
9714         * sysdeps/i386/dl-runtime.c: New file.
9715         * sysdeps/stub/dl-runtime.c: New file.
9716         * sysdeps/i386/elf/start.S: New file.
9717         * sysdeps/generic/dl-sysdep.c: New file.
9718         * sysdeps/mach/hurd/dl-sysdep.c: New file.
9719         * sysdeps/mach/hurd/i386/init-first.c: New file.
9720         * sysdeps/i386/init-first.c: New file.
9721         * sysdeps/stub/init-first.c: New file.
9723 Mon May  1 18:48:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9725         * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
9726         libc.so runnable.
9727         * version.c (__libc_print_version): Add "et al" and missing NL to
9728         author credit.
9730 Sat Apr 29 15:46:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9732         * posix/glob.c (S_ISDIR): Define if undefined.
9734 Thu Apr 27 01:24:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9736         * configure.in: Unless --without-fp, prepend */fpu before each
9737         machine dir in $mach; don't prepend FPU dirs at end.  If
9738         --with-elf, prepend MACHINE/elf directories at end; don't insert
9739         them into $mach.
9741         * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
9743         * sysdeps/stub/clock.c: Added stub warning.
9744         * sysdeps/stub/dirfd.c: Likewise.
9745         * sysdeps/stub/exc2signal.c: Likewise.
9746         * sysdeps/stub/fdopen.c: Likewise.
9747         * sysdeps/stub/flock.c: Likewise.
9748         * sysdeps/stub/fpathconf.c: Likewise.
9749         * sysdeps/stub/ftruncate.c: Likewise.
9750         * sysdeps/stub/gtty.c: Likewise.
9751         * sysdeps/stub/isatty.c: Likewise.
9752         * sysdeps/stub/killpg.c: Likewise.
9753         * sysdeps/stub/madvise.c: Likewise.
9754         * sysdeps/stub/mkstemp.c: Likewise.
9755         * sysdeps/stub/mktemp.c: Likewise.
9756         * sysdeps/stub/mprotect.c: Likewise.
9757         * sysdeps/stub/msync.c: Likewise.
9758         * sysdeps/stub/pathconf.c: Likewise.
9759         * sysdeps/stub/poll.c: Likewise.
9760         * sysdeps/stub/raise.c: Likewise.
9761         * sysdeps/stub/readv.c: Likewise.
9762         * sysdeps/stub/setenv.c: Likewise.
9763         * sysdeps/stub/setlogin.c: Likewise.
9764         * sysdeps/stub/sigaltstack.c: Likewise.
9765         * sysdeps/stub/sigintr.c: Likewise.
9766         * sysdeps/stub/sigstack.c: Likewise.
9767         * sysdeps/stub/sleep.c: Likewise.
9768         * sysdeps/stub/sstk.c: Likewise.
9769         * sysdeps/stub/stime.c: Likewise.
9770         * sysdeps/stub/stty.c: Likewise.
9771         * sysdeps/stub/syscall.c: Likewise.
9772         * sysdeps/stub/sysconf.c: Likewise.
9773         * sysdeps/stub/truncate.c: Likewise.
9774         * sysdeps/stub/ualarm.c: Likewise.
9775         * sysdeps/stub/usleep.c: Likewise.
9776         * sysdeps/stub/utimes.c: Likewise.
9777         * sysdeps/stub/writev.c: Likewise.
9779         * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
9781 Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9783         * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
9785 Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9787         * posix/glob.c (glob): If GLOB_MARK set, stat names to find
9788         directories and append slashes to them in final pass before
9789         sorting.
9790         (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
9791         slash; never append it here.
9793 Sat Apr 22 14:48:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9795         * mach/Machrules [interface-library]
9796         (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
9797         -nostdlib.
9799         * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed.  Lock
9800         _hurd_siglock only around initial task creation in parent.  Use
9801         _hurd_critical_section_unlock at end.  Handle dead name rights
9802         properly, and deal with a send right dying while we try to copy
9803         it.  For the time being, use assert_perror for kernel and proc RPC
9804         failures.
9806 Fri Apr 21 01:10:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9808         * extra-lib.mk: Don't include $(o-iterator); construct it by hand
9809         using $(object-suffixes-$(lib)) instead.
9811         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
9813         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
9814         (LDFLAGS-c.so): New variable.
9816         * resolv/res_init.c (res_init): Don't clobber _res.options with
9817         RES_DEFAULT.  If RES_INIT is clear, OR in RES_DEFAULT.
9819         * hurd/hurd.h: Declare _hurd_startup.
9820         * hurd/hurdstartup.c: New file.
9821         * hurd/Makefile (routines): Add hurdstartup.
9823 Thu Apr 20 22:23:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9825         * hurd/hurdsig.c: Use assert_perror for many calls which should
9826         never fail and previously were not checked.
9828         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
9829         Point the return address for sigreturn's frame at a "hlt" insn so
9830         it will definitely crash if sigreturn returns.
9832 Wed Apr 19 18:40:11 1995  Brendan Kehoe  (brendan@zen.org)
9834         * time/tzset.c (__tzname, __daylight, __timezone): Don't check
9835         HAVE_WEAK_SYMBOLS for doing weak_alias.
9837 Wed Apr 19 18:12:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9839         * configure.in: Move $os tests to set $elf et al earlier, before
9840         construction of $sysnames.  Instead of prepending MACHINE/elf to
9841         $sysnames, append &/elf after each elt appended to $mach.
9843 Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9845         * configure.in (libc_cv_asm_global_directive): New check to define
9846         ASM_GLOBAL_DIRECTIVE.
9847         * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
9848         * libc-symbols.h (strong_alias_asm, strong_alias): Use
9849         ASM_GLOBAL_DIRECTIVE on the alias.
9851         * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
9852         HAVE_WEAK_SYMBOLS" #defns.
9854 Mon Apr 17 12:02:49 1995  Brendan Kehoe  (brendan@zen.org)
9856         * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
9857         of the byte that was zero, so we return a valid number.
9859 Sun Apr 16 03:23:09 1995  Brendan Kehoe  (brendan@zen.org)
9861         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
9862         NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
9864 Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)
9866         * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
9867         [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
9868         * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
9869         [BITS_PER_MP_LIMB == 64]: Likewise.
9871         * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
9872         * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
9873         * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
9874         * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
9875         * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
9876         * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
9877         * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
9878         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
9879         * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
9880         * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
9881         * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
9883         * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
9884         * sysdeps/unix/mips/fork.S (fork): Likewise.
9885         * sysdeps/unix/mips/pipe.S (fork): Likewise.
9886         * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
9887         * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
9888         * sysdeps/unix/mips/wait.S (__handler): Likewise.
9889         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
9890         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
9891         * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
9892         * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
9893         * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
9894         * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
9895         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
9896         * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
9897         * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
9898         * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'
9899         instead of `zero' for the li instruction.
9901         * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
9902         preprocessor comments, not assembler comments.
9903         * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
9904         * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
9906 Fri Apr 14 15:53:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9908         * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
9909         in place of inline.
9911 Thu Apr 13 09:45:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9913         * Makefile (distribute): Add ChangeLog.[0-9].
9915         * configure.in: Add check for .set directive.
9916         * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
9917         * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
9918         strong_alias_asm): Use `foo = bar' syntax instead.
9920         * Makerules [! subdir] (O%-lib): Don't prepend ../.
9922         * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
9924         * configure.in: Fix AC_ARG_WITH uses; check for --with-fp.  Move
9925         $host_os checks to set gnu_ld/as and elf before sysdirs
9926         generation.  Fix $with_fp test.
9927         [$elf=yes]: Prepend MACHINE/elf directory.
9929         * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
9930         being cleared are already known to be set.  Thanks Ulrich.
9932 Wed Apr 12 23:27:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9934         * posix/environ.c: Add weak alias `_environ'.
9936 Tue Apr 11 20:38:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9938         * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
9939         * sysdeps/i386/sub_n.S [PIC]: Likewise.
9941 Mon Apr 10 14:53:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9943         * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
9944         word `const'.
9946         * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
9947         $(foo-$(suffix $@)).
9949         * manual/Makefile (chapters-incl): Filter out summary.texi.
9951         * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
9952         a weak symbol instead of literal "STRTOF".
9954         * locale/setlocale.c: Work around ld bug: don't weakify refs to
9955         _nl_{current,C}_*.
9957 Sun Apr  9 01:24:33 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9959         * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
9961         * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
9962         * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
9964         * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
9965         #ifdef emacs, but only #ifndef memmove.
9966         * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
9967         safe_bcopy.
9968         (memmove): Define only if undefined.
9970 Sat Apr  8 00:40:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9972         * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
9973         sure these are simply-expanded variables.
9975         * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
9976         mmap call.
9978         * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
9979         for these too.
9981         * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
9982         set c_oflag value.
9984         * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
9986         * locale/Makefile (categories): Uncomment collate.
9987         * locale/lc-collate.c: New file.
9989         * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
9990         #ifdef emacs.
9991         * malloc/realloc.c: Likewise.
9993         * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
9994         (_itoa): Use it in defn.
9995         * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
9996         "_itoa.h".
9997         (_itoa): Function removed.
9999         * malloc/free.c: Remove use of `assert'.
10001         * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
10002         __malloc_safe_bcopy; #define safe_bcopy.
10003         * malloc/free.c: Cope with systems lacking `memmove'.
10004         (_free_internal): Cast result of _malloc_internal.
10006 Wed Apr  5 00:13:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10008         * hurd/hurdinline.c: Include signal.h first, so we don't define
10009         its inlines too.
10011         * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
10012         of -1 to avoid compiler warning.
10014         * configure.in (host_os=linux*): Set elf=yes for this, not just
10015         linux*elf*.
10017         * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
10018         and open.
10020         * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
10022 Tue Apr  4 00:48:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10024         * sysdeps/unix/start.c: Remove spurious decl and #endif.
10026         * misc/progname.c (program_invocation_name,
10027         program_invocation_short_name): Make these initialized data
10028         definitions.
10030         * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
10031         so gcc doesn't optimize out the function entirely.
10033 Sun Apr  2 13:13:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10035         * posix/execvp.c: Don't use stat to search path; just try execv
10036         until it works.
10038         * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
10039         SS->active_resources, so that _hurdsig_longjmp_from_handler will
10040         be called when a longjmp unwinds the signal frame.
10041         * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
10042         SS->active_resources chain added by _hurd_setup_sighandler.
10043         * hurd/sigunwind.c: New file.
10044         * hurd/Makefile (sig): Add sigunwind.
10046         * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
10048         * MakeTAGS (tags-sources): Include $(all-dist).
10049         [subdir] (all-dist): Define to $(distribute).
10051 Sat Apr  1 00:08:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10053         * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
10054         parent objdirs.
10056         * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
10057         filtering out $($(lib)-inhibit-o); use that instead of
10058         $(object-suffixes) in all the other variables.
10060         * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
10061         if undefined.
10063         * string/strxfrm.c: Just copy the string (for now).
10064         * string/strcoll.c: Just call strcmp (for now).
10066         * mach/Makefile (lock): Add mutex-init.
10067         * mach/mutex-solid.c (_cthread_mutex_lock_routine,
10068         _cthread_mutex_unlock_routine): Variables removed.
10069         (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
10070         (__mutex_init): Function moved to new file mutex-init.c.
10071         * mach/mutex-init.c: New file, broken out of mutex-solid.c.
10073 Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>
10075         * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
10076         * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
10078 Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10080         * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
10081         both are zero).
10083 Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10085         * elf/dlfcn.h: New file.
10087         * Make-dist (README): Commit it to CVS if there is a CVS directory.
10089         More changes from Germano Caronni <caronni@tik.ethz.ch>:
10090         * malloc/free.c: Relocate _heapinfo when that allows us to return
10091         core to the system.
10093         * malloc/malloc.c: Move #include <errno.h> outside #ifndef
10094         _MALLOC_INTERNAL.
10096 Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10098         * mach/Makefile (headers): Add mach/mach_traps.h.
10100         * Makerules ($(installed-libcs) rule): Fix typos.
10102         * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
10103         * sysdeps/stub/revoke.c: New file.
10104         * misc/Makefile (routines): Add revoke.
10105         * posix/unistd.h [__USE_BSD] (revoke): Declare it.
10106         * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
10107         (forkpty): Declare login_tty.
10108         * misc/logwtmp.c (logwtmp): Declare to return void.
10109         * misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.
10111         * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
10113         * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
10114         unless L_SET already defined.
10115         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
10116         already defined.
10118         Incorporated -lutil library from 4.4-Lite.
10119         * misc/Makefile (extra-libs, libutil-routines): New variables.
10120         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
10121         sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
10123         Support simple, light-weight unwind-protect mechanism for longjmp.
10124         * setjmp/longjmp.c: Call _longjmp_unwind first thing.
10125         * sysdeps/mach/hurd/jmp-unwind.c: New file.
10126         * sysdeps/stub/jmp-unwind.c: New file.
10127         * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10128         * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10129         * setjmp/Makefile (routines): Add jmp-unwind.
10130         * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
10131         `prevp' members into new substructure `resource'; add another such
10132         substructure `thread' and members `cleanup' (function ptr) and
10133         `cleanup_data' (generic ptr).
10134         (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
10135         into the `_hurd_self_sigstate ()->active_resources' list via the
10136         `thread' substructure.
10137         * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
10138         (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
10139         LINK->cleanup_data' to the port extracted.
10140         * hurd/hurd/signal.h (struct hurd_sigstate): New member
10141         `active_resources'.
10142         * hurd/port-cleanup.c: New file.
10143         * hurd/Makefile (routines): Add port-cleanup.
10145         * malloc/malloc.c: Include errno.h.
10147 Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10149         * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
10151 Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10153         * misc/Makefile (headers): Add utmp.h.
10154         * misc/utmp.h: New file, incorporated from 4.4-Lite.
10156         * stdio/printf-parse.h: New file, mostly written by drepper.
10157         * stdio/vfprintf.c: Rewritten, mostly by drepper.
10158         * stdio/printf-prs.c: Rewritten.
10159         * stdio/Makefile (distribute): Add printf-parse.h.
10161 Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10163         * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
10164         with asm name.  Just do a ".set start, __start".
10166         * malloc/realloc.c: Call _free_internal instead of free.
10168 Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10170         * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
10171         directory, open LOCALE/LC_*/SYS_LC_* instead.
10173 Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10175         * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
10176         stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
10177         stdio/gen-mpn-copy: Files moved to stdlib.
10178         * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
10179         * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
10180         * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
10181         headers.
10182         * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
10183         headers.
10185         * Makefile (parent-mostlyclean): Don't use $(libc.a).
10186         (parent-clean): Use $(objpfx) to find sysd-*.
10187         * Rules (generated): Append dummy.o dummy.c.
10188         * Makerules (lib): Depend on lib-noranlib.
10189         (lib-noranlib): Depend on $(install-lib) in objdir.
10190         (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
10191         from objdir.  Don't remove TAGS; it comes in the distribution.
10193         * malloc/malloc.c (morecore): Save errno around call to
10194         _realloc_internal.  Don't account for the additional new blocks of
10195         the info table itself when choosing the new table size for the
10196         first crack; if it succeeds, the new blocks will have been found
10197         in existing free space already described by the existing info
10198         table.
10200         * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
10201         read-ahead character.
10203 Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10205         * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
10206           hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
10207           hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
10208           hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
10209         Get anal with unsigned to pacify compiler.
10211         * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
10212         means %d from 3rd arg).
10214         * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
10216         * stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
10217         END, not GROUP.
10219 Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10221         * Makefile (subdirs): Put elf last.
10223         * sunrpc/Makefile (install-lib): Variable removed.
10224         (rpcsvc-objs): Variable removed.
10225         (extra-objs): Don't include $(rpcsvc-objs).
10226         (extra-libs): New variable, contains librpcsvc.
10227         (librpcsvc-routines): New variable.
10228         (librpcsvc-inhibit-o): New variable, contains .so.
10229         (omit-deps): Set this to $(librpcsvc-routines).
10230         ($(objpfx)rpcgen): Don't use $(libc.a).
10231         (lib, $(objpfx)librpcsvc.a): Targets removed.
10233         * o-iterator.mk, extra-lib.mk: New files.
10234         * Makerules (o-iterator): New variable.
10235         [extra-libs]: Include extra-lib.mk to generate rules for each word
10236         of $(extra-libs).
10237         * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
10239 Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
10241         * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
10242         Handle 80-bit denormalized numbers correctly.
10244         * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
10245         (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
10246         * stdlib/strtod.c (RETURN): Add parentheses around return value.
10247         (round_and_return): Correct handling of denormalized numbers.
10249         * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
10250         LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
10251         exponent.
10253 Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10255         * locale/C-ctype.c: New correct data generated by drepper.
10257         * Rules: Don't use $(libc.a).
10259         Parsing of grouped numbers contributed by Ulrich Drepper.
10260         * stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
10261         new flag arg; if nonzero, parse locale-dependent thousands
10262         grouping and interpret only the prefix that is correctly grouped.
10263         (strtol): Define this to call _strtol_internal with zero for the flag.
10264         Use a weak symbol for the definition.
10265         * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
10266         Check for the exponent of the number overflowing the float format.
10267         * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
10268         (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
10269         [__OPTIMIZE__]: Define inline functions calling those.
10270         * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
10271         (strtold): Remove weak alias.
10272         * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
10273         (strtof): Remove weak alias.
10274         * stdlib/grouping.h: New file, written by drepper.
10275         * stdlib/Makefile (distribute): Add grouping.h.
10276         * stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
10277         __strtoX_internal with the grouping flag set iff the modifier is
10278         present.
10280 Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10282         * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
10284         * mach/Machrules: Produce static deps for all object flavors.
10285         [interface-library]: Remove all these variables and rules.
10286         ($(interface-library)-routines): Define this variable.
10287         (extra-libs): Append $(interface-library) to this.
10288         * mach/Makefile (interface-library): Omit .a suffix.
10289         * hurd/Makefile: Likewise.
10291 Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10293         * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
10294         early if no new data in buffer after priming.
10296 Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10298         * Makerules (object-suffixes, libtypes): Move all these variables
10299         to Makeconfig.
10300         * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
10302         * Makerules (build-extra-lib): New canned sequence.
10304         * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
10305         fix uses of FILE and PORT.  Remove bogus weak alias for `access'.
10307         * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
10308         Add missing semicolon.
10309         * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
10310         hurd_fd *' temp var, since DIRP->__fd is a `void *'.
10311         * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
10313         * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
10314         locale data format is implemented.
10316         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10317         Pass &__sigreturn on the stack to the trampoline code, so it is
10318         not position-dependent.
10320         * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
10321         Don't include <stdarg.h>.
10322         (__printf_fp): Last arg ARGS is now `const void **const';
10323         dereference ARGS[0] instead of using va_arg.
10325         * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
10326         loop to install data.
10328         * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
10329         to extract number from item code.
10330         (_nl_load_locale): Close the descriptor when finished.
10332         * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
10333         place of malloc.
10335         * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
10337         * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
10338         to avoid warning.
10339         * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
10340         int to avoid warning.
10342         Support building several flavors of objects and libraries.
10343         * Makerules (libtypes, object-suffixes): New variables.
10344         (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
10345         suffix.
10346         (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
10347         (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
10348         (close-check-inhibit-asm): Append a semicolon.
10349         (sysd-rules): Generate rules for each object suffix.
10350         (compile.S, compile.c): Always assume gcc.
10351         (OUTPUT_OPTION): Define unconditionally.
10352         (+make-deps): In generated rule, produce a dependent for each
10353         object suffix.
10354         (.SUFFIXES): Add $(object-suffixes) in place of .o.
10355         (.PRECIOUS): Make all suffix flavors precious.
10356         ($(libc.a)): Target removed.
10357         (lib): Depend on each enabled libtype.
10358         (libobjs, objects, objs): Depend on all the enabled object flavors.
10359         (lib%.a): New pattern rule.
10360         [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
10361         (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
10362         to make one for each flavor; library dep rule likewise rewritten.
10363         ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
10364         flavor.
10365         (symdef.%): New pattern rule; helper for __.SYMDEF targets.
10366         (installed-libcs): New variable.
10367         (install): Depend on that instead of
10368         $(libdir)/lib$(libprefix)$(libc-name).a;
10369         that file's rule rewritten to make each enabled libtype.
10370         (install-lib.so): New variable, filters lib%.so from $(install-lib).
10371         (install-lib): Filter out lib%.so after setting install-lib.so.
10372         [$(build-shared)=yes] (install): Install $(install-lib.so).
10373         (common-mostlyclean): Remove all flavors of objects.
10374         * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
10375         [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
10377 Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10379         * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
10380         * sysdeps/stub/pause.c: Likewise.
10381         * sysdeps/stub/time.c: Likewise.
10383         * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
10384         locale data format is implemented.
10385         * stdlib/wctomb.c: Likewise.
10387         * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
10388         gcc bug is fixed.
10389         * mach/errsystems.c: File removed.
10391         * Makeconfig (libc.a): Variable removed.
10392         (+link): Don't use it.
10394         * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
10395         assuming `yes'.
10397         * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
10398         * malloc/realloc.c (_realloc_internal): Renamed from realloc;
10399         don't use __realloc_hook.
10400         (realloc): New function; call __realloc_hook ?: _realloc_internal.
10401         * malloc/malloc.c (_malloc_internal): Renamed from malloc;
10402         don't use __malloc_hook.
10403         (malloc): New function; call __malloc_hook ?: _malloc_internal.
10404         Changes from Germano Caronni <caronni@tik.ethz.ch>:
10405         (initialize): Set up _heaplimit to cover the _heapinfo table.
10406         (morecore_recursing): New static variable.
10407         (morecore): If that is set, return null immediately.
10408         When growing the info table, before getting new core from the
10409         system for it, set morecore_recursing and try moving _heapinfo
10410         with _realloc_internal.  When that fails and we get new core, set
10411         _heaplimit to cover the core for the new _heapinfo table.
10412         (register_heapinfo): New function.  Record the _heapinfo table's
10413         own blocks in that table and in the statistics variables.
10414         (initialize, _malloc_internal): Use it after allocating new table.
10416 Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)
10418         * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
10419         by other packages.
10420         [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
10422 Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10424         * mach/errorlib.h (errors): Use const for decl.
10426         * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
10427         (decode): New inline function; decode signed 32-bit integers, and
10428         sign-extend properly when long is longer than 32 bits.
10429         (__tzfile_read): Changed all uses of uc2ul to decode.
10430         Decode the transition times properly when sizeof (time_t) > 4.
10432         * stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
10433         (printf_function): Make last arg ARGS a vector of pointers instead of a
10434         pointer to va_list.
10436 Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
10438         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
10439         (buffered_vfprintf): Remove line buffer when flush failed.
10441 Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10443         * time/tzfile.c (struct ttinfo): New member `isgmt'.
10444         (__tzfile_read): Read isgmt flags for each type.
10445         (__tzfile_default): When using TZDEFRULES DST rules, adjust
10446         transition times according to the isstd and isgmt flags for the
10447         types of each transition, and adjust each transition to point to
10448         type index either 0 or 1.  Reset type indices 0 and 1 to describe
10449         the user's settings.
10451 Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10453         * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
10454         into just CLASS.  Add standard/optional flag to all items.
10456         * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
10458         * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
10459         Rearrange defn to satisfy compiler.
10461         * locale/localeinfo.h: Declare _nl_current.
10463         * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args
10464         --enable-shared, --enable-profile, --enable-omitfp; pass settings
10465         through to config.make.
10466         * config.make.in (build-shared, build-profile, build-omitfp): New
10467         config vars.
10469         * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
10470         (DT_NUM): New macro.
10472         * locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.
10474         * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
10476         * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
10477         MAP_COPY to MAP_PRIVATE.
10479 Thu Mar  9 17:16:53 1995  Brendan Kehoe  (brendan@zen.org)
10481         * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
10482         that's used inside the alpha sysdep.h.
10484         * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
10485         keyword.
10486         * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
10488         * configure.in: Match `osf*', not `osf1*'.
10489         * configure: Likewise.
10490         * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
10492 Wed Mar  8 13:38:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10494         * posix/glob/configure.bat: Fixes from DJ.
10496         * time/backward, time/europe, time/northamerica, time/pacificnew,
10497         time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
10498         time/ialloc.c: Code and data updated from ADO's 95b.
10499         * time/emkdir.c: File removed.
10500         * time/Makefile (distribute, extra-objs, zic): Omit it.
10502         * time/localtime.c: Deansideclized.  Never #define __tzname et al
10503         to non-__ names.
10505         * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
10506         instead of short int *.
10507         * ctype/ctype-info.c: Likewise.
10508         * ctype/ctype.h: Likewise.
10510         * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
10511         of EB and EL versions.
10513 Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10515         * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
10516         (_IS* enum): Use _ISbit to produce values.
10518 Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10520         * locale/localeinfo.h: Rewritten for new locale system, using
10521         locale data files and with <langinfo.h> interface.
10522         * locale/setlocale.c: Rewritten to use locale data files.
10523         * langinfo.h: New file.
10524         * locale/langinfo.h: New file.
10525         * locale/nl_langinfo.c: New file.
10526         * locale/loadlocale.c: New file.
10527         * locale/lc-ctype.c: New file.
10528         * locale/lc-messages.c: New file.
10529         * locale/lc-monetary.c: New file.
10530         * locale/lc-numeric.c: New file.
10531         * locale/lc-time.c: New file.
10532         * locale/categories.def: New file.
10533         * locale/Makefile (headers): Remove localeinfo.h.
10534         (distribute): New variable; put localeinfo.h here, and categories.def.
10535         (routines): Add loadlocale.
10536         (categories): New variable.
10537         (aux): Use that to get C-category and lc-category.
10538         * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
10539         * ctype/ctype-info.c: For initial tables, use
10540         _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
10541         locale/C-ctype.c.
10542         * locale/C-ctype.c, locale/C-messages.c: New files.
10543         * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
10544         Default "C" locale data updated for new locale system.
10545         * locale/C-collate.c: File removed.
10546         * locale/C-ctype_ct.c: File removed.
10547         * locale/C-ctype_mb.c: File removed.
10548         * locale/C-response.c: File removed.
10549         * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
10550         * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
10551           stdlib/strtod.c, time/asctime.c, time/strftime.c:
10552         Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
10553         locale data.
10554         * time/localtime.c: Don't include <localeinfo.h>.
10555         * time/tzset.c: Don't use locale items for default TZ value or
10556         "GMT" string (use "UTC").
10558         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
10559         WIDTH>0; update DONE.
10561         * malloc/malloc.c (morecore): Fix last change to calculate by
10562         blocks instead of bytes.
10564 Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10566         * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
10567         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
10568         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
10569         * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
10570         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
10571         * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
10572         alias munmap.
10573         * sysdeps/unix/mman/munmap.S: Likewise.
10574         * sysdeps/mach/munmap.c: Likewise.
10575         * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
10576         alias mmap.
10577         * sysdeps/unix/mman/mmap.S: Likewise.
10578         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
10579         * sysdeps/stub/mmap.c: Likewise.
10581         * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
10583         * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
10585 Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10587         * misc/search.h: Add missing semicolon.
10589         * sysdeps/unix/dirfd.c: Fix typo.
10591         * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
10592         in decl.
10594         * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
10595         WIDTH before test.
10597 Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10599         * stdlib/strtod.c: Fixes from drepper.
10600         [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
10601         * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
10602         * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
10604         * stdio/vfprintf.c: Correctly notice Z modifier.
10606         * misc/search.h: New file.
10607         * misc/Makefile (headers): Add search.h.
10608         * misc/insremque.c: Include search.h.
10609         (struct qelem): Type removed.
10611 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10613         * elf/libelf.h: New file.
10614         * elf/elf_hash.c: New file.
10616 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10618         Changes from Germano Caronni <caronni@tik.ethz.ch>:
10619         * malloc/malloc.c (morecore): Account in NEWSIZE for the
10620         malloc_info structures for each new block.
10622 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10624         * sysdeps/mach/hurd/kill.c: When the process has no message port
10625         registered and we have its task port, translate a few signals to
10626         task_suspend/task_resume/task_terminate.
10628 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10630         * io/Makefile (routines): Add euidaccess.
10631         * sysdeps/mach/hurd/euidaccess.c: New file.
10632         * sysdeps/stub/euidaccess.c: New file.
10633         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
10635         * dirent/Makefile (routines): Add dirfd.
10636         * sysdeps/stub/dirfd.c: New file.
10637         * sysdeps/unix/dirfd.c: New file.
10638         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
10639         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
10640         _DIR_dirfd if that is defined.
10641         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
10642         with `void *__fd'.
10643         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
10644         Open the file with `open'; set FD_CLOEXEC on the fd.
10645         * sysdeps/mach/hurd/closedir.c: Likewise.
10646         * sysdeps/mach/hurd/readdir.c: Likewise.
10647         * sysdeps/mach/hurd/dirfd.c: New file.
10649         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
10650         directory.
10651         (glob/ChangeLog): Likewise.
10653         * locale/locale.h (LC_*): Use small integers instead of bit masks.
10655         * stdio/bug4.c: Put temporary files in /tmp.
10656         * stdio/bug3.c: Likewise.
10657         * stdio/bug5.c: Likewise.
10658         * stdio/test-fseek.c: Likewise.
10659         * stdio/test-popen.c: Likewise.
10661 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10663         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
10665         * libc-symbols.h (weak_symbol): New macro.
10667         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
10668         elts with null handlers.
10670         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
10672 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10674         * stdlib/random.c (__srandom): Change algorithm used to populate
10675         the state array.
10676         (randtbl): Recomputed with new algorithm.
10678         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
10679         to original value of `crypt'.
10680         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
10681         (crypt): New variable, set to crypt.solar.
10683 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
10685         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
10687         * config.h.in: Put comment around ^L to pacify Solaris as here too.
10689 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10691         * string/Makefile (distribute): Add pagecopy.h.
10692         * sysdeps/mach/pagecopy.h: New file.
10693         * sysdeps/generic/pagecopy.h: New file.
10694         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
10695         PAGE_COPY_FWD_MAYBE first when word aligned.
10696         * sysdeps/generic/memmove.c: Likewise.
10698         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
10699         (getpgrp): Call __getpgid instead of __getpgrp.
10701         * Makefile (subdirs): Add elf first.
10702         * elf/Makefile: New file.
10703         * elf/elf.h: New file.
10705         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
10706         as a macro.
10707         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
10708         indirection.
10710         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
10711         add crti_s, crtn_s.
10712         (install-lib, extra-objs, generated-, omit-deps): Use that.
10713         (initfini): New canned sequence, broken out of crt[in].s rule.
10714         (crt[in].s rule): Use it.
10715         (crt[in]_s.s): New rule.
10716         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
10717         (_init, _fini): Use GLOBAL as storage class.
10718         Add self reference to avoid GCC optimizing out the functions.
10720         * Makefile (headers): Remove $(stddef.h).
10721         * Makeconfig (stddef.h): Variable removed; now require gcc version
10722         >= 2.2.
10723         * stddef.h: File removed.
10725 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10727         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
10728         definition.
10729         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
10731         * stdlib/strtod.c: Allow the string to start with a decimal point
10732         without a leading zero.
10734 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
10736         * Makefile (subdirs): Put csu first.
10738         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
10740         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
10741         to crt[in].o.
10742         (csu-objpfx): New variable.
10743         (+link): Use it to find start.o and $(+preinit), $(+postinit).
10745         * Rules (subdir_lib, all): Depend on objs.
10747         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
10749         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
10750         access to float.h macros.
10752         * misc/efgcvt.c: New file.
10753         * misc/Makefile (routines): Add efgcvt.
10755 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
10757         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
10758         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
10759         to avoid a misreference that would override sysdeps/generic/mul.c.
10760         * sysdeps/sparc/Dist: Likewise.
10762 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
10764         * posix/Makefile (aux): Add environ.
10765         * posix/environ.c: New file.
10766         * sysdeps/unix/sparc/start.c: Remove __environ definition.
10767         * sysdeps/unix/start.c: Likewise.
10768         * sysdeps/unix/sysv/irix4/start.c: Likewise.
10769         * sysdeps/mach/hurd/start.c: Likewise.
10770         * sysdeps/mach/start.c: Likewise.
10771         * sysdeps/stub/start.c: Likewise.
10773         * sysdeps/unix/make_errlist.c: In produced program, test
10774         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
10775         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
10776         Remove extra weak alias.
10778         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
10779         in #include.
10781         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
10783         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
10784         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
10785         $(CPPFLAGS).
10786         (mk-stdiolim): Use it instead.
10788 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
10790         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
10791         not work to make a weak alias to a bss symbol.
10793         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
10794         (tests): Add test-fwrite.
10795         * stdio/test-fwrite.c: New file.
10797         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
10798         __strtold.
10800         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
10801         there is a CVS directory.
10802         (configure, %/configure): Use $(autoconf-it) for cmds.
10803         * Make-dist: Likewise.
10804         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
10805         if there is a CVS directory.
10806         * sysdeps/sparc/Makefile (divrem output): Likewise.
10807         * sysdeps/alpha/Makefile (divrem output): Likewise.
10808         * Makerules ($(gpl2lgpl)): Likewise.
10810         * Makerules (rule to install lib%.a from $(install-lib)): Fix
10811         patsubst to elide ranlib for $(non-lib.a).
10813         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
10815 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
10817         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
10818         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
10820 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10822         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
10823         DEALLOC_REFPORT; deallocate the refport after use only if it
10824         evaluates to nonzero.
10825         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
10826         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
10828         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
10829         *STATE_CHANGE to indicate whether or not we changed *STATE and it
10830         should be committed to the thread.
10831         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
10832         state for a thread, do thread_set_state on that thread.  Don't use
10833         SS->intr_port for collecting reply ports, it is not safe to
10834         clobber that when suspending; instead, alloca a temporary array.
10835         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
10836         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
10838         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
10839         HURD_FD_PORT_USE will.  Don't use critical sections around
10840         HURD_FD_PORT_USE invocations.
10842         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
10843         * sysdeps/posix/stdio_init.c: Likewise.
10845 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10847         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
10848         locking; don't leave the descriptor locked on return.
10849         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
10850         Use a critical section around locking the descriptor.
10851         Check for an empty descriptor and return EBADF.
10852         * sysdeps/mach/hurd/dup2.c: Likewise.
10853         * sysdeps/mach/hurd/fcntl.c: Likewise.
10854         Use HURD_FD_PORT_USE macro for RPCs.
10855         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
10856         using HURD_FD_PORT_USE.
10857         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
10858         to lock the descriptor.
10859         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
10860         locking the descriptor.
10861         * sysdeps/mach/hurd/fdopen.c: Likewise.
10862         * hurd/fd-close.c: Likewise.
10863         Don't expect the descriptor to be locked on entry.
10864         Check for empty descriptor and return EBADF.
10866         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
10867         new functions _hurd_ctty_input and _hurd_ctty_output, each
10868         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
10869         * hurd/ctty-input.c: New file.
10870         * hurd/ctty-output.c: New file.
10871         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
10872         * hurd/fd-read.c: Use _hurd_ctty_input.
10873         * hurd/fd-write.c: Use _hurd_ctty_output.
10874         * sysdeps/mach/hurd/ioctl.c: Likewise.
10875         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
10877 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10879         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
10880         as appropriate to the type.
10882         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
10883         repeating the union.
10884         (HUGE_VAL, __huge_val): Use it.
10885         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
10886         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
10887         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
10888         (STRTOF): Set to __strtold; define strtold as weak alias.
10889         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
10890         (STRTOF): Set to __strtof; define strtof as weak alias.
10892         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
10893         (IEEE754_FLOAT_BIAS): New macro.
10895         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
10897         * stdlib/testmb.c: Add tests from rfg for using normal chars as
10898         multibyte chars.
10900         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
10901         only the `defined but not used' warning, but also to avoid GCC
10902         optimizing out the entire function (!).
10904         * stdlib/wctomb.c: Include ctype.h.
10906         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
10908         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
10910 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10912         * stdio/printf_fp.c: Include "fpioconst.h".
10913         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
10914         (__printf_fp): All references changed.
10915         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
10916         (group_number): Use memmove instead of memcpy, since operands overlap.
10917         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
10918         * stdio/fpioconst.h: New file, header declaring the table data.
10919         * stdio/Makefile (aux): Add fpioconst.
10920         (distribute): Add fpioconst.h.
10921         * stdlib/strtod.c: Complete rewrite from drepper.
10922         * stdlib/strtof.c: New file.
10923         * stdlib/strtold.c: New file.
10924         * stdlib/Makefile (routines): Add strtof, strtold.
10925         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
10926         * sysdeps/stub/mpn2flt.c: New file.
10927         * sysdeps/stub/mpn2dbl.c: New file.
10928         * sysdeps/stub/mpn2ldbl.c: New file.
10929         * sysdeps/ieee754/mpn2flt.c: New file.
10930         * sysdeps/ieee754/mpn2dbl.c: New file.
10931         * sysdeps/ieee754/mpn2ldbl.c: New file.
10933         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
10934         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
10935         appears in $(non-lib.a).
10937 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10939         * stdlib/wctomb.c: A normal ASCII character translates to itself.
10940         * stdlib/mbtowc.c: Likewise.
10942 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10944         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
10945         Remove `const' from prototypes.
10946         * sysdeps/m68k/__longjmp.c: Likewise.
10947         * setjmp/longjmp.c: Likewise.
10948         * sysdeps/i386/__longjmp.c: Likewise.
10950         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
10951         so when we return a name, it is incremented past the value that
10952         produces that same name.
10954         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
10955         * stdio/stdio.h (fgets): Likewise.
10957         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
10959         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
10960         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
10961         and retry the RPC.
10962         * hurd/fd-read.c: Likewise.
10964 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10966         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
10967         <mach/mig_support.h>.
10968         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
10969         * assert/assert.c: Likewise.
10970         * sysdeps/posix/libc_fatal.c: Likewise.
10972 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10974         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
10975         as macros, to satisfy ANSI pedants.
10977         * stdio/internals.c (flushbuf): When there is no new data after
10978         priming the stream, return without writing out the buffer.
10979         * stdio/Makefile (tests): Add bug7.
10980         * stdio/bug7.c: New file.
10982         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
10983         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
10984         is defined.
10986         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
10988         * stdio/Makefile (tests): Add errnobug.
10989         * stdio/errnobug.c: New file.
10991         * mach/mig_strncpy.c: Include string.h.
10993         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
10994         inlines cause trouble for files defining global register variables.
10996         * stdio/vfprintf.c: Use _strerror_internal for %m.
10998         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
11000         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
11001         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
11002         * stdio/vfprintf.c (group_number): New function.
11003         (vfprintf): Support %' flag for integer formats, by calling
11004         group_number after formatting the number in WORK.
11005         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
11006         (__printf_fp): Implement `group' flag using them.
11008         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
11009         (parent-clean): Remove sysd-rules, not sysdirs.
11010         (distclean): Pass avoid-generated=yes to submake.
11011         (distclean-1): Remove $(sysdep-$(distclean-1)).
11013         * Makerules (objects, objs): Depend on $(extra-objs) too.
11014         (include sysd-Makefile): Protect with ifndef avoid-generated.
11016         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
11017         (CPPFLAGS): Use $(defines) in place of $(+defines).
11018         Replace -D_LIBC with -include $(..)libc-symbols.h.
11020         * stdio/freopen.c: Set seen bit before calling fclose.
11022 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11024         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
11025         successes and each kind of failure.  Return EPERM or EACCES only
11026         if every task failed that way.
11028         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
11029         correctly.
11031         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
11032         or resume the process after frobbing.
11034         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
11035         throughout.
11036         (_hurd_thread_sigstate): Don't lock the sigstate lock.
11037         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
11038         repeated sequences with calls to it.  Don't expect the sigstate
11039         lock to be held on entry; lock it just before examining sigaction.
11040         In handler case, check SS->critical_section after calling
11041         abort_rpcs; if set, mark the signal pending and resume the thread.
11042         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
11043         (_hurd_self_sigstate): Don't lock the sigstate lock.
11044         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
11045         _hurd_self_sigstate_unlocked.
11046         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
11047         the sigstate lock.
11048         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
11049         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
11050         locking.
11051         * hurd/hurd-raise.c: Likewise.
11052         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11053         * sysdeps/mach/hurd/sigpending.c: Likewise.
11054         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
11055         * sysdeps/mach/hurd/sigaction.c: Likewise.
11056         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11057         * hurd/fd-write.c: Likewise.
11058         * hurd/fd-read.c: Likewise.
11059         * sysdeps/mach/hurd/ioctl.c: Likewise.
11060         * sysdeps/mach/hurd/fork.c: Likewise.
11061         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
11062         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
11063         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
11064         * hurd/hurdmsg.c (get_int): Likewise.
11066         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
11068         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
11069         global.
11070         (PAD): Caller changed.
11071         * stdio/printf_fp.c (__pad): Function removed.
11072         (PAD): Use __printf_pad instead.
11074 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11076         Merged new FP printer by Ulrich Drepper.
11077         * stdio/printf_fp.c: Rewrite by drepper.
11078         * stdio/Makefile (routines): Add ldbl2mpn.
11079         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
11080         member.
11081         (union ieee854_long_double): New type, from drepper.
11082         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
11083         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
11084         * sysdeps/stub/ldbl2mpn.c: New file.
11085         * math/Makefile (routines): Add isinfl and isnanl.
11086         * sysdeps/ieee754/isinfl.c: New file.
11087         * sysdeps/stub/isinfl.c: New file.
11088         * sysdeps/ieee754/isnanl.c: New file.
11089         * sysdeps/stub/isnanl.c: New file.
11091         * malloc/malloc.c (__malloc_extra_blocks): New variable.
11092         (malloc): When getting more core, get __malloc_extra_blocks extra;
11093         put the new block at the end of the free list and let the next loop
11094         iteration use the initial portion of it.
11095         * malloc/free.c (_free_internal): Account for twice
11096         __malloc_extra_blocks in deciding if we have so much extra memory
11097         we should return it to the system.
11098         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
11099         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
11100         const in parameter decl.
11102         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
11104 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11106         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
11108         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
11109         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
11110         * sysdeps/mips/bsd-setjmp.S: Likewise.
11111         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
11112         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
11113         Use `long int' for sigcode.  Use explicit register numbers instead
11114         of names.
11115         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
11116         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
11118 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11120         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
11122         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
11123         using __stpncpy.
11125         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
11127         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
11129 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11131         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
11132         vm_size_t instead of size_t for arg and return types.
11134         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
11135         already does.
11137 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11139         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
11141         * configure.in (friendly stddef.h check): Write override defn for
11142         `stddef.h' Make variable.
11143         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
11145         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
11147         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
11148         empty file.
11150         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
11152 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11154         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
11156         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
11157         mach/machine/syscall_sw.h with this.
11159 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11161         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
11162         instead of <lock-intern.h>.
11163         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
11164         (_hurd_critical_section_lock): Use spin lock operators.
11165         Don't hold the sigstate lock, unlock it after setting the flag.
11166         (_hurd_critical_section_unlock): Take the sigstate lock
11167         to clear the flag; while holding it, check pending signals.  After
11168         unlocking, sig_post ourselves if there were pending signals.
11170         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
11171         sigstate lock.  If it is locked, clear SS->critical_section and
11172         SS->context, and unlock it.
11174         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
11176         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
11177         * munch-tmpl.c: Likewise.
11179         * mach/Makefile (routines): Don't filter out syscall_% from
11180         $(mach-syscalls).
11182 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
11184         * posix/fnmatch.c: Declare errno if it's not defined.
11185         That's simpler than testing #if !defined(__GNU_LIBRARY__)
11186         && !defined(STDC_HEADERS).
11188 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11190         * csu/Makefile: New file.
11191         * csu/initfini.c: New file.
11192         * Makefile (+other_dirs): Add csu.
11193         (+init): Variable renamed to libc-init.  All references changed.
11194         (aux): Remove start.
11195         (install-lib): Variable removed.
11196         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
11198         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
11199         and $(objpfx)config.h.
11200         (static deps of RPC alias *.o): Removed.
11202         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
11203         Protect macros with this.
11204         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
11205         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
11206         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
11207         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
11208         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
11209         * sysdeps/unix/mips/sysdep.h: Likewise.
11211 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11213         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
11214         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
11216         * hurd/intr-rpc.awk: Emit weak alias.
11218         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
11219         __getpgrp.
11221         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
11222         this.
11223         * sysdeps/unix/i386/sysdep.h: Likewise.
11224         * sysdeps/unix/sparc/sysdep.h: Likewise.
11226         * io/ftw.c: Avoid `ret' as variable name.
11227         * posix/glob.c: Likewise.
11229         * ctype/ctype.h (_ISalpha): Define as its own bit.
11230         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
11232         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
11233         DEFINE_HOOK with this.
11235 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11237         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
11238         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
11239         * mach/shortcut.awk: Emit weak alias.
11240         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
11241         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
11242         __ names.
11243         * mach/Makefile (lock): Remove spin-syms.
11244         (routines): Remove __ names, vm_page_size, msgserver_t.
11245         ($(mach-syscalls) rule): Generate files without __, add weak alias.
11246         Remove symbol alias file rule.
11247         ($(mach-shortcuts) rule): Likewise.
11248         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
11249         * mach/Machrules (if-calls.c): Variable and rule removed.
11250         (interface-headers): Don't add $($(if)-calls).
11251         (transform-user-stub): Define to add weak alias.
11252         * set-hooks.h: Use new libc-symbols.h set access macros.
11253         * time/Makefile (routines): Remove __ names.
11254         (aux): Variable removed.
11255         * hurd/Makefile: Likewise.
11256         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
11257         (data_start): Define as weak alias for __data_start.
11258         * sysdeps/mach/hurd/start.c: Likewise.
11259         * sysdeps/unix/sparc/start.c: Likewise.
11260         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
11261         sys_errlist.
11262         * sysdeps/mach/hurd/errlist.awk: Likewise.
11263         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
11264         alias for __environ.
11265         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11266         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
11267         * sysdeps/stub/getdomain.c: Likewise.
11268         * sysdeps/stub/vhangup.c: Likewise.
11269         * sysdeps/stub/swapon.c: Likewise.
11270         * sysdeps/stub/sendmsg.c: Likewise.
11271         * sysdeps/stub/recvmsg.c: Likewise.
11272         * sysdeps/stub/acct.c: Likewise.
11273         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
11274         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
11275         * sysdeps/posix/libc_fatal.c: Likewise.
11276         * sysdeps/i386/abort.c: Likewise.
11277         * sysdeps/i386/__longjmp.c: Likewise.
11278         * sysdeps/generic/make_siglist.c: Emit defn always for
11279         _sys_siglist.  Emit weak alias to sys_siglist.
11280         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
11281         * sysdeps/ieee754/log10.c: Likewise.
11282         * time/difftime.c: Likewise.
11283         * stdlib/random.c (srand): Define as weak alias for __srandom.
11284         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
11285         macros for __libc_atexit.
11286         * stdlib/Makefile (routines): Remove __random, srand.
11287         * stdio/gets.c: Use new link_warning macro instead of old
11288         warn_references.
11289         * stdio/Makefile (routines): Remove __ names.
11290         (aux): Remove syms-stdio.
11291         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
11292         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
11293         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
11294         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
11295         * stdio/stdio.h: Likewise.
11296         * misc/Makefile (routines): Remove __ names.
11297         (aux): Remove data_start.
11298         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
11299         * sysdeps/mach/hurd/brk.c: Likewise.
11300         * hurd/hurdid.c: Likewise.
11301         * hurd/hurdpid.c: Likewise.
11302         * hurd/openport.c: Likewise.
11303         * hurd/hurdsock.c: Likewise.
11304         * hurd/hurdsig.c: Likewise.
11305         * hurd/hurdrlimit.c: Likewise.
11306         * hurd/hurdmalloc.c: Likewise.
11307         * hurd/dtable.c: Likewise.
11308         * hurd/setauth.c: Likewise.
11309         * misc/progname.c: Likewise.
11310         * misc/init-misc.c: Likewise.
11311         * sysdeps/generic/vfork.c: Likewise.
11312         * sysdeps/unix/bsd/init-posix.c: Likewise.
11313         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
11314         * time/time.h: Likewise.
11315         * math/Makefile (routines): Remove __ names.
11316         * io/Makefile: Likewise.
11317         * termios/Makefile: Likewise.
11318         * resource/Makefile: Likewise.
11319         * signal/Makefile: Likewise.
11320         * dirent/Makefile: Likewise.
11321         * assert/assert.h: Replace __NORETURN keyword with __attribute__
11322         uses.  Functions return void and macros deal with this.
11323         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
11324         Return void.  Don't include gnu-stabs.h.
11325         * assert/assert.c: Likewise.
11326         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
11327         getpgid.
11328         (aux): Remove environ.
11329         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
11330         __attribute__ use.
11331         * posix/unistd.h (_exit): Likewise.
11332         (__getpgrp, __setpgrp): Declarations removed.
11333         (__getpgid, getpid): Declare these.
11335         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
11336         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
11337         $libc_link_{sources,dests}.
11338         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
11339         create files, just add to libc_link_{dests,sources}.
11341         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
11343         * config.h.in: Add #undefs used by sysdeps configures.
11345         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
11346         __setpgid, __getpgid.
11347         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
11348         from setpgrp.c.
11349         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
11350         from __getpgrp.c.
11351         * sysdeps/unix/bsd/getpgrp.c: File removed.
11352         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
11353         Call __getpgid with zero.
11354         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
11355         weak aliases setpgid and setpgrp.
11356         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
11357         * sysdeps/unix/common/setpgid.S: Likewise.
11358         * sysdeps/mach/hurd/setpgid.c: Likewise.
11359         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
11360         Use subcall 5 to __pgrpsys.
11361         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
11362         weak alias getpgid.
11363         * sysdeps/mach/hurd/getpgid.c: Likewise.
11364         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
11365         * sysdeps/unix/common/getpgid.S: Likewise.
11366         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
11367         Use subcall 4 to __pgrpsys.
11368         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
11369         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
11370         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
11371         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
11372         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
11373         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
11374         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
11375         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
11376         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
11377         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
11378         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
11379         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
11381         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
11382         from __getdents.S.
11384         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
11385         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
11386         warning.
11387         * sysdeps/stub/fexecve.c: Likewise.
11388         * sysdeps/stub/fchdir.c: Likewise.
11389         * sysdeps/stub/fchflags.c: Likewise.
11390         * sysdeps/stub/chflags.c: Likewise.
11392         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
11393         * sysdeps/generic/abort.c: Likewise.
11394         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
11396         * hurd/hurdioctl.c: Include hurd/ioctl.h.
11397         (_hurd_ioctl_handler_lists): Define this set.
11398         (_hurd_lookup_ioctl_handler): New function.
11399         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
11400         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
11401         (_hurd_lookup_ioctl_handler): Declare it.
11402         (ioctl_handler_t): New typedef.  Use it throughout.
11403         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
11404         (_hurd_ioctl_handler_lists): Don't define.
11405         (__ioctl): Call _hurd_lookup_ioctl_handler.
11407         * stdlib/strtol.c (maxquad): Make this const.
11408         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
11410         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
11411         any compile tests.
11413         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
11414         __msg_sig_post_request, not __sig_post_request.
11416         * misc/getusersh.c: Renamed to getusershell.c.
11417         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
11418         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
11419         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
11420         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
11422 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11424         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
11425         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
11426         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
11427         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
11428         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
11429         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
11430         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
11431         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
11432         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
11433         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
11434         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
11435         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
11436         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
11437         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
11438         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
11439         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
11440         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
11441         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
11442         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
11443         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
11444         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
11445         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
11446         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
11447         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
11448         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
11449         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
11450         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
11451         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
11452         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
11453         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
11455         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
11456         of __sig_post.
11457         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11458         * sysdeps/mach/hurd/kill.c: Likewise.
11459         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11461         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
11462         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
11464         * sysdeps/stub/remove.c: New file.
11465         * sysdeps/posix/remove.c: New file.
11467 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11469         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
11470         mktime.
11471         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
11472         __mig_strncpy.
11473         * mach/msg-destroy.c: Renamed from __msg_dest.c.
11474         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
11475         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
11476         * time/tzset.c (tzname, daylight, timezone): Define as weak
11477         aliases for __ names.
11478         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
11479         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
11480         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
11481         being defined.
11483 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11485         * string/Makefile (routines): Remove __ names, index, rindex, and
11486         bcmp.
11487         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
11488         alias for strchr.
11489         * sysdeps/generic/strchr.c: Likewise.
11490         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
11491         alias for strrchr.
11492         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
11493         alias for memcmp.
11495         * malloc/free.c (cfree): Define this function, with weak_alias if
11496         available, otherwise a C function.
11497         * malloc/Makefile (gmalloc-routines): Remove cfree.
11499 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11501         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
11502         get_limit.  This has the effect of no-op'ing properly for zero.
11504         * configure.in: Add AC_CONFIG_HEADER(config.h).
11505         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
11506         * config.h.in: New file.
11508         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
11509         All code converted to use weak symbols, defined in the files which
11510         define the real code (with the __ names, the non-__ names are weak).
11511         All old symbol alias files removed.
11512         Many files renamed to remove __ prefix since there is now just
11513         the one file for both the __ and non-__ name for each function.
11514         * libc-symbols.h: New file.
11515         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
11516         sets.
11517         * gnu-stabs.h: Prepend #error this file is obsolete.
11518         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
11519         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
11520         access.
11521         * sysdeps/unix/common/__access.S: Likewise.
11522         * sysdeps/mach/hurd/__access.c: Likewise.
11523         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
11524         adjtime.
11525         * sysdeps/unix/common/__adjtime.S: Likewise.
11526         * sysdeps/mach/__adjtime.c: Likewise.
11527         * sysdeps/mach/hurd/__adjtime.c: Likewise.
11528         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
11529         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
11530         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
11531         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
11532         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
11533         * sysdeps/unix/i386/__brk.S: Likewise.
11534         * sysdeps/unix/sparc/__brk.S: Likewise.
11535         * sysdeps/unix/mips/__brk.S: Likewise.
11536         * sysdeps/mach/hurd/__brk.c: Likewise.
11537         * sysdeps/standalone/__brk.c: Likewise.
11538         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
11539         * sysdeps/unix/__chdir.S: Likewise.
11540         * sysdeps/mach/hurd/__chdir.c: Likewise.
11541         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
11542         * sysdeps/unix/__chmod.S: Likewise.
11543         * sysdeps/mach/hurd/__chmod.c: Likewise.
11544         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
11545         * sysdeps/unix/__chown.S: Likewise.
11546         * sysdeps/mach/hurd/__chown.c: Likewise.
11547         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
11548         * sysdeps/unix/__close.S: Likewise.
11549         * sysdeps/mach/hurd/__close.c: Likewise.
11550         * sysdeps/standalone/__close.c: Likewise.
11551         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
11552         alias copysign.
11553         * sysdeps/ieee754/__copysign.c: Likewise.
11554         * sysdeps/alpha/__copysign.c: Likewise.
11555         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
11556         * sysdeps/m68k/fpu/__drem.c: Likewise.
11557         * sysdeps/stub/__drem.c: Likewise.
11558         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
11559         * sysdeps/stub/__dup.c: Likewise.
11560         * sysdeps/unix/__dup.S: Likewise.
11561         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
11562         * sysdeps/stub/__dup2.c: Likewise.
11563         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
11564         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
11565         * sysdeps/unix/common/__dup2.S: Likewise.
11566         * sysdeps/mach/hurd/__dup2.c: Likewise.
11567         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
11568         execve.
11569         * sysdeps/unix/__execve.S: Likewise.
11570         * sysdeps/mach/hurd/__execve.c: Likewise.
11571         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
11572         expm1.
11573         * sysdeps/m68k/fpu/__expm1.c: Likewise.
11574         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
11575         fchmod.
11576         * sysdeps/unix/common/__fchmod.S: Likewise.
11577         * sysdeps/mach/hurd/__fchmod.c: Likewise.
11578         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
11579         fchown.
11580         * sysdeps/unix/common/__fchown.S: Likewise.
11581         * sysdeps/mach/hurd/__fchown.c: Likewise.
11582         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
11583         * sysdeps/unix/__fcntl.S: Likewise.
11584         * sysdeps/mach/hurd/__fcntl.c: Likewise.
11585         * math/__finite.c: Renamed to finite.c; added weak alias finite.
11586         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
11587         * sysdeps/stub/__flock.c: Likewise.
11588         * sysdeps/unix/bsd/__flock.S: Likewise.
11589         * sysdeps/mach/hurd/__flock.c: Likewise.
11590         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
11591         fopenport.
11592         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
11593         * sysdeps/unix/__fork.S: Likewise.
11594         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
11595         * sysdeps/unix/i386/__fork.S: Likewise.
11596         * sysdeps/unix/sparc/__fork.S: Likewise.
11597         * sysdeps/unix/mips/__fork.S: Likewise.
11598         * sysdeps/mach/hurd/__fork.c: Likewise.
11599         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
11600         alias fpathconf.
11601         * sysdeps/stub/__fpathcon.c: Likewise.
11602         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
11603         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
11604         * sysdeps/unix/__fstat.S: Likewise.
11605         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
11606         * sysdeps/mach/hurd/__fstat.c: Likewise.
11607         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
11608         getdelim.
11609         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
11610         alias getdents.
11611         * sysdeps/unix/__getdents.c: Likewise.
11612         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
11613         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
11614         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
11615         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
11616         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
11617         * sysdeps/unix/sysv/__getdents.c: Likewise.
11618         * sysdeps/mach/hurd/__getdents.c: Likewise.
11619         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
11620         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
11621         alias getdtablesize.
11622         * sysdeps/stub/__getdtsz.c: Likewise.
11623         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
11624         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
11625         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
11626         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
11627         getegid.
11628         * sysdeps/unix/__getegid.S: Likewise.
11629         * sysdeps/mach/hurd/__getegid.c: Likewise.
11630         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
11631         geteuid.
11632         * sysdeps/unix/__geteuid.S: Likewise.
11633         * sysdeps/mach/hurd/__geteuid.c: Likewise.
11634         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
11635         getgid.
11636         * sysdeps/unix/__getgid.S: Likewise.
11637         * sysdeps/mach/hurd/__getgid.c: Likewise.
11638         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
11639         alias getgroups.
11640         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
11641         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
11642         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
11643         * sysdeps/unix/common/__getgrps.S: Likewise.
11644         * sysdeps/mach/hurd/__getgrps.c: Likewise.
11645         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
11646         alias gethostname.
11647         * sysdeps/unix/inet/__gethstnm.S: Likewise.
11648         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
11649         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
11650         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
11651         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
11652         alias getitimer.
11653         * sysdeps/unix/common/__getitmr.S: Likewise.
11654         * sysdeps/mach/hurd/__getitmr.c: Likewise.
11655         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
11656         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
11657         alias getpagesize.
11658         * sysdeps/stub/__getpgsz.c: Likewise.
11659         * sysdeps/unix/__getpgsz.c: Likewise.
11660         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
11661         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
11662         * sysdeps/mach/__getpgsz.c: Likewise.
11663         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
11664         getpid.
11665         * sysdeps/unix/__getpid.S: Likewise.
11666         * sysdeps/mach/hurd/__getpid.c: Likewise.
11667         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
11668         getppid.
11669         * sysdeps/unix/__getppid.S: Likewise.
11670         * sysdeps/mach/hurd/__getppid.c: Likewise.
11671         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
11672         alias gettimeofday.
11673         * sysdeps/stub/__gettod.c: Likewise.
11674         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
11675         * sysdeps/unix/common/__gettod.S: Likewise.
11676         * sysdeps/mach/__gettod.c: Likewise.
11677         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
11678         getuid.
11679         * sysdeps/unix/__getuid.S: Likewise.
11680         * sysdeps/mach/hurd/__getuid.c: Likewise.
11681         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
11682         alias infnan.
11683         * sysdeps/ieee754/__infnan.c: Likewise.
11684         * sysdeps/vax/__infnan.c: Likewise.
11685         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
11686         * sysdeps/unix/__ioctl.S: Likewise.
11687         * sysdeps/mach/hurd/__ioctl.c: Likewise.
11688         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
11689         isatty.
11690         * sysdeps/stub/__isatty.c: Likewise.
11691         * sysdeps/unix/bsd/__isatty.c: Likewise.
11692         * sysdeps/mach/hurd/__isatty.c: Likewise.
11693         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
11694         isinf.
11695         * sysdeps/m68k/fpu/__isinf.c: Likewise.
11696         * sysdeps/stub/__isinf.c: Likewise.
11697         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
11698         isnan.
11699         * sysdeps/ieee754/__isnan.c: Likewise.
11700         * sysdeps/m68k/fpu/__isnan.c: Likewise.
11701         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
11702         * sysdeps/unix/__kill.S: Likewise.
11703         * sysdeps/mach/hurd/__kill.c: Likewise.
11704         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
11705         * sysdeps/unix/__link.S: Likewise.
11706         * sysdeps/mach/hurd/__link.c: Likewise.
11707         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
11708         * sysdeps/m68k/fpu/__logb.c: Likewise.
11709         * sysdeps/stub/__logb.c: Likewise.
11710         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
11711         * sysdeps/unix/__lseek.S: Likewise.
11712         * sysdeps/mach/hurd/__lseek.c: Likewise.
11713         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
11714         lstat.
11715         * sysdeps/stub/__lstat.c: Likewise.
11716         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
11717         * sysdeps/unix/common/__lstat.S: Likewise.
11718         * sysdeps/mach/hurd/__lstat.c: Likewise.
11719         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
11720         alias memccpy.
11721         * sysdeps/vax/__memccpy.c: Likewise.
11722         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
11723         * sysdeps/unix/sysv/__mkdir.c: Likewise.
11724         * sysdeps/unix/common/__mkdir.S: Likewise.
11725         * sysdeps/mach/hurd/__mkdir.c: Likewise.
11726         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
11727         * sysdeps/unix/__mknod.S: Likewise.
11728         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
11729         * sysdeps/mach/hurd/__mknod.c: Likewise.
11730         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
11731         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
11732         mach_msg_server.
11733         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
11734         * sysdeps/unix/__open.S: Likewise.
11735         * sysdeps/mach/hurd/__open.c: Likewise.
11736         * sysdeps/standalone/__open.c: Likewise.
11737         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
11738         alias pathconf.
11739         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
11740         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
11741         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
11742         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
11743         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
11744         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
11745         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
11746         * sysdeps/unix/i386/__pipe.S: Likewise.
11747         * sysdeps/unix/sparc/__pipe.S: Likewise.
11748         * sysdeps/unix/mips/__pipe.S: Likewise.
11749         * sysdeps/mach/hurd/__pipe.c: Likewise.
11750         * stdlib/__random.c: Renamed to random.c; added weak alias random.
11751         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
11752         * sysdeps/unix/__read.S: Likewise.
11753         * sysdeps/mach/hurd/__read.c: Likewise.
11754         * sysdeps/standalone/__read.c: Likewise.
11755         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
11756         alias readlink.
11757         * sysdeps/unix/common/__readlink.S: Likewise.
11758         * sysdeps/mach/hurd/__readlink.c: Likewise.
11759         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
11760         * sysdeps/m68k/fpu/__rint.c: Likewise.
11761         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
11762         * sysdeps/unix/sysv/__rmdir.c: Likewise.
11763         * sysdeps/unix/common/__rmdir.S: Likewise.
11764         * sysdeps/mach/hurd/__rmdir.c: Likewise.
11765         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
11766         * sysdeps/stub/__sbrk.c: Likewise.
11767         * sysdeps/mach/hurd/__sbrk.c: Likewise.
11768         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
11769         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
11770         select.
11771         * sysdeps/unix/common/__select.S: Likewise.
11772         * sysdeps/mach/hurd/__select.c: Likewise.
11773         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
11774         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
11775         setgid.
11776         * sysdeps/unix/__setgid.S: Likewise.
11777         * sysdeps/unix/bsd/__setgid.c: Likewise.
11778         * sysdeps/mach/hurd/__setgid.c: Likewise.
11779         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
11780         setitmr
11781         * sysdeps/unix/common/__setitmr.S: Likewise.
11782         * sysdeps/mach/hurd/__setitmr.c: Likewise.
11783         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
11784         setpgrp
11785         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
11786         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
11787         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
11788         * sysdeps/unix/common/__setpgrp.S: Likewise.
11789         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
11790         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
11791         alias setregid.
11792         * sysdeps/unix/common/__setregid.S: Likewise.
11793         * sysdeps/mach/hurd/__setregid.c: Likewise.
11794         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
11795         alias setreuid.
11796         * sysdeps/unix/common/__setreuid.S: Likewise.
11797         * sysdeps/mach/hurd/__setreuid.c: Likewise.
11798         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
11799         setsid.
11800         * sysdeps/unix/bsd/__setsid.c: Likewise.
11801         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
11802         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
11803         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
11804         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
11805         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
11806         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
11807         * sysdeps/mach/hurd/__setsid.c: Likewise.
11808         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
11809         settimeofday.
11810         * sysdeps/unix/bsd/__settod.S: Likewise.
11811         * sysdeps/unix/sysv/__settod.c: Likewise.
11812         * sysdeps/mach/hurd/__settod.c: Likewise.
11813         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
11814         setuid.
11815         * sysdeps/unix/__setuid.S: Likewise.
11816         * sysdeps/unix/bsd/__setuid.c: Likewise.
11817         * sysdeps/mach/hurd/__setuid.c: Likewise.
11818         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
11819         alias sigblock.
11820         * sysdeps/stub/__sigblock.c: Likewise.
11821         * sysdeps/unix/bsd/__sigblock.S: Likewise.
11822         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
11823         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
11824         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
11825         alias sigpause.
11826         * sysdeps/stub/__sigpause.c: Likewise.
11827         * sysdeps/unix/bsd/__sigpause.S: Likewise.
11828         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
11829         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
11830         alias sigprocmask.
11831         * sysdeps/unix/bsd/__sigproc.c: Likewise.
11832         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
11833         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
11834         * sysdeps/mach/hurd/__sigproc.c: Likewise.
11835         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
11836         alias sigreturn.
11837         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
11838         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
11839         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
11840         * sysdeps/unix/i386/__sigret.S: Likewise.
11841         * sysdeps/unix/mips/__sigret.S: Likewise.
11842         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
11843         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
11844         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
11845         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
11846         sigvec.
11847         * sysdeps/stub/__sigvec.c: Likewise.
11848         * sysdeps/unix/bsd/__sigvec.S: Likewise.
11849         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
11850         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
11851         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
11852         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
11853         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
11854         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
11855         * sysdeps/unix/__stat.S: Likewise.
11856         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
11857         * sysdeps/mach/hurd/__stat.c: Likewise.
11858         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
11859         alias stpncpy.
11860         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
11861         symlink.
11862         * sysdeps/unix/common/__symlink.S: Likewise.
11863         * sysdeps/mach/hurd/__symlink.c: Likewise.
11864         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
11865         alias sysconf.
11866         * sysdeps/stub/__sysconf.c: Likewise.
11867         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
11868         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
11869         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
11870         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
11871         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
11872         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
11873         * sysdeps/unix/bsd/__times.c: Likewise.
11874         * sysdeps/unix/sysv/__times.S: Likewise.
11875         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
11876         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
11877         * sysdeps/unix/__umask.S: Likewise.
11878         * sysdeps/mach/hurd/__umask.c: Likewise.
11879         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
11880         unlink.
11881         * sysdeps/unix/__unlink.S: Likewise.
11882         * sysdeps/mach/hurd/__unlink.c: Likewise.
11883         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
11884         utimes.
11885         * sysdeps/unix/bsd/__utimes.S: Likewise.
11886         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
11887         * sysdeps/mach/hurd/__utimes.c: Likewise.
11888         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
11889         vfork.
11890         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
11891         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
11892         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
11893         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
11894         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
11895         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
11896         * sysdeps/unix/sparc/__vfork.S: Likewise.
11897         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
11898         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
11899         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
11900         * sysdeps/stub/__wait.c: Likewise.
11901         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
11902         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
11903         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
11904         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
11905         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
11906         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
11907         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
11908         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
11909         * sysdeps/unix/i386/__wait.S: Likewise.
11910         * sysdeps/unix/mips/__wait.S: Likewise.
11911         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
11912         * sysdeps/stub/__wait3.c: Likewise.
11913         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
11914         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
11915         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
11916         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
11917         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
11918         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
11919         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
11920         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
11921         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
11922         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
11923         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
11924         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
11925         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
11926         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
11927         * sysdeps/mach/hurd/__wait4.c: Likewise.
11928         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
11929         waitpid.
11930         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
11931         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
11932         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
11933         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
11934         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
11935         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
11936         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
11937         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
11938         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
11939         * sysdeps/unix/__write.S: Likewise.
11940         * sysdeps/mach/hurd/__write.c: Likewise.
11941         * sysdeps/standalone/__write.c: Likewise.
11942         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
11943         alias tcgetattr.
11944         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
11945         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
11946         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
11947         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
11948         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
11949         alias sigaction.
11950         * sysdeps/unix/bsd/__sigact.c: Likewise.
11951         * sysdeps/unix/sysv/__sigact.c: Likewise.
11952         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
11953         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
11954         * sysdeps/mach/hurd/__sigact.c: Likewise.
11955         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
11956         alias sigsetmask.
11957         * sysdeps/stub/__sigstmsk.c: Likewise.
11958         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
11959         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
11960         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
11961         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
11962         alias getrusage.
11963         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
11964         * sysdeps/unix/common/__getrusag.S: Likewise.
11965         * hurd/task2pid.c: File removed.
11966         * hurd/setauth.c: File removed.
11967         * hurd/pid2task.c: File removed.
11968         * hurd/hurdsyms.c: File removed.
11969         * hurd/getdport.c: File removed.
11970         * hurd/fopenport.c: File removed.
11971         * mach/thread-sym.c: File removed.
11972         * mach/spin-syms.c: File removed.
11973         * mach/msgserver_t.c: File removed.
11974         * mach/msgserver.c: File removed.
11975         * mach/msg.c: File removed.
11976         * mach/mig_syms.c: File removed.
11977         * malloc/mcheck-init.c: File removed.
11978         * malloc/cfree.c: File removed.
11979         * io/flock.c: File removed.
11980         * io/write.c: File removed.
11981         * io/unlink.c: File removed.
11982         * io/umask.c: File removed.
11983         * io/symlink.c: File removed.
11984         * io/rmdir.c: File removed.
11985         * io/readlink.c: File removed.
11986         * io/read.c: File removed.
11987         * io/pipe.c: File removed.
11988         * io/open.c: File removed.
11989         * io/mkdir.c: File removed.
11990         * io/lstat.c: File removed.
11991         * io/lseek.c: File removed.
11992         * io/link.c: File removed.
11993         * io/isatty.c: File removed.
11994         * io/stat.c: File removed.
11995         * io/fstat.c: File removed.
11996         * io/fchown.c: File removed.
11997         * io/fchmod.c: File removed.
11998         * io/dup2.c: File removed.
11999         * io/dup.c: File removed.
12000         * io/close.c: File removed.
12001         * io/fcntl.c: File removed.
12002         * io/chmod.c: File removed.
12003         * io/chdir.c: File removed.
12004         * io/access.c: File removed.
12005         * io/chown.c: File removed.
12006         * time/tzset.c: File removed.
12007         * time/timelocal.c: File removed.
12008         * time/syms-time.c: File removed.
12009         * time/settod.c: File removed.
12010         * time/setitmr.c: File removed.
12011         * time/gettod.c: File removed.
12012         * time/getitmr.c: File removed.
12013         * time/adjtime.c: File removed.
12014         * termios/tcgetattr.c: File removed.
12015         * string/stpncpy.c: File removed.
12016         * string/rindex.c: File removed.
12017         * string/memccpy.c: File removed.
12018         * string/index.c: File removed.
12019         * string/bcmp.c: File removed.
12020         * stdlib/srand.c: File removed.
12021         * stdlib/random.c: File removed.
12022         * stdio/vsscanf.c: File removed.
12023         * stdio/vfscanf.c: File removed.
12024         * stdio/syms-stdio.c: File removed.
12025         * stdio/remove.c: File removed.
12026         * stdio/getline.c: File removed.
12027         * stdio/getdelim.c: File removed.
12028         * signal/ssignal.c: File removed.
12029         * signal/sigvec.c: File removed.
12030         * signal/sigsetmask.c: File removed.
12031         * signal/sigret.c: File removed.
12032         * signal/sigproc.c: File removed.
12033         * signal/sigpause.c: File removed.
12034         * signal/sigblock.c: File removed.
12035         * signal/sigaction.c: File removed.
12036         * signal/kill.c: File removed.
12037         * signal/gsignal.c: File removed.
12038         * setjmp/siglongjmp.c: File removed.
12039         * setjmp/_longjmp.c: File removed.
12040         * resource/getrusage.c: File removed.
12041         * posix/waitpid.c: File removed.
12042         * posix/wait4.c: File removed.
12043         * posix/wait3.c: File removed.
12044         * posix/wait.c: File removed.
12045         * posix/times.c: File removed.
12046         * posix/sysconf.c: File removed.
12047         * posix/setuid.c: File removed.
12048         * posix/setsid.c: File removed.
12049         * posix/setpgrp.c: File removed.
12050         * posix/setpgid.c: File removed.
12051         * posix/setgid.c: File removed.
12052         * posix/pathconf.c: File removed.
12053         * posix/getuid.c: File removed.
12054         * posix/getppid.c: File removed.
12055         * posix/getpid.c: File removed.
12056         * posix/getgrps.c: File removed.
12057         * posix/getgid.c: File removed.
12058         * posix/geteuid.c: File removed.
12059         * posix/getegid.c: File removed.
12060         * posix/fpathcon.c: File removed.
12061         * posix/fork.c: File removed.
12062         * posix/execve.c: File removed.
12063         * posix/environ.c: File removed.
12064         * misc/utimes.c: File removed.
12065         * misc/setreuid.c: File removed.
12066         * misc/setregid.c: File removed.
12067         * misc/select.c: File removed.
12068         * misc/sbrk.c: File removed.
12069         * misc/mknod.c: File removed.
12070         * misc/ioctl.c: File removed.
12071         * misc/getpgsz.c: File removed.
12072         * misc/gethstnm.c: File removed.
12073         * misc/getdtsz.c: File removed.
12074         * misc/data_start.c: File removed.
12075         * misc/brk.c: File removed.
12076         * math/scalb.c: File removed.
12077         * math/rint.c: File removed.
12078         * math/logb.c: File removed.
12079         * math/isnan.c: File removed.
12080         * math/isinf.c: File removed.
12081         * math/infnan.c: File removed.
12082         * math/finite.c: File removed.
12083         * math/expm1.c: File removed.
12084         * math/drem.c: File removed.
12085         * math/copysign.c: File removed.
12086         * math/__scalb.c: File removed.
12087         * dirent/getdents.c: File removed.
12089 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12091         * sysdeps/generic/morecore.c (__default_morecore): Use
12092         __malloc_ptrdiff_t; don't cast arg to int.
12094         * resolv/getnetnamadr.c: Include "conf/portability.h".
12096 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12098         * stdlib/strtol.c: Include errno.h.
12099         [QUAD] (ULONG_MAX): Define to a static variable initialized to
12100         ULONG_LONG_MAX. This is to work around a GCC bug in using the
12101         constant in arithmetic.
12103         * posix/unistd.h (daemon): Declare it.
12105         * malloc/mcheck-init.c: Remove GNU ld hacks.
12106         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
12107         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
12108         (initialize): Call the hook if set.
12109         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
12110         (__malloc_initialize_hook): Declare new hook variable.
12112 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12114         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
12115         * hurd/hurdpid.c: Likewise.
12116         * hurd/hurdauth.c: Likewise.
12118 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12120         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
12121         if any are successful.
12123         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
12124         (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
12125         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
12126         functions.
12127         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
12129         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
12130         * hurd/hurd-raise.c: Likewise.
12131         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
12133         * sysdeps/mach/hurd/ptrace.c: New file.
12135         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
12136         interface, which has normal EINTR semantics.  Instead of waiting
12137         for io_select_done notification messages, send io_select messages
12138         with short reply timeout and then wait for io_select_reply
12139         messages.
12141         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
12142         EXEC_INHERITED) to file_exec.
12144         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
12145         use sig_post_untraced_reply.  All callers changed.
12146         (abort_thread, abort_rpcs): Take same new arg and pass it through.
12147         All callers changed.
12148         (_hurd_internal_post_signal): Take new arg UNTRACED.
12149         If zero and process is traced, stop with SIGNO as stop signal.  If
12150         nonzero, resume process before delivering signal (unless
12151         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
12152         SIGNO!=0.
12153         (signal_allowed): New function, broken out of _S_sig_post.
12154         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
12155         _hurd_internal_post_signal.
12156         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
12157         pass true for UNTRACED.
12158         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
12159         UNTRACED.
12160         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
12161         to _hurd_internal_post_signal (value zero).
12163 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12165         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
12166         (_hurd_init): Initialize it from FLAGS arg.
12167         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
12168         raise a SIGTRAP signal (with a sigcode of zero).
12169         * hurd/hurd.h (_hurd_exec_flags): Declare it.
12171         * Version 1.09.5.
12173 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
12175         * malloc/malloc.c (malloc): Fix 1-off in previous change.
12177 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12179         * posix/glob/Makefile.in: Remove config.h and config.log.
12181 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12183         * posix/glob/configure.in: Add AC_CONST check.
12185         * conf/portability.h: #undef sun.
12186         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
12187         * resolv/getnetnamadr.c: Likewise.
12189         * socket/Makefile (headers): Add sockaddrcom.h.
12190         * inet/netinet/in.h: Include <sockaddrcom.h>.
12191         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
12192         * socket/sys/un.h (struct sockaddr_in): Likewise.
12193         * socket/sys/socket.h (struct sockaddr): Likewise.
12194         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
12195         * sysdeps/generic/sockaddrcom.h: New file.
12197         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
12198         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
12199         F_FREESP): New macros.
12200         * sysdeps/posix/truncate.c: New file.
12202         * malloc/malloc.c (malloc): Fix typos in RMS's change.
12204         * malloc/Makefile (dist-routines): Add malloc-find.
12205         * malloc/malloc.h (malloc_find_object_address): Declare it.
12206         * malloc/malloc-find.c: New file.
12208         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
12209         __malloc_size_t.
12210         (malloc_info): Use that type for member `busy.info.size'.
12212         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
12213         `LONG' macro.
12214         [! QUAD] (LONG): Define as long.
12215         [QUAD] (LONG): Define as long long.
12216         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
12217         versions.
12218         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
12219         * stdlib/Makefile (routines): Add strtoq and strtouq.
12220         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
12221         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
12222         Declare them.
12224         * stdio/vfprintf.c: If there was a precision specified, ignore the
12225         0 flag and always pad with spaces.
12227         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
12228         Use a loop and also stop on first !isascii char.
12230 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
12232         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
12234         * malloc/malloc.c (malloc): For a multi-block object, store a
12235         negative number into the busy.info.size of all but the first block.
12237 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
12239         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
12240         instead of t0, t1, and t2.
12242 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12244         * malloc/memalign.c (__memalign_hook): New variable.
12245         (memalign): Call it if set.
12246         * malloc/malloc.h (__memalign_hook): Declare new variable.
12248 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12250         * conf/portability.h: Include string.h and stdlib.h.
12251         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
12252         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
12253         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
12254         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
12255         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
12257         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
12258         all uses of `extern __inline' with `__m81_inline'.
12260         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
12261         * sysdeps/unix/__fork.S: Swap args in subl.
12263         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
12264         compatibility.
12266 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
12268         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
12269         of swtch.
12270         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
12271         * mach/spin-solid.c (__spin_lock_solid): Likewise.
12273 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12275         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
12276         for PBUF.
12277         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
12279         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
12281 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12283         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
12284         in `bis' insn; immediate must be second.
12286         * sysdeps/unix/__fork.S: Use subl instead of decl.
12287         * sysdeps/unix/i386/__fork.S: New file.
12289         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
12290         Remove A macro; just use `asm volatile' with proper quotes in each
12291         line.
12292         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
12293         jmp target register.
12295         * time/africa, time/asia, time/australasia, time/emkdir.c,
12296         time/europe, time/ialloc.c, time/northamerica, time/private.h,
12297         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
12298         and data from ADO 94h distribution.
12300         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
12301         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
12302         absolute pointer.  Put second store in jmp delay slot.
12304 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12306         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
12307         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
12308         absolute pointer.
12309         * sysdeps/sparc/bsd-setjmp.S: Likewise.
12311         * configure.in: Use ; before } in { ... } exprs.
12315 See ChangeLog.4 for earlier changes.