2a14f9ae4a90e98e5305e1d6066868e9c0691bbb
[platform/upstream/glibc.git] / ChangeLog
1 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2
3         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
4         word extends right up to rmargin.
5
6         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
7         output the wrap margin, set point_col to wmargin.
8         Use negative point_col to deal with a wmargin of 0.
9         (line_wrap_point): Return 0 for a negative point_col.
10         (line_wrap_stream): Make wmargin ssize_t.
11         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
12         point_col ssize_t.
13         (line_wrap_stream): Make wmargin ssize_t.
14         (line_wrap_point): Return 0 for a negative point_col.
15
16 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
17
18         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
19         to fiddle __put_limit in conjunction with __linebuf_active.
20
21 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
22
23         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
24         because that is broken on alpha.
25
26         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
27         call as in first.
28
29         * Makerules (make-link): Install the new link with atomic mv -f in
30         case ln itself requires the library being installed.
31
32 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
33
34         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
35         i386/dl-machine.h of 960713.
36
37         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
38         (_dl_sysdep_read_whole_file): Fix result variable declaration.
39
40 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
41
42         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
43         `nodename' member.
44
45 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
46
47         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
48         with pointer to local variable instead of NULL.
49
50 1996-07-15  Paul Eggert  <eggert@twinsun.com>
51
52         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
53
54 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
55
56         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
57         that are already added by other means.
58
59         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
60         caller column to get those syscalls added automagically.
61
62 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
63
64         * login/logout.c (logout): Initialize DATA to a state that will
65         make setutent_r happy.
66
67 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
68
69         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
70         instead of setting the DT_DEBUG pointer.
71
72         * csu/initfini.c (_init, _fini): Generate .end directives after
73         standalone prologues and filter them out from epilogues.
74
75         * Makeconfig (rtld-installed-name): Set to ld.so.1.
76         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
77         removed.
78
79         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
80
81         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
82
83         * MakeTAGS (extract): Pass --add-comments=TRANS.
84         * sysdeps/gnu/errlist.awk: Write comments into the output with the
85         descriptive paragraphs from the manual preceded by TRANS.
86
87         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
88         (_dl_start): Move RESOLVE defn inside this function and #include
89         "dynamic-link.h" a second time there.
90         [RTLD_START]: Move use of this after _dl_start function.
91
92         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
93
94         * elf/rtld.c: Include <string.h>.
95
96         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
97         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
98         Conditionalize defns on [RESOLVE].
99         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
100         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
101         Instead use RESOLVE macro with same args.
102         (elf_machine_rel): Conditionalize defn on [RESOLVE].
103         * elf/dl-reloc.c (RESOLVE): New macro, define before including
104         "dynamic-link.h".  It replaces `resolve' local function.
105         * elf/dl-runtime.c: Likewise.
106         * elf/rtld.c: Likewise.
107
108         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
109
110         * elf/dl-open.c (_dl_open): Force an indirect call for
111         _dl_relocate_object so there is no chance a PLT fixup will be done
112         and clobber _dl_global_scope before our call happens.
113
114         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
115         to =t; must operate on top of fp reg stack, not second from top.
116         Correct input constraint to 0 from t; must be explicit when input and
117         output are the same register.
118         (floor): Use __volatile instead of volatile.
119         (ceil): Likewise.
120
121         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
122         other targets.
123
124 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
125
126         * manual/Makefile (lib): New phony target.  Depend on stamp files.
127         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
128
129 1996-07-13  Paul Eggert  <eggert@twinsun.com>
130
131         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
132         to match Emacs format-time-string specification.
133         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
134
135 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
136
137         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
138         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
139         between MAP and its deps.
140         * elf/link.h: Fix decl.
141         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
142         colon-separated list of names, map those and pass vector of ptrs as
143         PRELOADS list to _dl_map_object_deps.
144         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
145         _dl_map_object_deps with empty preload list.
146         * elf/dl-open.c (_dl_open): Likewise.
147
148         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
149         removed.
150         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
151         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
152         Conditionalize defn on [! MAP_ANON].
153         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
154         on [! MAP_ANON].
155         * elf/rtld.c (dl_main): Likewise.
156         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
157         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
158
159         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
160
161 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
162
163         * stdlib/random.c (__random): Declare as int32_t to be in sync
164         with declaration.
165
166         * socket/Makefile (headers): Add socketbits.h.
167
168         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
169         it that way.
170
171         * grp/initgroups.c (initgroups): Add groups that user is a member
172         of, not the ones he is _not_ a member of.
173
174         * nss/nsswitch.c (known_compare): Make known_compare() a static
175         instead of a local function.  The latter are difficult to debug
176         and slow to execute on certain platforms.
177
178         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
179         place of sizeof (dev).  The size of a literal string includes the
180         NUL byte.
181
182         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
183
184 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
185
186         * misc/mntent.c (addmntent): Seek to end of file before writing
187         entry.  Return 1 on error, not -1.
188
189 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
190
191         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
192         syscall.
193
194 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
195
196         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
197         shift amount for Jensen must be 5 not 4.
198
199 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
200
201         * socket/sys/socket.h (struct osockaddr): New type.
202
203 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
204
205         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
206         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
207         and `long double' versions can be generated.
208         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
209         so that included efgcvt{,_r}.c file generate `long double'
210         versions.
211         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
212         functions.
213
214         * manual/startup.texi: Document new getsubopt function.
215         * manual/examples/subopt.c: New example program for documenting
216         getsubopt function.
217
218 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
219
220         * stdlib/Makefile (routines): Add getsubopt.
221         * stdlib/stdlib.h: Add prototype for getsubopt.
222         * stdlib/getsubopt.c: New file.  Implement getsubopt function
223         to handle suboption parsing.
224
225 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
226
227         * inet/getnetent_r.c: Define NEED_H_ERRNO.
228         * inet/getnetbynm_r.c: Likewise.
229         * inet/getnetent.c: Likewise.
230         * inet/getnetbyad_r.c: Likewise.
231         * inet/getnetbyad.c: Likewise.
232         * inet/getnetbynm.c: Likewise.
233
234         * sysdeps/generic/pselect.c: Include <sys/time.h>.
235
236         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
237         `struct timespec'.
238
239         * math/Makefile (calls): Add s_frexp, s_ldexp.
240         (routines): Remove them and &f from here.
241
242         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
243
244         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
245         and check it.
246
247         * nss/nss_files/files-XXX.c: Comment fix.
248
249 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
250
251         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
252         of reentrant function.
253         (setup): Pass additional argument with function name we are
254         looking for.
255         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
256         new argument {SET,END,GET}FUNC_NAME_STRING.
257
258         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
259         we return a pointer.
260
261 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
262
263         * nss/nss_files/files-parse.c: Add comment about things to #define.
264
265         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
266
267         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
268         terminator char as an error.
269
270         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
271
272 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
273
274         * catgets/gencat.c (write_out): Move code to determine new
275         best size out of inner loop.
276
277 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
278
279         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
280         implementation of frexp() function.
281         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
282         implementation of ldexp() function.
283
284         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
285         out before or'ing.
286
287 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
288
289         * misc/mntent.c: Include <sys/types.h>.
290         (endmntent): Return 1 one success, 0 on failure.
291         (getmntent): Chop newline and ignore empty lines.
292
293 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
294
295         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
296         differently based on [RTLD_BOOTSTRAP].
297         (elf_machine_rela): Use it instead of the fn ptr arg directly.
298
299 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
300
301         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
302         __glob_closedir_hook): Remove decls.
303
304         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
305
306         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
307         for send and connect syscalls.
308
309         * socket/sys/socket.h: New file, taken from non-sysdep parts of
310         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
311         Declare __ names for send and connect.
312         * sysdeps/generic/socketbits.h: New file.
313         * sysdeps/unix/sysv/linux/socketbits.h: New file.
314         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
315         * sysdeps/generic/sys/socket.h: File removed.
316
317         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
318         * sysdeps/mach/hurd/send.c: Likewise.
319
320         * sysdeps/mach/libc-lock.h: New file.
321         * sysdeps/unix/readdir.c: Do locking.
322         * sysdeps/unix/seekdir.c: Likewise.
323         * sysdeps/unix/rewinddir.c:  Likewise.
324         * sysdeps/unix/closedir.c: Likewise.
325         * sysdeps/unix/bsd/telldir.c: Likewise.
326         * sysdeps/mach/hurd/seekdir.c: Likewise.
327         * sysdeps/mach/hurd/readdir.c: Likewise.
328         * sysdeps/mach/hurd/closedir.c: Likewise.
329         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
330         * sysdeps/unix/opendir.c: Likewise.
331         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
332         (struct __dirstream): Add lock member using __libc_lock_define.
333         * sysdeps/unix/dirstream.h: Likewise.
334
335         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
336
337         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
338
339         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
340
341 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
342
343         * locale/programs/stringtrans.c: Fix typo in copyright.
344
345         * stdio-common/printf-prs.c: Add casts to prevent
346         signed<->unsigned warnings.
347
348         * stdio-common/printf-parse.h: Initialize state variable before
349         calling mbrlen.
350         * stdio-common/printf-prs.c: Don't initialize state variable here.
351         * stdio-common/vfprintf.c: Don't initialize state variable.
352         (vfprintf): While determining length of multibyte string don't
353         try to be clever in determining characters to use for first
354         call.
355
356         Add real implementation of multibyte<->wide char conversion
357         functions.  The functions always convert between the fixed wide
358         char format (ISO 10646 in UCS4) and the UTF8 representation of
359         this character set.  Conversion between the currently used
360         8bit character set and ISO 10646 will not take place.  This is
361         what iconv() is for.
362         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
363         dummy definition.
364         Add optimized version of `mbrlen' function.
365         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
366         to 0...0x7f.
367         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
368         to 0..0x7f.
369         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
370         This is needed in the wchar.h header.
371         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
372         encoded character to UCS4.
373         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
374         element of `mbstate_t' for initial state.
375         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
376         encoded string to UCS4 string.
377         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
378         character to UTF8 encoded form.
379         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
380         encoded string to UTF8 encoded form.
381
382 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
383
384         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
385         variable name, so new a libc with new requirements won't fail to
386         notice an insufficient Linux version.
387
388         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
389
390         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
391         instead of 2.0 headers.
392
393         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
394
395         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
396         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
397
398         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
399         before using it in lhs of weak_alias.
400
401         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
402         Call __nss_lookup when not setting STARTP.
403         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
404         function-calling loop.
405
406 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
407
408         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
409         PENDIN, NOFLSH): Undefine these at start if they are already
410         defined to avoid collision with termbits.h.
411         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
412         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
413
414 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
415
416         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
417         already defined to float, long double.  Use those macros for _Mdouble_
418         defns when including mathcalls.h.
419         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
420         -D_Mlong_double_=double.
421
422         Add more -lm functions to -lc because ldexp uses them.
423         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
424         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
425         ldexp have both f and l code, and those have f though not l code.
426
427 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
428
429         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
430         error is 0.  The "placeholder" entries recently added to
431         errno.texi convert to zero since `???/' is at the front of them.
432         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
433
434         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
435         __const to conform with unistd.h.
436
437         * stdlib/stdlib.h (random): Declare return type to be int32_t.
438
439         * string/argz-delete.c (argz_delete): Use memmove instead of
440         memcpy for possibly overlapping strings.
441
442 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
443
444         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
445         storage class.  GCC gives an error for non-extern data defns with the
446         alias attribute.
447
448 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
449
450         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
451         memmove instead of memcpy for possible overlapping strings.
452
453 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
454
455         * libc-symbols.h (weak_function): New macro.
456         For GCC 2.7+ define as __attribute__ ((weak)).
457         * elf/dl-minimal.c: Use weak_function as keyword in function defns
458         instead of weak_symbol (NAME) after the defn.
459         * stdlib/strtol.c: Likewise.
460         * stdlib/strtod.c: Likewise.
461         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
462
463         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
464         If this is defined, don't declare _dl_rtld_map as weak, and
465         don't check for MAP pointing to it.  RESOLVE is always null in this
466         case, so test with #ifdef instead of if.
467
468         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
469         weak_symbol.
470         * csu/initfini.c (_init): Likewise.
471         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
472         * misc/efgcvt_r.c: Likewise.
473         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
474         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
475
476         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
477         It was not used in any assembler code.
478         (weak_symbol_asm): Renamed to weak_extern_asm.
479         (weak_extern): New macro replaces weak_symbol for weak extern refs;
480         define to weak_extern_asm for [!ASSEMBLER].
481
482 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
483
484         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
485         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
486         define those now as aliases.
487         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
488         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
489         after GCC weak attribute decl.
490
491         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
492         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
493         (element printer): Check for elt in ALIAS, instead of special case
494         for EWOULDBLOCK.
495
496         * io/Makefile (headers): Add sys/vfs.h.
497         * io/sys/vfs.h: New file.
498
499         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
500         critical section lock before unlinking dying active resources.
501         The unlock just before return is right (i.e. old code unlocked twice).
502
503 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
504
505         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
506         Use memmove instead of memcpy where overlap is possible (not
507         necessary using current implementation of memcpy, but...).
508         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
509
510 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
511
512         * stdio/linewrap.c (lwupdate): New function, mostly was
513         __line_wrap_update.  Use POINT_COL field instead of POINT.
514         (__line_wrap_output): Use lwupdate.
515         (__line_wrap_update): New function.
516         (ensure_unwrapped, ensure_wrapped): New functions.
517         (line_wrap_set_lmargin, line_wrap_set_rmargin,
518         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
519
520         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
521         POINT_COL. Add POINT_OFFS field.
522         (__line_wrap_update): New decl.
523         (line_wrap_set_lmargin, line_wrap_set_rmargin,
524         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
525
526 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
527
528         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
529
530         * login/pututline_r.c (pututline_r): Since we assign RESULT from
531         lseek now, check that it's >= 0, not == 0.
532
533 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
534
535         * login/login.c (login): Make a copy of *UT, fill in various
536         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
537         in place of UT.
538
539         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
540         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
541
542 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
543
544         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
545         signal during critical section doing interruptible RPC, if
546         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
547         before thread_resume.  If in critical section, pass 0 for SIGNO to
548         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
549
550         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
551
552         * sysdeps/unix/sysv/linux/sys/user.h: New file.
553         * sysdeps/unix/sysv/linux/Dist: Add it.
554         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
555
556         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
557         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
558         itself, no need to skip past a NUL.
559
560         * nss/nsswitch.h (known_function): Comment fix.
561         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
562         directly.  Do the lookup and insertion with a single call, and fill in
563         the tree node afterwards if new.
564         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
565
566         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
567         (struct timeval): Add bodiless decl for scope.
568
569         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
570         Move struct timespec defn outside [_TIME_H] so it can be got with
571         #define __need_timespec.
572
573         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
574         for `struct timespec' member names.
575         (TIMESPEC_TO_TIMEVAL): Likewise.
576
577         * nss/Makefile (extra-libs-others): New variable.
578
579         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
580         $(lib) in $(extra-libs-others).
581         * sunrpc/Makefile (extra-libs-others): New variable.
582         (librpcsvc-no-lib-dep): Variable removed.
583
584         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
585         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
586         _dl_rtld_map.
587         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
588         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
589         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
590         _dl_rtld_map weak only here.
591
592         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
593
594 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
595
596         * login/utmp.h: Fix typos.
597
598         * misc/syslog.c (vsyslog): Use __send instead of send and
599         __connect instead of connect to avoid name-space collisions (e.g.,
600         with psgetty).
601
602 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
603
604         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
605
606         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
607
608         * malloc/malloc-size.c (malloc_usable_size): Renamed from
609         malloc_object_allocation_size.
610         * malloc/malloc.h: Fix decl.
611
612         * sys/select.h: New file, wrapper header.
613
614         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
615         fd_set, associated macros, and select decl.
616
617         * sysdeps/posix/isfdtype.c: New file.
618
619 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
620
621         The latest Japanese proposal for POSIX locales renames the
622         CHARMAP keyword in locale definition files to CHARCONV.
623         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
624         function ctype_is_charmap to ctype_is_charconv.
625         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
626         charconv.
627         * locale/programs/locfile-token.h: Add definition of token
628         charconv.
629         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
630         lables according to this.
631
632         * locale/weight.h (get_weight): Cast constants to prevent
633         warnings.
634
635         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
636         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
637         warnings.
638
639         New stuff described in P1003.1g.
640         * misc/Makefile (headers): Add sys/select.h.
641         (routines): Add pselect.
642         * misc/sys/select.h: New file.  Declare select functions and
643         needed data types and macros.
644         * sysdeps/generic/pselect.c: New file.  Add generic implementation
645         of pselect() function which uses select().
646
647         * posix/getconf.c: Recognize new variables from P1003.1g.
648         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
649         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
650         * posix/unistd.h: Add description of the P1003.1g variables.
651         * sysdeps/generic/confname.h: Define _SC_* values for new
652         variables.
653         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
654         _PC_SOCK_MAXBUF.
655         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
656         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
657         P1003.1g variables.
658         * sysdeps/stub/sysconf.c (sysconf): Ditto.
659         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
660         _POSIX_SELECT since Linux has this.
661
662         * socket/Makefile (routines): Add isfdtype.
663         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
664         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
665         isfdtype.
666
667         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
668
669 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
670
671         * elf/Makefile (LDFLAGS-dl.so): New variable.
672         (libdl.so): Depend on eval.so.
673         (distribute): Add eval.c.
674         * elf/eval.c: New file.
675
676         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
677         in case it wrote fewer than MAXDIGITS chars.
678
679         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
680         newline from flushing full buffer in loop, fix test so no fflush is
681         done when last byte written exactly fills the buffer.
682
683         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
684
685         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
686         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
687
688         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
689         extracting _dl_rtld_map.l_addr.
690
691         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
692         weak.
693         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
694
695         * shlib-versions (*-*-*): Set libnss_db=1.
696
697 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
698
699         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
700
701         * rpm/template (%build): Use @prefix@ instead of always /usr.
702         Set up configparms only if @prefix@ is in fact /usr.
703         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
704
705         * elf/Makefile: Add missing endif.
706
707         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
708
709         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
710         (DATABASE): Define this instead of DATAFILE.
711         * nss/nss_files/files-hosts.c: Likewise.
712         (hostbyname): Use LOOKUP_NAME macro.
713
714         * nss/nss_db/db-XXX.c: New file.
715         * nss/Makefile (services): Add db.
716         (libnss_db-inhibit-o): New variable.
717         (libnss_db-routines): New variable.
718         (distribute): Append db-XXX.c.
719         (libnss_db.so): Depend on libdb.so and libnss_files.so.
720         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
721
722         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
723         args, ignored.
724         (DATAFILE): New macro.
725         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
726         "files-XXX.c".
727         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
728         Pass db key args to DB_LOOKUP.
729         (DATAFILE): Macro removed.
730         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
731         * nss/nss_files/files-service.c: Likewise.
732         * nss/nss_files/files-pwd.c: Likewise.
733         * nss/nss_files/files-proto.c: Likewise.
734         * nss/nss_files/files-grp.c: Likewise.
735         * nss/nss_files/files-ethers.c: Likewise.
736
737         * elf/linux-compat.c: File removed.
738         * elf/Makefile (distribute): Remove linux-compat.c.
739         (ld-linux.so.1): Remove target and associated variables.
740
741         * sunrpc/xdr.c: Remove malloc decl.
742         * sunrpc/portmap.c: Likewise.
743
744         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
745         casting abort to fn returning bool_t.
746
747         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
748         the parser function.
749         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
750         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
751         * nss/nss_files/files-grp.c: Likewise.
752
753         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
754
755         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
756
757         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
758         of ld.so so lookups for that soname find it.
759
760         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
761         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
762
763         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
764         define parse_line function.
765         (parse_line): #define to _nss_files_parse_pwent and
766         add extern decl for that.
767
768         * nss/nss_files/files-XXX.c (internal_getent): Return
769         NSS_STATUS_TRYAGAIN for ERANGE error.
770
771         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
772         of null, so next round returns null again instead of bombing.  Fix
773         from drepper.
774
775         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
776         Remove ; after `ENTDATA_DECL (data)'.
777         Truncate line at strpbrk (line, EOLSET "\n").
778         (ENTDATA_DECL): Put ; at end.
779         (MIDLINE_COMMENTS): Macro removed.
780         * nss/nss_files/files-ethers.c: Pass new argument.
781         * nss/nss_files/files-hosts.c: Likewise.
782         * nss/nss_files/files-network.c: Likewise.
783         * nss/nss_files/files-parse.c: Likewise.
784         * nss/nss_files/files-proto.c: Likewise.
785         * nss/nss_files/files-rpc.c: Likewise.
786         * nss/nss_files/files-service.c: Likewise.
787         * grp/fgetgrent.c: Likewise.
788         * pwd/fgetpwent.c: Likewise.
789         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
790         fgetpwent.c already defines it.
791         * nss/nss_files/files-grp.c: Likewise.
792
793         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
794         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
795         string table properly.
796
797         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
798         invoked directly, and l_libname from that if PT_INTERP missing.
799         Set l_name from l_libname only if not set from argv.
800
801         * time/europe, time/northamerica: Updated from ADO 96i.
802
803 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
804
805         * stdio-common/tst-ungetc.c: Include unistd.h.
806
807         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
808
809 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
810
811         * hurd/report-wait.c (describe_number): Make I unsigned long.
812
813         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
814         actually found any entry.
815
816         * login/pututline_r.c (pututline_r): If not located after any
817         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
818         Lock the file before stating.
819
820 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
821
822         * nss/Makefile (databases): Change host to hosts.
823         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
824
825         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
826
827         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
828
829         * string/string.h (strndupa): Pass missing arg to strnlen.
830
831         * inet/getnetbypt_r.c: Renamed to ...
832         * inet/getnetbyad_r.c: this; fixed function name.
833         * inet/getnetbypt.c: Renamed to ...
834         * inet/getnetbyad.c: this; fixed function name.
835
836 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
837
838         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
839         struct passwd.
840
841 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
842
843         * login/login.c (login): Initialize DATA so that setutent_r will
844         actually do something.
845
846 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
847
848         * resolv/res_hconf.c (strndup): Remove function.
849
850         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
851         using ElfW() instead of Elf32_*.
852
853         * sysdeps/unix/sysv/linux/alpha/init-first.h,
854         sysdeps/unix/sysv/linux/m68k/init-first.h,
855         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
856         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
857         init-first.h to make abstract machine dependent parts of
858         initialization.
859
860         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
861         error handling.  It's safer that way.
862
863         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
864         Fix by Richard Henderson.
865
866         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
867         typo/extraneous whitespace.
868
869         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
870         determine what integer sizes we're dealing with.
871
872 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
873
874         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
875         check for signal zero, repair logical sense of test by
876         parenthesizing correctly.
877
878         * hurd/hurdsig.c (_hurd_internal_post_signal): In
879         check-for-pending signals code, release _hurd_siglock before
880         jumping to deliver_pending.
881
882 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
883
884         * configure.in (config_machine): Make ELF the default even for
885         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
886         is specified.
887
888 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
889
890         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
891         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
892         member only #ifdef ENTDATA.
893         (ENTDATA_DECL): New macro.
894         (LINE_PARSER): Use it for entdata decl.
895         (parse_list): Find the space for LIST from DATA->linebuffer instead of
896         from the input LINE, which might not be writable buffer space.
897         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
898         [ENTDATA] (parser_stclass): #define to `static inline'.
899         [!ENDATA] (parser_stclass): #define to empty.
900         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
901         function is exported to -lnss_files users.
902
903         * string/strndup.c: Add missing arg.
904
905         * string/string.h (strndupa): Likewise.
906         * string/strndup.c (strndup): Always terminate the string.
907
908 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
909
910         * stdio/Makefile (routines): Add vscanf.
911         * stdio-common/Makefile (routines): Remove vscanf.
912         * stdio-common/vscanf.c: Move to ...
913         * stdio/vscanf.c: here.
914
915         * rpm/Makefile (headers, install-lib, install-lib.so,
916         versioned, install-bin, install-sbin, install-data,
917         install-others): Add $(-VARIABLE).
918
919 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
920
921         * nss/Makefile (databases): New variable.
922         (routines, libnss_files-routines): Use it.
923         (subdir-dirs): Compute from $(services).
924
925         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
926         init_module, klogctl): Use EXTRA in the "caller" column so these get
927         added to unix-extra-syscalls and thus compiled in misc.
928
929         * string/Makefile (routines): Add strndup.
930         * string/strndup.c: New file.
931         * string/string.h: Declare strndup.
932         (strndupa): New macro.
933
934         * string/string.h: Declare __strdup.
935         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
936
937         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
938
939 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
940
941         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
942
943         * grp/initgroups.c (initgroups): De-ansi-fy.
944         Move declaration of NGROUPS and GROUPS outside #if so that
945         the code compiles for NGROUPS_MAX != 0.
946
947         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
948         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
949         ether_ntoa, ether_ntoa_r, and ether_ntoh.
950         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
951         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
952         inet/ether_ntoh.c: New files.  Implementation of functions to
953         handle Ethernet address to host mapping.
954         * inet/netinet/ether.h: New file.  Declare ether_* functions.
955         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
956         compilation.
957         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
958         * nss/Makefile (routines): Add ethers-lookup.
959         (libnss_files-routines): Add files-ethers.
960
961         * nss/getXXent_r.c: Don't define set*ent and end*ent function
962         with _r suffix.
963
964         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
965         KEEP_STREAM every time called.
966         (_nss_files_end): Reset KEEP_STREAM here instead.
967         (internal_getent): If STREAM == NULL try to open instead of
968         signalling error.
969         Use cast to prevent warning.
970         Terminate read line in case the buffer is too small.
971
972         * nss/nss_files/files-ethers.c: New file.  Implementation of
973         Ethernet adress<->hostname lookup through files interface.
974
975         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
976         * stdlib/mbtowc.c: Define based on mbrtowc().
977         * stdlib/wcstombs.c: Define based on wcsrtombs().
978         * stdlib/wctomb.c: Define based on wcrtomb().
979
980         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
981         unexpected_sizes_in_xdr_u_int.
982
983         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
984         of `struct ether_addr'.
985         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
986         declaration of `struct ether_addr'.
987
988         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
989         * wcsmbs/mbsrtowcs.c: Ditto.
990         * wcsmbs/wcrtomb.c: Ditto.
991         * wcsmbs/wcsrtombs.c: Ditto.
992
993         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
994
995 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
996
997         * hurd/get-host.c <fcntl.h>: New include.
998         * hurd/set-host.c <fcntl.h>: New include.
999         (_hurd_set_host_config): Include NEW in args to dir_link.
1000         Return NWROTE, not NREAD.
1001
1002         * sysdeps/mach/hurd/getcwd.c
1003         (_hurd_canonicalize_directory_name_internal): Don't deallocate
1004         DOTID & DOTDEVID until we're finished with them (we need to keep
1005         them at least until we've fetched the next level of id ports, so
1006         that mach will be able to use the same name if they're the same).
1007         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1008         jumps to errlose, for those places where such cleanup is needed.
1009
1010 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1011
1012         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1013
1014         Move DB code into separate -ldb library.
1015         * db/Makefile (extra-libs): New variable, list libdb.
1016         (routines): Renamed to libdb-routines.
1017         * shlib-versions: Add libdb=2.
1018
1019         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1020         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1021
1022         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1023         of strncasecmp.  Extend syntax to grok [!foo=bar].
1024
1025         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1026         weak alias.
1027         * string/string.h: Declare __strncasecmp.
1028
1029         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1030         (service_alias): Variable removed.
1031         (nss_parse_service_list): New function, broken out of nss_getline.
1032         Remove alias conversion; we will just use symlinks.
1033         (__nss_database_lookup): Take new string arg DEFCONFIG.
1034         If no entry exists, make one with service list parsed from that.
1035         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1036         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1037         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1038
1039         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
1040         list size.
1041
1042         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1043
1044 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
1045
1046         * locale/programs/locale.c (long_options): Short form of
1047         --version option is `-V'.
1048         (main): Recognize `-V' as option, not `-v'.
1049         Call `usage' instead of printing error message for illegal
1050         option.
1051         (usage): Document `-V'.
1052
1053 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1054
1055         * sysdeps/mach/hurd/getcwd.c
1056         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1057         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1058
1059 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1060
1061         * inet/getrpcent.c: Fix macros.
1062         * inet/getrpcent_r.c: Fix macros.
1063
1064         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1065
1066         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1067
1068 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
1069
1070         * catgets/gencat.c (write_out): Use %Zu to print variables of type
1071         size_t.
1072         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1073         cast it to (unsigned long) to make it work both on 32 and 64
1074         bit architectures.
1075
1076 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1077
1078         * locale/Makefile (distribute): Add `programs/' prefix to all
1079         files in that directory.
1080
1081         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1082         subdir' works.
1083
1084         * MakeTAGS (sources, headers): Make them simply expanded variables
1085         so that all-dist is expanded before it is changed.
1086
1087 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1088
1089         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
1090         * Makefile (subdirs): Remove crypt.
1091         * crypt: Directory removed.  It will be made an independent library
1092         distribution.
1093
1094         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1095
1096         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1097
1098         * inet/getrpcbynumber.c (BUFLEN): New macro.
1099
1100         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1101
1102         * Makefile (headers): Add libc-lock.h.
1103         * sysdeps/stub/libc-lock.h: New file.
1104
1105         * inet/getrpcbynumber.c: Remove _r typo.
1106
1107         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1108
1109         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1110         after the first!
1111
1112         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1113         or doesn't mention DATABASE, use an internal default equivalent to
1114         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1115         (nss_lookup_function): Call nss_new_service as needed.
1116         (nss_parse_file): Don't bother calling nss_new_service here.
1117
1118         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1119         * pwd/fgetpwent.c: Likewise.
1120
1121         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1122         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1123         * malloc/malloc-size.c: New file.
1124         * malloc/malloc-walk.c: New file.
1125
1126         * malloc/malloc-find.c (malloc_find_object_address): Return null if
1127         PTR is outside the heap.
1128
1129         * elf/dl-load.c (_dl_map_object): If the requested name matches the
1130         soname of a loaded object, use that object.
1131
1132 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1133
1134         * Makefile (subdirs): Add nss.
1135
1136         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1137         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1138         * inet/getrpcbynumber_r.c: New file.
1139         * inet/getrpcbynumber.c: New file.
1140         * inet/getrpcbyname.c: New file.
1141         * inet/getrpcbyname_r.c: New file.
1142         * inet/getrpcent_r.c: New file.
1143         * inet/getrpcent.c: New file.
1144         * nss/rpc-lookup.c: New file.
1145         * nss/nss_files/files-rpc.c: New file.
1146         * nss/Makefile (routines): Add rpc-lookup.
1147         (libnss_files-routines): Add files-rpc.
1148         * sunrpc/Makefile (routines): Remove getrpcent.
1149         * sunrpc/getrpcent.c: File removed.
1150
1151         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1152         non-null on entry.
1153
1154         * Makeconfig (rpath-link): Add $(nssobjdir).
1155         (nssobjdir): New variable.
1156
1157         * Makerules: Move shared library building before objects rules, so
1158         versions are known before extra-lib.mk gets included.
1159         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1160
1161         * pwd/getpwuid.c: Rewritten using nss.
1162         * pwd/getpwnam.c: Likewise.
1163         * pwd/getpwent.c: Likewise.
1164         * grp/getgrnam.c: Likewise.
1165         * grp/getgrgid.c: Likewise.
1166         * grp/getgrent.c: Likewise.
1167         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1168         * pwd/getpwent_r.c: New file.
1169         * pwd/getpwnam_r.c: New file.
1170         * pwd/getpwuid_r.c: New file.
1171         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1172         * grp/getgrnam_r.c: New file.
1173         * grp/getgrgid_r.c: New file.
1174         * grp/getgrent_r.c: New file.
1175         * grp/Makefile (routines): Remove grpopen, grpread.
1176         * pwd/Makefile (routines): Remove pwdopen, pwdread.
1177         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1178
1179         * pwd/fgetpwent.c: Rewritten using files-parse.c.
1180         * grp/fgetgrent.c: Likewise.
1181
1182         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1183         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1184         * nss/nss_files/files-grp.c: New file.
1185         * nss/nss_files/files-pwd.c: New file.
1186
1187         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1188
1189         * nss/nss_files/files-parse.c: New file.
1190         * nss/nss_files/files-XXX.c: New file.
1191         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1192         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1193         Rewritten using them.
1194
1195         * nss/Makefile (libnss_files-routines): Remove files-host.
1196         Add files-hosts, files-grp, files-pwd.
1197
1198         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1199
1200 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
1201
1202         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1203         A .plt entry now loads the .rela.plt offset directly rather
1204         than making us calculate it.
1205
1206 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1207
1208         * time/Makefile ($(installed-localtime-file) rule): Do
1209         $(make-target-directory) first.
1210
1211         * resolv.h: Fix wrapper for resolv/resolv.h.
1212
1213         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1214         Compile dummy file and pass -nostdlib -nostartfiles so as not to
1215         require installed libraries.
1216
1217         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1218         libnss_dns=1.
1219
1220 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
1221
1222         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1223         and mapv4v6hostent.h.
1224         (routines): Move res* and gethnamaddr into libresolv-routines.
1225         (libresolv-routines): New variable, put them there.
1226         (extra-libs): New variable, list libresolv.
1227         (CPPFLAGS): Add -D for get*by* to res_get*by*.
1228
1229         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1230
1231         * inet/herrno.c: New file.
1232
1233         * resolv/res_init.c: Remove res_hconf calls.
1234
1235         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1236         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1237         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1238         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1239         nss/service-lookup.c: New files.  Implementation of name
1240         service switch, following the approach in Solaris.
1241         Interface specification and general structure inspired by Peter
1242         Eriksson <pen@lysator.liu.se>.
1243         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1244         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1245         Implementation of libnss_files.so module for file based databases
1246         in NSS service.
1247         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1248         if libnss_dns.so module for DNS name lookup in NSS service.
1249
1250         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1251         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1252         Changed to serve as interface to NSS.
1253         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1254         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1255         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1256         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1257         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1258         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1259         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
1260         interfaces to NSS, including reentrant functions.
1261
1262         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1263         resolv/sethostent.c: Removed:  Obsoleted by NSS.
1264
1265         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1266         gethnamaddr.c.  These private functions are now used in more
1267         than one file.
1268
1269         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1270
1271 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1272
1273         * rpm/Makefile ($(config)): Make sure the word list in the for
1274         loop is syntactically non-empty.
1275
1276 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1277
1278         * Version 1.92 test release.
1279
1280 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1281
1282         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1283         to klogctl to match prototype in sys/klog.h.
1284
1285         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1286         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1287
1288         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1289         Remove.  Code is now part of __getcwd again.  The old function
1290         never really worked for anything but THISDIR==".".
1291
1292         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1293         only when building ELF version of library.
1294
1295         * libio/libioP.h (_IO_vscanf): Add prototype.
1296
1297         * posix/unistd.h (syscall): Change sysno arg and return value
1298         to int long.
1299
1300 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1301
1302         * version.h (VERSION): Updated to 1.92.
1303
1304         * misc/Makefile (headers): Add ar.h.
1305         * misc/ar.h: New file.
1306
1307         * config.make.in (BUILD_CC): New variable.
1308         * configure.in: Check for BUILD_CC if $host != $build.
1309
1310         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1311
1312         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1313         (stamp$o files): New targets, create them empty, no deps.
1314
1315         * rpm/template (Source): New field.
1316         (%prep, %build, %install): New sections.
1317         (%files): Add %doc FAQ NEWS NOTES README.
1318         * rpm/rpmrc (builddir): Removed.
1319
1320 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1321
1322         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1323         guessing to not assume p_vaddr of first load cmd is zero.
1324
1325         * sysdeps/sparc/elf/start.S: New file.
1326         * sysdeps/sparc/dl-machine.h: New file.
1327
1328         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1329         only for ?s, not for *s.  Fix from Chet Ramey.
1330
1331         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1332         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1333         Use __{BEGIN,END}_DECLS.
1334         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1335         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1336         New macros, moved here from sysdeps/gnu/utmpbits.h.
1337         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1338         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1339         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1340         Use sizeof instead of UT_*SIZE.
1341         * login/logwtmp.c: Likewise.
1342
1343         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1344
1345         * version.c (banner): Add trailing newline.
1346
1347         * login/utmp.h: Declare login_tty.
1348
1349 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
1350
1351         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1352         Changed to a 12-byte PLT entry to remove dependency on $gp.
1353         Take a new got_addr parameter.
1354         (elf_machine_rela): Pass the new parameter.
1355         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1356         (RTLD_START): Do normal linkage with program entry.
1357
1358 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1359
1360         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1361
1362         * hurd/getuids.c (getuids): New weak link to __getuids.
1363
1364 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1365
1366         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
1367         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1368         argument.
1369         Rename nested function lookup to lookup_op.
1370         (__file_name_lookup, __file_name_lookup_under):
1371         Pass 0 for lookup arg to __hurd_file_name_lookup.
1372         (__file_name_split): Likewise for __hurd_file_name_split.
1373         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1374         Rename nested function lookup to scan_lookup.
1375         (file_name_path_lookup): Pass 0 for lookup arg to
1376         hurd_file_name_path_lookup.
1377         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
1378         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
1379         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1380         Add LOOKUP argument.
1381         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1382         __hurd_file_name_lookup.
1383
1384 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1385
1386         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1387         up a huge list just to discard most of it.
1388
1389         * configure.in (sysnames): Avoid fgrep by using the case shell
1390         builtin.
1391
1392         * Makeconfig (config.status): Fix dependency on Implies files.
1393
1394 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1395
1396         * math/Makefile (distribute): Add ieee-math.c.
1397
1398 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1399
1400         * locale/codeset_name.c: New file.  Provide function for information
1401         about currently used character set.
1402         * locale/Makefile (routines): Add codeset_name.
1403         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1404         * locale/localeinfo.h: Change magic number because of incompatible
1405         change.
1406         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1407         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1408
1409         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1410         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
1411
1412         * locale/setlocale.c (setlocale): Initialize local variables to
1413         prevent warnings.
1414
1415 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1416
1417         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1418
1419         * locale/programs/locale.c: Include string.h.
1420
1421         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1422         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1423         appropriate sign-extension is performed on machines with
1424         sizeof(long) > 4.
1425
1426         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1427         sizeof(int)<sizeof(long), we need to go through a temporary
1428         variable.
1429
1430         * locale/programs/ld-numeric.c: Include <alloca.h>
1431
1432         * libio/stdio.h (__libc_fatal): Add prototype.
1433
1434         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1435         in efect.
1436
1437         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1438         volatile to avoid "might get clobbered by longjmp" warning.
1439
1440         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1441         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1442         probability is a sure loser).
1443         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1444
1445         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1446         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1447
1448         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1449         to be Linux FSSTND compliant.
1450
1451 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1452
1453         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1454
1455         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1456         sysdeps/unix/sysv/linux/alpha/brk.S,
1457         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1458         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1459         sysdeps/unix/sysv/linux/alpha/llseek.S,
1460         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1461         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1462         __syscall_error to avoid intruding application name space.
1463
1464         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1465         to SYS_get?id so that syscall stubs in sysdeps/unix define
1466         these syscalls in terms of getxpid/getxuid/getxgid.
1467
1468         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1469         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1470         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1471         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1472
1473         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1474         (PSEUDO_END): Rename END() to PSEUDO_END().
1475
1476         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1477         to PSEUDO_END to improve branch-prediction.  Include .frame
1478         directive to make syscalls debugabble.
1479         (PSEUDO_END): New macro.
1480
1481         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1482         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1483         latter is illegal under DEC Unix.
1484
1485         * sysdeps/unix/alpha/sysdep.S: Renamed from
1486         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
1487         as well.
1488         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1489         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1490         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1491
1492         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1493         address register in the .frame directive.
1494
1495         * sysdeps/alpha/copysign.c: Remove.
1496
1497         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1498         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1499
1500         * errno.h: Move __END_DECLS to correct place to make file
1501         compilable under c++.
1502
1503         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
1504         d_ino only if <direntry.h> hasn't defined d_fileno.
1505
1506         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1507         arguments to weakext to make .weakext detection work on ECOFF systems.
1508
1509         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
1510         that _validuser() has been replaced by __ivaliduser().
1511
1512 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1513
1514         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1515         as unsigned long, not as int (to avoid incorrect int->long
1516         promotion).
1517
1518 Tue Jun 18 17:56:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1519
1520         * Version 1.91 test release.
1521
1522         * Makerules ($(common-objpfx)distinfo-$(subdir)): Change target from
1523         distinfo to this.
1524         (distinfo): Make phony target depending on that.
1525         (TAGS, po/%.pot, dist): Change deps.
1526         (common-clean): Remove that file.
1527         * rpm/Makefile (distinfo): Change names.
1528
1529         * rpm/Makefile (clean): New target.
1530
1531         * stdlib/test-canon.c: New test program contributed by David Mosberger.
1532         * stdlib/Makefile (tests): Add test-canon.
1533         * stdlib/canonicalize.c: Rewritten by David Mosberger.
1534
1535 Mon Jun 17 17:53:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1536
1537         * mach/Machrules (%_server.c %_server.h rule): Remove gratuitous
1538         mention of $< in mig cmd.  Thanks to Shantanu Goel.
1539
1540         * sysdeps/mach/hurd/brk.c (___brk_addr): Define as weak alias for
1541         _hurd_brk.
1542
1543         * libio/stdio.h [__USE_SVID]: Declare tempnam.
1544
1545 Fri Jun 14 19:28:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1546
1547         * sysdeps/unix/sysv/linux/syscalls.list: Add swapon with two
1548         parameters.
1549
1550 Wed Jun 12 20:40:51 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1551
1552         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix access to
1553         _dl_default_scope.
1554
1555 Sun Jun 16 03:22:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1556
1557         * sysdeps/stub/elfclass.h: New file.
1558
1559         * Make-dist (subdir): Make empty value really empty.
1560
1561         * version.h (VERSION): Update to 1.91.
1562
1563         * hurd/hurdinit.c (map0): Remove [!PIC] conditional.
1564
1565         * shlib-versions (*-*-*): Add libutil=1.
1566
1567         * rpm/Makefile (install-lib): Add libc.a et al.
1568         (install-others): Only add libc.so if $(build-shared) is yes.
1569
1570         * math/Makefile (install-lib): New variable, list libieee.a.
1571         (non-lib.a): Likewise.
1572         (extra-objs): Likewise, and ieee-math.o.
1573         ($(objpfx)libieee.a): New target, link to ieee-math.o.
1574         * math/ieee-math.c: New file.
1575         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]: Remove setfpucw
1576         and libieee.a stuff.
1577         * sysdeps/unix/sysv/linux/ieee-fpucw.c: File removed.
1578         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c: File removed.
1579
1580         * sysdeps/unix/sysv/Makefile (sysdep_headers): Make append of termio.h
1581         and rule for it conditional on termio.h not already being in
1582         sysdep_headers.
1583
1584         * rpm/Makefile (install-others) [libc.so-version]: Get libc.so from
1585         $(libdir), only the versioned named from $(slibdir).
1586         (instfiles): New variable.
1587         (glibc-$(version).$(config).rpm): New target.  Run rpm -bb.
1588         * rpm/rpmrc: New file.  A third of the options controlling rpm can
1589         only be given here (another third is on the command line, and a third
1590         cannot be specified in any way shape or form).
1591
1592 Sun Jun 16 02:44:22 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1593
1594         * rpm/template: New file.
1595         * rpm/Makefile: New file.
1596
1597         * Makeconfig (sysdep-configures): Remove empty variable.
1598
1599         * Makerules (distinfo-vars): Write defns for $(install-lib.so) and
1600         $(versioned).
1601
1602         * manual/Makefile (subdir_%): Add new rule with no deps, secondary to
1603         to rule w/dep on %, with no-op commands.
1604
1605         * Makerules (subdir_distinfo): New phony target; depend on distinfo.
1606         * Makefile (rpm/%): New rule.
1607         (+subdir_targets): Add subdir_distinfo.
1608
1609 Sun Jun 16 00:40:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1610
1611         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add
1612         fpu_control.h here.
1613
1614         * time/Makefile ($(installed-localtime-file)): If target exists, do
1615         nothing but print a message; if not, make it an absolute symlink.
1616
1617         * time/tzset.c (__tzset): After stripping leading :, call
1618         __tzfile_read on TZ even if it's empty or null.
1619         * time/tzfile.c (__tzfile_read): Use "Universal" if passed "".
1620
1621 Sat Jun 15 18:13:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1622
1623         * hurd/Makefile (routines): Add get-host, set-host.
1624         (distribute): Add hurdhost.h.
1625         * hurd/hurdhost.h: New file.
1626         * sysdeps/mach/hurd/gethostname.c: Use _hurd_get_host_config.
1627         * sysdeps/mach/hurd/gethostid.c: Likewise.
1628         * sysdeps/mach/hurd/sethostname.c: Use _hurd_set_host_config.
1629         * sysdeps/mach/hurd/sethostid.c: Likewise.
1630         * hurd/get-host.c: New file.
1631         * hurd/set-host.c: New file.
1632
1633         * math/Makefile (headers): Add fpu_control.h.
1634         (aux): New variable, list fpu_control and setfpucw.
1635         * sysdeps/generic/fpu_control.c: New file.
1636         * sysdeps/stub/fpu_control.h: New file.
1637         * sysdeps/unix/sysv/linux/m68k/fpu_control.h: Moved to ...
1638         * sysdeps/m68k/fpu_control.h: here.
1639         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Moved to ...
1640         * sysdeps/i386/fpu_control.h: here.
1641         * sysdeps/unix/sysv/linux/alpha/fpu_control.h: Moved to ...
1642         * sysdeps/alpha/fpu/fpu_control.h: here.  Fixed copyright.
1643         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1644         setfpucw, fpu_control.
1645         * sysdeps/unix/sysv/linux/alpha/fpu_control.c: File removed.
1646         * sysdeps/unix/sysv/linux/setfpucw.c: Moved to ...
1647         * sysdeps/generic/setfpucw.c: here.
1648         (__fpu_control): Variable removed.
1649         (__setfpucw): Use SET even if zero.
1650
1651         * elf/dl-deps.c (_dl_map_object_deps): Set MAP's mark bit before loop.
1652         Set mark bits of deps as opened, instead of as scanned.
1653
1654         * elf/rtld.c (dl_main): Remove _dl_rtld_map from chain unconditionally.
1655         Then if it has a nonzero l_opencount, add it back in search order.
1656
1657         * elf/dl-load.c (_dl_map_object): Don't use _dl_loaded's DT_RPATH if
1658         it ain't got one!
1659
1660         * sysdeps/unix/sysv/linux/Dist: Add sys/klog.h.
1661
1662         * elf/dl-open.c (_dl_open): Remove PARENT argument, pass null.
1663         * elf/link.h: Update prototype.
1664         * elf/dl-load.c (_dl_map_object): If dependents' DT_RPATHs don't find
1665         NAME, try the DT_RPATH of the executable itself if dynamic.
1666         * elf/dlopen.c (dlopen): Don't pass first arg to _dl_open.
1667
1668         * elf/dl-load.c (_dl_map_object): Exit DT_RPATH checking loop when an
1669         open succeeds.
1670
1671         * Makerules (build-shlib): Give -L opts for each elt of $(rpath-link).
1672
1673         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): Variable removed.
1674         (rpath-link): Append to this instead.
1675
1676 Fri Jun 14 01:51:47 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1677
1678         * version.c (banner): New static const variable, complete version
1679         banner text.
1680         (__libc_print_version): Use it, and use __write instead of printf.
1681
1682         * configure.in (sysnames): Don't cache the value, because it
1683         depends only on libc sources.  Merge uniquifying third pass into
1684         Implies/parent expansion second pass.  Report each unique name as
1685         it is added in partial report string, terminated when finished.
1686
1687         * Makeconfig (sysdep_dir): Move defn before config.status rule that
1688         expands it.
1689         (sysdep-configures): Variable removed.
1690         (config.status): Use its contents directly, tighten up a bit, and
1691         include Implies files.
1692
1693         * elf/dl-open.c (_dl_open) [PIC]: Set PARENT to _dl_loaded if null.
1694
1695         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Make a symlink.
1696
1697 Thu Jun 13 14:29:56 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1698
1699         * hurd/hurdsig.c (_hurd_internal_post_signal): Rename `deliver:'
1700         label to `deliver_pending:' to match goto.
1701
1702 Thu Jun 13 00:02:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1703
1704         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1705         Add comment.
1706
1707         * elf/rtld.c (dl_main): Close _dl_zerofd after mapping deps.
1708
1709         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Define mcount as
1710         weak alias for _mcount.
1711         * sysdeps/alpha/_mcount.S (mcount): Define as weak alias.
1712
1713         * elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is
1714         null, consider it a strong reference and give the error.
1715
1716 Wed Jun 12 15:52:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1717
1718         * elf/dl-open.c (_dl_open): Correctly terminate relocating loop
1719         after relocating NEW when it's the only new object.
1720
1721         * elf/dl-init.c (_dl_init_next): When out of initializers, set
1722         _r_debug.r_state to RT_CONSISTENT and call _dl_debug_state just
1723         before return.
1724
1725         * elf/rtld.c (dl_main): Move _dl_debug_initialize call after
1726         relocation.  Call it unconditionally and only fill in DT_DEBUG
1727         if it's present.  Then call _dl_debug_state with r_state RT_ADD
1728         before running initializers.
1729
1730         * elf/dl-open.c (_dl_open): Call _dl_debug_initialize and then call
1731         _dl_debug_state with r_state RT_ADD before running initializers
1732         * elf/dl-close.c (_dl_close): Call _dl_debug_state with r_state
1733         RT_DELETE before running finalizers and with RT_CONSISTENT just
1734         before return.
1735
1736         * elf/Makefile (dl-routines): Add dl-debug.
1737         * elf/dl-debug.c: New file.
1738         * elf/rtld.c (_dl_r_debug): Rename to _r_debug and move to dl-debug.c.
1739         (_dl_r_debug_state): Rename to _dl_debug_state and likewise move.
1740         (dl_main): Use _dl_debug_initialize.
1741         * elf/link.h: Fix name to _dl_debug_state in decl.
1742         (_dl_debug_initialize): Declare new function from dl-debug.c.
1743         (_r_debug): Declare it.
1744
1745         * Makerules (distinfo-vars): Add install-{lib,data,bin,sbin,others}.
1746         In distinfo set $(subdir)-VAR and then set VAR to $($(subdir)-VAR).
1747
1748         * Makeconfig (rpath-link): New variable; add $(elfobjdir).
1749         (default-rpath): Use it.
1750         (built-program-cmd): Use it in LD_LIBRARY_PATH.
1751
1752         * Makeconfig (sysdep-configures): Prepend $(sysdep_dir) to names tried.
1753
1754         * sysdeps/unix/Dist: Add make-syscalls.sh.
1755
1756         * misc/Makefile (headers): Add sys/swap.h.
1757         * posix/unistd.h: Remove decls for swapon, swapoff.
1758         * sysdeps/generic/sys/swap.h: New file.
1759         * sysdeps/unix/sysv/linux/sys/swap.h: New file.
1760
1761         * sysdeps/unix/sysv/linux/gnu/types.h: Remove temporary hack #define
1762         of __kernel_fsid_t.  It is correctly defines in <linux/types.h> now.
1763
1764 Tue Jun 11 23:23:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1765
1766         * Makerules (LDFLAGS-c.so): Use __libc_main instead of
1767         __libc_print_version as entry point for shared object.
1768         * version.c [HAVE_ELF] (__libc_main): New function.
1769
1770         * elf/dl-load.c (_dl_map_object_from_fd): Relocate l_entry with the
1771         load address.
1772
1773 Tue Jun 11 19:13:04 1996  Richard Henderson  <rth@tamu.edu>
1774
1775         * sysdeps/alpha/dl-machine.h: New file.
1776
1777         * elf/dl-close.c: Include <string.h> for memcpy.
1778         * elf/dl-lookup.c: Same.
1779
1780         * elf/elf.h: Add Elfxx_Symndx for symbol indices.
1781         * elf/dl-lookup.c (_dl_lookup_symbol): Use it.
1782         (_dl_setup_hash): Use it.
1783         * elf/link.h (struct link_map): Use it.
1784
1785         * elf/rtld.c (_dl_start): Don't rely on pointer-to-first-arg hack
1786         for getting the argc/argv/envp block.  Instead, make it the argument.
1787         sysdeps/i386/dl-machine.h (RTLD_START): Do that.
1788         sysdeps/m68k/dl-machine.h (RTLD_START): Same.
1789
1790         * shlib-versions: Add version numbers for alpha-linux.  To avoid
1791         user confusion, make them the same as i386-linux.
1792
1793         * sysdeps/alpha/Makefile [subdir elf]: Add -mno-fp-regs to
1794         sysdep-CFLAGS so that _dl_runtime_resolve doesn't have to save them.
1795         Add -mbuild-constants to CFLAGS-rtld.c to that we can bootstrap
1796         without using literal data.
1797
1798         * sysdeps/generic/dl-sysdep.c: Include <string.h> for memcpy.
1799         Finish Elf32 -> ElfW migration.
1800
1801 Tue Jun 11 15:09:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1802
1803         * Makerules (elfobjdir): Use $(objdir) if set, even in elf subdir.
1804
1805         * elf/Makefile (routines): Remove init-first.
1806         * csu/Makefile (routines): New variable; put it here instead.
1807
1808         * config.make.in (CFLAGS): New variable.
1809
1810         * io/sys/stat.h (S_ISLNK, S_ISSOCK): Make conditional on __USE_BSD,
1811         not __USE_GNU.
1812         * string/string.h (strncasecmp): Likewise.
1813
1814         * elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
1815         to after `include ../Rules', so $(rtld-installed-name) is defined.
1816
1817         * string/basename.c (basename): Cast FILENAME to char * for return.
1818
1819         * Makerules ($(libdir)/libc.so): Put $(rtld-installed) name between
1820         libc.so and libc.a in the deps.
1821
1822         * elf/Makefile ($(objpfx)$(rtld-installed-name)): New target to make
1823         link to ld.so if that is not the installed name.
1824         (lib-noranlib): Depend on the installed name in the build directory
1825         instead of on ld.so.
1826
1827         * Makeconfig (link-libc): Include $(elfobjdir)/$(rtld-installed-name)
1828         between libc.so and libc.a, because with libc.so's DT_NEEDED for ld.so
1829         ld searches libc.a before ld.so (is that an ld bug?).
1830         Add $(elfobjdir) to -rpath-link.
1831
1832         * Makerules (elfobjdir): Define as . when $(subdir) is elf.
1833
1834         * sysdeps/i386/dl-machine.h (elf_machine_rel): In R_386_32 case when
1835         relocating _dl_rtld_map, subtract SYM's value from final reloc value,
1836         but don't change *RELOC_ADDR before calling *RESOLVE, because it might
1837         call the function we are relocating!
1838
1839         * string/basename.c: New file.
1840         * string/Makefile (routines): Add basename.
1841
1842 Mon Jun 10 06:14:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1843
1844         * Makerules ($(common-objpfx)libc.so): Depend on $(elfobjdir)/ld.so.
1845
1846         * elf/dl-close.c: New file.
1847         * elf/link.h: Declare _dl_close.
1848         * elf/Makefile (routines): Add dl-close.
1849         * elf/dlclose.c (dlclose): Use _dl_close.
1850
1851         * elf/Makefile ($(objpfx)librtld.so): Remove libelf from deps.
1852
1853         * elf/dl-runtime.c (_dl_global_scope): New variable.
1854         (_dl_object_relocation_scope): New function.
1855         (fixup): Use it.
1856         * elf/rtld.c (dl_main): Use it.
1857         * elf/dl-open.c (_dl_open): Use it.  If (MODE & RTLD_GLOBAL), set the
1858         l_global bit and append the new map to _dl_global_scope.
1859         * elf/link.h: Declare _dl_global_scope, _dl_global_scope_alloc,
1860         and _dl_object_relocation_scope.
1861
1862         * elf/link.h (struct link_map): Add l_loader member.
1863         Remove _dl_map_object_from_fd decl.
1864         * elf/dl-load.c (_dl_map_object): Pass LOADER to ...
1865         (_dl_map_object_from_fd): Take new arg LOADER and set l_loader member.
1866         (_dl_map_object): Try DT_RPATH from all loaders up the chain.
1867
1868         * elf/dl-object.c (_dl_loaded): Variable removed.
1869         (_dl_default_scope): New variable replaces it.
1870         * elf/link.h (_dl_loaded): Remove variable decl; instead define as
1871         macro for _dl_default_scope[2].
1872         (_dl_default_scope): Declare it.
1873         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_default_scope[2]
1874         instead of _dl_loaded.
1875         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
1876         * elf/rtld.c (dl_main): Use _dl_default_scope for symbol lookups.
1877
1878         * elf/dl-reloc.c (_dl_relocate_object): Remove check for _dl_rtld_map.
1879         * elf/rtld.c (dl_main): Pass 0 for LAZY flag when re-relocating self.
1880
1881         * elf/link.h (struct link_map.l_type): Remove lt_interpreter.
1882         (struct link_map): Add new flag member l_global.
1883
1884         * elf/dl-reloc.c (_dl_relocate_object): Check for _dl_rtld_map
1885         directly instead of looking for lt_interpreter.
1886         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1887         * elf/rtld.c (_dl_start): Don't bother setting BOOTSTRAP_MAP.l_type.
1888         (dl_main): Set _dl_rtld_map.l_type to lt_library.
1889
1890         * elf/dl-deps.c (_dl_map_object_deps): Propagate MAP->l_type to
1891         dependencies loaded, downgrading lt_executable -> lt_library.
1892
1893         * elf/dl-load.c (_dl_map_object_from_fd): Take new arg TYPE and set
1894         l_type from that, translating lt_library->lt_executable based on the
1895         file's ELF type.
1896         (_dl_map_object): Likewise.
1897         * elf/link.h: Update prototypes.
1898         * elf/dl-open.c: Pass type lt_loaded.
1899         * elf/rtld.c: Pass type lt_library.
1900
1901         * elf/dl-load.c (_dl_map_object_from_fd): Handle null return from
1902         _dl_new_object.
1903         (_dl_map_object_from_fd: lose): Unchain and free L if it's not null.
1904         Free REALNAME, and just use NAME in error message.
1905         * elf/dl-object.c (_dl_new_object): If malloc fails, return null
1906         instead of calling _dl_signal_error.
1907
1908         * elf/dl-load.c (_dl_map_object_from_fd): Close FD before signalling
1909         error for _dl_zerofd setup failure.
1910
1911         * elf/dl-object.c (_dl_startup_loaded): Variable removed.
1912         * elf/link.h: Remove its decl.
1913
1914         * elf/dl-reloc.c (_dl_relocate_object): Take new SCOPE arg and pass it
1915         through to _dl_lookup_symbol.
1916         * elf/link.h (_dl_relocate_object): Update comment and prototype.
1917         * elf/rtld.c (dl_main): Pass scope vector to _dl_relocate_object.
1918
1919         * elf/dl-lookup.c (_dl_lookup_symbol): Arg SYMBOL_SCOPE is now a
1920         null-terminated vector of pointers, no longer a vector of exactly two.
1921         * elf/link.h (_dl_lookup_symbol): Update comment and prototype.
1922
1923         * elf/dl-runtime.c (fixup): Set up scope for symbol lookup properly as
1924         done in _dl_relocate_object.
1925
1926         * elf/dlopen.c: Pass "" to _dl_open when FILE is null.
1927
1928         * elf/link.h: Include elfclass.h to define __ELF_NATIVE_CLASS.
1929         (ElfW, ELFW): Use it.
1930         * elf/Makefile (headers): Add elfclass.h.
1931         * sysdeps/wordsize-32/elfclass.h: New file.
1932         * sysdeps/wordsize-64/elfclass.h: New file.
1933         * sysdeps/alpha/Implies: Add wordsize-64.
1934         * sysdeps/i386/Implies: Add wordsize-32.
1935         * sysdeps/m68k/Implies: Add wordsize-32.
1936         * sysdeps/mips/Implies: Add wordsize-32.
1937         * sysdeps/sparc/Implies: Add wordsize-32.
1938
1939         * sysdeps/mach/hurd/dl-sysdep.c (__open): Define this instead of open.
1940         (__close, __mmap): Likewise define with __ names now.
1941
1942 Mon Jun 10 05:13:18 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1943
1944         * elf/dl-support.c: New file.
1945         * elf/Makefile (CFLAGS-dl-support.c): New variable.
1946         (routines, elide-routines.so): Add dl-support.
1947
1948         * elf/dl-minimal.c (_dl_pagesize): Remove common defn.
1949         * elf/dl-load.c (_dl_pagesize): Define it here.
1950         (_dl_map_object_from_fd): Initialize it if zero.
1951         * elf/link.h (_dl_pagesize): Remove const.
1952
1953 Sun Jun  9 04:04:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1954
1955         * elf/Makefile (routines): Add dl-symbol.
1956         * elf/dl-lookup.c (_dl_symbol_value): Moved to ...
1957         * elf/dl-symbol.c: New file.
1958
1959         * elf/elf.h (Elf32_Xword, Elf32_Sxword): New types.
1960         (Elf32_Section, Elf64_Section): New types, 16 bits.
1961         (Elf32_Sym, Elf64_Sym): Use it.
1962
1963         * elf/dl-deps.c (_dl_open): Moved to ...
1964         * elf/dl-open.c: New file.
1965         * Makefile (routines): Add dl-open.
1966
1967         * elf/Makefile (dl-routines): New variable.
1968         (routines): Add $(dl-routines).
1969         (elide-routines.so): New variable, set to $(dl-routines).
1970         (libdl-inhibit-o): Variable removed; build all flavors of -ldl.
1971         (rtld-routines): All but rtld, dl-sysdep, and dl-minimal moved to
1972         $(dl-routines).
1973
1974         * elf/dl-lookup.c (_dl_lookup_symbol): Remove magic symbol grokage.
1975
1976         * elf/dladdr.c: Use ELFW(ST_BIND) in place of ELF32_ST_BIND.
1977
1978         * elf/dl-load.c (open_path): Use __ names for open and close.  Avoid
1979         using strdup.
1980         (_dl_map_object): Likewise.
1981         (_dl_map_object_from_fd): Use __ names for mmap, munmap, and mprotect.
1982         * elf/dl-minimal.c (malloc): Likewise.
1983         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1984
1985         * elf/dl-minimal.c (_dl_pagesize): New variable.
1986         (malloc): Use that instead of a static variable.
1987         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_pagesize instead of
1988         calling getpagesize.
1989         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1990         * elf/link.h: Declare _dl_pagesize.
1991
1992         * elf/rtld.c (dl_r_debug): Renamed to _dl_r_debug.
1993
1994         * elf/link.h (struct link_map): Use Half for l_phnum instead of Word.
1995         * elf/rtld.c (dl_main): Use Half for phdr count arg.
1996         (_dl_sysdep_start): Update prototype of DL_MAIN function ptr arg.
1997
1998         * elf/dl-load.c (_dl_map_object_from_fd): Use explicit Elf32_Word to
1999         extract 4-byte magic number, not ElfW(Word).  Match EI_CLASS against
2000         native wordsize, either 32 or 64.
2001
2002         * elf/elf.h (Elf64_Byte, Elf64_Section): Typedefs removed.  In C a
2003         char is always a byte, no need for a typedef.  Section indices are
2004         16-bit quantities in elf64, which already have a typedef Elf64_Half.
2005
2006         Remove partial -lelf implementation.  There is now a
2007         separately-distributed `libelf' package that implements it.
2008         * elf/dl-lookup.c: Don't #include <libelf.h> any more.
2009         (_dl_elf_hash): New function, moved from
2010         libelf.h:elf_hash.
2011         (_dl_lookup_symbol): Use it instead of elf_hash.
2012         * elf/libelf.h: File removed.
2013         * elf/elf_hash.c: File removed.
2014         * elf/Makefile (headers): Remove libelf.h.
2015         (extra-libs): Remove libelf.
2016         (libelf-routines): Variable removed.
2017
2018         * elf/Makefile (libdl.so): Remove commands from this target.  The
2019         implicit rule commands are correct, this explicit rule just serves to
2020         add some dependencies.
2021
2022         * elf/dl-lookup.c (_dl_lookup_symbol): Use ELFW(ST_TYPE) in place of
2023         ELF32_ST_TYPE.  Likewise ST_BIND.
2024         * elf/do-rel.h (elf_dynamic_do_rel): Likewise R_SYM.
2025
2026         * elf/link.h (ElfW): New macro for wordsize-independent ElfXX_* type
2027         naming.
2028         (ELFW): New macro, likewise for ELFXX_* macro naming.
2029         (_ElfW, _ElfW_1): New macros, subroutines of ElfW and ELF.
2030
2031 Sat Jun  8 20:52:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2032
2033         * elf/link.h, elf/do-rel.h, elf/dynamic-link.h, elf/dl-deps.c,
2034         elf/dl-init.c, elf/dl-load.c, elf/dl-lookup.c, elf/dl-reloc.c,
2035         elf/dl-runtime.c, elf/dladdr.c, elf/dlclose.c, elf/dlsym.c,
2036         elf/linux-compat.c, elf/rtld.c: Change all uses of `Elf32_XXX' to
2037         `ElfW(XXX)' for wordsize-independence.
2038
2039 Sat Jun  8 20:50:42 1996  Richard Henderson  <rth@tamu.edu>
2040
2041         * elf/elf.h: Move Elf64_* types in parity with Elf32 counterparts.
2042         (Elf64_auxv_t): New type.
2043         (EM_ALPHA, R_ALPHA_*): New macros for elf64-alpha format.
2044
2045 Mon Jun 10 02:22:24 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2046
2047         * sysdeps/unix/sysv/linux/configure.in: New file, start with configure.
2048         Add check for installed <linux/version.h> being v2.0 or later.
2049
2050         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill): Call __open
2051         instead of open.
2052         (_dl_sysdep_fatal): Call __write instead of write.
2053         (_dl_sysdep_message): Likewise.
2054
2055 Sun Jun  9 20:40:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2056
2057         * sysdeps/m68k/fpu/e_acosl.c: New file.
2058
2059 Sun Jun  9 01:11:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2060
2061         * Makerules (o-objects): New variable.  Use it in place of
2062         $(objects:.o=$o); it filters out $(elide-routines$o).
2063         Use o-iterator for ar and ranlib rules so they use the per-type object
2064         list.
2065
2066         * elf/dl-load.c (_dl_map_object_from_fd): Close FD before return.
2067
2068         * sysdeps/mach/mprotect.c: Define with __ name and weak alias.
2069         * sysdeps/stub/mprotect.c: Likewise.
2070         * sysdeps/unix/mman/syscalls.list (mprotect): Likewise.
2071         * sysdeps/generic/sys/mman.h: Declare __mprotect.
2072         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
2073         * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
2074         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
2075         * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
2076         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
2077
2078         * Make-dist ($(tardir).tar): Use sed to check for file names longer
2079         than 14 chars, instead of doschk which checks for other things we
2080         don't care about.
2081
2082         * Version 1.90 test release.
2083
2084         * Makerules (make-target-directory): Use ./mkinstalldirs so we do not
2085         assume . is in PATH.
2086
2087 Sat Jun  8 22:05:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2088
2089         * math/Makefile (distribute): Comment out addition of
2090         $(long-m-routines) sources until they are all written.
2091
2092         * math/Makefile (distribute): Append long double source names to this
2093         instead of using elided-routines.
2094
2095 Sat Jun  8 15:15:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2096
2097         * mach/mach_shortcuts.c: Obsolete file removed.
2098         * mach/mach_syscalls.h: Likewise.
2099
2100         * hurd/Makefile (distribute): Consolidate defns into one.
2101
2102         * time/Makefile (tzfiles): Add solar87 solar88 solar89.
2103
2104 Fri Jun  7 16:48:13 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2105
2106         * sysdeps/unix/sysv/linux/i386/Dist: New file, list sys/perm.h and
2107         sys/vm86.h.
2108
2109         Removed old math code no longer used since the fdlibm integration.
2110         * sysdeps/stub/acos.c: File removed.
2111         * sysdeps/stub/asin.c: File removed.
2112         * sysdeps/stub/atan2.c: File removed.
2113         * sysdeps/stub/cosh.c: File removed.
2114         * sysdeps/stub/exp.c: File removed.
2115         * sysdeps/stub/fmod.c: File removed.
2116         * sysdeps/stub/frexp.c: File removed.
2117         * sysdeps/stub/log.c: File removed.
2118         * sysdeps/stub/log10.c: File removed.
2119         * sysdeps/stub/sinh.c: File removed.
2120         * sysdeps/stub/tan.c: File removed.
2121         * sysdeps/stub/tanh.c: File removed.
2122         * sysdeps/generic/acos.c: File removed.
2123         * sysdeps/generic/acosh.c: File removed.
2124         * sysdeps/generic/asin.c: File removed.
2125         * sysdeps/generic/asinh.c: File removed.
2126         * sysdeps/generic/atan.c: File removed.
2127         * sysdeps/generic/atan2.c: File removed.
2128         * sysdeps/generic/atanh.c: File removed.
2129         * sysdeps/generic/cabs.c: File removed.
2130         * sysdeps/generic/ceil.c: File removed.
2131         * sysdeps/generic/copysign.c: File removed.
2132         * sysdeps/generic/cosh.c: File removed.
2133         * sysdeps/generic/exp.c: File removed.
2134         * sysdeps/generic/expm1.c: File removed.
2135         * sysdeps/generic/fabs.c: File removed.
2136         * sysdeps/generic/floor.c: File removed.
2137         * sysdeps/generic/fmod.c: File removed.
2138         * sysdeps/generic/frexp.c: File removed.
2139         * sysdeps/generic/hypot.c: File removed.
2140         * sysdeps/generic/infnan.c: File removed.
2141         * sysdeps/generic/isnan.c: File removed.
2142         * sysdeps/generic/ldexp.c: File removed.
2143         * sysdeps/generic/log.c: File removed.
2144         * sysdeps/generic/log10.c: File removed.
2145         * sysdeps/generic/log1p.c: File removed.
2146         * sysdeps/generic/modf.c: File removed.
2147         * sysdeps/generic/pow.c: File removed.
2148         * sysdeps/generic/rint.c: File removed.
2149         * sysdeps/generic/sinh.c: File removed.
2150         * sysdeps/generic/tan.c: File removed.
2151         * sysdeps/generic/tanh.c: File removed.
2152         * sysdeps/ieee754/cabs.c: File removed.
2153         * sysdeps/ieee754/copysign.c: File removed.
2154         * sysdeps/ieee754/frexp.c: File removed.
2155         * sysdeps/ieee754/hypot.c: File removed.
2156         * sysdeps/ieee754/infnan.c: File removed.
2157         * sysdeps/ieee754/ldexp.c: File removed.
2158         * sysdeps/ieee754/log10.c: File removed.
2159
2160         * posix/Makefile (headers): Add schedbits.h.
2161
2162         * math/Makefile (elided-routines): Add long double routines.
2163
2164 Fri Jun  7 11:02:22 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2165
2166         * sysdeps/mach/hurd/getpriority.c (getpriority): Use new interface
2167         to __proc_getprocinfo.
2168
2169         * login/login.c (tty_name): New function.
2170         (login): Use it.
2171         (PATH_MAX): MACRO removed.
2172         <stdlib.h>: New include.
2173
2174 Fri Jun  7 09:11:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2175
2176         * sysdeps/unix/sysv/linux/Dist: Add sys/sysinfo.h, sys/mount.h,
2177         sys/kdaemon.h, sys/io.h, sys/mount.h, sysctl.c.
2178
2179         * gmon/Makefile (distribute): Add profil-counter.h.
2180
2181         * sysdeps/unix/sysv/linux/alpha/Dist: New file.
2182
2183         * sysdeps/unix/Dist: Add s-proto.S.
2184
2185         * sysdeps/unix/common/mk-local_lim.c: Obsolete file removed.
2186
2187         * Make-dist (+sysdep-tsrcs): Get all syscalls.list files too.
2188
2189         * csu/Makefile (distribute): Add start.c.
2190
2191         * elf/Makefile (distribute): Add dl-machine.h.
2192
2193         * sysdeps/alpha/Dist: Add _mcount.S.
2194
2195         * sysdeps/alpha/Makefile (sysdep_routines): Append instead of
2196         resetting; don't add bb_init_func.
2197
2198         * string/Makefile (routines): Add strerror_r.
2199         * string/string.h (strerror_r): Use int for BUFLEN arg.
2200
2201         * Makefile (distribute): Add shlib-versions.
2202
2203         * po/Makefile (distribute): Add SYS_libc.pot.
2204
2205         * misc/Makefile (routines): Add lsearch.
2206
2207         * manual/lang.texi (Consistency Checking): Merge in assert_perror defn
2208         and other changes inadvertently made to the obsolete assert.texi.
2209         * manual/assert.texi: File removed.
2210
2211         * mach/mach_syscalls.c: Obsolete file removed.
2212         * mach/mach_syscalls.h: Likewise.
2213         * mach/mach_traps.S: Likewise.
2214         * mach/msg_destroy.c: Likewise.
2215         * mach/vm_page_size.c: Likewise.
2216
2217         * locale/Makefile (distribute): Add weight.h, charset.h.
2218
2219         * Makefile (distribute): Add version.h.
2220
2221         * hurd/Makefile (headers): Add hurd/ioctl.h.
2222         (distribute): Add intr-rpc.d, intr-rpc.h, faultexc.defs.
2223
2224         * csu/Makefile (distribute): Add gmon-start.c.
2225
2226         * Makefile (distribute): Add config.h.in.
2227
2228 Wed Jun  5 22:06:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2229
2230         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Fix type of reloc
2231         argument.
2232         [case R_68K_32]: Check for resolve being null.
2233         (RTLD_START): Add missing label.
2234
2235 Fri Jun  7 1996 05:29:32  Ulrich Drepper  <drepper@cygnus.com>
2236
2237         * misc/lsearch.c: New file.  Implementation of lfind and
2238         lsearch functions.
2239
2240         * misc/search.h: Add prototype for functions from tsearch
2241         family with __ prefix.
2242         Correct prototype for lsearch: BASE parameter must not be
2243         const.
2244
2245         * misc/tsearch.c: prepend all global function names with __
2246         and make normal names weak aliases.
2247
2248 Fri Jun  7 00:15:24 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2249
2250         * Make-dist (sysdep_dirs): Skip CVS dirs.
2251
2252 Thu Jun  6 16:12:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2253
2254         * malloc/Makefile (distribute): Change malloc/gmalloc-head.c to
2255         gmalloc-head.c.
2256         (malloc/gmalloc.c): Depend on malloc/gmalloc-head.c.
2257         (malloc/Makefile): Do $(make-target-directory) first.
2258         * malloc/gmalloc-head.c: New file.
2259
2260         * po/Makefile (linguas.mo): Don't commit .mo files to cvs.
2261
2262         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO==0 pending
2263         check, deliver a pending blocked signal if its action might be to
2264         ignore.
2265         * sysdeps/mach/hurd/sigaction.c: If new action is SIG_IGN or SIG_DFL
2266         and SIG is pending, wake up signal thread to check us.
2267
2268         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't mark a signal
2269         pending while blocked or stopped when the action is to ignore it.
2270
2271 Thu Jun  6 12:56:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2272
2273         * hurd/hurdsig.c (_hurd_internal_post_signal: resume): Only set
2274         SS_SUSPENDED when the thread is really suspended.
2275
2276         * elf/rtld.c (dl_main): Don't dereference _dl_rtld_map.l_next if null.
2277
2278         * Makerules (headers): Move append of $(sysdep_headers) after include
2279         of sysdep makefiles.
2280
2281         * sysdeps/mach/hurd/errlist.c: File removed.
2282
2283 Thu Jun  6 07:32:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2284
2285         * resolv/gethnamaddr.c (struct hstorage): Make NAME field a pointer.
2286         (_gethtbyname2): Remove ALIAS variable.
2287         Initialize NAME field of SELF and TARGET to 0.
2288         Add SELF_NAME_SIZE static variable.
2289         Add loop to call gethostname until the space we allocated is enough.
2290         Use malloced strings instead of fixed size buffers.
2291         <stdlib.h>, <unistd.h>: New includes.
2292         * sysdeps/generic/sys/socket.h (PF_INET6, AF_INET6): New macros.
2293
2294         * sysdeps/mach/hurd/errlist.c (_sys_errlist): Add EILSEQ.
2295         (_sys_nerr): Initialize to 107.
2296         Update _HURD_ERRNOS consistency check.
2297
2298         * stdlib/canonicalize.c (canonicalize): Use pathconf for PATH_MAX,
2299         not sysconf.
2300
2301         * login/login.c [!PATH_MAX] (PATH_MAX): Define to be 1024 if not
2302         already defined.
2303
2304         * sysdeps/mach/hurd/setitimer.c (timer_thread): Supply SIGCODE
2305         argument to __msg_sig_post_request.
2306
2307         * hurd/hurdmalloc.c: Changes to bring in line with the hurd
2308         libthreads/malloc.c:
2309         (more_memory): Use assert_perror instead of MACH_CALL.
2310         "cthread_internals.h": Include removed.
2311         (realloc): Use LOG2_MIN_SIZE.
2312         (LOG2_MIN_SIZE): New macro.
2313         (realloc): Don't bother allocating a new block if the
2314         new size request fits in the old one and doesn't waste any space.
2315         Only free the old block if we successfully got a new one.
2316         [MCHECK] (struct header): New type.
2317         (union header): Only define if !MCHECK.
2318         (HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros.
2319         [MCHECK] (MIN_SIZE): Add correct definition for this case.
2320         (more_memory, malloc, free, realloc): Use above macros, and add
2321         appropiate checks & frobs in MCHECK case.
2322
2323 Thu Jun  6 02:00:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2324
2325         * Makerules (distinfo-vars): Don't write constant line to frob sources.
2326         * Make-dist (sources): Append $(elided-routines) and $(extra-libs)
2327         routines.
2328
2329 Tue Jun  4 22:03:02 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2330
2331         * sysdeps/m68k/fpu/__math.h: Define long double versions of
2332         the inline functions.
2333         * sysdeps/m68k/fpu/e_asinl.c, sysdeps/m68k/fpu/e_atanl.c,
2334         sysdeps/m68k/fpu/e_acosl.c, sysdeps/m68k/fpu/e_expl.c,
2335         sysdeps/m68k/fpu/e_fmodl.c, sysdeps/m68k/fpu/e_log10l.c,
2336         sysdeps/m68k/fpu/e_logl.c, sysdeps/m68k/fpu/e_powl.c,
2337         sysdeps/m68k/fpu/e_remainderl.c, sysdeps/m68k/fpu/e_scalbl.c,
2338         sysdeps/m68k/fpu/e_sinhl.c, sysdeps/m68k/fpu/e_sqrtl.c,
2339         sysdeps/m68k/fpu/k_cosl.c, sysdeps/m68k/fpu/k_sinl.c,
2340         sysdeps/m68k/fpu/k_tanl.c, sysdeps/m68k/fpu/s_atanl.c,
2341         sysdeps/m68k/fpu/s_ceill.c, sysdeps/m68k/fpu/s_cosl.c,
2342         sysdeps/m68k/fpu/s_expm1l.c, sysdeps/m68k/fpu/s_fabsl.c,
2343         sysdeps/m68k/fpu/s_finitel.c, sysdeps/m68k/fpu/s_floorl.c,
2344         sysdeps/m68k/fpu/s_frexpl.c, sysdeps/m68k/fpu/s_ilogbl.c,
2345         sysdeps/m68k/fpu/s_isinfl.c, sysdeps/m68k/fpu/s_isnanl.c,
2346         sysdeps/m68k/fpu/s_ldexpl.c, sysdeps/m68k/fpu/s_log1pl.c,
2347         sysdeps/m68k/fpu/s_logbl.c, sysdeps/m68k/fpu/s_modfl.c,
2348         sysdeps/m68k/fpu/s_rintl.c, sysdeps/m68k/fpu/s_scalbnl.c,
2349         sysdeps/m68k/fpu/s_significandl.c, sysdeps/m68k/fpu/s_sinl.c,
2350         sysdeps/m68k/fpu/e_atanhl.c, sysdeps/m68k/fpu/e_coshl.c: New files.
2351
2352         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_fmod.c,
2353         sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_sin.c,
2354         sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/s_atan.c,
2355         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_ilogb.c,
2356         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_ldexp.c,
2357         sysdeps/m68k/fpu/s_modf.c: Define generic functions using FUNC and
2358         float_type with appropriate defaults.
2359
2360         * sysdeps/m68k/fpu/e_acosf.c, sysdeps/m68k/fpu/e_fmodf.c,
2361         sysdeps/m68k/fpu/k_cosf.c, sysdeps/m68k/fpu/k_sinf.c,
2362         sysdeps/m68k/fpu/k_tanf.c, sysdeps/m68k/fpu/s_atanf.c,
2363         sysdeps/m68k/fpu/s_frexpf.c, sysdeps/m68k/fpu/s_ilogbf.c,
2364         sysdeps/m68k/fpu/s_isinff.c, sysdeps/m68k/fpu/s_ldexpf.c,
2365         sysdeps/m68k/fpu/s_modff.c: Include the corresponding double
2366         versions with appropriate definitions to get float functions,
2367         instead of defining them directly.
2368
2369         * sysdeps/m68k/fpu/acos.c: File removed.
2370         * sysdeps/m68k/fpu/asin.c: File removed.
2371         * sysdeps/m68k/fpu/atan.c: File removed.
2372         * sysdeps/m68k/fpu/atan2.c: File removed.
2373         * sysdeps/m68k/fpu/atanh.c: File removed.
2374         * sysdeps/m68k/fpu/ceil.c: File removed.
2375         * sysdeps/m68k/fpu/cos.c: File removed.
2376         * sysdeps/m68k/fpu/cosh.c: File removed.
2377         * sysdeps/m68k/fpu/drem.c: File removed.
2378         * sysdeps/m68k/fpu/exp.c: File removed.
2379         * sysdeps/m68k/fpu/expm1.c: File removed.
2380         * sysdeps/m68k/fpu/fabs.c: File removed.
2381         * sysdeps/m68k/fpu/fl.h: File removed.
2382         * sysdeps/m68k/fpu/floor.c: File removed.
2383         * sysdeps/m68k/fpu/fmod.c: File removed.
2384         * sysdeps/m68k/fpu/frexp.c: File removed.
2385         * sysdeps/m68k/fpu/isinf.c: File removed.
2386         * sysdeps/m68k/fpu/isinfl.c: File removed.
2387         * sysdeps/m68k/fpu/isnan.c: File removed.
2388         * sysdeps/m68k/fpu/isnanl.c: File removed.
2389         * sysdeps/m68k/fpu/ldexp.c: File removed.
2390         * sysdeps/m68k/fpu/log.c: File removed.
2391         * sysdeps/m68k/fpu/log10.c: File removed.
2392         * sysdeps/m68k/fpu/log1p.c: File removed.
2393         * sysdeps/m68k/fpu/logb.c: File removed.
2394         * sysdeps/m68k/fpu/pow.c: File removed.
2395         * sysdeps/m68k/fpu/rint.c: File removed.
2396         * sysdeps/m68k/fpu/sin.c: File removed.
2397         * sysdeps/m68k/fpu/sinh.c: File removed.
2398         * sysdeps/m68k/fpu/sqrt.c: File removed.
2399         * sysdeps/m68k/fpu/tan.c: File removed.
2400         * sysdeps/m68k/fpu/tanh.c: File removed.
2401
2402 Thu Jun  6 00:02:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2403
2404         * sysdeps/unix/sysv/linux/syscalls.list: Add select (the syscall name
2405         is _newselect).
2406         * sysdeps/unix/sysv/linux/select.S: File removed.
2407
2408         * sysdeps/unix/sysv/linux/m68k/select.S: File removed; obsolete with
2409         current kernels, generic linux version is fine.
2410
2411         * locale/Makefile: Add vpath for %.gperf to programs.
2412
2413         * Make-dist (+tsrcs): Variable removed.
2414         (dist): Process $^ here instead of using $(+tsrcs).
2415
2416         * sysdeps/unix/sysv/linux/Makefile (install-others): Don't set.
2417         ($(includedir)/sys/syscall.h): Target removed.
2418         (sysdep_headers): Add syscall-list.h.
2419         ($(objpfx)syscall-%.[dh]): New rule to build syscall-list.[dh].
2420         (generated): Add those.
2421         * sysdeps/unix/sysv/linux/syscall.h: Include <syscall-list.h>.
2422
2423 Wed Jun  5 15:57:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2424
2425         * misc/sys/syscall.h: New file.
2426         * misc/Makefile (headers): Add sys/syscall.h.
2427
2428         * time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
2429         time/africa, time/asia, time/australasia, time/europe,
2430         time/northamerica, time/southamerica: Updated from ADO 96h.
2431
2432         * Make-dist (all-headers): Filter $(sysdep_headers) out of $(headers).
2433         (try-sysdeps, +sysdep-names): Check sysdeps/libm-ieee754 too.
2434
2435         * Makerules (distinfo-vars): Add sysdep_headers.
2436         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Append to
2437         this instead of $(headers).
2438         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2439         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2440
2441         * Make-dist [subdirs-dirs]: Don't prefix $(subdir-dirs) with
2442         $(subdir); we are already there.
2443
2444         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: Removed.
2445
2446         * mach/Machrules: Undo last change.
2447         (mach-generated): List .uh and .__h files only for $(user-interfaces),
2448         not for each .h in $(interface-headers); server-interfaces have no .uh
2449         or .__h files.
2450
2451 Wed Jun  5 15:42:51 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2452
2453         * mach/Machrules (%_server.uh, %_server.__h): New rules, so that the
2454         corrsponding .defs file with without the `_server' will be used.
2455
2456         * mach/Makefile (mach/mach_interface.defs): Renamed from
2457         mach_interface.defs.
2458         (mach/memory_object_user.defs): New variable.
2459
2460 Wed Jun  5 15:10:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2461
2462         * Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
2463
2464         * locale/Makefile (subdir-dirs): New variable.
2465
2466 Wed Jun  5 00:01:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2467
2468         * Makerules (distinfo-vars): Add sysdep_routines.
2469
2470         * mach/Machrules (include-%.defs): New canned sequence.
2471         Change all uses of `#include <$*.defs>' in cmds to use it.
2472         * mach/Makefile (mach_interface.defs): New variable, set to mach.defs.
2473
2474         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle RESOLVE being
2475         null in all cases but R_386_COPY.
2476         (elf_machine_rel):
2477
2478 Wed Jun  5 00:01:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2479
2480         * sysdeps/unix/bsd/ultrix4/mips/Dist: Updated.
2481         * sysdeps/unix/bsd/ultrix4/Dist: Removed.
2482         * sysdeps/unix/sysv/sysv4/Dist: Updated.
2483         * sysdeps/unix/sysv/sco3.2.4/Dist: Removed.
2484         * sysdeps/unix/sysv/irix4/Dist: Updated.
2485         * sysdeps/unix/sysv/linux/i386/Dist: Removed.
2486         * sysdeps/unix/sysv/Dist: Updated.
2487         * sysdeps/unix/bsd/sun/sunos4/Dist: Removed.
2488         * sysdeps/unix/bsd/sony/newsos4/Dist: Removed.
2489         * sysdeps/gnu/Dist: New file.
2490         * sysdeps/alpha/Dist: Updated.
2491         * sysdeps/mach/hurd/Dist: Updated.
2492
2493         * Make-dist [subdir-dirs]: Set a vpath for %.c.
2494
2495         * Make-dist (README): Fix typo in cvs cmd.
2496
2497         * elf/dl-lookup.c (_dl_lookup_symbol): Fix typos in last change.
2498         Comment out ref to nonexistent _dl_close.
2499
2500 Tue Jun  4 21:01:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2501
2502         * math/Makefile (libm-support, libm-calls): New variables.
2503         (libm-routines): Construct this from those.
2504         (calls): New variable.
2505         (routines): Construct this from it.
2506
2507         * resolv/res_debug.c: Add missing #include <ctype.h>.
2508
2509         * sysdeps/unix/getlogin.c: Must pass struct utmp ptr to getutline_r.
2510         * sysdeps/unix/getlogin_r.c: Likewise.
2511
2512         * sysdeps/libm-ieee754/w_hypotl.c: Fix typo.
2513
2514         * sysdeps/libm-ieee754/w_cabsl.c: __cabsl_complex -> __cabs_complexl
2515
2516         * math/Makefile (long-m-routines): Define recursive variable as
2517         $(long-m-$(long-double-fcts)).
2518         (long-m-yes): Put list of routines here.
2519         (long-c-routines, long-c-yes): Likewise.
2520
2521         * sysdeps/unix/sysv/linux/schedbits.h: File removed.
2522
2523         * sysdeps/i386/Makefile (long-double-fcts): New variable, set to yes.
2524         * sysdeps/m68k/Makefile: Likewise.
2525
2526         * math/Makefile [$(long-double-fcts)!=yes] (CPPFLAGS): Append
2527         -DNO_LONG_DOUBLE.
2528
2529         * sysdeps/mach/hurd/getlogin_r.c: New file.
2530
2531 Wed Jun  5 02:11:30 1996  Ulrich Drepper  <drepper@cygnus.com>
2532
2533         * io/Makefile (routines): Add ttyname_r.
2534
2535         * resolv/res_debug.c, resolv/resolv.h: Update from bind-4.3.4-T4A.
2536
2537         * sysdeps/libm-i387/e_asinl.S, sysdeps/libm-i387/e_atan2l.S,
2538         sysdeps/libm-i387/e_expl.S, sysdeps/libm-i387/e_fmodl.S,
2539         sysdeps/libm-i387/e_log10l.S, sysdeps/libm-i387/e_logl.S,
2540         sysdeps/libm-i387/e_remainderl.S, sysdeps/libm-i387/e_scalbl.S,
2541         sysdeps/libm-i387/e_sqrtl.S, sysdeps/libm-i387/s_atanl.S,
2542         sysdeps/libm-i387/s_cosl.S, sysdeps/libm-i387/s_ilogbl.S,
2543         sysdeps/libm-i387/s_log1pl.S, sysdeps/libm-i387/s_logbl.S,
2544         sysdeps/libm-i387/s_scalbnl.S, sysdeps/libm-i387/s_sinl.S,
2545         sysdeps/libm-i387/s_tanl.S: New files.  i387 assembler versions
2546         of `long double' math functions.
2547
2548         * sysdeps/libm-ieee754/k_standard.c: Add handling for errors
2549         in long double functions.
2550
2551         * sysdeps/libm-ieee754/s_ilogbl.c, sysdeps/libm-ieee754/s_logbl.c,
2552         sysdeps/libm-ieee754/s_modfl.c:  New files.  Generic versions
2553         of `long double' math functions.
2554
2555         * sysdeps/libm-ieee754/s_isinf.c [NO_LONG_DOUBLE]: Add string
2556         alias for __isinfl.
2557
2558         * sysdeps/libm-ieee754/w_acoshl.c, sysdeps/libm-ieee754/w_acosl.c,
2559         sysdeps/libm-ieee754/w_asinl.c, sysdeps/libm-ieee754/w_atan2l.c,
2560         sysdeps/libm-ieee754/w_atanhl.c, sysdeps/libm-ieee754/w_cabsl.c,
2561         sysdeps/libm-ieee754/w_coshl.c, sysdeps/libm-ieee754/w_dreml.c,
2562         sysdeps/libm-ieee754/w_expl.c, sysdeps/libm-ieee754/w_fmodl.c,
2563         sysdeps/libm-ieee754/w_gammal.c, sysdeps/libm-ieee754/w_gammal_r.c,
2564         sysdeps/libm-ieee754/w_hypotl.c, sysdeps/libm-ieee754/w_j0l.c,
2565         sysdeps/libm-ieee754/w_j1l.c, sysdeps/libm-ieee754/w_jnl.c,
2566         sysdeps/libm-ieee754/w_lgammal.c, sysdeps/libm-ieee754/w_lgammal_r.c,
2567         sysdeps/libm-ieee754/w_log10l.c, sysdeps/libm-ieee754/w_logl.c,
2568         sysdeps/libm-ieee754/w_powl.c, sysdeps/libm-ieee754/w_remainderl.c,
2569         sysdeps/libm-ieee754/w_scalbl.c, sysdeps/libm-ieee754/w_sinhl.c,
2570         sysdeps/libm-ieee754/w_sqrtl.c: New files.  Wrapper functions
2571         around long double function implementations.
2572
2573         * sysdeps/posix/ttyname_r.c (ttyname_r): Use _D_EXACT_NAMLEN
2574         to determine length of directory entry name.
2575
2576         * posix/Makefile (routines): Add getlogin_r.
2577         * posix/unistd.h: Add prototype for getlogin_r.
2578         * sysdeps/stub/getlogin_r.c: New file.  Reentrant version of
2579         getlogin function, specified in P1003.1c/D6.  Stub version.
2580         * sysdeps/unix/getlogin.c (getlogin): Use ttyname_r instead of
2581         ttyname.  This avoids saving and restoring the old content.
2582         Also use setutent_r, getutline_r and endutent_r instead of
2583         accing UTMP file directly.
2584         * sysdeps/unix/getlogin_r.c: New file.  Reentrant version of
2585         getlogin function, specified in P1003.1c/D6.
2586
2587 Tue Jun  4 20:10:09 1996  J.T. Conklin  <jtc@cygnus.com>
2588
2589         * sysdeps/libm-i387/s_finitef.S: Fix mask for exponent.
2590
2591 Tue Jun  4 18:57:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2592
2593         * elf/dl-lookup.c (_dl_lookup_symbol): Grok magical undefined symbols
2594         _GNU_libc_dl_{open,close,symbol} and resolve them to dl functions.
2595
2596         * elf/rtld.c (rtld_map): Renamed to _dl_rtld_map, made global.
2597         * elf/link.h: Declare _dl_rtld_map.
2598
2599         * elf/dl-lookup.c (_dl_symbol_value): New function.
2600         * elf/link.h: Declare it.
2601
2602         * elf/dladdr.c: Remove #include <setjmp.h>, we don't use it.
2603
2604         * shlib-versions: Set libdl=2.
2605
2606         * elf/dl-deps.c (_dl_map_object_deps): Use a linked list of alloca'd
2607         elements and then scan it to fill the single malloc'd array, instead
2608         of using realloc to grow the array in the first pass.  _dl_map_object
2609         may do some mallocs that break our stream of reallocs, and the minimal
2610         realloc can't handle that.
2611
2612         * elf/dl-init.c (_dl_init_next): Take argument, link_map whose
2613         searchlist describes the piece of the DT_NEEDED graph to be
2614         initialized.
2615         * elf/link.h: Update prototype.
2616         * sysdeps/i386/dl-machine.h (RTLD_START): Pass _dl_loaded as argument
2617         to _dl_init_next.
2618         * sysdeps/m68k/dl-machine.h: Likewise.
2619         * elf/dl-deps.c (_dl_open): Pass new object as arg to _dl_init_next.
2620
2621         * elf/link.h (struct link_map): Add `l_reserved' member, soaking up
2622         extra bits in last byte.
2623         * elf/dl-deps.c (_dl_map_object_deps): Use that for mark bit to avoid
2624         putting dup elts in search list.
2625
2626         * elf/dlclose.c: Use MAP->l_searchlist to find deps to close.
2627
2628         * elf/dlsym.c: Don't tweak linked list.  Scope array given to
2629         _dl_lookup_symbol does the right thing.
2630
2631         * elf/Makefile (subdir_lib): Change this target to lib-noranlib.
2632         (lib-noranlib): Depend on on $(extra-objs).
2633
2634         * errno.h: Move __END_DECLS out of #ifdef's so it matches
2635         __BEGIN_DECLS.
2636
2637 Tue Jun  4 02:25:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2638
2639         * stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as
2640         macro.  _IO_size_t is just an alias for the real size_t anyway.
2641
2642         * elf/Makefile (libdl-routines): Add dladdr.
2643         * elf/dladdr.c: New file.
2644         * elf/dlfcn.h (Dl_info): New typedef.
2645         (dladdr): Declare it.
2646
2647         * sysdeps/libm-i387/s_finite.S: Use `setne' instead of `setnel'.
2648
2649         * intl/l10nflist.c: Fix conditional on #include <argz.h>.
2650
2651         * libio/stdio.h (FOPEN_MAX, FILENAME_MAX, TMP_MAX, L_tmpnam): Macros
2652         removed.  Instead, include <stdio_lim.h>.
2653
2654         * libio/_G_config.h: New file.
2655         * libio/Makefile (headers): Add _G_config.h.
2656
2657         * MakeTAGS (po/errlist.pot): Extract from sysdeps/gnu/errlist.c.
2658
2659         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Define
2660         this macro too; current Linux kernels test that instead of
2661         _LINUX_TYPES_DONT_EXPORT.
2662
2663         * elf/linux-compat.c (_init): Pass reloc_addr arg to _dl_lookup_symbol.
2664
2665         * elf/dl-lookup.c (_dl_lookup_symbol): Use l_searchlist.
2666
2667         * elf/dl-deps.c: New file.
2668         * elf/Makefile (rtld-routines): Add dl-deps.
2669         * elf/link.h: Declare _dl_map_object_deps, _dl_open.
2670         * elf/rtld.c (dl_main): Use _dl_map_object_deps.
2671         * elf/dlopen.c: Use _dl_open.
2672
2673         * elf/rtld.c (dl_main): Remove BEFORE_RTLD variable and list
2674         frobnication based on its value.  Detach RTLD_MAP from the chain if
2675         its l_opencount is zero after loading deps.
2676
2677         * elf/dlfcn.h (RTLD_BINDING_MASK): New macro.
2678
2679         * elf/link.h (struct link_map): Replace l_deps_loaded flag member with
2680         `struct link_map **l_searchlist' and `unsigned int l_nsearchlist'.
2681         * elf/dl-lookup.c (_dl_lookup_symbol): Make SYMBOL_SCOPE arg an array
2682         of two link_map ptrs.  Search the maps in the l_searchlist of each
2683         elt that is not null.
2684         * elf/dl-reloc.c (_dl_relocate_object): Pass proper SCOPE array.
2685         * elf/dl-runtime.c: Likewise.
2686         * elf/dlsym.c: Likewise.
2687         * elf/rtld.c (dl_main): Likewise.
2688
2689         * elf/dl-minimal.c (realloc): Support realloc of the block most
2690         recently returned by the minimal malloc.
2691
2692 Tue Jun  4 00:16:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2693
2694         * sysdeps/gnu/errlist.awk: Produce N_("..."), not _N("...").
2695
2696         * intl: Updated from gettext-0.10.13.
2697         * intl/localealias.c, intl/dcgettext.c [_LIBC]: Define HAVE_ALLOCA.
2698
2699         * signal/siggetmask.c: New file.  Wrapper around sigblock with
2700         link_warning about obsolescence.
2701         * signal/Makefile (routines): Add siggetmask.
2702
2703         * sysdeps/gnu/errlist.awk: New file, adapted from ...
2704         * sysdeps/mach/hurd/errlist.awk: File removed, above file replaces it.
2705         * sysdeps/mach/hurd/Makefile (errlist.c): Target removed.
2706         * sysdeps/gnu/Makefile: New file.
2707         (sysdeps/gnu/errlist.c): Make the errlist.c generation rule into this.
2708
2709 Mon Jun  3 21:03:54 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2710
2711         * manual/errno.texi (Error Codes): Add placeholder items for missing
2712         Linux/i386 errno codes, with perror text but no documentation.
2713         Some existing perror texts changed.
2714
2715         * malloc/mcheck.c (freehook, reallochook): Handle null pointer args.
2716
2717         * hurd/hurdsig.c (_hurd_internal_post_signal): When setting ACT to
2718         `ignore, resume the thread if SS_SUSPENDED, regardless of old action.
2719
2720 Sun Jun  2 20:14:30 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2721
2722         * locale/programs/linereader.c (lr_open): Don't pass NULL to
2723         xstrdup; fix memory leak.
2724         (lr_close): Fix memory leak.
2725
2726 Mon Jun  3 15:58:22 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
2727
2728         * hurd/hurdsig.c (_hurd_internal_post_signal): When turning the action
2729         for a HANDLE signal to IGNORE because the signal is blocked, clean
2730         up any pending suspension left over from a call to resume.
2731
2732 Mon Jun  3 00:30:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2733
2734         * elf/dl-lookup.c (_dl_lookup_symbol): Take new arg RELOC_ADDR and
2735         don't allow a defn resolving to that address.
2736
2737         * elf/link.h: Update prototype and comment.
2738         * elf/dl-runtime.c (fixup): Define local `resolve' function and pass
2739         it to elf_machine_relplt.
2740         * elf/dl-reloc.c (_dl_relocate_object: resolve): Take new arg
2741         RELOC_ADDR and pass it through to _dl_lookup_symbol.
2742         * elf/do-rel.h (elf_dynamic_do_rel): Pass RESOLVE to elf_machine_rel
2743         instead of calling it ourselves and passing its results.
2744         (elf_dynamic_do_rel): RESOLVE fn takes new arg RELOC_ADDR.
2745         * elf/rtld.c (dl_main): Pass 0 for RELOC_ADDR to _dl_lookup_symbol.
2746         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove SYM_LOADADDR
2747         arg.  Add RESOLVE function ptr arg.  Call *RESOLVE as necessary.
2748         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
2749         * sysdeps/stub/dl-machine.h: Likewise.
2750
2751 Sun Jun  2 14:56:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2752
2753         * csu/initfini.c (_fini): Add extern decl for i_am_not_a_leaf.
2754
2755         * elf/dlfcn.h (dl_open_mode): Enumerated type removed.
2756         (RTLD_LAZY, RTLD_NOW): Define these as macros instead.
2757         (RTLD_GLOBAL): New macro.
2758         (dlopen): Take arg of type int instead of dl_open_mode.
2759         * elf/dlopen.c: Likewise.
2760
2761         * math/math.h (_Mldbl): New macro, either produces L suffix or not.
2762         (M_*): Use it for these constants.
2763
2764         * elf/dl-lookup.c (_dl_lookup_symbol): Arg NOSELF renamed to NOPLT.
2765         Reject SHN_UNDEF defns iff NOPLT is nonzero.
2766         * elf/link.h (_dl_lookup_symbol): Update prototype and comment.
2767         * elf/dl-runtime.c (fixup): Pass 1 to _dl_lookup_symbol for NOPLT.
2768         * elf/dlsym.c (dlsym): Pass 0.
2769         * elf/rtld.c (dl_main): Likewise.
2770         * elf/dl-reloc.c (_dl_relocate_object: resolve): Second arg R_OFFSET
2771         replaced with NOPLT flag.  Pass it through to _dl_lookup_symbol.
2772         * elf/do-rel.h (elf_dynamic_do_rel): Update prototype of RESOLVE arg.
2773         Pass `elf_machine_pltrel_p (R->r_type)' result as NOPLT flag value.
2774         * sysdeps/i386/dl-machine.h (elf_machine_pltrel_p): New macro.
2775         * sysdeps/m68k/dl-machine.h (elf_machine_pltrel_p): Likewise.
2776         * sysdeps/stub/dl-machine.h (elf_machine_pltrel_p): Likewise.
2777
2778         * login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca.
2779
2780         * sysdeps/generic/gnu/types.h (__clock_t): New type.
2781
2782 Wed May 29 00:57:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2783
2784         * sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define
2785         using kernel types.
2786         * time/time.h (clock_t): Include <gnu/types.h> and define using
2787         __clock_t.
2788
2789         * time/Makefile (tests): Add test-tz.
2790
2791         * time/test-tz.c: New test.
2792
2793         * time/clocktest.c: Rewrite to test more meaningfully.
2794
2795         * sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
2796         create_module, delete_module, get_kernel_syms, init_module,
2797         klogctl.
2798
2799         * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
2800         instead of SYMLOOP_MAX, which is nowhere to be found.
2801
2802         * sysdeps/unix/sysv/linux/sys/msq_buf.h,
2803         sysdeps/unix/sysv/linux/sys/sem_buf.h,
2804         sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
2805         control ops and datastructures.
2806
2807         * sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
2808         I/O related functions.
2809
2810         * sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
2811         daemon related functions/operations.
2812
2813         * sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
2814         logging related functions/operations.
2815
2816         * sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
2817         module related functions/operations.
2818
2819         * sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
2820         for non-Alpha based Linux systems.
2821
2822         * sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
2823
2824         * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
2825         sys/io.h, sys/klog.h, and sys/kdaemon.h.
2826
2827         * sysdeps/unix/sysdep.h (END): Define empty END macro for
2828         platforms that don't need some sort of end directive at the
2829         end of functions.
2830
2831         * sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
2832         syscall wrapper to allow correct generation of debugging
2833         information.
2834
2835         * sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
2836         directive for both ELF and ECOFF.
2837         (ret): Delete macro.  It was a dangerous macro and unnecessary
2838         since the Alpha assemblers recognizes "ret" as a macro themselves.
2839
2840         * sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
2841         ut_session to guarantee long alignment.  This is important for
2842         Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
2843         This will all get cleaned up as programs start to use ut_tv
2844         instead ut_time.
2845
2846         * sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
2847
2848         * sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
2849         _setjmp.
2850
2851         * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
2852         sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
2853         sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
2854         sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
2855         sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
2856         sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
2857         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2858         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2859         sysdeps/unix/sysv/linux/alpha/llseek.S,
2860         sysdeps/unix/sysv/linux/alpha/pipe.S,
2861         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2862         sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
2863         .end directive.
2864
2865         * csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
2866         function by having it contain a dummy function call.
2867
2868         * configure.in (config_machine): Don't make ELF the default for
2869         Linux/Alpha just yet (use --with-elf instead).
2870         (.init/.fini check): Generate .text to ensure function start and
2871         end are in same section.
2872
2873         * sysdeps/unix/bsd/osf/alpha/brk.S,
2874         sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
2875         break value, not just the low 32 bits to accomodate large
2876         memories.
2877
2878 Tue May 28 10:46:04 1996  Richard Henderson  <rth@tamu.edu>
2879
2880         * sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
2881         dynamically resolve _end for initializing __curbrk, support the
2882         brk(0) query idiom.
2883
2884         * sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
2885
2886         * sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
2887
2888 Sun May 26 22:17:38 1996  Richard Henderson  <rth@tamu.edu>
2889
2890         * stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
2891         stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
2892
2893 Thu May 23 02:15:56 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2894
2895         * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
2896         sys/klog.h, and sys/kdaemon.h.
2897
2898         * sysdeps/unix/sysv/linux/sys/io.h: New file.
2899         * sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
2900         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
2901
2902         * sysdeps/unix/alpha/sysdep.h (ret): Remove macro.  It is
2903         dangerous and unnecessary since both OSF/1 as and gas define "ret"
2904         as a pseudo-instruction.
2905
2906 Sat Jun  1 17:18:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2907
2908         * time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
2909         them.  Bug found by David Mosberger-Tang.
2910
2911         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
2912         of PTR.
2913
2914         * extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
2915         to work around Make bug when A contains var ref.
2916
2917 Fri May 31 18:27:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2918
2919         * string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
2920
2921         * sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
2922         strong names and [gs]etpgid as weak aliases.
2923
2924 Thu May 30 11:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2925
2926         * math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
2927
2928         * po/header.pot: Replace with exact boilerplate pinard dictates.
2929
2930         * sysdeps/i386/strtok.S (Lillegal_argument): Remove this code to set
2931         errno and the check that jumped to it.
2932
2933         * sysdeps/mach/hurd/Makefile (errnos.d): Use $(sed-remove-objpfx).
2934
2935 Thu May 30 03:21:57 1996  Ulrich Drepper  <drepper@cygnus.com>
2936
2937         * FAQ: Document need of gperf program for developers.
2938
2939         * elf/elf.h: Fix typos in comments.
2940
2941         * libio/stdio.h [!__STRICT_ANSI__ || _POSIX_SOURCE]: Add
2942         prototypes for `ctermid' and `cuserid'.
2943
2944         * locale/programs/locale.c: Switch to user selected locale
2945         before printing variables.
2946
2947         * math/Makefile [$(long-double-fcts)==yes]: Define long-m-routines
2948         and long-c-routines.  Only if the `long double' data type is
2949         available we need to compile the functions.
2950         (libm-routines): Add $(long-m-routines).
2951         (routines): Remove isinfl, isnanl.  Use new file s_isinfl and
2952         s_isnanl instead if `long double' is available.
2953
2954         * math/math.h: Include <mathcalls.h> again to define `long double'
2955         functions.
2956
2957         * math/math_private.h: Define data types, prototypes and access
2958         macros for `long double'.
2959
2960         * stdlib/stdlib.h: Add prototypes for `strtoll' and `strtoull'.
2961         [GCC2 && OPTIMIZE]: Define strto{,u}ll as inline function which
2962         calls __strto{,u}q_internal.
2963
2964         * stdlib/strfmon.c: Replace PTR by `void *'.
2965
2966         * stdlib/strtoq.c: Define strtoll as weak alias.
2967         * stdlib/strtouq.c: Define strtoull as weak alias.
2968
2969         * string/tester.c: Correct `strsep' test.
2970
2971         * sysdeps/generic/strsep.c: Make compatible with BSD version.
2972         Trailing characters of skip set are not skipped.  In this case
2973         empty tokens are returned.
2974
2975         * sysdeps/i386/isinfl.c, sysdeps/i386/isnanl.c,
2976         sysdeps/ieee754/isinf.c, sysdeps/ieee754/isinfl.c,
2977         sysdeps/ieee754/isnan.c, sysdeps/ieee754/isnanl.c: Removed.  We
2978         now use the versions part of libm.
2979
2980         * sysdeps/i386/strsep.S: Removed.  Generic C version is of
2981         similar speed.
2982         * sysdeps/i386/strtok.S: Remove support for `strsep'.
2983
2984         * sysdeps/libm-i387/e_acosl.S, sysdeps/libm-i387/s_ceill.S,
2985         sysdeps/libm-i387/s_copysignl.S, sysdeps/libm-i387/s_finitel.S,
2986         sysdeps/libm-i387/s_floorl.S, sysdeps/libm-i387/s_isinfl.c,
2987         sysdeps/libm-i387/s_isnanl.c, sysdeps/libm-i387/s_nextafterl.c,
2988         sysdeps/libm-i387/s_rintl.S, sysdeps/libm-i387/s_significandl.S:
2989         New i387 specific math functions implementing `long double'
2990         versions.
2991
2992         * sysdeps/libm-ieee754/s_ceill.c,
2993         sysdeps/libm-ieee754/s_copysignl.c,
2994         sysdeps/libm-ieee754/s_fabsl.c, sysdeps/libm-ieee754/s_finitel.c,
2995         sysdeps/libm-ieee754/s_floorl.c, sysdeps/libm-ieee754/s_isinfl.c,
2996         sysdeps/libm-ieee754/s_isnanl.c,
2997         sysdeps/libm-ieee754/s_nextafterl.c,
2998         sysdeps/libm-ieee754/s_rintl.c, sysdeps/libm-ieee754/s_scalbnl.c,
2999         sysdeps/libm-ieee754/s_significandl.c: New generic `long double'
3000         versions of libm functions.
3001
3002         * sysdeps/libm-i387/e_exp.S: Add a few comments to explain the
3003         Intel FPU nonsense.
3004
3005         * sysdeps/libm-i387/s_ceil.S, sysdeps/libm-i387/s_ceilf.S,
3006         sysdeps/libm-i387/s_floor.S, sysdeps/libm-i387/s_floorf.S: Correct
3007         handling of local variables.  The old version created a stack
3008         frame but stored the values outside.
3009
3010         * sysdeps/libm-ieee754/s_isinf.c, sysdeps/libm-ieee754/s_isnan.c
3011         [!NO_LONG_DOUBLE]: Define alias with `long double' versions name.
3012
3013 Wed May 29 12:53:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3014
3015         * login/pututline_r.c: Include sys/stat.h.  Fix typos.
3016
3017         * version.h (VERSION): Set to 1.90.
3018
3019         * Makerules (distinfo-vars): Write extra-libs and *-routines for each
3020         of its elts.
3021         * MakeTAGS (sources): Add those sources.
3022
3023         * MakeTAGS (all-sources): Add $(others:=.c) and $(tests:=.c).
3024
3025 Wed May 29 08:53:08 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3026
3027         * hurd/report-wait.c (_S_msg_report_wait): Return `itimer' for the
3028         itimer thread.
3029
3030         * hurd/hurdinit.c (_hurd_init): Set _HURDSIG_TRACED before calling
3031         _hurd_proc_init.
3032
3033 Wed May 29 00:52:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3034
3035         * string/tester.c (main): Fix strsep tests 6, 7, 20 to expect null
3036         token instead of it being implicitly skipped.
3037
3038         * sysdeps/i386/fpu/__math.h (logb): Correct contraint from =u to =t.
3039         Must operate on top of fp reg stack, not second from top.
3040
3041         * extra-lib.mk (alltypes-$(lib)): Don't append $(objpfx)$(lib).so.
3042         (others): Instead, make this depend on it.
3043
3044 Tue May 28 04:38:10 1996  Ulrich Drepper  <drepper@cygnus.com>
3045
3046         * limits.h: Change MB_LEN_MAX to 6.  A 31-bit ISO 10646
3047         character in UTF-8 encoding has that many bytes.
3048
3049         * locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
3050         * locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
3051         * locale/Makefile (routines): Add mb_cur_max.
3052         * locale/mb_cur_max.c: New file.  This function gets called
3053         when the macro MB_CUR_MAX is used.
3054         * locale/C-ctype.c: Initialize new mb_cur_max field.
3055         * locale/localeinfo.h: Change magic value because of incompatible
3056         change.
3057         * locale/programs/ld-ctype.c: Determine value of mb_cur_max
3058         according to current character set and write it out with the rest.
3059         * stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore.  Get value
3060         according to currently used locale for category LC_CTYPE by
3061         calling the function __ctype_get_mb_cur_max.
3062
3063 Tue May 28 03:27:46 1996  Ulrich Drepper  <drepper@cygnus.com>
3064
3065         * FAQ:  Fix some typos.
3066         Tell that for Linux the kernel header files are necessary.
3067
3068         * PROJECTS: New file.  List of open jobs for glibc.
3069         * Makefile (distribute): Add PROJECTS.
3070
3071         * crypt/GNUmakefile (headers): New variable.  Mention crypt.h.
3072         * crypt/crypt.h: Header for crypt functions.
3073
3074         * elf/elf.h: Add some new constants from recent Cygnus ELF
3075         header files.
3076
3077         * login/getutid_r.c: Test for correct type.
3078         Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
3079         _HAVE_UT_ID resp. are defined.
3080         Make really compliant with specification.
3081
3082         * login/getutline_r.c, login/pututline_r.c: Don't depend on
3083         ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
3084         defined.
3085         Make really compliant with specification.
3086
3087         * login/setutent_r.c: Don't depend on ut_type and ut_id unless
3088         _HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
3089
3090         * login/login.c, login/logout.c, login/logwtmp.c: Complete
3091         rewrite.  Now based on getut*/setut* functions.
3092
3093         * stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
3094         This prevented using this file in other GNU packages.
3095
3096         * sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
3097         and _HAVE_UT_TV because struct utmp has these members.
3098
3099         * sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
3100
3101         * utmp.h: New file.  Wrapper around login/utmp.h.
3102
3103 Tue May 28 13:11:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3104
3105         * elf/dl-error.c (struct catch): New type.
3106         (catch): New static variable, struct catch *.
3107         (catch_env, signalled_errstring, signalled_objname): Variables removed.
3108         (_dl_signal_error): If CATCH is non-null, set its errstring and
3109         objname members and jump to CATCH->env.  If it is null, call
3110         _dl_sysdep_fatal with a standard message.
3111         * elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
3112         No longer use _dl_catch_error.
3113
3114         * Makerules (sed-remove-objpfx): Avoid extra space in regexp due to
3115         continuation line.
3116
3117         * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in
3118         setting %ecx to 2nd syscall arg: we have pushed nothing, so function
3119         args are found at 4(%esp), not 8(%esp).
3120
3121 Mon May 27 10:10:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3122
3123         * Makefile ($(includedir)/stubs.h): Add missing backslash.
3124
3125         * sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
3126         can be aliased.
3127
3128         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
3129         Append termio.h.
3130
3131         * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.
3132
3133         * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
3134         defined.
3135
3136         * sysdeps/unix/sysv/linux/termio.h: New file.
3137         * sysdeps/unix/sysv/linux/Dist: Add it.
3138
3139         * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
3140         kernel header <asm/termios.h>.
3141
3142         * misc/Makefile (headers): Add ioctl-types.h.
3143         * sysdeps/generic/ioctl-types.h: New file.
3144         * misc/sys/ioctl.h: Include <ioctl-types.h>.
3145         (struct tchars, struct ltchars, struct sgttyb, struct winsize,
3146         struct ttysize): Types moved there.
3147
3148         * Makefile ($(includedir)/stubs.h): Don't touch target if new one is
3149         identical.
3150
3151         * time/Makefile (z.% rule): Generate generic zone%/ rule after
3152         zone%/right/ and zone%/posix/ rules so they match first.
3153
3154 Sun May 26 15:15:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3155
3156         * features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
3157         _POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
3158
3159         * time/Makefile (tzcompile): Add missing backslash.
3160
3161         * stdlib/ldiv.c: Deansideclized.
3162
3163         * wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
3164         [! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
3165         stddef.h doesn't define it.
3166         * wcsmbs/wchar.h: Likewise.
3167         * stdlib/strtod.c: Likewise.
3168
3169         * wcsmbs/wcstok.c: Fix argument name typo.
3170
3171 Sun May 26 19:39:53 1996  Ulrich Drepper  <drepper@cygnus.com>
3172
3173         * intl/loadmsgcat.c (_nl_load_domain): Test correct variable
3174         after malloc.
3175
3176         * string/Makefile (tester-ENV): New variable to suppress message
3177         translation in test.
3178
3179         * string/tester.c: Add tests for strtok_r and strsep.
3180
3181         * sysdeps/i386/i486/strcat.S: Correct some more 8bit operation
3182         <-> 32 bit operand conflicts.
3183
3184         * sysdeps/i386/strsep.S: Wrapper around <sysdeps/i386/strtok.S>
3185         to produce strsep function.
3186         * sysdeps/i386/strtok.S: Optimized implementation of strtok
3187         function.
3188         * sysdeps/i386/strtok_r.S: Wrapper around <sysdeps/i386/strtok.S>
3189         to produce strtok_r function.
3190
3191         * sysdeps/generic/strtok.c: Moved here from string/strtok.c.
3192         Corrected example in comment.
3193
3194         * string/Makefile (routines): Add strtok_r.
3195         * sysdeps/generic/strtok_r.c: New file.  Implement reentrant version
3196         of strtok_r.
3197         * string/string.h: Add prototype for strtok_r.
3198         * wcsmbs/wcstok.c: Handle illegal SAVE_PTR argument the same
3199         as in strtok_r.
3200
3201 Sun May 26 13:28:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3202
3203         * time/tzset.c (__tzset): Ignore leading : in $TZ; always try tzfile
3204         first and fall back to 1003.1 syntax only if it fails.
3205
3206         * time/Makefile (install-others): Also install posix/ZONE and
3207         right/ZONE for each ZONE in $(zonenames).
3208         (z.% rule): Generate rules for right/ZONE and posix/ZONE targets too,
3209         the difference begin leapseconds vs /dev/null as 3rd dep.  For
3210         original ZONE targets use $(leapseconds), to be set in Makeconfig.
3211         (target-zone-flavor): New variable.
3212         (tzcompile): Use it to get the right -d for posix/ and right/ flavors.
3213         * Makeconfig (leapseconds): New variable.
3214
3215         * mach/Machrules (%.udeps rule): Depend on Machrules.
3216         Emit deps for .uh and .__h files.
3217         (%.uh, %.__h rules): Don't depend on %.defs; use #include <$*.defs>
3218         instead.
3219
3220 Sun May 26 01:06:47 1996  Ulrich Drepper  <drepper@cygnus.com>
3221
3222         * stdlib/Makefile (routines): Add llabs, lldiv.
3223         * stdlib/llabs.c: New file.  Implementation of return
3224         absolute value of long long argument.
3225         * stdlib/lldiv.c: New file.  Implementation of division with remainder
3226         of long long argument.
3227         * stdlib/stdlib.h [__USE_GNU] (lldiv_t): New type for lldiv
3228         function.
3229         Define prototypes for lldiv and llabs functions.
3230
3231         * locale/C-collate.c: Initialize _NL_COLLATE_NRULES element.
3232
3233         * stdlib/strtod.c: Replace wchar_t with wint_t.  The later is
3234         really the type for a single wide character.
3235
3236         * string/strxfrm.c (print_val): Define separate version for
3237         use as wcsxfrm.  Here we don't need UTF8 encoding.
3238
3239         * wcsmbs/wchar.h:  gcc-2.7.2-960517 finally introduces wint_t
3240         in <stddef.h>.  Use this value and only for older gcc version
3241         define in place.
3242         (uwchar_t): Remove definition.
3243
3244         * wcsmbs/wcscmp.c, wcsmbs/wcscoll.c, wcsmbs/wcsncmp.c,
3245         wcsmbs/wcsxfrm.c, wcsmbs/wmemcmp.c: : Don't use uwchar_t as unsigned
3246         type.  wint_t is intended for this.
3247
3248 Sat May 25 14:10:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3249
3250         * sysdeps/unix/bsd/direntry.h: Use [1] instead of [0] for d_name to
3251         quiet -ansi -pedantic.
3252         * sysdeps/unix/common/direntry.h: Likewise.
3253
3254         * login/Makefile (headers): Add lastlog.h.
3255         * login/lastlog.h: New file.
3256
3257         * login/Makefile (CFLAGS): Don't append -D_THREAD_SAFE.
3258         * login/utmp.h [_REENTRANT || _THREAD_SAFE]: Replace this conditional
3259         with #ifdef __USE_REENTRANT.
3260
3261         * features.h (__GNU_LIBRARY__): Set to 6.
3262         [_GNU_SOURCE] (_POSIX_SOURCE, _POSIX_C_SOURCE, _BSD_SOURCE,
3263         _SVID_SOURCE): Make sure they are all defined.
3264
3265         * sysdeps/unix/sysv/linux/gnu/types.h: Instead of including
3266         <linux/posix_types.h>, define _LINUX_TYPES_DONT_EXPORT and then
3267         include <linux/types.h>.
3268
3269         * resource/sys/resource.h: Remove trailing commas from enums.
3270
3271 Fri May 24 17:30:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3272
3273         * sysdeps/generic/netinet/in.h: Remove trailing commas from enums.
3274         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
3275
3276         * login/getutline_r.c: Include string.h.
3277
3278         * Rules (static-only-routines): Restore the rule to make these .so's
3279         empty objects.
3280
3281         * login/pututline_r.c: Use struct assignment instead of memcpy.
3282
3283         * login/getutline_r.c: Use strncmp instead of comparing two pointers
3284         that will only be equal if you are overwriting the data and screwing
3285         yourself anyway.
3286
3287 Fri May 24 02:31:36 1996  Ulrich Drepper  <drepper@cygnus.com>
3288
3289         * sysdeps/unix/sysv/linux/speed.c: Add new speed value 460800.
3290
3291 Thu May 23 23:09:33 1996  Ulrich Drepper  <drepper@cygnus.com>
3292
3293         * FAQ: Add answer for 100% source code compatibility to Linux
3294         libc by David Mosberger-Tang.
3295
3296         Update from bind-4.9.4-T3B.
3297         * inet/arpa/inet.h: Add prototypes for inet_pton, inet_ntop,
3298         inet_nsap_addr, and inet_nsap_ntoa.
3299         * resolv/gethnamaddr.c: Correct compatibility problems (sprintf),
3300         remove fourth argument to inet_pton and correct handling of
3301         host_addr passing.
3302         * resolv/inet_ntop.c: Correct compatibility problems (sprintf).
3303         * resolv/inet_pton.c: Remove fourth argument.
3304         * resolv/resolv.h: Remove prototypes for inet_nsap_addr and
3305         inet_nsap_ntoa.  Now in <arpa/inet.h>.
3306
3307         * stdlib/gmp-impl.h: Add prototypes for internal functions.
3308
3309 Thu May 23 22:49:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3310
3311         * Rules (subdir_install): Remove dep on sor-$(subdir).
3312         (static-only-routines): Removed variable and associated rules.
3313
3314 Wed May 22 00:40:50 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3315
3316         * sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
3317         460800 baud.
3318
3319         * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
3320
3321         * sysdeps/unix/sysv/linux/alpha/Makefile (headers): Add
3322         alpha/ptrace.h.
3323         * sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
3324
3325         * sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
3326         scalbnf.
3327
3328         * sysdeps/generic/sigset.h (__sigismember, __sigaddset,
3329         __sigdelset): Add declaration to keep ANSI compilers quiet.
3330
3331         * sysdeps/alpha/__math.h (cabs): Remove underscores from struct
3332         __cabs_complex member names in call to __hypot().
3333
3334         * sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
3335
3336         * sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
3337         name collision with math library.
3338
3339         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
3340         sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
3341         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
3342         of divrem.S.
3343
3344         * sysdeps/unix/alpha/sysdep.h: Include regdef.h.  Define LEAF macro
3345         to simplify declaration of leaf functions.
3346
3347         * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
3348         sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/ffs.S,
3349         sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
3350         sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
3351         sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
3352         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3353         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3354         sysdeps/unix/sysv/linux/alpha/pipe.S,
3355         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
3356         sysdeps/unix/sysv/linux/alpha/syscall.S,
3357         sysdeps/unix/sysv/linux/alpha/start.S,
3358         sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
3359         sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
3360         framesize declaration.  Replace "lda pv,sym/jsr pv" by "jsr sym".
3361
3362         * sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
3363         define.
3364
3365         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
3366         ptrace, and sysctl.
3367
3368         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
3369
3370         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
3371         dynamic recognition of platform type.
3372         (_bus_base): New function.
3373
3374         * sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
3375
3376         * sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
3377         they produce ugly warnings by gcc.
3378
3379         * posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
3380
3381 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3382
3383         * sysdeps/alpha/setjmp.S: Must establish global pointer before
3384         address of __sigsetjmp_aux can be loaded.
3385
3386 Wed May 22 22:10:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3387
3388         * stdlib/canonicalize.c: New file.
3389         * stdlib/stdlib.h: Declare canonicalize_file_name, realpath.
3390         * stdlib/Makefile (routines): Add canonicalize.
3391
3392         * posix/unistd.h: Declare __canonicalize_directory_name_internal.
3393
3394 Thu May 23 00:01:10 1996  Ulrich Drepper  <drepper@cygnus.com>
3395
3396         * db/recno/rec_seq.c: Prevent `sccsid' definition by using the
3397         same #if condition as in the other db files.
3398
3399         * intl/Makefile: Add -Wno-unused CFLAGS for compilation of
3400         bindtextdom.c, finddomain.c, and localealias.c.
3401
3402         * intl/dcgettext.c: Don't define prototype for getcwd() when
3403         compiling in glibc.
3404
3405         * libio/cleanup.c: Add prototype for _IO_register_cleanup.
3406
3407         * libio/filedoalloc.c, libio/fileops.c, libio/iopopen.c: Don't
3408         define _POSIX_SOURCE unconditionally.
3409
3410         * libio/filedoalloc.c, libio/iopopen.c: Include <unistd.h> if
3411         compiling in glibc.
3412
3413         * libio/fileops.c (_IO_file_close_it): Don't sync file, call
3414         flush instead.  This relaxes the rules from POSIX.1 about
3415         changing the active handle a bit.
3416
3417         * libio/iofopncook.c (struct _IO_cookie_file): Move definition
3418         into <libio.h>.
3419         Add prototypes for local functions to prevent warnings.
3420
3421         * libio/iopopen.c: Change prototypes for _IO_fork, _IO_pipe, and
3422         _IO_dup2 to contain complete parameter list.
3423
3424         * libio/libio.h: Add definition of struct _IO_cookie_file.
3425
3426         * libio/libioP.h: Add prototypes for _IO_vasprintf, _IO_vdprintf,
3427         and _IO_vsnprintf.
3428
3429         * libio/memstream.c: Include <stdio.h>.
3430
3431         * libio/stdio.h: Add prototypes for fopencookie,
3432         __stdio_gen_tempname, __vfscanf, __vsscanf, and __vsnprintf.
3433
3434         * libio/strops.c: Avoid useless expression in `for' initializer.
3435
3436         * locale/findlocale.c: Add some casts to prevent warnings.
3437
3438         * locale/programs/locfile.c (write_locale_data): Don't use
3439         double `/' in locale binary file.
3440
3441         * posix/unistd.h: Remove prototype for `reboot'.
3442
3443         Update from bind-4.9.4-T1A.
3444         * resolv/Makefile (routines): Add inet_ntop and inet_pton.
3445         * resolv/arpa/nameser.h: Add definition of IN6ADDRSZ.
3446         * resolv/gethnamaddr.c, resolv/getnetnamadr.c, resolv/res_comp.c,
3447         resolv/res_debug.c, resolv/res_init.c
3448
3449         * resolv/inet_ntop.c, resolv/inet_pton.c: New files.
3450
3451         * resolv/resolv.h: Add RES_USE_INET6 flag.
3452         (__dn_isvalid): Renamed to __res_dnok.
3453         Add prototypes for __res_ownok and __res_mailok.
3454
3455         * stdio-common/Makefile: Add -Wno-unused to CFLAGS for _itoa.c.
3456
3457         * stdio-common/getline.c, stdio-common/vfscanf.c,
3458         sysdeps/posix/tempname.c: Don't use <ansidecl.h> anymore.
3459
3460         * sysdeps/unix/sysv/linux/Makefile [$subdir == misc]
3461         (sysdep_routines): Add s_reboot.
3462         (install-others): Add $(includedir)/sys/syscall.h.
3463         New rule for $(includedir)/sys/syscall.h to produce from
3464         <asm/unistd.h>.
3465
3466         * sysdeps/unix/sysv/linux/reboot.c: New file.  Make single
3467         argument function call 3 argument system call.
3468
3469         * sysdeps/unix/sysv/linux/sys/reboot.h: New file.  Linux specific
3470         definition for reboot function.
3471
3472         * sysdeps/unix/sysv/linux/syscall.h: Remove old and obsolete
3473         comment.
3474
3475         * sysdeps/unix/sysv/linux/syscalls.list: Rename function for
3476         reboot syscall to __syscall_reboot.
3477
3478         * wcsmbs/wchar.h: Protect prototypes for wcstof and wcstold by
3479         __USE_GNU, not USE_GNU.
3480
3481 Tue May 21 21:55:49 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
3482
3483         * locale/programs/charset.c, locale/programs/ld-collate.c:
3484         Add casts to prevent warnings on 64-bit machines.
3485
3486         * locale/programs/ld-monetary.c: Don't do unnecessary tests for
3487         int_frac_digits and frac_digits which only produce warnings.
3488
3489 Mon May 13 23:45:29 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
3490
3491         * inet/arpa/inet.h: Backup return type of inet_addr to u_long.
3492         * resolv/inet_addr.c: Likewise.
3493
3494         * resolv/Makefile (distribute): Add res_hconf.h
3495         (routines): Add res_hconf.
3496
3497         * resolv/gethnamaddr.c: Add support for /etc/host.conf.
3498
3499         * resolv/res_init.c: Initialize /etc/host.conf reader.
3500
3501         * resolv/res_hconf.c, resolv/res_hconf.h: New files.
3502         Implementation of reading /etc/host.conf.
3503
3504 Wed May 22 21:21:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3505
3506         * Rules (%.out rules): Prepend $($*-ENV) to the command.
3507
3508         * sysdeps/unix/sysv/linux/i386/brk.c (___brk_addr): Define as weak
3509         alias for __curbrk.
3510
3511 Wed May 22 19:37:27 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3512
3513         * hurd/hurdexec.c (_hurd_exec): Pass INIT_TRACEMASK.
3514         * hurd/hurdmsg.c (set_int): Support INIT_TRACEMASK.
3515
3516 Wed May 22 18:47:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3517
3518         * sysdeps/mach/hurd/getcwd.c
3519         (_hurd_canonicalize_directory_name_internal): New function, broken out
3520         of __getcwd.
3521         (__getcwd): Use it.
3522         (__canonicalize_directory_name_internal): New function using it.
3523
3524         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal): New
3525         function, broken out of __getcwd.
3526         (__getcwd): Use it.
3527
3528 Wed May 22 18:14:05 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3529
3530         * string/argz-create.c (__argz_create): Correctly calculate length.
3531
3532         * string/argz-extract.c (__argz_extract): Add terminating 0 entry.
3533         * hurd/hurdstartup.c (_hurd_startup): ... and don't so here.
3534
3535 Wed May 22 17:22:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3536
3537         * posix/glob.c [VMS]: Don't include <pwd.h>.
3538         [HAVE_VMSDIR_H]: Include "vmsdir.h".
3539         (glob) [VMS]: Don't grok ~.
3540
3541 Wed May 22 14:46:53 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3542
3543         * hurd/hurdstartup.c (_hurd_startup): Terminate the vectors we get
3544         back from argz_extract.
3545
3546 Wed May 22 13:56:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3547
3548         * configure.in: Remove checks for objdump, objcopy, and awk.
3549         * config.make.in (OBJDUMP, OBJCOPY, AWK): Variables removed.
3550         * Makefile (distribute): Remove extract-dynsym.
3551         * extract-dynsym: File removed.
3552
3553 Tue May 21 22:17:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3554
3555         * termios/cfmakeraw.c: Set MIN to 1 and TIME to 0.
3556
3557 Wed May 22 01:48:54 1996  Ulrich Drepper  <drepper@cygnus.com>
3558
3559         * stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
3560         macros if they are not available.
3561         (WEAKNAME): New macro to declare argument as weak.
3562         Define function with __ prefix and add normal name as weak alias.
3563
3564         * sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
3565         these macros if not already available based on R_OK, W_OK, and
3566         X_OK.
3567
3568 Tue May 21 18:48:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3569
3570         * misc/sys/syslog.h (__need___va_list): Define this instead of
3571         __need_va_list before including <stdarg.h>.
3572
3573         * Makerules (o-iterator): Use $(object-suffixes-left) instead
3574         of $(object-suffixes) to produce repetitions; this is used for other
3575         lists than just that one.
3576         [versioned]: Use $(o-iterator) properly.
3577
3578         * sysdeps/unix/sysv/linux/Implies: Include `gnu'.
3579         * sysdeps/mach/hurd/Implies: Likewise.
3580
3581 Sat May 18 02:57:46 1996  Ulrich Drepper  <drepper@cygnus.com>
3582
3583         * login/Makefile: New file.  This directory contains functions
3584         for user administration.
3585         * Makefile (subdirs): Add login.
3586
3587         * misc/Makefile (headers): Remove utmp.h.  Now in login/utmp.h.
3588         (extra-libs, libutil-routines): Ditto.
3589         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
3590         misc/utmp.h: Moved to misc/.
3591         * login/login.c, login/login_tty.c, login/logout.c,
3592         login/logwtmp.c, login/utmp.h: Moved to here from misc/.
3593
3594         * login/utmp.h: Split file.  Definitions of data structures
3595         and constants are now in the system dependent utmpbits.h file.
3596
3597         * login/setutent_r.c, login/setutent.c, login/endutent_r.c,
3598         login/endutent.c, login/getutent_r.c, login/getutent.c,
3599         login/getutid_r.c, login/getutid.c, login/getutline_r.c,
3600         login/getutline.c, login/pututline_r.c, login/pututline.c:
3601         New files.  Routines to handle utmp-style files.
3602
3603         * sysdeps/gnu/utmpbits.h: New file.  Contains GNU/Linux
3604         specific definitions of utmp data structures and constants.
3605
3606         * sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
3607
3608         * sysdeps/generic/utmpbits.h: New file.  Generic (BSDish) version of
3609         definitions of utmp data structures and constants.
3610
3611 Fri May 17 00:01:31 1996  Ulrich Drepper  <drepper@cygnus.com>
3612
3613         * locale/C-monetary.c: Default value for mon_decimal_point should be
3614         '.'.
3615
3616         * stdio-common/printf.h: Remove Linux libc compatibility stuff.
3617         Add `extra' flag.  Currently used in __printf_fp.
3618
3619         * stdio-common/printf_fp.c (__guess_grouping): Renamed from
3620         `guess_grouping' and extend visibility to extern.  This function
3621         is now used in `strfmon'.
3622         (__printf_fp): Recognize new bit flag in info struct.  This
3623         triggers to use the grouping information and decimal point from
3624         the LC_MONETARY category instead of the LC_NUMERIC category.
3625
3626         * stdio-common/vfprintf.c (process_arg): Correct major bug.  In
3627         `complicated' loop we must not use the varargs because the args
3628         are already available in the ARGS_VALUE array.
3629
3630         * stdlib/Makefile (headers): Add monetary.h.
3631         (routines): Add strfmon.
3632         * stdlib/monetary.h: New file.  Header for strfmon function.
3633         * stdlib/strfmon.c: New file.  Implement strfmon function to print
3634         monetary amounts according to current locale's rules.
3635
3636         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
3637         now (>= Linux-1.3.100) called <asm/vm86.h>.
3638
3639 Thu May 16 00:31:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3640
3641         * Makerules [versioned]: Make symlinks in the build directory, because
3642         the versioned names might be referenced by a DT_NEEDED in another
3643         library.
3644
3645 Wed May 15 18:59:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3646
3647         * manual/examples/longopt.c: Include stdlib.h and getopt.h.
3648
3649 Tue May 14 03:36:21 1996  Ulrich Drepper  <drepper@cygnus.com>
3650
3651         * sysdeps/unix/sysv/linux/Makefile [$subdir == misc] (headers):
3652         Add sys/acct.h and sys/sysctl.h.
3653
3654 Tue May 14 19:42:04 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3655
3656         * sysdeps/generic/strrchr.c: Deansideclized.
3657
3658         * elf/Makefile (ldd): Depend on Makefile.
3659         Find ld.so in $(slibdir) instead of $(libdir).
3660
3661         * sysdeps/i386/strrchr.S: Use `testl $3, %esi' instead of `testb $3,
3662         %esi'; gas misassembles the latter into `testb $3, %dh'.
3663
3664         * mach/Machrules (%.udeps rule): Do $(make-target-directory) first.
3665
3666 Tue May 14 16:38:44 1996  David Mosberger-Tang <davidm@AZStarNet.com>
3667
3668         * sunrpc/getrpcent.c (interpret): Declare args.  Rewrite parsing using
3669         strpbrk.
3670
3671 Tue May 14 20:18:38 1996  Ulrich Drepper  <drepper@cygnus.com>
3672
3673         * time/Makefile (routines): Add strptime.
3674         * time/time.h: Add prototype for strptime.
3675         * time/strptime.c: New file.  Implementation according to XPG4.
3676
3677 Tue May 14 14:07:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3678
3679         * libc-symbols.h (lint): Macro removed.  The sunrpc code does some
3680         really stupid things #ifdef lint.
3681
3682         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Fix
3683         struct member name: sc_eip -> eip.
3684
3685 Mon May 13 19:52:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3686
3687         * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
3688         output redirect outside it.
3689
3690         * elf/Makefile (subdir_lib): Depend on ld.so.
3691
3692 Sun May 12 22:52:22 1996  Bruce Elliott  <belliott@accessone.com>
3693
3694         * stdio-common/vfprintf.c: Correct handling of unsigned short
3695         values.
3696
3697 Mon May 13 12:03:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3698
3699         * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
3700         $(common-objpfx).
3701         * Makerules [install-lib.a]: Find them there.
3702
3703         * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
3704
3705         * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
3706
3707         * posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.
3708
3709         * configure.in (--with-fp): Note in help string that it's the default.
3710
3711         * locale/programs/ld-ctype.c (struct locale_ctype_t): Use u_int32_t
3712         instead of unsigned int for map_collection_max and map_collection_act.
3713
3714         * stdio-common/vfprintf.c [USE_IN_LIBIO] (flockfile, funlockfile):
3715         Macros removed; they are in <stdio.h>.
3716         * stdio-common/vfscanf.c: Likewise.
3717
3718         * posix/glob.c [_AMIGA]: Don't include <pwd.h>.
3719         (glob): Remove bogus & in call to globfree.
3720         [_AMIGA]: Use AmigaDOS file name conventions.
3721
3722         * time/Makefile (zonenames): Target removed.
3723         (extra-objs): Remove it from here.
3724         Include the z.* files directly instead of including zonenames; use
3725         `-include' to not complain before they exist.
3726
3727         * sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
3728         $(common-objpfx) instead of $(objpfx).
3729
3730         * sysdeps/unix/bsd/telldir.c (seekdir, telldir): Use new struct member
3731         names without __.
3732
3733         * Makerules [install-lib-non.a]: Find these things with $(objpfx)
3734         instead of $(common-objpfx).
3735
3736         * Makeconfig (sysdep-configures): New variable.
3737         (config.status): Depend on $(sysdep-configures).
3738
3739 Fri May 10 20:07:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3740
3741         * sysdeps/unix/sysv/linux/profil.c: New file.
3742
3743 Fri May 10 19:59:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3744
3745         * sysdeps/m68k/Makefile (CFLAGS-setjmp.c): New variable.
3746
3747 Fri May 10 19:55:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3748
3749         * shlib-versions: Use libm=6 and libc=6 for m68k-linux.
3750
3751 Sun May 12 11:16:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3752
3753         * string/envz.c: Fix uses of unsigned to size_t.
3754
3755         * Makerules ($(libdir)/libc.so): Make the file an ld script.
3756
3757         * sysdeps/mach/hurd/configure.in: Don't grok --with-hurd option.
3758
3759         * sysdeps/mach/configure.in: File removed.
3760         * sysdeps/mach/configure: File removed.
3761
3762         * mach/Machrules (%.udeps rule): Write deps for %_server.[ch] too.
3763         (%_server.[ch] rule): Don't depend on %.defs; use #include to get
3764         installed .defs file.
3765
3766         * stdio-common/vfprintf.c (flockfile, funlockfile): Define to
3767         nothing for stdio.  Fix fUNlockfile -> funlockfile for libio.
3768         * stdio-common/vfscanf.c: Likewise.
3769
3770 Sat May 11 13:43:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3771
3772         * hurd/hurdfault.c: Include faultexc_server.h instead of faultexc.h.
3773
3774         * mach/Machrules (%.ir rule): Don't produce deps for imports.
3775
3776         * elf/dl-fini.c (_dl_fini): Clear L->l_init_called after calling fn.
3777
3778         * Makerules (install): Depend on $(slibdir)/libc.so$(libc.so-version).
3779         [!subdir] ($(libdir)/libc.so, $(common-objpfx)/libc-syms.so): Protect
3780         these targets and install dep on $(libdir)/libc.so with this.
3781
3782         * hurd/Makefile: Removed all rules and defns for using code from Hurd
3783         sources and installing headers from there.
3784
3785         * sysdeps/mach/hurd/errnos.awk: Set in_mach_errors to FILENAME when we
3786         set it.  In Mach error matching clause, only match if FILENAME is
3787         still the same value.
3788
3789         * sysdeps/mach/hurd/Makefile: Don't include sysdeps/mach/Makefile;
3790         $(mach-srcdir) no longer exists.
3791         (hurd-srcdir): Variable removed.
3792         (includes): Don't append -I$(hurd-srcdir).
3793         (last-includes): Variable removed.
3794         Remove vpath specs using $(hurd-srcdir).
3795         (mach-errno-h): New canned sequence.
3796         ($(common-objpfx)errnos.d): New target, generated included makefile
3797         to determine absolute file names of Mach headers to search for error
3798         codes and set variable mach-errnos-deps.
3799         ($(common-objpfx)stamp-errnos): Depend on $(mach-errnos-deps) instead
3800         of prior explicit list.
3801         (generated): Add errnos.d, stamp-errnos.
3802
3803         * mach/Machrules (some-if-rtn): New variable and target; compute deps
3804         of some if routine and make all if routines depend on that .d file
3805         instead of static list of .h files.
3806
3807         * mach/Makefile (mach/mach_interface.defs,
3808         mach/memory_object_user.defs): Targets removed.
3809         ($(objpfx)mach-syscalls.mk): Tweak this kludge so it doesn't depend
3810         directly on Mach sources.
3811
3812         * sysdeps/mach/Makefile (mach-srcdir): Variable removed.
3813         (includes): Don't append -I$(mach-srcdir).
3814         Remove vpath specs using $(mach-srcdir).
3815
3816         * hurd/Makefile (server-interfaces): Add faultexc.
3817         (sig): Remove it from here.
3818         (fault%.[ch]): Rule removed.
3819         (MIGFLAGS-faultexc): New variable.
3820
3821         * hurd/faultexc.defs: New file.
3822
3823         * mach/Machrules (%.ustamp rule): Pass $(MIGFLAGS-$*) to mig.
3824         (%_server.[ch] rule): Likewise.
3825
3826         * mach/Makefile: Removed all rules and defns for using code from Mach
3827         sources and installing headers from there.
3828
3829         * Makeconfig [$(build-shared)=yes] (link-libc): Append
3830         $(libc.so-version) to libc.so.
3831
3832 Fri May 10 18:36:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3833
3834         * mach/Machrules (%.ustamp rule): Don't depend on %.defs.
3835         (%.udeps): New rule parallel to that one, generating included
3836         makefiles with -M output from `#include <%.defs>'.
3837
3838         * Makerules (sed-remove-objpfx): Remove space before \ at eol.
3839
3840         * Makefile (distribute): Add FAQ.
3841         * FAQ: New file contributed by drepper.
3842
3843         * time/Makefile (headers): Add timebits.h.
3844         * sysdeps/unix/sysv/linux/timebits.h: New file.
3845         * sysdeps/stub/timebits.h: New file.
3846         * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
3847         (CLOCKS_PER_SEC): Remove this macro.  Instead #include <timebits.h>.
3848
3849 Fri May 10 16:22:44 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
3850
3851         * string/argz-create.c (__argz_create): Restore const keyword to
3852         ARGV parm.
3853         * string/argz.h (__argz_create, argz_create): Restore const
3854         keyword.
3855         * string/envz.c (envz_get): Don't declare ENTRY const.
3856
3857 Fri May 10 11:48:03 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3858
3859         * string/argz.h (argz_create): Fix param type.
3860         * string/argz-create.c (__argz_create): Remove const from param type.
3861         * string/envz.c (envz_get): Remove const from return type.
3862
3863 Fri May 10 09:41:54 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
3864
3865         * string/argz.h (__argz_create, argz_create): Omit const keyword
3866         from declaration of ARGV.
3867         * string/envz.h (envz_get): Omit const from declaration of return
3868         type.
3869
3870 Thu May  9 09:17:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3871
3872         * aclocal.m4 (AC_FD_MSG, AC_FD_CC): Fix these for autoconf weirdness.
3873
3874         Cleanups in sunrpc code from NIIBE Yutaka <gniibe@mri.co.jp>.
3875         * sunrpc/clnt_tcp.c (clnttcp_create): Don't close *SOCKP if it's -1.
3876         * sunrpc/clnt_simp.c (callrpc): Don't close CRP->socket if it's
3877         RPC_ANYSOCK.
3878         * sunrpc/pmap_clnt.c (pmap_set): Don't close SOCKET, since
3879         CLNT_DESTROY already has.
3880         (pmap_unset): Likewise.
3881         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
3882         * sunrpc/pm_getport.c (pmap_getport): Likewise.
3883         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
3884         * sunrpc/portmap.c (callit): Likewise.
3885
3886         * Makerules (versioned): Strip whitespace.
3887
3888         * Rules (static-only-routines rule): Remove spurious space in dep.
3889
3890         * misc/getusershell.c: Undo changes of 7 May 96 (rev 1.6).
3891         Cast string constants to char *.
3892
3893         * posix/glob/SMakefile, posix/glob/SCOPTIONS, posix/glob/Makefile.ami:
3894         New files, AmigaDOS support from Aaron Digulla.
3895         * posix/Makefile (glob.tar): Add AmigaDOS support files.
3896
3897         * sysdeps/unix/sysv/linux/net/if.h: New file.
3898         * sysdeps/unix/sysv/linux/Dist: Add it.
3899         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
3900         net/if.h.
3901
3902         * Makeconfig (link-libc): Add libc.a after libc.so in link.
3903
3904         * Rules (static-only-routines rule): Use empty.o instead of dummy.o.
3905         (empty.o): New target.
3906         (generated): Add empty.c, empty.o.
3907
3908         * resolv: Code updated from BIND-4.9.3P2C3.
3909
3910         * Rules (static-only-routines rule): Use dummy.o, not dummy.so.
3911
3912 Wed May  8 20:04:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3913
3914         * extract-dynsym: New file.
3915         * Makefile (distribute): Add it.
3916         * Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
3917         [! libc.so-version]: Clear static-only-routines.
3918         ($(common-objpfx)sor-$(subdir)): New target.
3919         [static-only-routines]: New static pattern rule for these .so's.
3920         * Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
3921         [libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
3922         New targets replace it.
3923         (install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
3924         $(slibdir)/libc.so.
3925         * io/Makefile (static-only-routines): New variable.
3926         * configure.in: Check for tools objdump and objcopy, and for awk.
3927         * config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
3928
3929 Thu May  9 01:24:00 1996  Ulrich Drepper  <drepper@cygnus.com>
3930
3931         * locale/programs/config.h: Remove definition of wint_t.
3932
3933         * locale/programs/ld-collate.c: Include <wchar.h> instead of
3934         <wcstr.h>.
3935
3936         * manual/time.texi: Add some more description for %U and %W
3937         format of strftime.  Describe new format %V of strftime.
3938
3939         * resolv/gethnamaddr.c: Prevent warning by preventing variable
3940         definition.
3941         * stdio-common/_itoa.c: Ditto.
3942
3943 Tue May  7 23:43:07 1996  Ulrich Drepper  <drepper@cygnus.com>
3944
3945         * libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
3946         libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
3947         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
3948         libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
3949         libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
3950         libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
3951         libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
3952         libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
3953         libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
3954         libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
3955         stdio-common/vfscanf.c: Prepare for reentrant libio.
3956
3957         * libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
3958         libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
3959         libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
3960         Used in reentrant libio.
3961
3962         * misc/getusershell.c: Prevent warnings.
3963
3964 Wed May  8 12:08:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3965
3966         * Makerules (install-lib.so rules): Undouble $s in target and dep
3967         parts of o-iterator-doit defns.
3968         (unversioned libraries install rule): Fix pattern.
3969
3970         * mach/Makefile (mach-src-headers): Use $(base-machine) instead of
3971         $(config-machine).
3972         ($(includedir)/machine): Likewise.
3973
3974         * config.make.in (base-machine): New variable.
3975         * configure.in (machine): Move case stmt to set $machine out of sysdep
3976         dirs AC_CACHE_CHECK.
3977         (base_machine): New variable, set in that switch and AC_SUBST'd.
3978
3979         * Makerules (stub-$(subdir)): Use file name in directory as output,
3980         since cmd is cd'd.
3981
3982         * configure.in (MSGFMT): Use : if none found.
3983
3984         * po/Makefile: Include ../Rules instead of ../Makerules.
3985
3986 Tue May  7 23:18:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3987
3988         * po/Makefile: New file.
3989         * Makefile (subdirs): Add po.
3990
3991         * configure.in: Check for msgfmt.
3992         * config.make.in (MSGFMT): New variable.
3993
3994 Sun May  5 23:49:10 1996  Ulrich Drepper  <drepper@cygnus.com>
3995
3996         * misc/Makefile (routines): Add swapoff.
3997
3998         * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
3999
4000         * sysdeps/unix/sysv/linux/sys/quota.h: New file.  Wrapper around
4001         kernel header file.
4002
4003 Tue May  7 19:00:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4004
4005         * string/argz-extract.c: Remove const from decl.
4006         * string/argz.h: Here too.
4007
4008         * Makeconfig (version.mk): Fix regexp in sed cmd.
4009         Depend on $(..)Makeconfig.
4010
4011         * GMP code updated from gmp-2.0 release.
4012         * stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
4013         * sysdeps/generic/add_1.c: File removed.
4014         * stdlib/strtod.c: mp_limb is now mp_limb_t.
4015         * stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
4016         * stdio-common/_itoa.c: Likewise.
4017         * stdio-common/printf_fp.c: Likewise.
4018         Don't include ansidecl.h.
4019
4020         * sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
4021
4022         * shlib-versions: New file.
4023         * Makerules (soversions.mk): New target, include file generated from
4024         shlib-versions.  Moved shared library rules before installation rules.
4025         Rewrote shared library installation rules for versioned libraries.
4026         * math/Makefile (libm.so-version): Variable removed.
4027
4028         * sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
4029
4030         * hurd/report-wait.c (_S_msg_describe_ports): New function.
4031
4032         * configure.in: Add AC_PROG_LN_S check.
4033         * config.make.in (LN_S): New variable.
4034
4035 Sun May  5 03:10:44 1996  Ulrich Drepper  <drepper@cygnus.com>
4036
4037         * misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug.  gcc does
4038         not know about weak aliases now and optimizes necessary `if'
4039         statement away.
4040
4041         * posix/unistd.h: Add swapoff prototype.
4042
4043         * sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
4044
4045         * sysdeps/posix/fpathconf.c (__fpathconf): Get information
4046         for _PC_PATH_MAX from fstatfs function if available.
4047
4048         * sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
4049         _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
4050         _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
4051         _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
4052         _SC_TIMER_MAX.
4053         * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4054
4055         * sysdeps/stub/swapoff.c: New file.  Stub version for swapoff
4056         function.
4057
4058         * sysdeps/unix/syscalls.list:  Add swapoff.
4059
4060         * sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
4061
4062         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
4063         (sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
4064         sysinfo, and uselib.
4065         (headers): Add sys/sysinfo.h.
4066
4067         * sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
4068
4069         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
4070         (sysdep_routines): Add ioperm, iopl, and vm86.
4071         (headers): Add sys/perm.h and sys/vm86.h.
4072
4073         * sysdeps/unix/sysv/linux/i386/sys/perm.h: New file.  Contains
4074         prototypes for iopl and ioperm.
4075
4076         * sysdeps/unix/sysv/linux/i386/sys/vm86.h:  New file.  Contains
4077         prototype for vm86.
4078
4079         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.  Add
4080         vm86 system call.
4081
4082         * sysdeps/unix/sysv/linux/sys/acct.h: New file.  Contains
4083         prototypes for acct function.
4084
4085         * sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
4086         file with prototypes.
4087
4088         * sysdeps/unix/sysv/linux/sys/sysinfo.h: New file.  Contains
4089         prototype for sysinfo function.
4090
4091         * sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
4092         llseek, setfsgid, setfsuid, sysinfo, and uselib.
4093
4094         * sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
4095         posix/sysconf.c now only handle cases different to that
4096         implementation.
4097
4098 Tue May  7 15:08:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4099
4100         * stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
4101         (all references changed).  Now exported.
4102
4103         * stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
4104         (wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
4105         line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
4106         instead of struct data.
4107         (lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
4108         occurences of `wrap' and `wrapmargin' to `wmargin'.
4109         (line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
4110         line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
4111         line_wrap_set_wmargin, line_wrap_point): New functions.
4112         * stdio/linewrap.h: New file.
4113         * stdio/Makefile (headers): Add linewrap.h.
4114
4115 Tue May  7 14:19:12 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4116
4117         * sysdeps/unix/sysv/linux/i386/Makefile: File removed.
4118
4119         * stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
4120
4121         * sysdeps/unix/sysv/linux/schedbits.h: New file.
4122
4123 Tue May  7 13:47:02 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4124
4125         * stdio/linewrap.c (struct data): Make margin fields not-pointers.
4126         (lwoutput): Adjust uses acordingly.
4127
4128 Tue May  7 10:51:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4129
4130         * sysdeps/mach/hurd/fdatasync.c: New file.
4131         * sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
4132
4133         * sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
4134         * sysdeps/mach/hurd/symlink.c: Likewise.
4135         * sysdeps/mach/hurd/link.c: Likewise.
4136         * sysdeps/mach/hurd/bind.c: Likewise.
4137         * hurd/hurdsig.c (write_corefile): Likewise.
4138
4139         * hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
4140
4141         * sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
4142
4143         * sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
4144         proc_mark_exit.
4145         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
4146
4147         * sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
4148
4149         * sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
4150
4151         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
4152         hurd_signal_detail.
4153         * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4154         * hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
4155         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4156         Likewise.
4157         * sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
4158
4159         * hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
4160
4161         * hurd/hurdsig.c (write_corefile): Take const struct
4162         hurd_signal_detail * arg.  Pass all details to crash_dump_task.
4163         (_hurd_internal_post_signal): Pass DETAIL to write_corefile.
4164         (_hurd_internal_post_signal: suspend): Pass code and error to
4165         proc_mark_stop.
4166
4167         * hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
4168         proc_getprocinfo by reference.
4169
4170         * wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos.
4171
4172         * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo.
4173
4174         * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>.
4175         * sysdeps/stub/sched_sets.c: Likewise.
4176         * sysdeps/stub/sched_setp.c: Likewise.
4177         * sysdeps/stub/sched_rr_gi.c: Likewise.
4178         * sysdeps/stub/sched_gets.c: Likewise.
4179
4180         * hurd/hurdsig.c: Use struct hurd_signal_detail.
4181         * hurd/hurd/fd.h (_hurd_fd_error): Likewise.
4182         * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
4183
4184 Mon May  6 09:51:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4185
4186         * stdio/linewrap.c: New file.
4187         * stdio/Makefile (routines): Add linewrap.
4188         * stdio/stdio.h [__USE_GNU]: Declare line_wrap_stream,
4189         line_unwrap_stream.
4190
4191 Mon May  6 14:53:26 1996  Ulrich Drepper  <drepper@cygnus.com>
4192
4193         * time/strftime.c (week): Add third parameter telling how
4194         many days must be in new year so that it is called week 1.
4195         (Following ISO 8601).
4196         Correct computation for %U and %V formats when day was first
4197         day of the week.
4198         (strftime): Implement %V format according to Spec1170.
4199
4200 Mon May  6 17:01:09 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
4201
4202         * hurd/hurd/signal.h (_hurd_intr_rpc_mach_msg): New declaration.
4203
4204 Sat May  4 05:44:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4205
4206         * hurd/hurd/sigpreempt.h (struct hurd_signal_preempter): Change
4207         prototype of `preempter' elt to use struct hurd_signal_detail.
4208
4209         * hurd/hurd/signal.h (struct hurd_signal_detail): New type.
4210         (struct hurd_sigstate): Make `pending_data' member an array of that.
4211         Use the new type in several decls.
4212
4213         * locale/setlocale.c (_nl_C_name): Variable removed.
4214         * locale/C_name.c: New file.
4215         (_nl_C_name): Put it here instead.
4216         * locale/Makefile (aux): Add C_name.
4217
4218         * sysdeps/mach/hurd/dl-sysdep.c (open): Don't pass io port in
4219         auth_user_authenticate rpc.
4220         (open): Avoid using strtol in digit conversion for "fd/N" magic.
4221         (_dl_sysdep_start): Likewise for memobj name in magic switches.
4222
4223         * elf/Makefile (reloc-link): New variable.
4224         (dl-allobjs.so): New target, link together $(rtld-routines).
4225         (librtld.so): Depend on that instead of the rtld components.
4226         (generated): Add dl-allobjs.so.
4227
4228         * hurd/hurd-raise.c (_hurd_raise_signal): Pass sigcode in msg_sig_post
4229         rpc.
4230
4231         * hurd/hurdmsg.c (_S_msg_set_environment): Use argz.h functions
4232         instead of _hurd_split_args.
4233         (_S_msg_*_exec_flags): Functions removed.
4234         (_S_msg_startup_dosync): Stub removed.
4235
4236 Sat May  4 02:11:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4237
4238         * sysdeps/mach/hurd/ptrace.c: Set _hurdsig_traced instead of
4239         EXEC_TRACED bit in _hurd_exec_flags.
4240         Pass sigcode arg in msg_sig_post_untraced rpc.
4241
4242         * sysdeps/mach/hurd/access.c: Don't pass io port in
4243         auth_user_authenticate rpc.
4244
4245         * posix/sched.h: Fix typos.
4246
4247         * sysdeps/mach/hurd/fork.c: Use new critical section lock.
4248         Clear _hurdsig_traced instead of EXEC_TRACED.
4249
4250         * sysdeps/stub/nanosleep.c (nanosleep): Fix typo.
4251
4252         * wcsmbs/wcstol.c: Find strtol.c in ../stdlib.
4253         * wcsmbs/wcstof.c: Find strtod.c in ../stdlib.
4254         * wcsmbs/wcstod.c: Likewise.
4255         * wcsmbs/wcstold.c: Likewise.
4256
4257         * wcsmbs/wcwidth.h: Find cname-lookup.h in ../wctype.
4258
4259         * string/envz.c (envz_entry): Use const.
4260         (envz_get, envz_remove): Likewise.
4261         (envz_entry): Return char *, not const char *.
4262
4263         * string/envz.h: Fix decl.
4264
4265         * string/argz-create.c: Use const in prototype.
4266         * string/argz-next.c: Likewise.
4267
4268 Fri May  3 13:32:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4269
4270         * sysdeps/mach/hurd/sigprocmask.c: Pass sigcode arg to msg_sig_post.
4271         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
4272         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
4273         * sysdeps/mach/hurd/kill.c: Likewise.
4274
4275         * hurd/hurdexec.c (_hurd_exec): Use new critical section lock.
4276         * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4277         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Likewise.
4278         * hurd/thread-cancel.c (hurd_thread_cancel, hurd_check_cancel):
4279         Likewise.
4280         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
4281         * sysdeps/mach/hurd/sigaction.c: Likewise.
4282
4283         * sysdeps/mach/hurd/errnos.awk: Don't use ARGV in comment; it can
4284         change meaninglessly.
4285
4286         * hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
4287         flag with a spin lock.
4288         (_hurd_critical_section_lock): Use spin_try_lock on that to see if we
4289         get it.  No need to take SS->lock at all.
4290         (_hurd_critical_section_unlock): Unlock SS->critical_section_lock
4291         instead of clearing the old flag member.
4292         * hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
4293         test the critical section state.
4294
4295         * hurd/hurdinit.c (_hurd_init): Set _hurdsig_traced from the intarray.
4296
4297         * hurd/hurdkill.c (_hurd_sig_post): Pass 0 sigcode in msg_sig_post.
4298
4299         * hurd/hurdsig.c (_hurd_internal_post_signal): Test _hurdsig_traced
4300         instead of testing (_hurd_exec_flags & EXEC_TRACED).
4301         (_S_msg_sig_post): Take sigcode arg and pass it through.
4302         (_S_msg_sig_post_untraced): Likewise.
4303         (reauth_proc): Don't pass proc port in auth_user_authenticate.
4304
4305         * hurd/setauth.c (_hurd_setauth): Don't pass object ports in
4306         auth_user_authenticate RPCs, just the one-off rendezvous port.
4307         * hurd/dtable.c (reauth_dtable): Likewise.
4308         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
4309
4310         * hurd/hurdexec.c (_hurd_exec): Pass 0 flags to file_exec.
4311         Pass sigcode arg to msg_sig_post.
4312
4313         * string/argz.h (argz_create): Use const in prototype.
4314
4315         * hurd/hurdinit.c (_hurd_proc_init): Test _hurdsig_traced instead of
4316         testing (_hurd_exec_flags & EXEC_TRACED).
4317         Pass sigcode arg to msg_sig_post.
4318
4319         * hurd/hurd.h: Declare _hurdsig_traced.
4320
4321         * string/argz.h (__argz_next): Cast ENTRY before returning it.
4322
4323         * hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
4324         to msg_sig_post.
4325
4326         * hurd/path-lookup.c: New file.
4327         * hurd/Makefile (routines): Add path-lookup.
4328         * hurd/hurd/lookup.h: Declare file_name_path_scan,
4329         hurd_file_name_path_lookup.
4330         * hurd/hurd.h: Declare file_name_path_lookup.
4331
4332         * sysdeps/mach/hurd/select.c: The io_select rpc no longer has a TAG_ID
4333         argument.  Instead, use a separate reply port for each RPC and put them
4334         all in a port set to wait for slow replies.
4335
4336         * intl/Makefile (CPPFLAGS): Change $(nlsdir) to $(i18ndir) in
4337         LOCALE_ALIAS_PATH.
4338
4339 Fri May  3 03:14:02 1996  Ulrich Drepper  <drepper@cygnus.com>
4340
4341         * intl/Makefile (routines): Add l10nflist and explodename.
4342         (distribute): Add loadinfo.h and locale.alias.
4343         (install-others): New variable to install locale.alias.
4344
4345         * intl/dcgettext.c, intl/finddomain.c, intl/gettextP.h,
4346         intl/loadmsgcat.c: Adapt for upcoming gettext-0.10.13.  Some code
4347         is now shared with the locale implementation.
4348
4349         * intl/explodename.c, intl/l10nflist.c, intl/loadinfo.h: New file.
4350         Extracted from finddomain.c.  This is also used in the locale
4351         implementation.
4352
4353         * intl/locale.alias: New file.  Locale alias database compatible
4354         with X Window System's locale alias file.  Can now be used in
4355         locale and gettext code.
4356
4357         * libio/stdio.h: Add prototypes for asprint and vasprintf.
4358
4359         * locale/C-collate.c, locale/C-ctype.c, locale/C-messages.c,
4360         locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c: Add new
4361         field in structure with name of locale ("C" in this case).
4362
4363         * locale/Makefile (routines): Add findlocale.
4364
4365         * locale/findlocale.c: New file.  Instead of trying to load the
4366         directly described file we now try to be much smarter when this
4367         fails.  Use the same code as gettext does.
4368
4369         * locale/loadlocale.c, locale/setlocale.c: Rewrite to know about
4370         new loading scheme.
4371
4372         * locale/localeinfo.h: Adapt prototypes and declarations for new
4373         setlocale implementation.  Remove definition of u32_t type.  We
4374         now use u_int32_t from <sys/types.h>.
4375
4376         * locale/programs/charset.h (ILLEGAL_CHAR_VALUE): Provide type
4377         with constant.
4378
4379         * locale/programs/config.h, locale/lc-collate.c,
4380         locale/localeinfo.h, locale/programs/ld-collate.c,
4381         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
4382         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
4383         locale/programs/ld-time.c, locale/weight.h, string/strcoll.c:
4384         Change to use u_int32_t and u_int16_t.
4385
4386         * locale/programs/localedef.c (construct_output_path): Change name
4387         of output locale to contain normalized form of the character set
4388         portion.
4389
4390         * string/Makefile (routines): Add agrz-ctsep and argz-next.
4391         (tests): Add tst-strlen.
4392
4393         * string/argz-ctsep.c: New file.  Implement reverse operation
4394         from argz-stringify.
4395
4396         * string/argz-next.c: Non-inline version of function from argz.h.
4397
4398         * string/argz.h, string/envz.h: Make usable as global header file.
4399
4400         * string/envz.c: Fix declarations to use size_t where prototypes
4401         say so.
4402
4403         * string/tst-strlen.c: New file.  Another test for critical
4404         situation in strlen implementations.
4405
4406         * sysdeps/i386/i586/strlen.S: Fix bug with highest byte in word
4407         being zero.
4408
4409         * wctype/test_wctype.c: Fix controlling comparison after change to
4410         32 bit character class array.
4411
4412 Fri May  3 12:53:12 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4413
4414         * sysdeps/unix/sysv/linux/sys/socket.h: Remove spurious doubled line.
4415
4416 Thu May  2 22:50:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4417
4418         * sysdeps/unix/sysv/linux/getpriority.c: New file.
4419         * sysdeps/unix/sysv/linux/syscalls.list: Add s_getpriority.
4420
4421 Thu May  2 22:41:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4422
4423         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_DEFAULT):
4424         Disable all exceptions.
4425
4426 Thu May  2 22:33:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4427
4428         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
4429         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
4430         sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
4431         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
4432         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
4433         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
4434         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
4435         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
4436         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c: Don't
4437         define __NO_MATH_INLINES, which is already defined on command
4438         line.
4439
4440 Thu May  2 22:18:28 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4441
4442         * sysdeps/libm-ieee754/e_j0f.c (__ieee754_j0f, __ieee754_y0f):
4443         Replace 0x80000000 by 0x48000000.
4444         * sysdeps/libm-ieee754/e_j1f.c (__ieee754_j1f): Likewise.
4445
4446 Thu May  2 21:30:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4447
4448         * sunrpc/svc_simple.c: Make global variable pl local to
4449         registerrpc.
4450
4451 Thu May  2 00:24:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4452
4453         * time/Makefile (tz-cflags): New variable.
4454         (CFLAGS-tzfile.c): New variable.
4455         (CFLAGS-zic.c): Add $(tz-cflags).
4456         (tz-cc): Remove variable.
4457         ($(objpfx)tzfile.o, $(objpfx)zic.o): Remove targets.
4458
4459 Wed May  1 09:10:04 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4460
4461         * sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
4462         name, instead of checking for reaching end of buffer, which happens
4463         when the match is the last entry in the buffer.
4464
4465         * time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
4466         include.
4467
4468 Mon Apr 29 02:48:26 1996  Ulrich Drepper  <drepper@cygnus.com>
4469
4470         * ctype/ctype-info.c: (__ctype_width): New variable.
4471         (__ctype_names): Initialize correctly without offset.
4472
4473         * locale/C-collate.c, locale/C-ctype.c,
4474         locale/C-messages.c, locale/C-monetary.c,
4475         locale/C-numeric.c, locale/C-time.c: Change copyright.
4476
4477         * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Correct
4478         endianess for initialization value.
4479
4480         * locale/lc-ctype.c (current): Add parameter for offset.
4481         (__ctype32_b, __ctype_width): Add initialization for these
4482         variables.
4483
4484         * locale/programs/charmap.c: Finish support for WIDTH information.
4485         (new_width): New function.
4486
4487         * locale/programs/charset.h (width_rule): new data structure.
4488         (charset_t): Add elements for width information.
4489
4490         * locale/programs/ld-ctype.c (locale_ctype_t): Add element
4491         for width information.
4492         (allocate_arrays): Add new argument for charset.
4493         (ctype_finish): Make sure all characters named in charset
4494         width table are known to name table.
4495         (ctype_output): Correct handling of class and map name
4496         information and write out width information.
4497         (find_idx): Prepare for being called with NULL pointer as
4498         TABLE argument.  This means only allocate name entry.
4499         (allocate_arrays): Correct handling of array element -1.
4500         Because EOF == -1 the value of element 127 must *not* be
4501         mirrored here.
4502         Fill width information from charset tables.
4503
4504         * locale/programs/localedef.c (main): Correct loop over all
4505         categories after change of order from Thu Mar 28 14:22:51 1996.
4506         Add new charset argument to call of `write_all_categories'.
4507
4508         * locale/programs/locales.h (ctype_finish, ctype_output): New
4509         charset argument.
4510
4511         * locale/programs/locfile.c (write_all_categories): Call
4512         `ctype_output' with additional argument charset.
4513
4514         * posix/getconf.c (vars): Add _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4515         and _POSIX_PRIO_IO definitions.
4516
4517         * posix/posix2_lim.h: Add definition of _POSIX2_CHARCLASS_NAME_MAX
4518         and CHARCLASS_NAME_MAX.
4519
4520         * posix/unistd.h: Document _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4521         and _POSIX_PRIO_IO.
4522
4523         * stdlib/grouping.h: Prepare for use in wide string functions.
4524
4525         * stdlib/stdlib.h: Correct prototypes for __strto*_internal
4526         functions.
4527
4528         * stdlib/strtod.c: Extend for use as `wcsto{f,d,ld}'.
4529
4530         * stdlib/strtol.c: Extend for use as `wcsto{l,ul,q,uq}'.
4531
4532         * string/strcoll.c: Extend for use as `wcscoll'.
4533
4534         * string/strxfrm.c: Extend for use as `wcsxfrm'.
4535
4536         * sysdeps/generic/confname.h: Add definition of _PC_SYNC_IO,
4537         _PC_ASYNC_IO, _PC_PRIO_IO and _SC_CHARCLASS_NAME_MAX.
4538
4539         * sysdeps/generic/stpncpy.c: Correct return value.
4540
4541         * sysdeps/posix/fpathconf.c: Add handling of _PC_SYNC_IO,
4542         _PC_ASYNC_IO, and _PC_PRIO_IO.
4543
4544         * sysdeps/posix/sysconf.c: Add handling of _SC_REALTIME_SIGNALS,
4545         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
4546         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC,
4547         _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4548         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES,
4549         _SC_SHARED_MEMORY_OBJECTS, and _SC_CHARCLASS_NAME_MAX.
4550         * sysdeps/stub/sysconf.c: Ditto.
4551         * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4552
4553         * sysdeps/unix/sysv/linux/Dist: Add sys/sysctl.h.
4554
4555         * sysdeps/unix/sysv/linux/Makefile [subdir == misc]
4556         (sysdep_routines): Add s_sysctl and sysctl.
4557
4558         * sysdeps/unix/sysv/linux/sys/mman.h: Add declaration of mremap.
4559
4560         * sysdeps/unix/sysv/linux/sys/socket.h: New file.  Wrapper
4561         around kernel header.
4562
4563         * sysdeps/unix/sysv/linux/sys/sysctl.h: New file.  Define
4564         interface to `sysctl' function.
4565
4566         * sysdeps/unix/sysv/linux/syscalls.list: Add mremap and _sysctl.
4567
4568         * sysdeps/unix/sysv/linux/sysconf.c: Add handling of
4569         _SC_CHARCLASS_NAME_MAX.
4570
4571         * sysdeps/unix/sysv/linux/sysctl.c: new file.  Implement caller
4572         of _sysctl system call.
4573
4574         * sysvipc/Makefile (routines): Add ftok.
4575
4576         * sysvipc/ftok.c: use variable `proj_id' not `id'.  Patch by
4577         David Mosberger-Tang.
4578
4579         * wcsmbs/Makefile (routines): Add wcpcpy, wcpncpy, wcstol,
4580         wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4581         wcsxfrm, wcwidth, and wcswidth.
4582
4583         * wcsmbs/wchar.h: Add declarations for wcpcpy, wcpncpy, wcstol,
4584         wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4585         wcsxfrm, wcwidth, and wcswidth.
4586         Declare internal interfaces for wcsto* functions.
4587         [OPTIMIZE]: Define inline functions for wcsto* functions to
4588         call internal interface functions.
4589
4590         * wcsmbs/wcpcpy.c, wcsmbs/wcpncpy.c: New files.  Implement non-
4591         standard function equivalent to stpcpy/stpncpy.
4592
4593         * wcsmbs/wcscoll.c: Implement `wcscoll' function by using
4594         `strcoll' implementation.
4595
4596         * wcsmbs/wcscpy.c, wcsmbs/wcsncpy.c: Use wint_t instead of
4597         wchar_t.
4598
4599         * wcsmbs/wcstod.c: Implement `wcstod' function by using `strtod'
4600         implementation.
4601         * wcsmbs/wcstof.c: Same for `wcstof'.
4602         * wcsmbs/wcstold.c: Same for `strtold'.
4603
4604         * wcsmbs/wcstol.c: Implement `wcstol' function by using `strtol'
4605         implementation.
4606         * wcsmbs/wcstoq.c: Same for `wcstoq'.
4607         * wcsmbs/wcstoul.c: Same for `wcstoul'.
4608         * wcsmbs/wcstouq.c: Same for `wcstouq'.
4609
4610         * wcsmbs/wcswidth.c: Implement `wcswidth' function from X/Open
4611         CAE.
4612         * wcsmbs/wcwidth.c: Ditto for `wcwidth'.
4613         * wcsmbs/wcwidth.h: Common function for definitions of above two
4614         functions.
4615
4616         * wcsmbs/wcsxfrm.c: Implement `wcsxfrm function by using
4617         `strxfrm implementation.
4618
4619         * wctype/wctype.c: Remove case for `wctype_t' being 16 bit type.
4620
4621         * wctype/wctype.h (wint_t): Protect against multiple definition.
4622         (wctype_t): Always define as `unsigned long int'.
4623
4624         * wctype.h: New file.  Wrapper around wctype/wctype.h.
4625
4626 Tue Apr 30 17:30:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4627
4628         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Add timeout argument to
4629         interrupt_operation call.
4630         (_hurdsig_interrupt_timeout): New variable.
4631
4632         * hurd/report-wait.c (describe_number): Correctly allocate space
4633         in DESCRIPTION for the digits in I.
4634
4635 Mon Apr 29 00:11:59 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4636
4637         * hurd/hurdstartup.c (_hurd_split_args): Function removed.
4638         (_hurd_startup): Use argz functions.
4639
4640         * hurd/hurdexec.c: Use argz functions.
4641
4642         * errno.h [!__error_t_defined] (error_t): New type.
4643         * sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
4644         typedef in errnos.h.
4645
4646         * string/envz.c, string/envz.h: New files.
4647         * string/argz.h, string/argz-append.c, string/argz-count.c,
4648         string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
4649         string/argz-insert.c, string/argz-stringify.c: New files.
4650         * string/Makefile (routines): Add envz, argz-*.
4651         (headers): Add argz.h, envz.h.
4652
4653 Sun Apr 28 14:14:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4654
4655         * sysdeps/unix/sysv/linux/i386/Makefile: New file.
4656
4657 Wed Apr 24 17:35:30  Ulrich Drepper  <drepper@cygnus.com>
4658
4659         * inet/netinet/in.h, socket/sys/socket.h: Move to
4660         sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
4661         * netinet/in.h, sys/socket.h: Remove file.
4662
4663         * misc/Makefile (routines): Add fdatasync.
4664
4665         * posix/Makefile (headers): Add sched.h.
4666         (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
4667         sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
4668
4669         * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
4670         _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
4671         _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
4672         _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
4673         _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
4674         _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
4675
4676         * posix/sched.h: New file.  Header for POSIX scheduling interface.
4677
4678         * posix/unistd.h: Describe options from POSIX.4.
4679         Add declaration of fdatasync.
4680
4681         * sysdeps/generic/confname.h: Add definition for
4682          _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
4683         _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
4684         _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4685         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
4686         _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
4687
4688         * sysdeps/generic/fdatasync.c: New file.  Default implementation
4689         simply uses fsync.
4690
4691         * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
4692
4693         * sysdeps/generic/schedbits.h: New file.  System dependent
4694         defintion for POSIX.4 scheduling interface.
4695
4696         * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
4697
4698         * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
4699         sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
4700         sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
4701         sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
4702         sysdeps/stub/sched_yield.c: New file:  Stub implementation
4703         for systems missing these POSIX.4 system calls.
4704
4705         * sysdeps/unix/sysv/linux/gnu/types.h,
4706         sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
4707         data type definitions.
4708
4709         * sysdeps/unix/sysv/linux/netinet/in.h: New file.  Linux
4710         specific version.
4711
4712         * sysdeps/unix/sysv/linux/posix_opt.h: New file.  Define POSIX
4713         options applicable for Linux.
4714
4715         * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
4716         fdatasync, nanosleep, sched_setparam, sched_getparam,
4717         sched_setscheduler, sched_getscheduler, sched_yield,
4718         sched_get_priority_max, sched_get_priority_min, and
4719         sched_rr_get_interval.
4720
4721         * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
4722         options.
4723
4724         * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
4725
4726         * time/sys/time.h: Remove definition of `struct timespec'.
4727
4728         * time/time.h (struct timespec): Move definition to here.
4729
4730 Fri Apr 26 01:55:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4731
4732         * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
4733
4734 Thu Apr 25 15:49:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4735
4736         * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
4737         the scan for a name, avoid doing another readdir (which overwrites
4738         NENTRIES, and was resulting in a bogus ENOENT).
4739
4740         * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
4741
4742 Wed Apr 24 00:22:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4743
4744         * stdio/internals.c (seek_to_target): Set errno if seek function
4745         returns the wrong offset.
4746
4747         * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
4748         * wcsmbs/wcrtomb.c: Likewise.
4749
4750         * stdio-common/vfprintf.c: Include errno.h.
4751
4752 Tue Apr 23 21:09:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4753
4754         * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
4755         variable, LUCKY, to use instead of setting D to -1 (which fouls
4756         things up).
4757
4758 Tue Apr 23 15:56:56 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4759
4760         * config.h.in (HAVE_REGEX): New macro.
4761
4762         * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
4763         * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
4764         (routines): Add statfs, fstatfs.
4765         * sysdeps/mach/hurd/statfs.c: New file.
4766         * sysdeps/mach/hurd/fstatfs.c: New file.
4767         * sysdeps/stub/fstatfs.c: New file.
4768         * sysdeps/stub/statfs.c: New file.
4769         * io/sys/statfs.h: New file.
4770         * sysdeps/generic/statfsbuf.h: New file.
4771         * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
4772
4773 Tue Apr 23 00:06:47 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4774
4775         * malloc/Makefile (gmalloc-routines): Add valloc back here.
4776         (dist-routines): Remove it here.
4777         * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
4778         (ELIDE_VALLOC): Define it.
4779         [! ELIDE_VALLOC]: Make whole file conditional on this.
4780         * malloc/malloc.h (valloc): Make decl conditional on
4781         [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
4782
4783 Mon Apr 22 00:02:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4784
4785         * MakeTAGS: Include version.mk.
4786         (po/SYS_libc.pot): Add missing / in sed s cmd.
4787
4788 Sat Apr 20 18:13:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4789
4790         * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
4791         $(libc_cv_ld_no_whole_archive).
4792
4793 Sat Apr 20 17:07:17 1996  Ulrich Drepper  <drepper@cygnus.com>
4794
4795         * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
4796         grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
4797         math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
4798         misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
4799         posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
4800         posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
4801         resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
4802         stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
4803         string/string.h, sysdeps/generic/sigaction.h,
4804         sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
4805         sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
4806         sysdeps/unix/sysv/linux/sys/ptrace.h,
4807         sysdeps/unix/sysv/minix/sigaction.h,
4808         sysdeps/unix/sysv/sco3.2.4/sigaction.h,
4809         sysdeps/unix/sysv/sysv4/sigaction.h,
4810         sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
4811         time/sys/time.h, time/time.h: Fix copyright comment.
4812
4813 Fri Apr 19 00:49:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4814
4815         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
4816         not given in stack aux vector, fetch them with syscalls.
4817
4818         * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
4819         for nonmatching nonerror (instead of !MATCH).
4820         (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
4821
4822         * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
4823         unsigned long for variable NET2.
4824
4825         * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
4826
4827 Tue Apr  9 14:37:31 1996  Ulrich Drepper  <drepper@cygnus.com>
4828
4829         * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
4830         catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
4831         catgets/open_catalog.c: New files.  Implementation of XPG4
4832         compliant catgets() function and needed tools.
4833         * Makefile (subdirs): Add catgets.
4834
4835 Thu Apr 18 23:36:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4836
4837         * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
4838
4839 Wed Apr 10 20:48:43 1996  Ulrich Drepper  <drepper@cygnus.com>
4840
4841         * stdio-common/vfprintf.c: Correct some typos.
4842
4843         * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
4844         sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
4845         __signgam.
4846
4847 Thu Apr 18 21:07:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4848
4849         * Makerules (no-whole-archive): New variable.
4850         (build-shlib): Use it.
4851         * elf/Makefile (libdl.so): Use it.
4852         * configure.in (libc_cv_ld_no_whole_archive): New check for
4853         --no-whole-archive.
4854         * config.make.in (have-no-whole-archive): New variable.
4855
4856         * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
4857         from 3 to 4.
4858
4859         * Make-dist: Include version.mk.
4860         (version, release): Variables removed.
4861         * Makeconfig (version.mk): New target.
4862
4863 Fri Apr 19 01:42:18 1996  Ulrich Drepper  <drepper@cygnus.com>
4864
4865         * locale/Makefile (headers): Add langinfo.h.
4866         (CPPFLAGS): Remove -Iliblib.
4867
4868 Mon Apr 15 16:49:04 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4869
4870         * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
4871         function and its declaration.
4872
4873 Wed Apr 10 14:13:45 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4874
4875         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
4876         MACH_PORT_DEAD in the thread reply-port variable before destroying
4877         the signal handler's reply port, to avoid infinite recursion.
4878
4879 Mon Apr  8 18:27:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4880
4881         * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
4882         user passes in TZ, just zero it (emacs passes in a dummy variable,
4883         and rms says the hurd should be the one to change).
4884
4885 Sun Apr  7 10:37:30 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4886
4887         * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
4888         port in the parent.
4889
4890 Fri Apr  5 17:43:41 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4891
4892         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
4893         MACH_PORT_DEAD in the thread reply-port variable before destroying
4894         the signal handler's reply port to avoid infinite recursion.
4895         * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
4896         attempt to destroy PORT if it's a valid port name.
4897
4898 Wed Apr  3 17:10:44 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4899
4900         * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
4901         * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
4902         instead of $(objpfx).
4903
4904 Tue Apr  2 21:27:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4905
4906         * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
4907         the pattern ends with a backslash and quoting is enabled.
4908         * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
4909         patterns.
4910
4911 Mon Apr  1 13:34:55 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4912
4913         * stdio-common/tst-printf.c (main): Add new test case.
4914
4915         * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
4916
4917 Mon Apr  1 11:39:10  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4918
4919         * stdlib/strtod.c (STRTOD): Fix handling of American style FP
4920         numbers.
4921
4922         * stdio-common/vfprintf.c (vfprintf): Don't increment format
4923         string pointer twice after seeing `*'.
4924
4925 Sun Mar 31 17:31:54 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4926
4927         * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
4928         po/header.pot.
4929
4930 Sun Mar 31 18:07:32 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4931
4932         * locale/Makefile (others, install-bin): Compiling locale works
4933         again.
4934         (locale-modules): locale has no --dump option anymore.  Remove
4935         ctypedump.
4936
4937         * locale/programs/config.h: Don't declare euidaccess.
4938         Use #include_next to get libc's config.h.
4939
4940         * locale/programs/ctypedump.c: Not needed anymore.  Dump option
4941         of locale is removed.
4942
4943         * locale/programs/locale.c: Adapt for new locale implementation.
4944
4945         * stdio-common/_itoa.h (_itoa_word): Define as inline function.
4946         * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
4947         Don't declare static because used in _itoa_word inline function.
4948
4949         * stdio-common/printf-parse.h: Prepare for use in wide-char
4950         stdio implementation.
4951         (find_spec): Take additional argument to work with mbrlen instead
4952         of mblen.
4953         (parse_one_spec): Ditto.
4954
4955         * stdio-common/printf-prs.c: Prepare for use in wide-char
4956         stdio implementation.
4957
4958         * stdio-common/printf.h: Mark change for wide-char handling.
4959         Changing it now would result in incompatibilities.
4960
4961         * stdio-common/vfprintf.c: New and fast implementation.
4962
4963         * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
4964         mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
4965         mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
4966         Change wcswcs to wcsstr.
4967         Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
4968         mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
4969
4970         * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
4971         wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
4972         wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
4973         wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
4974         wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
4975         function according to ISO C amendment 1.
4976         * wchar.h: Wrapper around "wcsmbs/wchar.h".
4977
4978         * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
4979         wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
4980         wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
4981         wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
4982         wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
4983         amendment 1.
4984
4985         * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
4986         wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
4987         wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
4988         wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
4989         wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
4990         Implement functions from early drafts, not part of final standard.
4991
4992 Sun Mar 31 16:50:41 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4993
4994         * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
4995         __jmp_bug_tag so its C++ implicit typedef does not conflict with the
4996         __jmp_buf typedef.
4997
4998         * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
4999         compiling in the source directories.
5000
5001 Fri Mar 29 16:26:35 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
5002
5003         * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
5004         * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
5005
5006 Fri Mar 29 11:29:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5007
5008         * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
5009         with weak alias signgam.
5010
5011 Thu Mar 28 18:32:34 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
5012
5013         * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
5014
5015 Thu Mar 28 14:22:51 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5016
5017         * sunrpc/rpc_main.c (main): Call textdomain.
5018
5019         * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
5020         --no-location.
5021         (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
5022         ($P/subdirs.pot): New target.
5023         ($P/SYS_libc.pot): Add -n switch.
5024
5025         * locale/locale.h (LC_*): Values reordered to match Linux libc.
5026
5027         * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
5028         the process is a zombie; send no messages and return success.
5029
5030 Thu Mar 28 11:53:26 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
5031
5032         * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
5033         * wctype/wctype.c: Likewise.
5034         * wctype/wctrans.c: Likewise.
5035
5036 Thu Mar 28 03:00:43 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
5037
5038         * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
5039         DATA->strings.
5040
5041         * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
5042
5043         * configure.in (.weakext check): Fix asm code to use .weakext instead
5044         of .weak!  Fix bogus test calls.
5045         * configure: Regenerated.
5046
5047 Thu Mar 28 03:25:10 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5048
5049         * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
5050
5051         * locale/programs/ld-collate.c (collate_finish): Use error_at_line
5052         instead of error_with_loc.
5053
5054         * locale/weight.h: Use u_int32_t instead of u32_t.
5055         * string/strxfrm.c: Likewise.
5056
5057         * string/strxfrm.c: Find weight.h in ../locale; don't #include
5058         "localeinfo.h".
5059         * string/strcoll.c: Likewise.
5060
5061         * intl/Makefile (copysrc): Add missing > in sed cmd.
5062
5063 Sat Mar 23 17:52:49 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5064
5065         * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
5066         change value to $(datadir)/i18n.  `nls' is not an appropriate
5067         name.
5068
5069         * Makefile (subdirs): Add new subdir wctype.
5070
5071         * ctype/ctype-info.c: Add new global variable __ctype_names
5072         and initialize from _nl_C_LC_CTYPE.
5073
5074         * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
5075         class.  Use bit 11.
5076         [_ISbit]: Protect definition of bitmasks because they are also
5077         used in wctype.h.
5078
5079         * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
5080         after successfully pushing back a character.
5081
5082         Fundamental changes in locale implementation.  Almost nothing
5083         from the old code is used anymore.
5084         * locale/charmap.c, locale/collate.c, locale/config.h,
5085         locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
5086         locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
5087         locale/locale.c locale/localeconv.c, locale/localedef.c,
5088         locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
5089         locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
5090         locale/numeric.c, locale/setlocale.c, locale/token.h,
5091         locale/xmalloc.c: Removed.
5092
5093         * locale/Makefile: Update for new locale implementation with
5094         program source code distributed in subdir.
5095
5096         * locale/categories.def, locale/iso-4217.def: Updated file
5097         for new locale implementation.
5098
5099         * locale/langinfo.h: Updated for new locale implementation.
5100         (ERA_D_T_FMT, ERA_T_FMT): New official values according to
5101         P1003.2b/D11.
5102         (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
5103         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
5104         _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
5105         _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
5106         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
5107         _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
5108         extended LC_CTYPE and LC_COLLATE implementation.
5109
5110         * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
5111         locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
5112         for locale related programs.
5113
5114         * locale/C-collate.c, locale/C-ctype.c,
5115         locale/C-messages.c, locale/C-monetary.c,
5116         locale/C-numeric.c, locale/C-time.c,
5117         locale/lc-collate.c, locale/lc-ctype.c,
5118         locale/lc-messages.c, locale/lc-monetary.c,
5119         locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
5120         functions, and new generated "C" locale data.
5121
5122         * locale/loadlocale.c: Now handles word fields in locale binary
5123         automatically by changing the endianess if necessary.
5124
5125         * locale/localeinfo.h (LIMAGIC): Changed magic number because
5126         of incompatible changes.
5127         (locale_data): Changed definition to allow word as a value type.
5128         (coll_sort_rule): Values for collation sorting mode.
5129         (_NL_CURRENT_WORD): New macro to access word value of locale entry.
5130         (__collate_table, __collate_extra): Declare new global variables
5131         for collation tables.
5132
5133         * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
5134         locale/programs/charmap.c, locale/programs/charset.c,
5135         locale/programs/charset.h, locale/programs/config.h,
5136         locale/programs/ctypedump.c, locale/programs/ld-collate.c,
5137         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
5138         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
5139         locale/programs/ld-time.c, locale/programs/linereader.c,
5140         locale/programs/linereader.h, locale/programs/locale.c,
5141         locale/programs/localedef.c, locale/programs/locales.h,
5142         locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
5143         locale/programs/locfile-token.h, locale/programs/locfile.c,
5144         locale/programs/locfile.h, locale/programs/stringtrans.c,
5145         locale/programs/stringtrans.h: Implementation of locale related
5146         programs.
5147
5148         * locale/weight.h: Functions to access collation tables.
5149
5150         * posix/unistd.h: Define _POSIX2_LOCALEDEF.
5151
5152         * stdio-common/printf_fp.c: Fix bug with printing certain numbers
5153         < 10^-1.  Reported by Bill Metzenthen.
5154
5155         * stdio-common/tfformat.c: Add new test for above bug.
5156
5157         * string/strcoll.c, string/strxfrm.c: Real implementation of
5158         string collation according to ISO C.
5159
5160         * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
5161         wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
5162         wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
5163         Implementation of wide character classes and mapping.
5164
5165 Wed Mar 27 14:52:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5166
5167         * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
5168         _dl_relocate_object loop.  Avoid relocating RTLD_MAP in that loop, and
5169         do it individually if necessary after _dl_sysdep_start_cleanup call.
5170
5171         * stdlib/Makefile (mpn-routines): Add divrem.
5172
5173 Tue Mar 26 22:54:14  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5174
5175         * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
5176         instead of __mpn_divmod.
5177
5178 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5179
5180         * sysdeps/alpha/setjmp.S: Must establish global pointer before
5181         address of __sigsetjmp_aux can be loaded.
5182
5183 Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5184
5185         * sysdeps/i386/i586/memset.S: New file.  Highly optimized
5186         version for i586 contributed by Torbjorn Granlund.
5187         Adapted for use as bzero.
5188         * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
5189         code to implement bzero().
5190
5191 Tue Mar 26 20:01:17 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5192
5193         * stdlib/Makefile (mpn-routines): Remove divmod.
5194
5195 Tue Mar 26 15:40:14 1996  Brendan Kehoe  <brendan@zen.org>
5196
5197         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
5198         wrapped with #ifndef, to avoid config.h defining it.
5199
5200 Mon Mar 25 13:10:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5201
5202         * malloc/realloc.c (_realloc_internal): In case of growing large
5203         block, leave _heaplimit zero across _malloc_internal call.
5204
5205         * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
5206
5207 Mon Mar 25 03:35:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5208
5209         * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
5210         table when _heaplimit==0 during realloc growing large block.
5211
5212         * MakeTAGS (extract): Remove /dev/null from xgettext command line.
5213         (text-srcs): New variable: extract only C sources from $(tags_sources).
5214         (po/$(domain).pot): Depend on that.
5215         If it's empty, cp /dev/null $@ instead of $(extract).
5216
5217         * misc/Makefile (headers): Add iovec.h.
5218         * sysdeps/unix/sysv/linux/iovec.h: New file.
5219         * sysdeps/generic/iovec.h: New file.
5220         * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
5221
5222         * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
5223         AC_TRY_COMPILE.
5224
5225         * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
5226         macros inside [! __STDC__].
5227
5228         * stdlib/rpmatch.c: New file.
5229         * stdlib/Makefile (routines): Add rpmatch.
5230         * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
5231
5232         * MakeTAGS (MSGJOIN): Variable removed.
5233         (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
5234
5235 Wed Mar 20 20:08:46 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5236
5237         * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
5238
5239         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
5240         NO_UNDERSCORES.
5241
5242 Thu Mar 21 11:19:15 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5243
5244         * mach/devstream.c (input): Translate \r to \n on input.
5245
5246 Wed Mar 20 11:28:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5247
5248         * stdio-common/printf.h, stdio-common/printf_fp.c,
5249         stdio-common/vfprintf.c: Place const in parameter list at
5250         correct place.
5251
5252 Wed Mar 20 23:58.12 1996  Ulrich Drepper <drepper@gnu.ai.mit.edu>
5253
5254         * sysdeps/i386/ldbl2mpn.c: Copy of former version of
5255         sysdeps/ieee754/ldbl2mpn.c.
5256         * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
5257         Reported by Andreas Schwab.
5258
5259 Wed Mar 20 19:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5260
5261         * version.c: Include version.h to define RELEASE and VERSION macros.
5262         (__libc_release, __libc_version): Use them.
5263         * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
5264         use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
5265         * Make-dist (rel+vers): Snarf the macro values from version.h.
5266
5267         * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
5268         (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
5269         pass -a for these files.
5270
5271         * Makerules (po/%.pot): Depend on FORCE target so recursive make is
5272         always run.
5273
5274 Mon Mar 18 22:54:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5275
5276         * sysdeps/unix/sysv/linux/wait3.c: New file.
5277         * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
5278         one from sysdeps/posix.
5279
5280 Wed Mar 20 09:42:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5281
5282         * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
5283
5284         * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
5285         lt_executable, then lt_library.
5286         * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
5287
5288 Wed Mar 20 00:08:23 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5289
5290         * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
5291
5292 Tue Mar 19 16:31:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5293
5294         * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
5295         VEOL2, VMIN, VTIME): Corrected.
5296         (PAGEOUT, WRAP, VDSUSP): Deleted.
5297
5298 Tue Mar 19 14:18:42 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5299
5300         * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
5301         (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
5302
5303         * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
5304
5305         * math/math.h: Move M_* constants before __math.h include.
5306         [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
5307
5308         * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
5309         If log10 is not defined (i.e. no -lm), use stupid loop instead.
5310
5311         * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
5312         and no other _*_SOURCE macro is.
5313         (_GNU_SOURCE): Don't define by default.
5314         * libc-symbols.h (_GNU_SOURCE): Define it.
5315
5316         * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
5317
5318         * config.make.in (weak-symbols): Variable removed.
5319         * configure.in (--with-weak-symbols): Option removed.
5320         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5321         New tests.
5322
5323         * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
5324         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5325         New #undefs.
5326         * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
5327
5328         * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
5329
5330 Mon Mar  4 20:17:28 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5331
5332         * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
5333         * inet/inet_mkadr.c: Likewise.
5334         * inet/inet_net.c: Likewise.
5335         * inet/inet_netof.c: Likewise.
5336         * inet/rcmd.c: Likewise.
5337         * inet/arpa/inet.h: Likewise.
5338         * inet/netinet/in.h: Likewise.
5339         * inet/netinet/tcp.h: Likewise.
5340         * inet/protocols/rwhod.h: Likewise.
5341         * inet/protocols/talkd.h: Likewise.
5342         * resolv/inet_addr.c: Likewise.
5343
5344         * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
5345
5346         * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
5347
5348         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
5349         umount.
5350
5351         * sysdeps/alpha/__math.h (atan, cabs): New functions.
5352
5353         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
5354         expects set-value, not pointer to it).
5355
5356 Sun Feb 25 22:36:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5357
5358         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
5359
5360         * gmon/gmon.c (__bb_head): new variable.
5361         (write_hist, write_call_graph, write_bb_counts): new functions.
5362         (_mcleanup): modified to call above functions instead of directly
5363         writing out gmon.out.
5364         * gmon/sys/gmon.h (struct __bb): New type.
5365         (struct gmonhdr): Type removed.
5366         (struct gmonparam): New member `log_hashfraction'.
5367         (GMONVERSION): Macro removed.
5368
5369         * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
5370         sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
5371         files.
5372         * gmon/Makefile (headers): Add sys/gmon_out.h.
5373         (routines): Add bb_init_func, bb_exit_func.
5374
5375         * gmon/mcount.c: Avoid integer division.
5376
5377 Wed Feb 21 23:56:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5378
5379         * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
5380         passed to match what __sigsetjmp_aux() expects.
5381
5382 Tue Feb 20 11:33:46 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5383
5384         * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
5385         connect, getpeername, getsockname, listen, recv, recvfrom,
5386         recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
5387         added to override same-name assembly file in the parent directory.
5388
5389         * stdlib/stdlib.h: add include of sys/types.h in front of random
5390         etc declarations to ensure int32_t is declared.
5391
5392         * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
5393         where 32 bit integers are required.  Also change LONG_MAX into
5394         0x7fffffff since the intent is to turn off the sign bit in a
5395         32 bit integer.
5396
5397         * time/offtime.c (__offtime): Use Paul Eggert's code to deal
5398         with very large values for "days" (e.g., 64 bit values).
5399
5400 Mon Feb 19 22:22:12 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5401
5402         * stdlib/stdlib.h (__random, __random_r, random_r, struct
5403         random_data): use int32_t instead of `long int'.
5404
5405 Sat Feb 17 11:29:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5406
5407         * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
5408
5409         * sysdeps/alpha/ffs.S: new file.
5410
5411         * sysdeps/alpha/fabs.c: File removed.
5412
5413         * time/tzfile.c (__tzfile_read): counter variable is i, *not*
5414         num_transitions!
5415
5416         * time/offtime.c: make capable of dealing with very large (64 bit)
5417         time_t values.  Use old algorithm until a year is reached that
5418         is an integer multiple of 400, then use DAYS_PER_400_YEARS to
5419         do the remainder in a single division.
5420
5421         * sysdeps/generic/ffs.c (ffs): fix variable declarations to
5422         be unsigned int, not unsigned long.
5423
5424         * string/test-ffs.c (main): add test case with all upper bits
5425         set.
5426
5427         * stdlib/tst-strtol.c: add tests cases for machines where
5428         sizeof(long)==8.
5429
5430         * stdlib/testrand.c (main): disallow rand() to return negative
5431         integers.
5432
5433         * stdlib/testmb.c (main): fix format to use %lx instead of %x.
5434
5435         * stdlib/stdlib.h: on 64 bit machines, declare
5436         struct random_data, __random(),  __random_r, and random_r to
5437         return "int" instead of "long int".
5438
5439         * stdlib/random_r.c: 64 bit machines use "int" instead of "long
5440         int".  Similarly, use INT_MAX instead of LONG_MAX.
5441
5442         * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
5443         need to operate on "int" instead of "long int".
5444
5445         * locale/locfile-hash.c (compute_hashval): make shifted constant
5446         a long to avoid loosing bits on 64 bit machines.
5447
5448         * dirent/tst-seekdir.c (main): fix confusing comment; print
5449         a line to mark point where directory is rewound.
5450
5451 Fri Feb 16 15:01:49 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5452
5453         * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
5454
5455 Wed Feb 14 00:21:17 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5456
5457         * sysdeps/unix/sysv/linux/alpha/Makefile,
5458         sysdeps/unix/sysv/linux/alpha/brk.S,
5459         sysdeps/unix/sysv/linux/alpha/fpu_control.c,
5460         sysdeps/unix/sysv/linux/alpha/fpu_control.h,
5461         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
5462         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
5463         sysdeps/unix/sysv/linux/alpha/pipe.S,
5464         sysdeps/unix/sysv/linux/alpha/setfpucw.c,
5465         sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
5466         sysdeps/unix/sysv/linux/alpha/speed.c,
5467         sysdeps/unix/sysv/linux/alpha/start.S,
5468         sysdeps/unix/sysv/linux/alpha/syscall.S,
5469         sysdeps/unix/sysv/linux/alpha/syscalls.list,
5470         sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
5471         sysdeps/unix/sysv/linux/alpha/sysdep.S,
5472         sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
5473
5474         * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
5475         address register before returning (gcc 2.7.1 doesn't do it,
5476         presumably because $26 is declared as a global variable).
5477
5478         * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
5479         argument.
5480
5481         * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
5482         instead of multiplication.
5483
5484         * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
5485         currently blocked signals instead of the empty mask to ensure
5486         that execution of alarm handler occurs with none of the currently
5487         blocked signals enabled.
5488
5489         * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
5490
5491         * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
5492         sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
5493
5494         * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
5495         sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
5496         sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
5497         sysdeps/alpha/strlen.S: New files.
5498
5499         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
5500         sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
5501         sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
5502         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
5503         Removed.
5504
5505         * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
5506         int.
5507
5508         * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
5509         to end of function to avoid a jump across NOPs.
5510
5511         * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
5512         pertaining to integer division/remainder routines since new code
5513         doesn't require them.
5514
5515         * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
5516         where 32 bit quantities are consumed/stored.  Various other minor
5517         64-bit cleanups (casting).
5518
5519         * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
5520         whether xdr_long or xdr_short should be used to encode an int.
5521         Notice that an xdr_long is 4 bytes independent of the architecture
5522         (otherwise no Alpha could interoperate with existing NFS servers,
5523         for example).  Ditto for enums.
5524
5525         * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
5526         to 16 since it really wants 16 bytes.
5527
5528         * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
5529
5530         * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
5531         u_int32_t (instead of u_long).
5532
5533         * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
5534         "buf" pointer by casting it to a char* first since a long* may be 8
5535         bytes or more and oa->oa_length may be any multiple of 4.
5536
5537         * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
5538         since it really is testing for 32 bits.  Fixed casts to use
5539         u_int32 instead of u_long.
5540         * sunrpc/xdr_rec.c: Likewise.
5541
5542         * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
5543         * sunrpc/rpc/auth.h: Likewise.
5544
5545         * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
5546         for Alpha.
5547
5548 Tue Mar 19 13:27:49 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5549
5550         * sysdeps/i386/fpu/__math.h: New file.
5551         Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
5552
5553 Sun Mar 17 00:28:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5554
5555         * sysdeps/posix/clock.c: Don't multiply the return value by
5556         CLOCKS_PER_SEC or CLK_TCK.
5557
5558 Mon Mar 18 13:20:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5559
5560         * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
5561         scan finds no match.
5562
5563         * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
5564         * misc/bsd-compat.c (setpgrp): New function, two arg version.
5565         * sysdeps/stub/setpgid.c: Remove setpgrp alias.
5566         * sysdeps/mach/hurd/setpgid.c: Likewise.
5567         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
5568         * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
5569         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
5570         * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
5571         * posix/setpgrp.c (setpgrp): New file.
5572         * posix/Makefile (routines): Add setpgrp.
5573
5574         * elf/Makefile (rtld-link): New canned sequence.
5575         (ld.so, ld-linux.so.1): Use it.  Pass -soname option.
5576
5577         * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
5578
5579 Sun Mar 17 23:15:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5580
5581         * sysdeps/unix/sysv/linux/tcgetpgrp.c,
5582         sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
5583
5584 Sun Mar 17 07:19:33 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5585
5586         * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
5587         (CFLAGS): Append -Wno-unitialized.
5588
5589 Sat Mar 16 20:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5590
5591         * stdlib/erand48_r.c: Use FP division by powers of two to distribute
5592         short bits into double.
5593
5594 Sat Mar 16 20:08:22 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5595
5596         * sysdeps/alpha/memchr.S: New file.
5597         * sysdeps/alpha/memchr.c: Obsolete file removed.
5598         * string/tester.c: Soup up memchr tests.
5599
5600 Sat Mar 16 16:26:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5601
5602         * misc/Makefile (headers): Add sysexits.h.
5603         * misc/sysexits.h: New file.
5604
5605 Thu Mar 14 15:20:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5606
5607         * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
5608         call to __atan.
5609         * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
5610         call to __atanf.
5611
5612         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
5613         sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
5614         sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
5615         sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
5616         sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
5617         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
5618         sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
5619         sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
5620         sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
5621         sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
5622         sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
5623         sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
5624         sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
5625         sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
5626         sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
5627         sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
5628         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
5629         sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
5630         sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
5631         sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
5632         sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
5633         sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
5634         sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
5635         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
5636         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
5637         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
5638         sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
5639         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
5640         sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
5641         sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
5642         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
5643         sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
5644         sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
5645         sysdeps/m68k/fpu/s_significand.c,
5646         sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
5647         sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
5648         sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
5649         sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
5650
5651         * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
5652
5653         * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
5654         * sysdeps/m68k/fpu/isnanl.c: Likewise.
5655
5656 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5657
5658         * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
5659         calculation to include trailing invariant portion.  Don't use alloca;
5660         instead use a dynamic auto array for GCC, malloc for non-GCC.
5661         Handle nested braces properly.
5662
5663         * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
5664
5665         * libc-symbols.h (lint): New macro.
5666
5667 Fri Mar 15 01:18:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5668
5669         * libio/iosetvbuf.c: Add weak alias setvbuf.
5670
5671 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5672
5673         * string/strnlen.c: New file.
5674         * string/Makefile (routines): Add strnlen.
5675         * string/string.h [__USE_GNU] (strnlen): Declare new function.
5676         [__OPTIMIZE__]: Define extern inline implementation of it.
5677
5678         * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
5679         addition, to avoid using anything from -lm.
5680
5681 Mon Mar  4 21:57:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5682
5683         * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
5684
5685         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
5686         (CALL_MCOUNT): New macro, empty unless [PROF].
5687         (ENTRY): Do CALL_MCOUNT just after the label.
5688         (JUMPTARGET): New macro.
5689         (SYSCALL_ERROR_HANDLER): Fix syntax.
5690
5691 Thu Mar 14 04:20:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5692
5693         * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
5694         function instead of using inline asm i386 syscall.
5695         * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
5696
5697         * posix/unistd.h [__USE_BSD]: Declare usleep.
5698
5699 Tue Mar 12 04:57:57 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5700
5701         * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
5702         (fcvt, ecvt): Use it for buffer size.
5703
5704         * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
5705         conditionalizing long vs long long.
5706
5707         * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
5708         pointers; never return EFAULT.
5709         * stdlib/drand48_r.c (drand48_r): Likewise.
5710         * stdlib/erand48_r.c (erand48_r): Likewise.
5711
5712         * setjmp/Makefile (tests): Add jmpbug.
5713         * setjmp/jmpbug.c: New file.
5714
5715 Tue Mar 12 04:42:01 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5716
5717         * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
5718         * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
5719         * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
5720         `restore' until the target frame is hit.
5721
5722 Sun Mar 10 20:29:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5723
5724         * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
5725         * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
5726         s_sigsuspend.
5727
5728 Thu Mar  7 21:30:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5729
5730         * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
5731         left side of sed substitutions.
5732
5733 Sun Mar 10 16:58:10 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5734
5735         * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
5736         is not available anymore.  Do it ourselves.
5737
5738         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
5739         Correct GCC `asm' syntax.
5740
5741 Tue Mar 12 03:15:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5742
5743         * stdio-common/Makefile (tests): Add tst-ungetc.
5744         * stdio-common/tst-ungetc.c: New test from drepper.
5745         * stdio-common/tstscanf.c (main): New %[ test case from drepper.
5746
5747         * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
5748         somehow this was missed, though the weak alias is already there.
5749
5750         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
5751         default to double precision, all interrupts masked; fdlibm requires.
5752
5753 Sat Mar  9 18:44:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5754
5755         * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
5756
5757 Fri Mar  8 22:16:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5758
5759         * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
5760
5761 Tue Mar  5 18:45:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5762
5763         * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
5764         final loop.
5765
5766 Mon Mar  4 20:54:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5767
5768         * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
5769
5770 Tue Mar  5 12:14:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5771
5772         * sysdeps/mach/hurd/select.c (__select): Also don't fault just
5773         because some fdmask is 0.
5774
5775 Mon Mar  4 17:35:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5776
5777         * sysdeps/mach/hurd/select.c (__select):
5778         Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
5779         Don't return without frobbing the bitmasks after a timeout.
5780         When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
5781
5782 Mon Mar  4 17:35:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5783
5784         * hurd/catch-signal.c (hurd_safe_memmove): New function.
5785         (hurd_safe_copyin, hurd_safe_copyout): New functions.
5786         * hurd/hurd/sigpreempt.h: Declare them.
5787
5788 Sun Mar  3 08:43:44 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5789
5790         Replace math code with fdlibm from Sun as modified for netbsd by
5791         JT Conklin and Ian Taylor, including x86 FPU support.
5792         * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
5793         * math/math_private.h: New file.
5794         * sysdeps/i386/fpu/Implies: New file.
5795         * sysdeps/ieee754/Implies: New file.
5796         * math/machine/asm.h, math/machine/endian.h: New files.
5797         * math/Makefile, math/math.h: Rewritten.
5798         * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
5799         * math/finite.c: File removed.
5800         * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
5801
5802         * math/test-math.c: Include errno.h and string.h.
5803
5804         * sysdeps/unix/bsd/dirstream.h: File removed.
5805         * sysdeps/unix/bsd/readdir.c: File removed.
5806
5807 Sat Mar  2 16:35:40 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5808
5809         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
5810         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
5811         removed.
5812         * sysdeps/generic/profil-counter.h: New file.
5813
5814 Fri Mar  1 17:11:59 1996  Brendan Kehoe  <brendan@zen.org>
5815
5816         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
5817         including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
5818         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
5819         same as linux/m68k/profil-counter.h except the comment.
5820
5821 Fri Mar  1 10:09:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5822
5823         * stdlib/Makefile (mpn-stuff): New target.
5824         (copy-mpn): Use it.
5825
5826         * Code copied from GMP updated to 1.937 version.
5827         * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
5828
5829         * posix/glob.c: Use canonical code from autoconf manual for dirent
5830         include.
5831         [_D_NAMLEN]: Redefine NAMLEN using this.
5832         (glob_in_dir): Use NAMLEN macro.
5833
5834         * sysdeps/posix/profil.c: New file.
5835
5836 Thu Feb 29 20:55:57 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5837
5838         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
5839
5840 Tue Feb 27 12:14:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5841
5842         * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
5843         `extern' keyword.
5844
5845         * time/strftime.c: Support - and _ flags to affect number padding.
5846
5847         * sysdeps/unix/common/tcsendbrk.c: New file.
5848
5849 Mon Feb 26 10:22:30 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5850
5851         * sysdeps/unix/dirstream.h: Rewritten.
5852         * sysdeps/unix/readdir.c: Rewritten.
5853         * sysdeps/unix/telldir.c: Rewritten.
5854         * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
5855         Remove __ from DIR struct member names.
5856         * sysdeps/unix/dirfd.c: Likewise.
5857         * sysdeps/unix/seekdir.c: Likewise.
5858         * sysdeps/unix/rewinddir.c: Likewise.
5859         * sysdeps/unix/opendir.c: Likewise.  Don't allocate extra space after
5860         DIR structure.
5861         * sysdeps/stub/direct.h: File removed.
5862         * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
5863         * sysdeps/unix/bsd/direct.h: File removed.
5864         * sysdeps/unix/common/direct.h: File removed.
5865         * sysdeps/unix/sysv/irix4/direct.h: File removed.
5866         * sysdeps/unix/sysv/isc3/direct.h: File removed.
5867         * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
5868         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
5869         * sysdeps/unix/common/direntry.h: New file.
5870         * sysdeps/unix/bsd/direntry.h: New file.
5871         * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
5872         * sysdeps/unix/sysv/direntry.h: New file.
5873         * sysdeps/stub/direntry.h: New file.
5874         * dirent/dirent.h (struct dirent): Type removed.  Include <direntry.h>
5875         to define it.
5876         (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
5877         * dirent/Makefile (headers): Add direntry.h.
5878         (distribute): Remove direct.h.
5879         * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
5880         * dirent/scandir.c: Likewise.
5881         * io/fts.c (fts_build): Likewise.
5882         * io/ftw.c (ftw_dir): Likewise.
5883         * sysdeps/posix/ttyname.c: Likewise.
5884
5885         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
5886
5887         * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
5888         (collector_timeout): New static variable.
5889         (update_waiter): Actually call __task_enable_pc_sampling.
5890         Set collector_timeout based on the `tick' count returned.
5891         (profile_waiter): Use MAX_PC_SAMPLES.  Set nsamples before RPC.
5892         Use collector_timeout in __mach_msg call.
5893
5894         * gmon/Makefile (noprof): New variable containing mcount.
5895         Append profil unless it is in $(unix-syscalls).
5896         (mcount.po): Use $(noprof) for list of targets in this rule.
5897
5898         * libc-symbols.h: Define _LIBC before #include <config.h>.
5899
5900 Sun Feb 25 12:29:23 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5901
5902         * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
5903         Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
5904
5905         * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
5906
5907 Fri Feb  9 12:40:19 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
5908
5909         * libio/cleanup.c (_IO_cleanup_registration_needed)
5910         [!_G_HAVE_ATEXIT]: Init to NULL.
5911         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
5912
5913 Thu Feb  8 08:12:50 1996  Brendan Kehoe  <brendan@cygnus.com>
5914
5915         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
5916         previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
5917
5918 Wed Feb  7 15:10:17 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
5919
5920         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
5921         extern.
5922
5923 Sat Feb 24 11:34:13 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5924
5925         * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
5926
5927         * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
5928
5929 Wed Feb 21 02:25:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5930
5931         * Rules (others): Depend on $(extra-objs), $(install-lib),
5932         $(install-bin), $(install-sbin), in object directory.
5933
5934         * Makeconfig (link-libc): Don't pass -rpath option with default
5935         path, since ld.so should use the same default.
5936         * Makerules (build-shlib): Likewise.
5937
5938         * Makerules (make-target-directory): Use mkinstalldirs.
5939
5940         * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
5941         redefine ENTRY et al.
5942
5943         * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
5944         Macros removed.  The code in unix/i386/sysdep.h should now suffice.
5945
5946         * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
5947         [HAVE_ELF] and not.
5948         (ENTRY): Use it in .align directive.
5949         (CALL_MCOUNT): New macro, empty unless [PROF].
5950         (ENTRY): Do CALL_MCOUNT just after the label.
5951
5952         * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
5953         code can call mcount.
5954
5955 Tue Feb 20 23:05:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5956
5957         * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
5958         translation markings are now integrated in his distribution.
5959
5960         * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
5961
5962 Mon Feb 19 18:31:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5963
5964         * po: New directory where `LANG.po' files for message translations
5965         will reside.
5966         * po/SYS_libc.pot: New file, template of message strings as in source.
5967         * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
5968         the source using xgettext.
5969         * Makerules ($(..)po/%.pot): New rule.
5970         * manual/Makefile (../po/manual.pot): New target, make it empty.
5971
5972         * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
5973         * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
5974         * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
5975         * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
5976         * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
5977
5978         * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
5979         Updated from ADO 96d.
5980
5981 Sun Feb 18 14:08:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5982
5983         * csu/initfini.c (_init): Remove bogus volatile declarations and
5984         extra variable, take the address of __gmon_start__ only implicitly
5985         to avoid the test being optimized out.
5986
5987 Sun Feb 18 15:08:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5988
5989         * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
5990         sec.
5991
5992 Sun Feb 18 13:56:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5993
5994         * elf/Makefile, time/Makefile: Make `all' the default target.
5995
5996 Mon Feb 19 18:09:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
5997
5998         * misc/sys/ptrace.h: Moved to ...
5999         * sysdeps/generic/sys/ptrace.h: ... here.
6000         * sys/ptrace.h: File removed.
6001
6002 Sun Feb 18 12:13:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6003
6004         * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
6005
6006         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
6007         so that the symbol alias works.
6008
6009         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
6010
6011         * sysdeps/unix/sysv/linux/resourcebits.h: New file.
6012
6013         * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
6014
6015         * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
6016         getppid and reboot.
6017
6018         * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
6019         use getdtablesize.
6020
6021 Sat Feb 17 10:30:21 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
6022
6023         * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
6024         sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
6025         sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
6026         to `long' where necessary.
6027
6028 Thu Feb 15 20:04:50 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
6029
6030         * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
6031         * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
6032         to correctly access MPN array depending on architecture.
6033
6034 Mon Feb 19 15:30:26 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6035
6036         * stdio-common/tstscanf.c (main): Add check for "0" as %d.
6037
6038         * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
6039         Only some systems have three args; let them define their own stub.
6040
6041         * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
6042
6043         * sysdeps/generic/machine-gmon.h: New file.
6044         * gmon/Makefile (distribute): Add machine-gmon.h.
6045         * gmon/mcount.c: Undo changes of Feb 13.
6046         Include "machine-gmon.h".
6047
6048 Sun Feb 18 13:24:06 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6049
6050         * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
6051         identical to unix/common/direct.h.
6052
6053         * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
6054
6055         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
6056
6057         * stdio-common/Makefile (tests): Remove scanf6.
6058
6059         * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
6060
6061         * time/mktime.c (mktime): Move static variable localtime_offset to
6062         file scope.
6063
6064         * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
6065         base indicator.
6066
6067 Thu Feb 15 16:56:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6068
6069         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
6070         (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
6071         (_dl_runtime_resolve): Save %a1 as well.
6072         (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
6073         (elf_machine_relplt): Define.
6074
6075         * elf/dl-runtime.c: Include possible extra args in declaration of
6076         fixup.
6077
6078 Fri Feb 16 11:01:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6079
6080         * time/tzset.c: Limit hours to 23, not 12.  From jaffer.
6081
6082 Fri Feb 16 10:14:05 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6083
6084         * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
6085
6086 Thu Feb 15 13:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6087
6088         * mach/Machrules: Use -include for $(*.ir).
6089
6090         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
6091         request values.
6092         * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
6093         (_IOT_COUNT2): Field is 3 bits, not 2.
6094         * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
6095         * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
6096         bits before looking up handler.
6097         (fioctl): Use __hurd_dfail.
6098         (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
6099
6100 Thu Feb 15 11:49:45 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6101
6102         * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
6103         (sysdep_routines): Don't add sys-sig.
6104
6105         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6106
6107 Wed Feb 14 00:21:17 1996 David Mosberger-Tang  <davidm@azstarnet.com>
6108
6109         * sysdeps/alpha/memchr.c (memchr): loop searching for matching
6110         character bailed out one too early; changed constant 6 to
6111         7 to fix this.
6112
6113 Wed Feb 14 01:08:58 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6114
6115         * posix/execvp.c: When executing shell on script, first arg is
6116         full file name, not argv[0].
6117
6118         * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
6119         * mach/Machrules [no_deps]: Inhibit interface rules.
6120
6121         * malloc/Makefile (distribute): Removed TODO.
6122
6123 Tue Feb 13 05:12:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6124
6125         * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
6126         caller column.
6127
6128         * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
6129
6130         * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
6131
6132         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
6133         (sysdep_routines): Append setfpucw.
6134         (extra-objs): Append ieee-fpucw.o.
6135         (install-lib): Append libieee.a.
6136         (libieee.a): New target.
6137         * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
6138         * sysdeps/unix/sysv/linux/i386/fpu_control.h
6139         (_FPU_GETCW, _FPU_SETCW): New macros.
6140         (fpu_control_t): New typedef.
6141         (__setfpucw): Use fpu_control_t for argument type.
6142         * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
6143
6144         * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
6145
6146         * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
6147         * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
6148
6149 Sat Feb 10 13:09:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6150
6151         * sysdeps/unix/sysv/linux/m68k/brk.c,
6152         sysdeps/unix/sysv/linux/m68k/mmap.S,
6153         sysdeps/unix/sysv/linux/m68k/select.S,
6154         sysdeps/unix/sysv/linux/m68k/sigcontext.h,
6155         sysdeps/unix/sysv/linux/m68k/sigreturn.S,
6156         sysdeps/unix/sysv/linux/m68k/socket.S,
6157         sysdeps/unix/sysv/linux/m68k/syscall.S,
6158         sysdeps/unix/sysv/linux/m68k/sysdep.S,
6159         sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
6160
6161         * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
6162
6163         * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
6164         sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
6165
6166         * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
6167         MAP_FILE if not already defined.
6168
6169         * elf/elf.h: Add m68k reloc definitions.
6170         * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
6171
6172 Tue Feb 13 00:12:12 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6173
6174         * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
6175         this macro declare extra leading args.
6176
6177         * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
6178
6179         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
6180         elf_machine_relplt): New macros.
6181         * elf/dl-runtime.c: New file.
6182         * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
6183
6184         * gmon/Makefile (headers): Remove machine-gmon.h.
6185         * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
6186         * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
6187         the asm name.
6188         (_mcount): Define normally, taking no args.
6189         Use __builtin_return_address to fetch PC values of caller and caller's
6190         caller.
6191
6192         * Makerules: Rewrote rules to update libc archives of all flavors.
6193         Define separate specific rules for each flavor using o-iterator.
6194
6195         * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
6196
6197 Sat Feb 10 11:35:16 1996 Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6198
6199         * Makerules (ar-symtab-name): New macro.  Replace all occurences
6200         of __.SYMDEF by $(ar-symtab-name).
6201         * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
6202
6203 Mon Feb 12 03:10:41 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6204
6205         * Makefile (configure, %/configure): Depend on aclocal.m4.
6206         * Make-dist (configure, %/configure): Likewise.
6207
6208         * sysdeps/unix/Makefile: Include s-proto.d for its deps.
6209
6210         * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
6211         only needed in the implementation, not for any users.
6212
6213         * time/northamerica: Updated from ADO 96c, new rules for Mexico in
6214         1996.
6215
6216         * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
6217         * sunrpc/pm_getmaps.c: Likewise.
6218
6219         * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
6220         so real syscalls override unix/sysv/*.c on sysv-derived systems
6221         that have them.
6222         * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
6223         override unix/sysv/settimeofday.c since that overrides
6224         unix/syscalls.list.
6225
6226         * Makeconfig (+link): Put $(link-libc) after deps from $^,
6227         regardless of where libc.a appears in the deps.
6228
6229         * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
6230         Add __waitid.
6231         * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
6232         Define __ name for sigprocmask.
6233         * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
6234         Add getsysinfo.
6235         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
6236         * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
6237         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
6238         * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
6239         Add getdents, wait3, waitpid.
6240         * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
6241         settimeofday, sigsuspend, sstk, utimes.
6242         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6243         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6244         * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
6245         Removed sigtramp.
6246         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
6247         * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
6248         * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
6249         * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
6250         * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
6251         * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
6252         * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
6253         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6254         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
6255         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6256         * sysdeps/unix/sysv/irix4/wait3.S: File removed.
6257         * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
6258         * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
6259         * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
6260         * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
6261         * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
6262         * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
6263
6264         * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
6265         FORWARD_SIGEXC to one.  Uncomment setting of thread exc port, and
6266         move it to last thing.
6267
6268 Sat Feb 10 05:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
6269
6270         * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
6271
6272         * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
6273
6274 Sat Feb 10 04:18:48 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6275
6276         * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
6277         the file.
6278
6279 Fri Feb  9 11:46:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6280
6281         * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
6282         CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
6283
6284         * hurd/Makefile (user-interfaces): Added hurd/tioctl.
6285
6286 Thu Feb  8 18:55:27 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6287
6288         * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
6289
6290 Wed Feb  7 18:48:30 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6291
6292         * Makefile (subdirs): Added wcsmbs.
6293         * wcsmbs: New directory of wide char/multibyte char functions from
6294         drepper.
6295
6296         * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
6297         * hurd/report-wait.c: New file.
6298         * hurd/Makefile (routines): Added report-wait.
6299
6300         * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
6301
6302         * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
6303         New type.
6304         (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
6305         * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
6306         Structure moved to intr-msg.h; include that.
6307
6308         * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
6309         (CFLAGS-scheck.c): New variable.
6310
6311         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
6312         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
6313         __hurd_threadvar_stack_mask): New variables.
6314
6315         * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
6316         its new message port.
6317
6318         * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
6319
6320         * configure.in (uname): Add quoting.
6321
6322         * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
6323         * hurd/fchroot.c: Likewise.
6324
6325         * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
6326         __attribute__ ((__mode__ (__XX__))).
6327
6328 Wed Feb 7 03:24:05 1996 Torbjorn Granlund  <tege@tmg.se>
6329
6330         * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
6331         destination cache lines.
6332         (WORD_COPY_BWD): Likewise.
6333
6334 Wed Feb  7 14:16:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6335
6336         * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
6337         file name first thing, before $(native-compile) changes directories.
6338
6339         From Gord Matzigkeit <gord@enci.ucalgary.ca>:
6340         * sysdeps/unix/make_errlist.c: Use strerror if available.
6341         * sysdeps/unix/configure.in: New file
6342
6343         * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
6344         * sysdeps/unix/bsd/sun/sigvec.S: File removed.
6345
6346         * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
6347         * sysdeps/stub/connect.c: Likewise.
6348         * sysdeps/stub/bind.c: Likewise.
6349
6350         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
6351         "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
6352         another dir_lookup of "".
6353
6354 Tue Feb  6 12:46:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6355
6356         * libc-symbols.h (weak_alias, weak_symbol): added definitions
6357         for ECOFF (HAVE_ECOFF).
6358
6359 Fri Feb  2 13:09:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6360
6361         * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
6362
6363 Wed Jan 31 20:08:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6364
6365         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
6366         when cancelled before RPC.
6367
6368 Tue Jan 30 13:32:05 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6369
6370         * dirent/scandir.c: Allocate dirents with correct size for name, and
6371         copy with correct size.
6372
6373         * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
6374
6375         * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
6376         flag bits.
6377         (__vfscanf): Fix checking of extra type modifiers.
6378
6379         * time/asia, time/australasia, time/backward: Updated from ADO 96b.
6380
6381 Tue Jan 30 12:17:26 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
6382
6383         * stdlib/strtod.c: Only negate exponent when there really is one.
6384
6385         * stdio-common/vfscanf.c: Accept type modifiers on %n.
6386         Fix FP number parsing.
6387
6388 Mon Jan 29 21:53:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6389
6390         * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
6391
6392         * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
6393
6394 Mon Jan 29 16:29:16 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6395
6396         * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
6397         include an increment for each operation allowed on each fd.
6398
6399 Mon Jan 29 11:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6400
6401         * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
6402
6403         * Makefile: Use -include for sysd-dirs.
6404
6405         * configure.in (uname): Check for uname in syscalls.list files.
6406         * sysdeps/unix/sysv/syscalls.list: Remove uname.
6407         * sysdeps/unix/syscalls.list: Add uname.
6408
6409         * stdlib/strtol.c (weak1): New macro, to get the right name declared
6410         weak.
6411
6412         * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
6413
6414         * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
6415         (dbm_open): Use dynamic allocation for file name buffer, instead of
6416         limitting its size to MAXPATHLEN.
6417
6418         * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
6419         buffer, instead of limitting its size to MAXPATHLEN.
6420
6421         * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
6422         * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
6423
6424 Sun Jan 28 19:42:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6425
6426         * time/Makefile: Fix check for cross compiling.
6427
6428 Thu Jan 25 21:10:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6429
6430         * db/Makefile (subdir-dirs): Renamed from dbdirs.
6431
6432         * Makerules (distinfo-vars): Add subdir-dirs.
6433
6434         * MakeTAGS: Remove vpath directives.
6435         (all-dirs): Prepend $(subdir-dirs).
6436         (all-sources, all-headers): Use wildcard to find sources.
6437
6438 Mon Jan 29 10:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6439
6440         * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
6441         variables.
6442
6443         * mach/msgserver.c: Declare DEMUX arg with prototype.
6444
6445 Sun Jan 28 17:25:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6446
6447         * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
6448         make C++ happy.
6449         * alpha/jmp_buf.h: Likewise.
6450         * m68k/jmp_buf.h: Likewise.
6451         * mips/jmp_buf.h: Likewise.
6452         * sparc/jmp_buf.h: Likewise.
6453         * vax/jmp_buf.h: Likewise.
6454
6455         * sysdeps/generic/memmem.c: Fix return value in case where
6456         NEEDLE_LEN==0.
6457
6458         * hurd/hurdlookup.c (__file_name_lookup_under,
6459         __file_name_lookup): Restrict mode with umask.
6460         * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
6461         * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
6462
6463 Fri Jan 26 12:20:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6464
6465         * stdlib/strtol.c: Undo last change.  ANSI C changed since the
6466         draft I checked yesterday.  Sigh.
6467
6468 Thu Jan 25 18:58:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6469
6470         * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
6471
6472 Wed Jan 24 03:22:07 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6473
6474         * malloc/mcheck.c (mabort): Declare prototype.
6475
6476         * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
6477
6478         * Makerules: Use -include for generated makefiles.
6479
6480         * errno.h: Don't declare errno if it's defined as a macro.
6481
6482         * stdio-common/vfscanf.c: Disallow l flag after ll or L.
6483
6484         * stdio-common/Makefile (tests): Add scanf[1-9].
6485         * stdio-common/scanf[1-9].c: New files.  Bug tests from hjl.
6486
6487 Wed Jan 24 04:18:36 1996  Paul Eggert  <eggert@twinsun.com>
6488
6489         * strftime.c (strftime):
6490         When invoking self, check whether the subsidiary invocation failed.
6491         Use "???" (not "") to denote unknown time zone information.
6492
6493         Make this source file portable to standalone contexts (e.g. GNU Emacs).
6494         <config.h>: Include if HAVE_CONFIG_H is defined.
6495         (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
6496         defined if _LIBC or if <config.h> defines them.
6497         <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
6498         <sys/types.h>: New include; some hosts require it for `time_t'.
6499         <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
6500         <limits.h>: Include only if HAVE_LIMITS_H.
6501         <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
6502         (memcpy): Define in terms of bcopy if !STDC_HEADERS.
6503         (__P, PTR): Define if not already defined.
6504         (__tzname, __daylight, __timezone): Remove macros; no longer needed.
6505         (add, strftime): Don't use NULL, for portability to some weird hosts.
6506         (fmt): If !_LIBC, don't assume sprintf returns a count.
6507         (week, strftime): Use old-style function declarations.
6508         (weekday_name, month_name): New constants.
6509         (strftime): Use traditional C values if locale support isn't available.
6510         Use `const' instead of CONST.  For time zones, use tm_zone if
6511         possible, then fall back on tzname.  Don't check for multibyte
6512         characters unless mblen is supported.  Use formats like %02d instead
6513         of %.2d, for portability to older hosts.
6514
6515 Wed Jan 24 00:07:52 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6516
6517         * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
6518         (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
6519         Fix bug in recognition of %ll flag for long long.
6520         Fix overeager checks for conflicting type modifiers.
6521         With ' flag, match thousands separators for decimal numbers.
6522
6523 Tue Jan 23 22:02:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6524
6525         * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
6526
6527         * resolv/Makefile (CFLAGS): Disable some warnings.
6528
6529         * sysdeps/generic/Makefile (elided-routines): Removed hypot.
6530         (+gccwarn): Set with override.
6531
6532         * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
6533
6534         * posix/Makefile (CFLAGS-regex.c): New variable.
6535
6536         * malloc/Makefile (CFLAGS-obstack.c): New variable.
6537
6538         * io/Makefile (CFLAGS-fts.c): New variable.
6539         * io/fts.c (fts_open): Use prototypes for COMPAR decl.
6540
6541 Tue Jan 23 21:35:32 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6542
6543         * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
6544         case is '\0'-terminated.
6545
6546 Tue Jan 23 19:49:54 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6547
6548         * elf/rtld.c (dl_main): Support additional args in --list mode for
6549         debugging: look them up as symbol names and print values.
6550
6551         * misc/getttyent.c (skip, value): Declare with prototypes in file
6552         scope.
6553
6554         * csu/initfini.c (_init): Explicitly set a variable that is
6555         pointer to volatile with the address of __gmon_start__, to avoid
6556         the test being optimized out.
6557
6558 Mon Jan 22 10:40:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6559
6560         * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
6561
6562         * io/fts.h (FTSENT): Define fts_compar member with prototype.
6563
6564         * hurd/hurd.h: Use prototype in getcttyid decl.
6565
6566         * stdlib/l64a.c: Fix typo in last change.
6567
6568         * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
6569         for determining size of types.
6570         * stdlib/srand48_r.c: Likewise.
6571
6572         * misc/utmp.h: Declare login, logout, logwtmp.
6573         * misc/logout.c: Declare argument as pointer to const.
6574         * misc/login.c: Likewise.
6575         * misc/logwtmp.c: Likewise.
6576         Include time.h, string.h.
6577
6578         * misc/efgcvt_r.c: Include stdlib.h.
6579
6580         * io/mknod.c: Include sys/types.h.
6581
6582         * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
6583
6584         * csu/gmon-start.c (_start, etext): Declare with prototypes.
6585
6586         * stdio-common/vfscanf.c (%[): Fix range handling.
6587
6588 Sun Jan 21 00:55:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6589
6590         * misc/Makefile (headers): Rename queue.h to sys/queue.h.
6591         * misc/queue.h: Moved to misc/sys/queue.h.
6592
6593         * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
6594         sys/sem.h.
6595
6596         * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
6597
6598         * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
6599         literal byte values.
6600
6601         * misc/bsd-compat.c (getpgrp): Define with prototype.
6602
6603         * misc/init-misc.c (__progname_full): New variable.
6604         (program_invocation_name, program_invocation_short_name): New aliases.
6605         (__init_misc): Define with prototype.  Set __progname_full.
6606         * misc/progname.c: File removed.
6607         * misc/Makefile (aux): Remove progname.
6608
6609         * misc/hsearch_r.c (isprime): Define with prototype.
6610
6611         * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
6612         * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
6613         * sysdeps/unix/bsd/setegid.c: Likewise.
6614
6615 Fri Jan 19 13:28:59 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6616
6617         * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
6618         __tcdrain.
6619
6620         * posix/glob.c (glob): Use prototype in getlogin decl.
6621
6622         * db/ndbm.h: Declare dbm_error, dbm_clearerr.
6623         * db/db/db.c (__dberr): Define with prototype.
6624         (__dbpanic): Use prototypes in casts.
6625         * db/hash/hash_log2.c: Add prototype decl.
6626
6627         * sysdeps/generic/_strerror.c (_strerror_internal): Define with
6628         prototype.
6629
6630         * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
6631         They will be overridden with syscalls if extant by unix/syscalls.list.
6632
6633         * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
6634
6635         * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
6636         * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
6637
6638 Thu Jan 18 00:32:43 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6639
6640         * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
6641
6642         * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
6643         get args.
6644
6645         * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
6646         defines GNU extensions.
6647         * posix/fnmatch.c: Likewise.
6648
6649         Replaced all simple system call files *.S throughout sysdeps/unix
6650         with syscalls.list files to be processed by make-syscalls.sh.
6651         * sysdeps/unix/s-proto.S: New file.
6652         * sysdeps/unix/syscalls.list: New file.
6653         * sysdeps/unix/bsd/syscalls.list: New file.
6654         * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
6655         * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
6656         * sysdeps/unix/bsd/osf/syscalls.list: New file.
6657         * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
6658         * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
6659         * sysdeps/unix/bsd/sun/syscalls.list: New file.
6660         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
6661         * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
6662         * sysdeps/unix/common/syscalls.list: New file.
6663         * sysdeps/unix/inet/syscalls.list: New file.
6664         * sysdeps/unix/mman/syscalls.list: New file.
6665         * sysdeps/unix/sysv/syscalls.list: New file.
6666         * sysdeps/unix/sysv/irix4/syscalls.list: New file.
6667         * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
6668         * sysdeps/unix/sysv/linux/syscalls.list: New file.
6669         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
6670         * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
6671         * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
6672         * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
6673         * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
6674         * sysdeps/unix/acct.S: File removed.
6675         * sysdeps/unix/chdir.S: File removed.
6676         * sysdeps/unix/chmod.S: File removed.
6677         * sysdeps/unix/chown.S: File removed.
6678         * sysdeps/unix/chroot.S: File removed.
6679         * sysdeps/unix/close.S: File removed.
6680         * sysdeps/unix/configure: File removed.
6681         * sysdeps/unix/configure.in: File removed.
6682         * sysdeps/unix/dup.S: File removed.
6683         * sysdeps/unix/fcntl.S: File removed.
6684         * sysdeps/unix/fsync.S: File removed.
6685         * sysdeps/unix/getgid.S: File removed.
6686         * sysdeps/unix/getpid.S: File removed.
6687         * sysdeps/unix/getuid.S: File removed.
6688         * sysdeps/unix/ioctl.S: File removed.
6689         * sysdeps/unix/kill.S: File removed.
6690         * sysdeps/unix/link.S: File removed.
6691         * sysdeps/unix/lseek.S: File removed.
6692         * sysdeps/unix/open.S: File removed.
6693         * sysdeps/unix/ptrace.S: File removed.
6694         * sysdeps/unix/read.S: File removed.
6695         * sysdeps/unix/reboot.S: File removed.
6696         * sysdeps/unix/setgid.S: File removed.
6697         * sysdeps/unix/setuid.S: File removed.
6698         * sysdeps/unix/sync.S: File removed.
6699         * sysdeps/unix/umask.S: File removed.
6700         * sysdeps/unix/unlink.S: File removed.
6701         * sysdeps/unix/write.S: File removed.
6702         * sysdeps/unix/bsd/flock.S: File removed.
6703         * sysdeps/unix/bsd/getdtsz.S: File removed.
6704         * sysdeps/unix/bsd/getpagesize.S: File removed.
6705         * sysdeps/unix/bsd/killpg.S: File removed.
6706         * sysdeps/unix/bsd/profil.S: File removed.
6707         * sysdeps/unix/bsd/readv.S: File removed.
6708         * sysdeps/unix/bsd/settimeofday.S: File removed.
6709         * sysdeps/unix/bsd/sigblock.S: File removed.
6710         * sysdeps/unix/bsd/sigpause.S: File removed.
6711         * sysdeps/unix/bsd/sigsetmask.S: File removed.
6712         * sysdeps/unix/bsd/sigstack.S: File removed.
6713         * sysdeps/unix/bsd/sigvec.S: File removed.
6714         * sysdeps/unix/bsd/utimes.S: File removed.
6715         * sysdeps/unix/bsd/writev.S: File removed.
6716         * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
6717         * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
6718         * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
6719         * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
6720         * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
6721         * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
6722         * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
6723         * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
6724         * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
6725         * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
6726         * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
6727         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
6728         * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
6729         * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
6730         * sysdeps/unix/bsd/osf/msync.S: File removed.
6731         * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
6732         * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
6733         * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
6734         * sysdeps/unix/bsd/sun/getdents.S: File removed.
6735         * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
6736         * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
6737         * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
6738         * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
6739         * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
6740         * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
6741         * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
6742         * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
6743         * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
6744         * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
6745         * sysdeps/unix/common/access.S: File removed.
6746         * sysdeps/unix/common/adjtime.S: File removed.
6747         * sysdeps/unix/common/dup2.S: File removed.
6748         * sysdeps/unix/common/fchmod.S: File removed.
6749         * sysdeps/unix/common/fchown.S: File removed.
6750         * sysdeps/unix/common/ftruncate.S: File removed.
6751         * sysdeps/unix/common/getgroups.S: File removed.
6752         * sysdeps/unix/common/getitimer.S: File removed.
6753         * sysdeps/unix/common/getpgid.S: File removed.
6754         * sysdeps/unix/common/getpriority.S: File removed.
6755         * sysdeps/unix/common/getrlimit.S: File removed.
6756         * sysdeps/unix/common/getrusage.S: File removed.
6757         * sysdeps/unix/common/gettimeofday.S: File removed.
6758         * sysdeps/unix/common/mkdir.S: File removed.
6759         * sysdeps/unix/common/readlink.S: File removed.
6760         * sysdeps/unix/common/rename.S: File removed.
6761         * sysdeps/unix/common/rmdir.S: File removed.
6762         * sysdeps/unix/common/select.S: File removed.
6763         * sysdeps/unix/common/setgroups.S: File removed.
6764         * sysdeps/unix/common/setitimer.S: File removed.
6765         * sysdeps/unix/common/setpgid.S: File removed.
6766         * sysdeps/unix/common/setpriority.S: File removed.
6767         * sysdeps/unix/common/setregid.S: File removed.
6768         * sysdeps/unix/common/setreuid.S: File removed.
6769         * sysdeps/unix/common/setrlimit.S: File removed.
6770         * sysdeps/unix/common/swapon.S: File removed.
6771         * sysdeps/unix/common/symlink.S: File removed.
6772         * sysdeps/unix/common/truncate.S: File removed.
6773         * sysdeps/unix/common/vhangup.S: File removed.
6774         * sysdeps/unix/inet/accept.S: File removed.
6775         * sysdeps/unix/inet/bind.S: File removed.
6776         * sysdeps/unix/inet/connect.S: File removed.
6777         * sysdeps/unix/inet/gethostid.S: File removed.
6778         * sysdeps/unix/inet/gethostname.S: File removed.
6779         * sysdeps/unix/inet/getpeername.S: File removed.
6780         * sysdeps/unix/inet/getsockname.S: File removed.
6781         * sysdeps/unix/inet/getsockopt.S: File removed.
6782         * sysdeps/unix/inet/listen.S: File removed.
6783         * sysdeps/unix/inet/recv.S: File removed.
6784         * sysdeps/unix/inet/recvfrom.S: File removed.
6785         * sysdeps/unix/inet/recvmsg.S: File removed.
6786         * sysdeps/unix/inet/send.S: File removed.
6787         * sysdeps/unix/inet/sendmsg.S: File removed.
6788         * sysdeps/unix/inet/sendto.S: File removed.
6789         * sysdeps/unix/inet/sethostid.S: File removed.
6790         * sysdeps/unix/inet/sethostname.S: File removed.
6791         * sysdeps/unix/inet/setsockopt.S: File removed.
6792         * sysdeps/unix/inet/shutdown.S: File removed.
6793         * sysdeps/unix/inet/socket.S: File removed.
6794         * sysdeps/unix/inet/socketpair.S: File removed.
6795         * sysdeps/unix/mman/madvise.S: File removed.
6796         * sysdeps/unix/mman/mmap.S: File removed.
6797         * sysdeps/unix/mman/mprotect.S: File removed.
6798         * sysdeps/unix/mman/msync.S: File removed.
6799         * sysdeps/unix/mman/munmap.S: File removed.
6800         * sysdeps/unix/sysv/alarm.S: File removed.
6801         * sysdeps/unix/sysv/ftime.S: File removed.
6802         * sysdeps/unix/sysv/nice.S: File removed.
6803         * sysdeps/unix/sysv/pause.S: File removed.
6804         * sysdeps/unix/sysv/poll.S: File removed.
6805         * sysdeps/unix/sysv/s_getdents.S: File removed.
6806         * sysdeps/unix/sysv/signal.S: File removed.
6807         * sysdeps/unix/sysv/stime.S: File removed.
6808         * sysdeps/unix/sysv/time.S: File removed.
6809         * sysdeps/unix/sysv/times.S: File removed.
6810         * sysdeps/unix/sysv/ulimit.S: File removed.
6811         * sysdeps/unix/sysv/uname.S: File removed.
6812         * sysdeps/unix/sysv/utime.S: File removed.
6813         * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
6814         * sysdeps/unix/sysv/irix4/msync.S: File removed.
6815         * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
6816         * sysdeps/unix/sysv/irix4/signal.S: File removed.
6817         * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
6818         * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
6819         * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
6820         * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
6821         * sysdeps/unix/sysv/linux/fork.S: File removed.
6822         * sysdeps/unix/sysv/linux/getpgid.S: File removed.
6823         * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
6824         * sysdeps/unix/sysv/linux/getsid.S: File removed.
6825         * sysdeps/unix/sysv/linux/gtty.S: File removed.
6826         * sysdeps/unix/sysv/linux/mlock.S: File removed.
6827         * sysdeps/unix/sysv/linux/mlockall.S: File removed.
6828         * sysdeps/unix/sysv/linux/mount.S: File removed.
6829         * sysdeps/unix/sysv/linux/munlock.S: File removed.
6830         * sysdeps/unix/sysv/linux/munlockall.S: File removed.
6831         * sysdeps/unix/sysv/linux/pipe.S: File removed.
6832         * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
6833         * sysdeps/unix/sysv/linux/setpgid.S: File removed.
6834         * sysdeps/unix/sysv/linux/setsid.S: File removed.
6835         * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
6836         * sysdeps/unix/sysv/linux/sigpending.S: File removed.
6837         * sysdeps/unix/sysv/linux/stty.S: File removed.
6838         * sysdeps/unix/sysv/linux/umount.S: File removed.
6839         * sysdeps/unix/sysv/linux/wait4.S: File removed.
6840         * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
6841         * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
6842         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
6843         * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
6844         * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
6845         * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
6846         * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
6847         * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
6848         * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
6849         * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
6850         * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
6851         * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
6852         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
6853
6854         * io/mknod.c: New file.
6855
6856         * Makerules (COMPILE.s): New variable.
6857
6858         * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
6859         make-syscalls.sh and include it.
6860         [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
6861         sysd-syscalls.
6862         * sysdeps/unix/make-syscalls.sh: New file.
6863
6864         * Makerules (COMPILE.S): New variable.
6865
6866 Wed Jan 17 11:04:58 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6867
6868         * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
6869         _STAT_VER_SVR4, _STAT_VER): New macros.
6870         (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
6871
6872         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
6873         New macros.
6874
6875         * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
6876         (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
6877         [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
6878         as `extern inline's calling the `x' functions.
6879         * io/fstat.c: New file.
6880         * io/lstat.c: New file.
6881         * io/stat.c: New file.
6882         * sysdeps/generic/lstat.c: File removed.
6883         * sysdeps/generic/lxstat.c: New file.
6884         * sysdeps/mach/hurd/fstat.c: File removed.
6885         * sysdeps/mach/hurd/fxstat.c: New file.
6886         * sysdeps/mach/hurd/lstat.c: File removed.
6887         * sysdeps/mach/hurd/lxstat.c: New file.
6888         * sysdeps/mach/hurd/mknod.c: File removed.
6889         * sysdeps/mach/hurd/stat.c: File removed.
6890         * sysdeps/mach/hurd/xmknod.c: New file.
6891         * sysdeps/mach/hurd/xstat.c: New file.
6892         * sysdeps/stub/fstat.c: File removed.
6893         * sysdeps/stub/fxstat.c: New file.
6894         * sysdeps/stub/lstat.c: File removed.
6895         * sysdeps/stub/lxstat.c: New file.
6896         * sysdeps/stub/mknod.c: File removed.
6897         * sysdeps/stub/stat.c: File removed.
6898         * sysdeps/stub/xmknod.c: New file.
6899         * sysdeps/stub/xstat.c: New file.
6900         * sysdeps/unix/common/lstat.S: File removed.
6901         * sysdeps/unix/common/lxstat.c: New file.
6902         * sysdeps/unix/fstat.S: File removed.
6903         * sysdeps/unix/fxstat.c: New file.
6904         * sysdeps/unix/mknod.S: File removed.
6905         * sysdeps/unix/stat.S: File removed.
6906         * sysdeps/unix/sysv/linux/fstat.c: File removed.
6907         * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
6908         * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
6909         * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
6910         * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
6911         * sysdeps/unix/sysv/linux/lstat.c: File removed.
6912         * sysdeps/unix/sysv/linux/mknod.c: File removed.
6913         * sysdeps/unix/sysv/linux/stat.c: File removed.
6914         * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
6915         * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
6916         * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
6917         * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
6918         * sysdeps/unix/xmknod.c: New file.
6919         * sysdeps/unix/xstat.c: New file.
6920         * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
6921         * misc/Makefile (routines): Remove mknod.
6922
6923         * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
6924         Add missing ; in little-endian case.
6925
6926         * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
6927         Define this instead of ELF_DYNAMIC_DO_RELA.
6928
6929         * sysdeps/unix/sysv/time.S: Moved from sysv4.
6930         * sysdeps/unix/sysv/irix4/time.S: File removed.
6931
6932         * sysdeps/unix/sysv/linux/signum.h: Moved from
6933         sysdeps/unix/sysv/linux/i386.
6934         (_NSIG): Move inside #ifdef _SIGNAL_H.
6935
6936 Tue Jan 16 17:37:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6937
6938         * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
6939         * sysdeps/unix/telldir.c: Fix position calculation to account for
6940         buffered data properly.
6941
6942         * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
6943         library.
6944
6945         * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
6946         * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
6947         global.
6948         [! HAVE_INITFINI]: Only make it a constructor in this case.
6949
6950         * gmon/Makefile (CFLAGS-mcount.c): New variable.
6951         (mcount.po): New target.
6952
6953         * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
6954
6955         * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
6956         (initfini): Compile initfini.c with -fPIC.
6957
6958 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
6959
6960         * sysdeps/mips/bytesex.h: Add default byte sex.  By Ralf Baechle.
6961
6962         * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
6963         member of `struct timex' instead of `modes'.  From Andreas Schwab.
6964
6965         * sysdeps/unix/sysv/linux/mknod.c: New file.  Generic C version.
6966         * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
6967
6968         * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
6969         [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
6970         [$(subdir) = misc] (headers): Append sys/mount.h.
6971
6972         * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
6973         New files.  Implement system calls.
6974         * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
6975
6976         * sysdeps/unix/sysv/linux/ptrace.c: New file.  Wrapper around
6977         ptrace system call.
6978         * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
6979
6980         * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
6981         types for i386/Linux.
6982
6983 Sun Jan 14 17:51:09 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6984
6985         * MakeTAGS (all-sources, all-headers): Always search the
6986         current directory first.
6987
6988         * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
6989         found.
6990
6991         * stdio-common/vfscanf.c (inchar, conv_error, input_error,
6992         memory_error): Add cast to void to avoid gcc warning.
6993         (vfscanf): Rewrite character class parsing to make it more efficient.
6994
6995         * misc/efgcvt_r.c (ecvt_r): Handle negative values.
6996
6997         * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
6998         * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
6999         sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
7000
7001         * stdio-common/printf_fp.c (__printf_fp): Fix parameter
7002         declaration.
7003
7004         * sysdeps/generic/putenv.c (putenv): Fix second argument of
7005         setenv.
7006
7007         * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
7008         * sysdeps/ieee754/cabs.c: Don't define hypot here.
7009
7010         * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
7011         definition of ieee_nan alternative.
7012
7013         * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
7014         prefix spec.
7015
7016         * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
7017
7018         * sysdeps/m68k/fpu/__math.h: Include <errno.h>.  Replace obsolete
7019         __CONSTVALUE by attribute.
7020         (floor): Round to negative infinity.
7021         (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
7022         clash when compiling source.
7023         (pow): Handle x == 0 and x < 0.
7024         (ceil, __isinf, __isnan): Fix register constraints.
7025         (__isinfl, __isnanl): Added.
7026         * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
7027         sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
7028         sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
7029
7030         * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
7031         assembler syntax.
7032
7033         * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
7034         argument.
7035
7036         * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
7037         clock_t conversion.
7038         (clock): Don't multiply by CLOCKS_PER_SEC.
7039
7040         * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
7041
7042         * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
7043         __end.
7044
7045         * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
7046
7047         * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
7048
7049         * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
7050
7051 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7052
7053         * stdlib/strtol.c: Return correct pointer for strings
7054         like "0xyz" and base 0 or 16.
7055
7056         * string/strxfrm.c: Handle case for LENGTH == 0 correct.
7057
7058         * sunrpc/etc.rpc: Add some more known protocols.
7059
7060 Fri Jan 12 13:40:01 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7061
7062         * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
7063
7064         * posix/glob.c (glob): Add parens in glob call flags arg for
7065         GLOB_BRACE case.
7066
7067         * string/string.h (strdupa): New macro.
7068
7069         * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
7070         terminator on empty set.  From drepper.
7071
7072 Thu Jan 11 13:09:20 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7073
7074         * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
7075         referent for STB_LOCAL.
7076
7077 Wed Jan 10 10:11:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7078
7079         * time/africa, time/antarctica, time/asia, time/australasia,
7080         time/europe, time/northamerica, time/pacificnew, time/solar87,
7081         time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
7082
7083 Tue Jan  9 16:10:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7084
7085         * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
7086         segment to find location, mprotect excess region to no access,
7087         don't munmap it.
7088
7089         * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
7090         KERN_NO_SPACE for fixed location, deallocate it and try again.
7091
7092 Mon Jan  8 17:43:23 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7093
7094         * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
7095         * locale/hash.c: Renamed to locale/locfile-hash.c.
7096
7097 Sat Jan  6 16:39:14 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7098
7099         * Makefile (subdirs): Added db.
7100
7101         * resolv/Makefile (routines): Add res_data.
7102         * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
7103         Updated from BIND 4.9.3 final release.
7104
7105         * elf/dynamic-link.h (elf_get_dynamic_info): Handle
7106         processor-specific tags.
7107         (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
7108
7109         * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
7110         * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
7111
7112         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
7113         arg LAZY.  Only do our work if LAZY and there is a DT_JMPREL record.
7114         * elf/dl-reloc.c (_dl_relocate_object): Call
7115         elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
7116
7117         * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
7118         Align end of load segment only to page size, not to segment alignment.
7119
7120 Thu Jan  4 11:35:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7121
7122         * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
7123         preemption interface.
7124
7125         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7126         Use _hurdsig_catch_memory_fault.
7127
7128         * hurd/Makefile (headers): Add hurd/sigpreempt.h.
7129         (sig): Add catch-signal.
7130
7131         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
7132         Rewritten using a preempter in new interface.
7133         * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
7134         (_hurdsig_catch_memory_fault): New macro.
7135
7136 Wed Jan  3 20:23:42 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7137
7138         * hurd/catch-signal.c: New file.
7139
7140         * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
7141
7142         * hurd/hurdsig.c: Use new hurdfault.h interface.
7143         (abort_all_rpcs): Mutate return value to EINTR in threads whose
7144         replies we will wait for.
7145
7146         * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
7147         do ourselves last.
7148
7149 Wed Jan  3 19:17:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
7150
7151         * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
7152         to auth_makeauth() in the right order.
7153
7154 Wed Jan  3 17:19:04 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7155
7156         * sysdeps/generic/strsep.c: Rewritten.
7157
7158         * sysdeps/mach/hurd/fork.c: Use a different workaround for the
7159         suspended page fault deadlock kernel bug: thread_abort our signal
7160         thread first thing after proc_dostop.
7161
7162         * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
7163         recognize rootness properly.
7164
7165 Tue Jan  2 00:50:10 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7166
7167         * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
7168         (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
7169         * hurd/hurd/sigpreempt.h: New file.
7170         * hurd/preempt-sig.c: Rewritten with new interface.
7171         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
7172         preempters being unwound past.
7173         * hurd/hurdsig.c: Use new signal preemption interface.
7174
7175         * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
7176         release.
7177
7178         * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
7179         compatibility.
7180
7181         * misc/queue.h: New file, incorporated from 4.4BSD.
7182         * misc/Makefile (headers): Add queue.h.
7183
7184         * posix/sys/types.h [__USE_BSD]: Include endian.h.
7185
7186         * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
7187         New macros.
7188
7189 Thu Dec 28 10:21:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7190
7191         * sysdeps/generic/confname.h: Define all names as self-referential
7192         macros so #ifdef works.
7193
7194         * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
7195         of _hurd_signal_preempters[SIGNO].
7196
7197 Mon Dec 25 20:56:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7198
7199         * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
7200         EADDRINUSE.  If translated node doesn't grok ifsock protocol,
7201         return EADDRINUSE.
7202
7203         * sysdeps/mach/hurd/connect.c: Make address arg
7204         `const struct sockaddr_un *'.
7205         The redecl is kosher and avoids another variable for AF_LOCAL case.
7206         * sysdeps/mach/hurd/sendto.c: Likewise.
7207         * sysdeps/mach/hurd/bind.c: Likewise.
7208
7209         * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
7210         code for GCC >= 2.7; use __transparent_union__ for name safety;
7211         add several sockaddr flavors.
7212         (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
7213         constructing the transparent union declarations.
7214         (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
7215         (bind, connect, sendto): Make the sockaddr argument use that.
7216
7217 Fri Dec 22 00:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7218
7219         * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
7220         old vector.
7221         * sysdeps/mach/hurd/setuid.c: Likewise.
7222
7223         * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
7224         right thing.
7225         * sysdeps/mach/hurd/setgid.c: Likewise.
7226         * sysdeps/mach/hurd/setreuid.c: Likewise.
7227         * sysdeps/mach/hurd/setregid.c: Likewise.
7228         * sysdeps/mach/hurd/setegid.c: Likewise.
7229         * sysdeps/mach/hurd/seteuid.c: Likewise.
7230
7231         * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
7232         proc_dostop call to work around kernel paging bug.
7233
7234 Fri Dec 22 00:38:00 1995  H.J. Lu  <hjl@nynexst.com>
7235
7236         * stdio-common/vfscanf.c: Correctly handle white space skipping.
7237         * stdio-common/Makefile (tests): Add bug11.
7238         * stdio-common/bug11.c: New file.
7239
7240 Thu Dec 21 12:19:32 1995  Miles Bader  <miles@gnu.ai.mit.edu>
7241
7242         * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
7243         instead of putting it (and other uids) in the gids and leaving the
7244         old uids as is.
7245
7246 Wed Dec 20 18:23:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7247
7248         * stdio/internals.c (flushbuf): If the target is -1, always
7249         discard the buffer of read data.
7250         Only set TWIDDLED flag in !ALIGNED case.
7251         Never increment target or offset when old value is -1.
7252
7253 Tue Dec 19 17:00:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7254
7255         * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
7256         pgrp changes.
7257
7258 Mon Dec 18 13:40:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7259
7260         * stdio/fread.c: Don't increment __offset when it's -1.
7261
7262         * elf/rtld.c (dl_main): Prepend tab to "statically linked".  Exit
7263         0 in that case.
7264
7265         * misc/err.c (vwarnx, vwarn): Fix major brainos.
7266
7267         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
7268         inheritance.
7269
7270 Sun Dec 17 15:56:35 1995  Miles Bader  <miles@gnu.ai.mit.edu>
7271
7272         * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
7273
7274 Sat Dec 16 10:33:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7275
7276         * Makerules: Use $(do-install-so) for installing shared objects.
7277         (do-install-so): New canned sequence.  Make a symlink LIB.so after
7278         installing LIB.so.VERSION.
7279
7280         * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
7281
7282 Fri Dec 15 04:41:22 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7283
7284         * stdio-common/Makefile (tests): Add bug10.
7285         * stdio-common/bug10.c: New file.  From HJ Lu.
7286
7287         * stdio-common/tstdiomisc.c: Make more test-suite like: exit
7288         status tells about successful run.
7289
7290         * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
7291         format correctness.
7292         Correct handling of trailing white spaces in format + EOF.
7293
7294 Fri Dec 15 01:31:56 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7295
7296         * stdio-common/Makefile (tests): Add bug8 and bug9.
7297         * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
7298
7299         * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
7300
7301         * stdlib/strtod.c: Correct spelling: nominator -> numerator.
7302         Thanks to Jim Meyering.
7303
7304 Sat Nov 25 06:05:12 1995  H.J. Lu  <hjl@nynexst.com>
7305
7306         * stdio-common/vfscanf.c: Always check width !=0.
7307         Correctly handle %%.
7308
7309 Thu Dec 14 02:28:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7310
7311         * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
7312         and cast STREAM to DIR * before passing to readdir and closedir.
7313
7314 Wed Dec 13 22:06:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7315
7316         * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
7317         after aborting RPCs but before calling proc_mark_stop.
7318
7319 Mon Dec 11 20:07:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7320
7321         * posix/glob.c [! STDC_HEADERS]: Declare getenv.
7322         (glob): Avoid using function as value.
7323
7324         * elf/rtld.c (dl_main): When mapping argument executable, set
7325         l_name to "", not l_libname.
7326         After loading DT_NEEDED library, set its l_type to lt_library.
7327
7328         * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
7329         VM_INHERIT.  We can't handle MAP_INHERIT easily.
7330         Handle non-page-aligned addresses if congruent to offset.
7331
7332         * elf/dl-init.c: Skip the initializer for l_type lt_executable
7333         with l_name "". Start at _dl_loaded; don't skip the first element.
7334
7335         * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
7336         (MAP_COPY): Define to MAP_PRIVATE if undefined.
7337         (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
7338         If file it ET_EXEC, set its l_type to lt_executable.
7339
7340 Sun Dec 10 09:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7341
7342         * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
7343
7344 Fri Dec  8 13:04:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7345
7346         * locale/error.c, locale/error.h: Files removed.
7347         * locale/Makefile (distribute): Remove error.h.
7348         (lib-modules): Remove error.
7349
7350         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
7351         magic, return ENXIO if no ctty.
7352
7353         * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
7354         mapping if vm_map fails for that reason.
7355
7356         * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
7357         GLOB_TILDE, GLOB_NOMAGIC.
7358         (glob): Use stat instead of lstat to determine directoriness.
7359         * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
7360         New flag bits.
7361         (__GLOB_FLAGS): Include them.
7362         (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
7363         gl_stat.
7364
7365         * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
7366
7367         * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
7368         define all the bit values.
7369         (MAP_*, MCL_*): Macros removed.
7370
7371 Thu Dec  7 02:27:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7372
7373         * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
7374         Updated from BIND 4.9.3-BETA27.
7375
7376 Wed Dec  6 18:44:01 1995  Miles Bader  <miles@gnu.ai.mit.edu>
7377
7378         * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
7379
7380         * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
7381         we get a delayed reply.
7382         Only grab values out of entries in TYPES that have SELECT_RETURNED
7383         turned on, and turn it on whenever an rpc returns.
7384         Only clear bits in the user's fdsets -- those needing to be set
7385         should be already.
7386         Use SELECT_ALL in appropiate places.
7387         (SELECT_RETURNED, SELECT_ALL): New macros.
7388
7389 Wed Dec  6 09:10:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7390
7391         * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
7392
7393         * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
7394
7395 Tue Dec  5 14:00:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7396
7397         * misc/Makefile (headers): Add error.h, err.h.
7398         (routines): Add error, err.
7399         (gpl2lgpl): New variable.
7400         * misc/err.c: New file.
7401         * misc/err.h: New file.
7402         * misc/error.c, misc/error.h: New files.
7403
7404         * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
7405
7406         * Makeconfig (+link): Translate libc% from $^, not just libc.a.
7407         (link-libc): Append $(libc.so-version) to libc.so.
7408         (built-program-cmd): Fix comma usage.
7409         * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
7410         symlink to libc.so in the build directory.
7411         * Rules ($(others) $(tests)): Depend on the library that appears
7412         in $(link-libc).
7413         (%.out): Use $(built-program-cmd) in commands.
7414
7415         * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
7416
7417         * sysdeps/generic/setenv.c: Added canonical portability cruft.
7418         (setenv): Use realloc on LAST_ENVIRON instead of always copying.
7419         (unsetenv): New function.
7420         * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
7421         * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
7422
7423 Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7424
7425         * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
7426
7427         * libio/iofscanf.c: Remove file.
7428
7429         * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
7430         termination.
7431
7432         * libio/iopopen.c: New file from GNU libio.
7433
7434         * libio/memstream.c: Fixed bug in fclose handling.  Instead of
7435         providing a close callback we need a finish callback.
7436
7437         * libio/pclose.c: New file.  Derived from popen.c in GNU libio.
7438
7439         * posix/gnu/types.h: Fixed typo.
7440
7441         * stdio-common/errnobug.c: fputs returns EOF in error case.  Do
7442         not test for != 0.
7443
7444         * stdio-common/printf-parse.h (parse_one_spec): Do not force
7445         padding with ' ' if precision is given.  Fix by HJ Lu.
7446
7447         * stdio-common/printf_fp.c: Fix comment.
7448
7449         * stdio-common/tfformat.c, stdio-common/tiformat.c,
7450         stdio-common/tstdiomisc.c: New files from GNU libio test suite.
7451
7452         * stdio-common/tstgetln.c: Provide ssize_t type when testing
7453         libio.
7454
7455         * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
7456         (vfprintf): Cleasr args_type array before using it.
7457         When printing 0 as an integer with precision 0 nothing must be
7458         written for the number.
7459         Based on patch by HJ Lu.
7460
7461         * stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
7462         have a dynamically extended buffer.
7463
7464         * stdlib/strtod.c: Merge with version in Linux libc.  This fixes
7465         some bugs with handling of very small numbers and has different
7466         solution for formaer patches.
7467
7468         * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
7469         macros r1 and r2 to t1, and t2 resp.  This is necessary because
7470         glibc headers also define r1.
7471
7472 Mon Dec  4 12:10:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7473
7474         * stdlib/gen-mpn-copy (translations): Updated for new layout in
7475         GMP 1.910.
7476
7477         * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
7478         made global.
7479         (malloc): Caller changed.
7480         * malloc/realloc.c (realloc): Call __malloc_initialize if
7481         necessary, before checking hook.
7482         * malloc/malloc.h: Declare __malloc_initialize.
7483
7484         * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
7485         as integer_t arg in RPC.
7486
7487 Sat Dec  2 03:47:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7488
7489         * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
7490         (_hurd_set_brk): Try to allocate more space when we run out.
7491
7492         * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
7493         zero and examine it again.
7494         * sysdeps/unix/sysv/linux/i386/brk.c: New file.
7495         * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
7496         * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
7497         * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
7498         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
7499         Invoke this macro before calling DL_MAIN.
7500
7501         * malloc/malloc.c (malloc): Do initialization here, before
7502         checking the hook.
7503         (_malloc_internal): Don't do it here.
7504
7505 Wed Nov 29 12:30:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7506
7507         * libio/vsnprintf.c (__vsnprintf): Define as alias.
7508         * libio/iovsscanf.c (__vsscanf): Define as alias.
7509         * asprintf.c: Remove libio adaptation code added by drepper.
7510         * dprintf.c: Likewise.
7511         * printf.c: Likewise.
7512         * scanf.c: Likewise.
7513         * snprintf.c: Likewise.
7514         * sprintf.c: Likewise.
7515         * sscanf.c: Likewise.
7516         * vprintf.c: Likewise.
7517         * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
7518         function.
7519         (vfscanf): Define unconditionally.
7520
7521         * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
7522         zero for value.
7523
7524         * misc/getpass.c: Write a newline after reading the unechoed
7525         password.
7526
7527 Mon Nov 27 19:24:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7528
7529         * posix/Makefile (routines): Add getsid.
7530         * sysdeps/unix/sysv/linux/getsid.S: New file.
7531         * sysdeps/mach/hurd/getsid.c: New file.
7532         * sysdeps/stub/getsid.c: New file.
7533         * posix/unistd.h [__USE_GNU]: Declare getsid.
7534
7535 Sun Nov 26 12:44:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7536
7537         * libc-symbols.h (N_): New macro.
7538
7539 Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7540
7541         * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
7542         malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
7543         resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
7544         sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
7545         sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
7546         sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
7547         sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
7548         sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
7549         strings.
7550
7551 Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7552
7553         * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
7554
7555 Thu Nov 23 02:21:55 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7556
7557         * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
7558         New files.
7559         * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
7560         mlock, munlock, mlockall, and munlockall.
7561
7562 Thu Nov 23 18:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7563
7564         * configure.in (--enable-libio): Set $stdio based on $enableval,
7565         not always to libio.
7566
7567 Thu Nov 23 18:06:48 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
7568
7569         * malloc/malloc.c (_malloc_internal): Can't use
7570         get_contiguous_space when the heap info table
7571         will be growing.  Account for new contiguous space in _heaplimit.
7572
7573 Wed Nov 22 12:37:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7574
7575         * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
7576         for errno.
7577
7578         * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
7579         alias for _IO_vfprintf.
7580
7581         * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
7582
7583         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
7584         __fpu_control instead of ___fpu_control.
7585         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
7586         (___fpu_control): Renamed to __fpu_control.
7587         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
7588         * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
7589
7590         * elf/dl-minimal.c: New file.
7591         * elf/Makefile (rtld-routines): Add dl-minimal.
7592         * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
7593         Functions moved to dl-minimal.c.
7594         * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
7595         sigjmp_save, longjmp): Likewise.
7596
7597         * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
7598         to &_end, regardless of PIC.
7599
7600         * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
7601
7602 Tue Nov 21 14:12:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7603
7604         * malloc/malloc.c (align): Don't check contiguity and call abort.
7605
7606         * hurd/hurdsig.c (post_reply): Function removed.
7607         (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
7608         Take single callback fn arg instead of reply port and type.
7609         (_hurd_internal_post_signal): Callers changed.
7610         Cache reply stub fn ptr in local var before UNTRACED might be changed.
7611
7612         * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
7613         PROT_READ|PROT_WRITE copy mapping.  Pass a proper vm_inherit_t to
7614         vm_map.
7615
7616         * elf/rtld.c (_dl_start): For --list, do output and exit before
7617         relocating.
7618
7619 Mon Nov 20 16:19:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7620
7621         * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
7622         get .c and .h files.
7623
7624         * malloc/malloc.c (align): Use abort instead of assert.
7625
7626 Sun Nov 19 18:23:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7627
7628         * Makeconfig (+includes): Add $($(stdio)-include).
7629         (libio-include): New variable.
7630
7631         * stdlib/strtod.c: Put weak_symbol after function defn.
7632         * stdlib/strtol.c: Likewise.
7633
7634         * configure.in (--enable-libio): If not present, set $stdio to
7635         "default".  Move stdio/libio check to end, so sysdeps fragments
7636         can affect it.  Reset $stdio to "stdio" if it's "default".
7637         * sysdeps/unix/sysv/linux/configure: New file.
7638
7639 Sat Nov 18 16:46:01 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
7640
7641         * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
7642         libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
7643         libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
7644         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
7645         libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
7646         libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
7647         libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
7648         libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
7649         libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
7650         libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
7651         libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
7652         libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
7653         libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
7654         libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
7655         libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
7656         New files.  Slightly modified version from Linux libc.
7657
7658         * libio/memstream.c, libio/vdprintf.c: New files for functions not
7659         (yet) part of GNU libio.
7660
7661         * libio/iofopncook.c: Implementation of `fopencookie', mainly written
7662         by Per Bothner.
7663
7664         * stdio-common/getline.c: Adapted to libio.
7665         * stdio-common/snprintf.c: Adapted to libio.
7666         * stdio-common/vfprintf.c: Adapted to libio.
7667         * stdio-common/vfscanf.c: Adapted to libio.
7668         * sysdeps/posix/tempname.c: Adapted to libio.
7669
7670 Fri Nov 17 17:57:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7671
7672         * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
7673
7674         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7675         function.
7676
7677         * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
7678         (_hurdsig_fault_init): Remove #if 0 from setting exception port.
7679         Insert send right for SIGEXC before thread_set_special_port.
7680         * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
7681         (_hurdsig_init): Remove #if 0 from setting exception port.
7682
7683         * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
7684         HURD_MSGPORT_RPC macro.
7685
7686 Thu Nov 16 06:07:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7687
7688         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7689         function.
7690         (_dl_sysdep_start): Move cleanup code there.
7691
7692         * Makeconfig (default-rpath): New variable.
7693         (link-libc): Use it.
7694         * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
7695         * elf/rtld.c (_dl_rpath): New variable.
7696         (_dl_start): Set it from rtld_map's DT_RPATH.
7697         Call _dl_setup_hash on rtld_map.
7698         (dl_main): Cache address of _exit in variable before relocating,
7699         and use that in later calls.  Call _dl_sysdep_start_cleanup before
7700         relocating.  Keep track of dependency order while loading; remove
7701         rtld_map from chain, and reinsert in proper order if there is a
7702         dependency on it.
7703
7704         * sysdeps/generic/Makefile (make_siglist): Pass
7705         -DSIGNUM_H=... with config's signum.h location.
7706         * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
7707         signal numbers.
7708         (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
7709         (main): Deansideclize output.
7710
7711         * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
7712         of DEFAULT_RPATH macro.
7713         * elf/Makefile: Undo last change.
7714
7715         * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
7716
7717 Wed Nov 15 19:22:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7718
7719         * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
7720         error if weak.
7721
7722         * elf/Makefile (default-rpath): New variable.
7723         (CPPFLAGS): Append -DDEFAULT_RPATH=....
7724         * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
7725         hard-coded "/lib:/usr/lib".
7726
7727         * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
7728         instead of stdio.
7729         (_dl_sysdep_start): If passed user entry is zero and
7730         EXEC_STACK_ARGS flag set, reset user entry to &_start.
7731
7732         * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
7733         DT_HASH element.
7734
7735         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
7736         repeat weak decl using weak_symbol macro, in case using broken GCC
7737         (<2.8).
7738
7739 Wed Nov 15 18:49:55 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7740
7741         * sysdeps/i386/isnanl.c: New file.
7742         * sysdeps/i386/isinfl.c: New file.
7743
7744 Tue Nov 14 18:44:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7745
7746         * malloc/free.c (free): Moved null and aligned_blocks checks
7747         inside _free_internal.
7748
7749 Mon Nov 13 15:23:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7750
7751         * malloc/malloc.c (morecore): Fix inverted test in allocating new
7752         info table.
7753
7754         * malloc/malloc.c (align): Fix assertion.
7755
7756         * malloc/malloc.c: Include assert.h.
7757
7758         * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
7759
7760         * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
7761         (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
7762
7763 Fri Nov 10 14:15:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7764
7765         * malloc/malloc.c (align): Assert that space for alignment
7766         adjustment is same original space.
7767
7768         * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
7769         arg to vm_address_t.
7770
7771         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
7772         skip straight to pending check.  When UNTRACED, resume process
7773         from suspension first.
7774
7775         * intl/Makefile (headers): New variable, libintl.h.
7776         [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
7777         * configure.in: Check for --with-gettext arg.
7778
7779 Fri Nov 10 13:51:30 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
7780
7781         * malloc/malloc.c (get_contiguous_space): New function.
7782         (morecore): Rewrite allocating new malloc info table.
7783         (_malloc_internal): Use get_contiguous_space.
7784
7785 Fri Nov 10 13:03:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7786
7787         * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
7788         _hurd_msgport to be destroyed.
7789
7790         * Makerules (installed-libcs): Filter out %_pic.a.
7791
7792         * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
7793         to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
7794
7795         * hurd/Makefile (user-interfaces): Add hurd/process_request.
7796
7797 Wed Nov  8 16:31:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7798
7799         * termios/Makefile (headers): Add sys/ttychars.h.
7800         * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
7801         for compatibility.
7802
7803         * signal/signal.h [__USE_BSD] (sig_t): New typedef.
7804
7805 Wed Nov  8 15:12:47 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
7806
7807         * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
7808         proc server that we are now traced.
7809
7810 Tue Nov  7 12:29:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7811
7812         * elf/Makefile (ldd): Make it executable.
7813
7814         * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
7815
7816         * Makeconfig (slibdir): New variable.
7817         * Makerules (install): Install libc.so in $(slibdir).
7818         * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
7819         in $(slibdir).
7820
7821         * elf/linux-compat.c: New file.
7822         * elf/Makefile (distribute): Add linux-compat.c.
7823         (generated): Add librtld.so.
7824         [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
7825         [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
7826         (librtld.so): New target.
7827         (ld.so, ld-linux.so.1): Make from librtld.so.
7828
7829         * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
7830         call our own DT_INIT if we have one (and then clear it).
7831         (__dgettext): New weak function.
7832
7833         * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
7834         by hand instead.
7835
7836         * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
7837         instead of snprintf.
7838
7839         * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
7840         BUF[BUFLEN].
7841
7842         * elf/rtld.c (rtld_map): New static variable.
7843         (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
7844         bootstrapping.  Then copy data into `rtld_map'.
7845         (dl_main): Finish filling in rtld_map and link it into the chain,
7846         instead of allocating a new structure.
7847         (dl_main): Call _dl_compat_init if it is defined (use weak ref).
7848
7849         * elf/dlsym.c: Fix last change: move REF out of `doit'.
7850
7851 Mon Nov  6 16:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7852
7853         * elf/dlsym.c: Return the proper value, not just the defining
7854         object's loadbase.
7855
7856 Sun Nov  5 16:09:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7857
7858         * stdio-common/vfprintf.c (%c): Count the character itself towards
7859         the field width in all cases.
7860
7861         * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
7862         __vm_deallocate arg to vm_address_t.
7863
7864 Fri Nov  3 17:27:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7865
7866         * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
7867         socket_create_address.
7868         * sysdeps/mach/hurd/connect.c: Likewise.
7869         * sysdeps/mach/hurd/bind.c: Likewise.
7870
7871         * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
7872         args to proc_getprocinfo.
7873         * sysdeps/mach/hurd/getpriority.c: Likewise.
7874
7875         * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
7876
7877 Thu Nov  2 19:24:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7878
7879         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
7880
7881 Tue Oct 31 00:07:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7882
7883         * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
7884         PI_FETCH_TASKINFO to proc_getprocinfo and through
7885         _hurd_priority_which_map.
7886
7887         * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
7888         _hurd_priority_which_map.
7889         * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
7890         passed through to proc_getprocinfo RPC.
7891         * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
7892
7893         * sysdeps/mach/hurd/group_member.c: New file.
7894         * sysdeps/generic/group_member.c: New file.
7895
7896         * Makerules (lib-noranlib): Don't depend on $(install-lib).
7897         (others): Do.
7898         * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
7899
7900 Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7901
7902         * Rules (others): Depend on $(extra-objs).
7903
7904         * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
7905         * posix/Makefile (routines): Add group_member.
7906
7907         * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
7908
7909         * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
7910         SIG operand in asm so it must be a register.
7911         Add dead return to quiet gcc warning.
7912
7913         * Makerules (sysd-rules): Write a defn for sysd-rules-done.
7914         [! sysd-rules-done]: Inhibit deps.
7915
7916 Thu Oct 26 23:11:11 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7917
7918         * sysdeps/unix/sysv/linux/poll.c: Don't define as stub.  Use
7919         simulation of system call using select.
7920
7921         * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
7922
7923         * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
7924
7925         * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
7926         name usage (new->act, old->oact).
7927         Correct asm statement because of gcc strangeness.
7928
7929         * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
7930
7931         * sunrpc/clnt_perr.c: Remove declaration of sys_errlist.  They
7932         conflict with the ones in stdio.h.
7933
7934         * string/tester.c: %Z is no complete format.  Change to %Zd.
7935
7936 Thu Oct 26 18:13:33 1995  Miles Bader  <miles@gnu.ai.mit.edu>
7937
7938         * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
7939         * sysdeps/mach/hurd/link.c (__link): Ditto.
7940         * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
7941         * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
7942         Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
7943
7944 Thu Oct 26 00:11:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7945
7946         * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
7947
7948         * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
7949         on syscall_error.  For PIC, it is a local label;
7950         for non-PIC, JUMPTARGET expands to the unadorned name anyway.
7951         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
7952         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7953         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7954         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
7955         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7956         * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
7957
7958 Thu Oct 26 03:01:22 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7959
7960         * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
7961         comment to the necessary ones.  Add _readv and _writev.
7962
7963         * sysdeps/unix/configure.in: Change syntax for system call test
7964         candidates and adapt sed script for this.  Now use : to separate
7965         syscall name and file name.
7966
7967         * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
7968         number is now set is DO_CALL.  So call with additional argument.
7969         (DO_CALL): Takes an additional argument.  Load system call
7970         number according to new argument.
7971         (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
7972         * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
7973         locally using SYSCALL_ERROR_HANDLER macro.
7974         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
7975         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
7976         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
7977         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
7978         * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
7979         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
7980         Don't use DO_CALL macro; instead use lower level macros for better
7981         control.
7982
7983         * sysdeps/unix/sysv/linux/sigaction.h: New file.
7984         * sysdeps/unix/sysv/linux/sigaction.S: File removed.
7985         * sysdeps/unix/sysv/linux/signal.S: File removed.
7986
7987 Wed Oct 25 14:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7988
7989         * hurd/hurdstartup.c (_hurd_startup): Use new
7990         exec_startup_get_info RPC from exec_startup.defs
7991         in place of old exec_startup from exec.defs.  Remove kludge to
7992         guess user entry and phdr locations, since the new RPC gives us
7993         that info.
7994
7995         * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
7996         * sysdeps/generic/_strerror.c: Undo last change.
7997
7998         * sysdeps/unix/sysv/linux/stat.c: New file.
7999         * sysdeps/unix/sysv/linux/fstat.c: New file.
8000         * sysdeps/unix/sysv/linux/lstat.c: New file.
8001         * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
8002         * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
8003         * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
8004
8005 Tue Oct 24 15:22:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8006
8007         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8008         New macro.
8009         (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
8010
8011         * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
8012         only #ifndef PIC.
8013
8014         * Makeconfig (built-program-cmd): New variable.
8015         * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
8016         * time/Makefile (zic-cmd): Likewise.
8017
8018         * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
8019
8020         * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
8021         * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
8022         make `others' rather than `lib-noranlib' depend on the libraries.
8023
8024         * sysdeps/unix/configure.in: Check for fchdir syscall.
8025         Improve sed script to allow / on rhs without / on lhs.
8026
8027 Thu Oct 19 03:47:32 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8028
8029         * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
8030
8031         * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
8032
8033         * sysdeps/unix/sysv/linux/select.S: New file.
8034
8035 Wed Oct 18 03:33:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8036
8037         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
8038         SYSCALL_PIC_SETUP before jumping to syscall_error.
8039         * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
8040         (PSEUDO): Use it before jumping to syscall_error.
8041         * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
8042         expect it in %ebx on entry.  Pop old %ebx value off stack after
8043         using it.
8044
8045         * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
8046         them.
8047
8048         * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
8049
8050         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
8051         `fd/', pass the right pointer to strtol to parse the number.
8052
8053 Tue Oct 17 23:00:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8054
8055         * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
8056         of stdio/_itoa.h.
8057
8058 Tue Oct 17 19:51:17 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8059
8060         * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
8061         register %ebx before calling __xstat through PLT.
8062
8063         * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
8064
8065         * sysdeps/unix/sysv/linux/sigset.h: Remove file.
8066
8067 Tue Oct 17 01:21:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8068
8069         * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
8070         stdio/_itoa.h.
8071         * hurd/hurdlookup.c: Likewise.
8072
8073         * hurd/hurd/signal.h: Declare hurd_preempt_signals and
8074         hurd_unpreempt_signals.
8075
8076         * stdio/stdio.h: Declare __snprintf and __vsnprintf.
8077
8078         * stdio-common/psignal.c: Translate signal description strings.
8079         * string/strsignal.c: Likewise.
8080         * sysdeps/generic/_strerror.c (_strerror_internal): Translate
8081         error strings.
8082         * sysdeps/mach/_strerror.c: Likewise.
8083
8084         * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
8085         call __vsnprintf.
8086         (snprintf): Define as weak alias.
8087         * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
8088         (vsnprintf): Define as weak alias.
8089
8090 Mon Oct 16 03:22:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8091
8092         * Makerules (install-lib): Filter out %_pic.a; install only the
8093         linked shared objects.
8094
8095         * locale/Makefile (aux): Add SYS_libc.
8096         * locale/SYS_libc.c: New file.
8097         * libc-symbols.h [! ASSEMBLER] (_): New macro.
8098
8099         * configure.in (libc_cv_asm_set_directive): Link program into
8100         conftest instead of letting it default to a.out.
8101
8102         * elf/Makefile (install-others): Add missing slash.
8103
8104         * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
8105         won't search LD_LIBRARY_PATH.
8106
8107         * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
8108         * configure.in: Grok arg --enable-libio.
8109         ($stdio = libio): Define USE_IN_LIBIO.
8110         * config.h.in (USE_IN_LIBIO): Add #undef.
8111         * config.make.in (stdio): New variable, set by configure.
8112         * Makeconfig (stdio): New variable.
8113         * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
8114         stdio/stdio.h.
8115         * stdio-common/Makefile: New file.
8116         * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
8117         * stdio/_itoa.c: Moved to stdio-common.
8118         * stdio/_itoa.h: Moved to stdio-common.
8119         * stdio/asprintf.c: Moved to stdio-common.
8120         * stdio/bug1.c: Moved to stdio-common.
8121         * stdio/bug1.input: Moved to stdio-common.
8122         * stdio/bug2.c: Moved to stdio-common.
8123         * stdio/bug3.c: Moved to stdio-common.
8124         * stdio/bug4.c: Moved to stdio-common.
8125         * stdio/bug5.c: Moved to stdio-common.
8126         * stdio/bug6.c: Moved to stdio-common.
8127         * stdio/bug6.input: Moved to stdio-common.
8128         * stdio/bug7.c: Moved to stdio-common.
8129         * stdio/dprintf.c: Moved to stdio-common.
8130         * stdio/errnobug.c: Moved to stdio-common.
8131         * stdio/getline.c: Moved to stdio-common.
8132         * stdio/getw.c: Moved to stdio-common.
8133         * stdio/perror.c: Moved to stdio-common.
8134         * stdio/printf-parse.h: Moved to stdio-common.
8135         * stdio/printf-prs.c: Moved to stdio-common.
8136         * stdio/printf.c: Moved to stdio-common.
8137         * stdio/printf.h: Moved to stdio-common.
8138         * stdio/printf_fp.c: Moved to stdio-common.
8139         * stdio/psignal.c: Moved to stdio-common.
8140         * stdio/putw.c: Moved to stdio-common.
8141         * stdio/reg-printf.c: Moved to stdio-common.
8142         * stdio/scanf.c: Moved to stdio-common.
8143         * stdio/snprintf.c: Moved to stdio-common.
8144         * stdio/sprintf.c: Moved to stdio-common.
8145         * stdio/sscanf.c: Moved to stdio-common.
8146         * stdio/tempnam.c: Moved to stdio-common.
8147         * stdio/temptest.c: Moved to stdio-common.
8148         * stdio/test-fseek.c: Moved to stdio-common.
8149         * stdio/test-fwrite.c: Moved to stdio-common.
8150         * stdio/test-popen.c: Moved to stdio-common.
8151         * stdio/test_rdwr.c: Moved to stdio-common.
8152         * stdio/tmpfile.c: Moved to stdio-common.
8153         * stdio/tmpnam.c: Moved to stdio-common.
8154         * stdio/tst-fileno.c: Moved to stdio-common.
8155         * stdio/tst-printf.c: Moved to stdio-common.
8156         * stdio/tstgetln.c: Moved to stdio-common.
8157         * stdio/tstgetln.input: Moved to stdio-common.
8158         * stdio/tstscanf.c: Moved to stdio-common.
8159         * stdio/tstscanf.input: Moved to stdio-common.
8160         * stdio/vfprintf.c: Moved to stdio-common.
8161         * stdio/vfscanf.c: Moved to stdio-common.
8162         * stdio/vprintf.c: Moved to stdio-common.
8163         * stdio/xbug.c: Moved to stdio-common.
8164         * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
8165         stdio-common instead of stdio.
8166         * sysdeps/unix/Makefile (errlist.c rules): Likewise.
8167         * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
8168         function.
8169         * stdio-common/dprintf.c: Likewise.
8170         * stdio-common/printf.c: Likewise.
8171         * stdio-common/scanf.c: Likewise.
8172         * stdio-common/snprintf.c: Likewise.
8173         * stdio-common/sprintf.c: Likewise.
8174         * stdio-common/sscanf.c: Likewise.
8175         * stdio-common/vprintf.c: Likewise.
8176
8177         * Makerules: Include $(+depfiles) directly instead of generating
8178         depend-$(subdir).
8179         (depend-$(subdir)): Target removed.
8180         (common-clean): Don't remove depend-$(subdir).
8181
8182         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
8183         (config-LDFLAGS): Variable removed.
8184
8185         * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
8186         * sysdeps/mach/hurd/bind.c: Likewise.
8187         * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
8188         calling convention.
8189
8190         * hurd/hurdexec.c: Undo last change (10 Oct 95).
8191
8192 Sun Oct 15 21:04:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8193
8194         * hurd/hurd/lookup.h: New file.
8195         * hurd/hurdlookup.c (__file_name_lookup_under): New function.
8196         (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
8197         __hurd_file_name_split): Rewritten to take callback functions for
8198         using any needed init or dtable port, instead of passing in crdir
8199         and cwdir ports.
8200         (__file_name_lookup, __file_name_split): Use new calling
8201         convention; pass _hurd_ports_use and __getdport as the callback
8202         functions.
8203
8204         * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
8205         of __hurd_file_name_lookup.
8206         * sysdeps/mach/hurd/chdir.c: Likewise.
8207         * sysdeps/mach/hurd/fchdir.c: Likewise.
8208         * hurd/fchroot.c: Likewise.
8209
8210         * stdlib/Makefile (mpn-found): Don't omit %.s.
8211         (mpn-copy-sysdep): Omit files in nonexistent directories.
8212         (copy-mpn): Commit files to CVS.
8213         * stdlib/gen-mpn-copy (translations): Update translations for GMP
8214         1.906.7.
8215
8216         * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
8217
8218 Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8219
8220         * malloc/malloc.c (_malloc_internal): Performance fix.  Move
8221         if statement out of loop.
8222
8223         * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
8224         implementation using GMP functions.  Contributed by
8225         Torbjorn Granlund and Ulrich Drepper.
8226
8227         * stdio/test_rdwr.c: Include <errno.h>.
8228
8229         * sysdeps/i386/i586/Implies: New file.
8230
8231         New highly optimized string functions for i[345]86.
8232         * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
8233         * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
8234         * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
8235         * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
8236         * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
8237         * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
8238         * sysdeps/i386/i586/strlen.S: New file.
8239         * sysdeps/i386/memchr.c: Removed.  There is now an assembler version.
8240
8241         * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
8242         not correspond to used values.
8243
8244         * sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
8245         around a kernel header file.
8246         * sysdeps/unix/sysv/linux/Dist: Add it.
8247         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
8248         Likewise.
8249
8250         * sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
8251         defining ourself we use a kernel header file.
8252
8253         * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
8254         call handler for i586.
8255
8256         * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
8257
8258 Thu Oct 12 15:45:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8259
8260         * hurd/hurd.h (file_name_lookup_under): Declare it.
8261         * hurd/Makefile (headers): Add hurd/lookup.h.
8262
8263         * hurd/hurdinit.c (_hurd_ports_use): New function.
8264         * hurd/hurd.h (_hurd_ports_use): Declare it.
8265         (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
8266         hurd_file_name_lookup_retry): Remove these decls.
8267         * hurd/Makefile (routines): Remove invoke-trans.
8268
8269 Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8270
8271         * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
8272         apply R_386_PC32 reloc.
8273
8274         * Makeconfig (config-LDFLAGS): Add missing slash.
8275
8276         * sysdeps/mach/hurd/profil.c (fork_profil): Only call
8277         update_waiter if profiling was enabled in the parent.
8278
8279         * csu/initfini.c: Don't pass -f flag to cp.
8280
8281 Tue Oct 10 23:08:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8282
8283         * Makerules (build-shlib): Pass -rpath and -rpath-link options.
8284         (LDFLAGS-c.so): Don't pass -dynamic-linker here.
8285         * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
8286         (link-libc): Pass -rpath and -rpath-link options.
8287
8288         * MakeTAGS (all-dirs): Omit CVS directories.
8289         Specify vpath directives to find source files in $(all-dirs).
8290         (sources, headers): Append sources and headers from $(all-dist) to
8291         these.
8292         (all-dist): Filter them out of this.
8293         (all-headers, all-sources): Use $(shell find ...) instead of
8294         $(wildcard ...).
8295
8296         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
8297         -rpath-link.
8298
8299         * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
8300
8301         * elf/Makefile (install-others): Add missing $.
8302
8303 Mon Oct  9 02:54:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8304
8305         * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
8306
8307         * Makeconfig (config-LDFLAGS): Define to
8308         -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
8309         (rtld-installed-name): New variable.
8310         * elf/Makefile (install-lib): Variable removed.
8311         (install-others): Define this instead, to
8312         $(libdir)(rtld-installed-name).
8313         ($(libdir)(rtld-installed-name)): New target; install from ld.so.
8314
8315         * elf/ldd.sh.in: New file.
8316         * elf/Makefile (distribute): Add ldd.sh.in.
8317         (install-bin): Add ldd.
8318         ($(objpfx)ldd: ldd.sh.in): New rule.
8319
8320         * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
8321         * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
8322         Translate some Mach errors to Hurd errors.
8323
8324         * elf/rtld.c (dl_main): Under --list, print msg if executable is
8325         statically linked.
8326
8327         * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
8328         table processing.
8329
8330 Sat Oct  7 01:25:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8331
8332         * sysdeps/stub/machine-gmon.h: Add #error.
8333
8334 Fri Oct  6 01:49:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8335
8336         * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
8337         examine it.
8338
8339 Fri Sep 29 03:43:51 1995  Paul Eggert  <eggert@twinsun.com>
8340
8341         Rewrite mktime from scratch for performance, and for correctness
8342         in the presence of leap seconds.
8343
8344         * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
8345         New functions.
8346         (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
8347         TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
8348         <limits.h>, <stdlib.h>: New #includes.
8349         (main): Support tests with given broken-down value; support benchmarks.
8350         (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
8351         do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
8352         <ctype.h>): Remove.
8353
8354         * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
8355         * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
8356
8357         * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
8358         time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
8359
8360         * time/offtime.c (__offtime): Remove useless assignment
8361         `tp->tm_isdst = -1'.
8362
8363         * manual/maint.texi: Update credits.
8364
8365 Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8366
8367         * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
8368         * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
8369         * sysdeps/unix/sysv/linux/readv.c: File removed.
8370         * sysdeps/unix/sysv/linux/writev.c: File removed.
8371         * sysdeps/unix/configure.in: Check for readv and writev syscalls.
8372
8373         * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
8374         set it to $unix_syscall instead of $unix_function.
8375
8376 Thu Oct  5 00:59:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8377
8378         * elf/rtld.c (dl_main): Grok --list flag.
8379         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
8380
8381 Wed Oct  4 00:21:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8382
8383         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
8384         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
8385         * elf/link.h (_dl_sysdep_message): Declare it.
8386
8387         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
8388         the list.
8389
8390         * time/northamerica: Corrections to Canada data from ADO 95i.
8391
8392         * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
8393         unconditionally.  In socket subdir, append sys/socketcall.h; in
8394         time subdir, append sys/timex.h.
8395         (config-LDFLAGS): New variable.
8396         * sysdeps/unix/sysv/linux/Dist: New file.
8397         * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
8398
8399         * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
8400
8401         * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
8402
8403 Sat Sep 30 11:47:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8404
8405         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
8406         kernel with args on stack, point _dl_hurd_data at zero data
8407         instead of garbage.  When ld.so run as program, grok args
8408         -LIB=MEMOBJ and pre-load shared object files found in memory
8409         objects loaded by the boot loader.
8410
8411         * elf/link.h (struct link_map): New member `l_entry'.
8412         (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
8413         * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
8414         last arg ENTRY_POINT.  Store the entry point location in the
8415         `l_entry' member of the new map.
8416         * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
8417         _dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
8418         * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
8419         _dl_map_object.
8420
8421         * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
8422
8423         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
8424         restore %ebx by hand for personality syscall.
8425         GCC cannot deal with spilling the dedicated GOT register.
8426
8427         * misc/Makefile (routines): Add mntent, which was somehow omitted.
8428
8429 Fri Sep 29 15:07:10 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8430
8431         * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
8432         Change name of field `mode' in `struct timex' to `modes'.
8433         Linux-1.3.28 updates this name according to RFC 1489.
8434
8435 Thu Sep 28 13:05:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8436
8437         Merge new message handling code from GNU gettext, by Drepper.
8438         * intl: New directory.
8439         * Makefile (subdirs): Add intl.
8440
8441         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
8442         USER_ENTRY instead of storing it on our stack.
8443
8444         * elf/rtld.c (rtld_command): Variable removed.
8445         (_dl_skip_args): New variable.
8446         (dl_main): Increment _dl_skip_args instead of setting rtld_command.
8447         If the link_map for the executable itself is not first in the chain,
8448         make it so.
8449         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
8450         count of args to skip.
8451
8452 Thu Sep 28 09:20:04 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
8453
8454         * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
8455         leading zeroes.
8456
8457 Wed Sep 27 00:27:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8458
8459         * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
8460         (getcwd): Define as weak alias.
8461         * sysdeps/posix/getcwd.c: Likewise.
8462         * sysdeps/stub/getcwd.c: Likewise.
8463         * posix/unistd.h: Declare __getcwd.
8464
8465         * string/string.h: Declare __strcasecmp.
8466         * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
8467         strcasecmp.
8468         (strcasecmp): Define as weak alias.
8469
8470         * string/string.h: Declare __stpcpy.
8471         * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
8472         (stpcpy): Define as weak alias.
8473
8474         * sysdeps/unix/sysv/linux/Implies: Add unix/common.
8475
8476         * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
8477         Don't use `type' for arg name, since we are using it as a keyword
8478         in the rhs.
8479
8480         * sysdeps/unix/configure.in: Check for syscalls getpriority,
8481         setpriority, getrlimit, setrlimit.
8482
8483         * sysdeps/posix/truncate.c: Include fcntl.h.
8484
8485         * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
8486
8487         * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
8488         use new stub_warning syntax.
8489         * sysdeps/stub/setpriority.c: Likewise.
8490         * sysdeps/stub/__longjmp.c: Likewise.
8491         * sysdeps/stub/_exit.c: Likewise.
8492         * sysdeps/stub/accept.c: Likewise.
8493         * sysdeps/stub/acos.c: Likewise.
8494         * sysdeps/stub/alarm.c: Likewise.
8495         * sysdeps/stub/asin.c: Likewise.
8496         * sysdeps/stub/atan2.c: Likewise.
8497         * sysdeps/stub/bind.c: Likewise.
8498         * sysdeps/stub/cbrt.c: Likewise.
8499         * sysdeps/stub/chroot.c: Likewise.
8500         * sysdeps/stub/closedir.c: Likewise.
8501         * sysdeps/stub/connect.c: Likewise.
8502         * sysdeps/stub/cos.c: Likewise.
8503         * sysdeps/stub/cosh.c: Likewise.
8504         * sysdeps/stub/ctermid.c: Likewise.
8505         * sysdeps/stub/cuserid.c: Likewise.
8506         * sysdeps/stub/defs.c: Likewise.
8507         * sysdeps/stub/exp.c: Likewise.
8508         * sysdeps/stub/fmod.c: Likewise.
8509         * sysdeps/stub/frexp.c: Likewise.
8510         * sysdeps/stub/fsync.c: Likewise.
8511         * sysdeps/stub/getcwd.c: Likewise.
8512         * sysdeps/stub/getenv.c: Likewise.
8513         * sysdeps/stub/gethostid.c: Likewise.
8514         * sysdeps/stub/getlogin.c: Likewise.
8515         * sysdeps/stub/getpeername.c: Likewise.
8516         * sysdeps/stub/getrlimit.c: Likewise.
8517         * sysdeps/stub/getsockname.c: Likewise.
8518         * sysdeps/stub/getsockopt.c: Likewise.
8519         * sysdeps/stub/listen.c: Likewise.
8520         * sysdeps/stub/log.c: Likewise.
8521         * sysdeps/stub/log10.c: Likewise.
8522         * sysdeps/stub/mkfifo.c: Likewise.
8523         * sysdeps/stub/morecore.c: Likewise.
8524         * sysdeps/stub/nice.c: Likewise.
8525         * sysdeps/stub/nlist.c: Likewise.
8526         * sysdeps/stub/opendir.c: Likewise.
8527         * sysdeps/stub/pipestream.c: Likewise.
8528         * sysdeps/stub/ptrace.c: Likewise.
8529         * sysdeps/stub/putenv.c: Likewise.
8530         * sysdeps/stub/readdir.c: Likewise.
8531         * sysdeps/stub/reboot.c: Likewise.
8532         * sysdeps/stub/recv.c: Likewise.
8533         * sysdeps/stub/recvfrom.c: Likewise.
8534         * sysdeps/stub/rename.c: Likewise.
8535         * sysdeps/stub/rewinddir.c: Likewise.
8536         * sysdeps/stub/seekdir.c: Likewise.
8537         * sysdeps/stub/send.c: Likewise.
8538         * sysdeps/stub/sendto.c: Likewise.
8539         * sysdeps/stub/setegid.c: Likewise.
8540         * sysdeps/stub/seteuid.c: Likewise.
8541         * sysdeps/stub/setgroups.c: Likewise.
8542         * sysdeps/stub/sethostid.c: Likewise.
8543         * sysdeps/stub/sethostname.c: Likewise.
8544         * sysdeps/stub/setjmp.c: Likewise.
8545         * sysdeps/stub/setrlimit.c: Likewise.
8546         * sysdeps/stub/setsockopt.c: Likewise.
8547         * sysdeps/stub/shutdown.c: Likewise.
8548         * sysdeps/stub/signal.c: Likewise.
8549         * sysdeps/stub/sigsuspend.c: Likewise.
8550         * sysdeps/stub/sin.c: Likewise.
8551         * sysdeps/stub/sinh.c: Likewise.
8552         * sysdeps/stub/socket.c: Likewise.
8553         * sysdeps/stub/socketpair.c: Likewise.
8554         * sysdeps/stub/sqrt.c: Likewise.
8555         * sysdeps/stub/sync.c: Likewise.
8556         * sysdeps/stub/system.c: Likewise.
8557         * sysdeps/stub/tan.c: Likewise.
8558         * sysdeps/stub/tanh.c: Likewise.
8559         * sysdeps/stub/tcdrain.c: Likewise.
8560         * sysdeps/stub/tcflow.c: Likewise.
8561         * sysdeps/stub/tcgetpgrp.c: Likewise.
8562         * sysdeps/stub/tcsendbrk.c: Likewise.
8563         * sysdeps/stub/tcsetattr.c: Likewise.
8564         * sysdeps/stub/tcsetpgrp.c: Likewise.
8565         * sysdeps/stub/telldir.c: Likewise.
8566         * sysdeps/stub/tempname.c: Likewise.
8567         * sysdeps/stub/ttyname.c: Likewise.
8568         * sysdeps/stub/ttyname_r.c: Likewise.
8569         * sysdeps/stub/utime.c: Likewise.
8570
8571         * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
8572
8573         * time/mktime.c (localtime_r): Use 0 instead of NULL.
8574
8575         * config.make.in (AS): New variable; set to `$(CC) -c'.
8576
8577         * posix/unistd.h [__USE_BSD]: Declare profil.
8578
8579         * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
8580         of _dl_map_object.
8581         (_dl_map_object): Call it.
8582         * elf/link.h (_dl_map_object_from_fd): Declare it.
8583
8584 Tue Sep 26 16:50:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8585
8586         * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
8587         gettext code.
8588
8589         * sysdeps/unix/sysv/linux/sys/param.h: New file.
8590         * sysdeps/unix/sysv/linux/Subdirs: File removed.
8591
8592         * libc-symbols.h (_LIBC): Define to 1, not just empty.
8593
8594         * gmon: New directory of profiling code, incorporated from
8595         4.4BSD-Lite and modified.
8596         * sysdeps/i386/machine-gmon.h: New file.
8597         * sysdeps/stub/machine-gmon.h: New file.
8598         * sysdeps/mach/hurd/profil.c: New file.
8599         * sysdeps/stub/profil.c: New file.
8600         * sysdeps/unix/bsd/profil.S: New file.
8601         * Makefile (subdirs): Add gmon.
8602         * csu/gmon-start.c: New file.
8603         * csu/Makefile (extra-objs): Add gmon-start.o,
8604         g$(start-installed-name).
8605         (install-lib, omit-deps): Add g$(start-installed-name).
8606         ($(objpfx)g$(start-installed-name)): New target.
8607
8608 Fri Sep 22 14:24:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8609
8610         * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
8611         time being.
8612
8613 Thu Sep 21 00:03:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8614
8615         * sysdeps/unix/configure.in: Check for `profil' syscall.
8616
8617         * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
8618         removed.
8619
8620         * time/africa, time/asia, time/europe, time/northamerica,
8621         time/yearistype: New data from ADO 95h.
8622
8623         * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
8624         $(notdir $*), so it wins for the explicit libc.so rule as well as the
8625         pattern rule.
8626
8627         * sysdeps/stub/sys/sem_buf.h (union semun): New type.
8628
8629         * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
8630         __libc_global_ctors.
8631         * sysdeps/i386/init-first.c: Rewritten.
8632         * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
8633         * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
8634
8635         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
8636         ___fpu_control.
8637
8638         * Makerules (build-shlib): New canned sequence, broken out of
8639         lib%.so rule.  Link in $^ instead of just $<.
8640         (lib%.so: lib%_pic.a): Use it.
8641         (libc.so): New target; use $(build-shlib) for cmds, but also depend
8642         on soinit.so first and sofini.so last.
8643
8644         * elf/soinit.c: New file.
8645         * elf/sofini.c: New file.
8646         * elf/Makefile (distribute): Add soinit.c and sofini.c.
8647         (extra-objs): Add soinit.so and sofini.so.
8648
8649         * sysvipc/sys/shm.h (shmat): Fix return type to char *.
8650         * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
8651
8652         * misc/syslog.c (vsyslog): Rewritten using open_memstream to
8653         dynamically allocate buffers.
8654
8655         * Makerules (install-lib-nosubdir): Make this, rather than
8656         install-no-libc.a, depend on the installed shared libraries.
8657
8658 Wed Sep 20 18:02:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8659
8660         * locale/locale.c: Include errno.h.
8661         * locale/localedef.c: Likewise.
8662
8663 Tue Sep 19 00:02:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8664
8665         * Makefile (distclean-1): Remove config.cache, config.log, config.h.
8666         (parent-mostlyclean): Remove all flavors of the parent library.
8667
8668         * misc/mntent.c (getmntent): Skip multiple whitespace chars
8669         between fields.
8670
8671         * hurd/hurdstartup.c (_hurd_startup): If RPC returns
8672         EXEC_STACK_ARGS flag, get args from stack.
8673         If args on stack but have info from RPC, relocate args on stack to make
8674         space for struct hurd_startup_data.
8675
8676 Mon Sep 18 15:06:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8677
8678         * elf/dl-object.c: Include errno.h.
8679         * posix/execvp.c: Likewise.
8680         * dirent/scandir.c: Likewise.
8681         * sysdeps/posix/system.c: Likewise.
8682         * sysdeps/generic/setenv.c: Likewise.
8683         * stdlib/msort.c: Likewise.
8684         * stdio/memstream.c: Likewise.
8685         * stdio/fclose.c: Likewise.
8686         * stdio/getdelim.c: Likewise.
8687         * stdio/setvbuf.c: Likewise.
8688         * sysdeps/ieee754/ldexp.c: Likewise.
8689         * locale/locfile-parse.c: Likewise.
8690
8691         * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
8692         * stdlib/seed48_r.c: Likewise.
8693         * stdlib/srand48_r.c: Likewise.
8694         * stdlib/jrand48_r.c: Likewise.
8695         * stdlib/nrand48_r.c: Likewise.
8696
8697         * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
8698         to be useless.
8699
8700 Mon Sep 18 12:39:22 1995  Paul Eggert  <eggert@twinsun.com>
8701
8702         * mktime.c (localtime_r): Add substitute if the system doesn't
8703         provide one.
8704
8705 Mon Sep 18 14:39:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8706
8707         * time/gmtime.c (gmtime_r): Define as weak alias.
8708         * time/localtime.c (localtime_r): Define as weak alias.
8709         * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
8710
8711         * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
8712         #undef __need_Emath after including errnos.h.
8713         [_ERRNO_H]: Protect decls with this.
8714
8715 Sun Sep 17 08:22:12 1995  Paul Eggert  <eggert@twinsun.com>
8716
8717         Fix mktime so that it does not write over localtime's returned value.
8718         * localtime.c (__localtime_r): New function, with extra arg
8719         specifying where to store result.
8720         (localtime): Use it.
8721         (_tmbuf): New var.
8722         * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
8723         * mktime.c (__mktime_internal): Conversion function is now
8724         __localtime_r style, not localtime style.
8725         (mktime): Pass __localtime_r, not localtime.
8726         * timegm.c (timegm): Pass __gmtime_r, not gmtime.
8727         * offtime.c (__offtime): New arg specifying where to store result.
8728         * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
8729         (__gmtime_r, __localtime_r): New decls.
8730
8731         * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
8732         <stdlib.h>, <string.h>: Remove includes.
8733         <errno.h>: Add include.
8734
8735         * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
8736         Renamed from _mktime_internal to avoid namespace pollution.
8737
8738         * time/gmtime.c: Clear tm_isdst.
8739
8740 Mon Sep 18 01:58:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8741
8742         * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
8743         * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
8744         size_t.
8745
8746         * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
8747         __file_pathconf.
8748         * sysdeps/mach/hurd/pathconf.c: Likewise.
8749
8750         * Makefile (subdirs): Add sysvipc.
8751
8752         * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
8753         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8754
8755 Sun Sep 17 18:29:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8756
8757         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
8758          __file_set_size instead of __file_truncate.
8759
8760         * features.h (__USE_REENTRANT): New macro.
8761
8762         * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
8763         __file_truncate.
8764         * sysdeps/mach/hurd/ftruncate.c: Likewise.
8765
8766         * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
8767
8768 Sat Sep 16 17:47:19 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
8769
8770         * elf/elf.h (AT_GID): Fix typo: Read -> Real.
8771
8772         * misc/efgvt_r.c: New file.  Reentrant version of [efg]cvt functions.
8773         * misc/efgcvt.c: Rewrite to use reentrant functions.
8774         * misc/search.h: Many decls for hsearch functions.
8775         * misc/hsearch_r.c: New file.  Reentrant version of functions from
8776         hsearch family.
8777         * misc/hsearch.c, misc/tsearch.c: New files.
8778         * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
8779
8780         * posix/unistd.h (ttyname_r): Add prototype for new function.
8781
8782         * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
8783         stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
8784         stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
8785         stdlib/drand48-iter.c: New files implementing reentrant versions
8786         of functions from drand48 family.
8787         * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
8788         stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
8789         stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
8790         Rewrite to use reentrant versions.
8791         * stdlib/a64l.c, stdlib/l64a.c: New files.  Implement a64l()
8792         and l64a() functions from SysV library.
8793         * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
8794         nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
8795         drand48-iter, a64l, l64a.
8796         * stdlib/stdlib.h: Declare them.
8797
8798         * stdlib/random_r.c: New file.  Reentrant version of functions
8799         from random family.
8800         * stdlib/stdlib.h: Declare them.
8801         * stdlib/random.c: Rewrite to use reentrant functions.
8802
8803         * string/strerror_r.c: New file.  Reentrant version.
8804         * string/strerror.c: Change for new _strerror_internal form.
8805         * string/Makefile (routines): Add strerror_r.
8806
8807         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
8808         value of user_entry to `_start'.
8809         Close AT_ENTRY case with `break'.
8810
8811         * sysdeps/generic/strstr.c: New and much faster implementation
8812         by Stephen R. van den Berg.
8813
8814         * sysdeps/generic/_strerror.c: _strerror_internal now takes
8815         three argument and has and explicit buffer length.
8816         * sysdeps/mach/_strerror.c: Change for new interface with three
8817         arguments.
8818         * stdio/perror.c, stdio/vfprintf.c: Callers changed.
8819
8820         * sysdeps/mach/hurd/ttyname_r.c: New file.  Reentrant version.
8821         * sysdeps/posix/ttyname_r.c: New file.  Reentrant version.
8822         * sysdeps/stub/ttyname_r: New file.  Define as dummy function.
8823
8824         * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
8825         (utimes): First parameter to utime must be file, not path.
8826
8827         * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
8828         _SC_CLK_TCK and return it when available.
8829         Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
8830         available.
8831         Add case for _SC_2_LOCALEDEF which is now available.
8832
8833         * posix/sys/types.h [__USE_SVID] (key_t): New type.
8834         * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
8835         sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
8836         sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
8837         sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
8838         sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
8839         sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
8840         sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
8841         sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
8842         Add implementation of System V IPC.
8843
8844 Fri Sep 15 21:34:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8845
8846         * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
8847         (write_corefile): Call __crash_dump_task instead of __core_dump_task.
8848         Use envariable CRASHSERVER instead of CORESERVER.
8849         * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
8850
8851 Tue Sep 12 14:30:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8852
8853         * misc/mntent.c: New file.
8854         * misc/mntent.h: New file.
8855         * misc/Makefile (headers): Added mntent.h.
8856         (routines): Added mntent.
8857         * misc/fstab.c: Rewritten using mntent functions.
8858
8859 Mon Sep 11 14:00:14 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
8860
8861         * posix/glob.c (glob): Comment fix.
8862
8863 Fri Sep  8 16:25:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8864
8865         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
8866         symbols weak.
8867
8868         * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
8869         not empty.
8870
8871 Fri Sep  8 16:32:12 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
8872
8873         * sysdeps/unix/sysv/linux/Implies,
8874         sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
8875         sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
8876         sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
8877         sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
8878         sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
8879         sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
8880         sysdeps/unix/sysv/linux/gethostname.C,
8881         sysdeps/unix/sysv/linux/getpeername.S,
8882         sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
8883         sysdeps/unix/sysv/linux/getsockname.S,
8884         sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
8885         sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
8886         sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
8887         sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
8888         sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
8889         sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
8890         sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
8891         sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
8892         sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
8893         sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
8894         sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
8895         sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
8896         sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
8897         sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
8898         sysdeps/unix/sysv/linux/settimeofday.S,
8899         sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
8900         sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
8901         sysdeps/unix/sysv/linux/shutdown.S,
8902         sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
8903         sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
8904         sysdeps/unix/sysv/linux/sockaddrcom.h,
8905         sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
8906         sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
8907         sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
8908         sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
8909         sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
8910         sysdeps/unix/sysv/linux/tcsetattr.c,
8911         sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
8912         sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
8913         sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
8914         sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
8915         sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
8916         New Linux/ELF specific, architecture independent files.
8917         * sysdeps/unix/sysv/linux/i386/Dist,
8918         sysdeps/unix/sysv/linux/i386/Makefile,
8919         sysdeps/unix/sysv/linux/i386/brk.S,
8920         sysdeps/unix/sysv/linux/i386/fcntlbits.h,
8921         sysdeps/unix/sysv/linux/i386/fpu_control.c,
8922         sysdeps/unix/sysv/linux/i386/fpu_control.h,
8923         sysdeps/unix/sysv/linux/i386/fstat.S,
8924         sysdeps/unix/sysv/linux/i386/fxstat.S,
8925         sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
8926         sysdeps/unix/sysv/linux/i386/init-first.S,
8927         sysdeps/unix/sysv/linux/i386/ipc.S,
8928         sysdeps/unix/sysv/linux/i386/lstat.S,
8929         sysdeps/unix/sysv/linux/i386/lxstat.S,
8930         sysdeps/unix/sysv/linux/i386/mknod.S,
8931         sysdeps/unix/sysv/linux/i386/mmap.S,
8932         sysdeps/unix/sysv/linux/i386/sbrk.S,
8933         sysdeps/unix/sysv/linux/i386/setfpucw.c,
8934         sysdeps/unix/sysv/linux/i386/signum.h,
8935         sysdeps/unix/sysv/linux/i386/socket.S,
8936         sysdeps/unix/sysv/linux/i386/stat.S,
8937         sysdeps/unix/sysv/linux/i386/syscall.S,
8938         sysdeps/unix/sysv/linux/i386/sysdep.S,
8939         sysdeps/unix/sysv/linux/i386/sysdep.h,
8940         sysdeps/unix/sysv/linux/i386/xmknod.S,
8941         sysdeps/unix/sysv/linux/i386/xstat.S:
8942         New Linux i386/ELF specific files.
8943         * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
8944         sysdeps/unix/sysv/linux/sys/mman.h,
8945         sysdeps/unix/sysv/linux/sys/msq_buf.h,
8946         sysdeps/unix/sysv/linux/sys/sem_buf.h,
8947         sysdeps/unix/sysv/linux/sys/shm_buf.h,
8948         sysdeps/unix/sysv/linux/sys/socketcall.h,
8949         sysdeps/unix/sysv/linux/sys/timex.h:
8950         New Linux/ELF specific, architecture independent header files.
8951         * sysdeps/unix/sysv/sysv4/linux: Tree removed.
8952
8953 Thu Sep  7 17:05:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8954
8955         * stdlib/msort.c (msort_with_tmp): Fixed alignment test.  B1 and
8956         B2 are always congruent; just test that B1 is aligned.
8957
8958 Wed Sep  6 19:41:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8959
8960         * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
8961         than WEAK_VALUE.a to see if a weak value has been set.  A valid
8962         weak value may set WEAK_VALUE.a to 0.
8963
8964 Fri Sep  1 16:16:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8965
8966         * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
8967         jmp_buf.
8968
8969         * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
8970         for a warning on references to that specific symbol, not the
8971         entire containing object file.
8972         (stub_warning): Pass symbol name to link_warning.
8973         * stdio/gets.c: Pass function name in link_warning invocation.
8974
8975         * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
8976         MACH_SEND_INTERRUPTED.  That indicates interrupt_operation was
8977         sent, but failed.
8978
8979         * stdlib/msort.c: Include memcopy.h.
8980         (msort_with_tmp): If operating on aligned op_t words, use direct word
8981         fetches and stores.
8982
8983         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
8984         missing backslash.
8985
8986 Thu Aug 31 13:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8987
8988         * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
8989
8990         Rewrote i386 setjmp code in assembly, so as to avoid fighting
8991         with the compiler for the register values.
8992         * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
8993         * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
8994         * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
8995         [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
8996         (_JMPBUF_UNWINDS): Use JB_SP.
8997
8998 Wed Aug 30 16:44:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8999
9000         * sysdeps/mach/hurd/select.c: Deal with out of order replies
9001         during io_select request loop.
9002         Handle MACH_RCV_TIMED_OUT error from requests.
9003         * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
9004         distinguish MACH_RCV_TIMED_OUT from EINTR.
9005
9006         * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
9007         slash.
9008         (glob_in_dir): Don't allocate extra byte here.
9009
9010         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9011         Decrement the DT_RELSZ value for the skipped reloc.
9012
9013 Tue Aug 29 12:35:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9014
9015         * time/australasia: Updated data from ADO.
9016
9017 Mon Aug 28 17:47:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9018
9019         * dirent/dirent.h: Don't include <dirstream.h>.
9020         Instead, define DIR as typedef for (undefined) `struct __dirstream'.
9021
9022 Fri Aug 25 12:12:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9023
9024         * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
9025         instead of `DIR'.
9026         * sysdeps/unix/bsd/dirstream.h: Likewise.
9027         * sysdeps/stub/dirstream.h: Likewise.
9028         * sysdeps/unix/dirstream.h: Likewise.
9029         * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
9030         * sysdeps/mach/hurd/seekdir.c: Likewise.
9031         * sysdeps/mach/hurd/opendir.c: Likewise.
9032         * sysdeps/mach/hurd/closedir.c: Likewise.
9033         * sysdeps/mach/hurd/readdir.c: Likewise.
9034         * sysdeps/unix/telldir.c: Likewise.
9035         * sysdeps/unix/seekdir.c: Likewise.
9036         * sysdeps/unix/rewinddir.c: Likewise.
9037         * sysdeps/unix/readdir.c: Likewise.
9038         * sysdeps/unix/opendir.c: Likewise.
9039         * sysdeps/unix/closedir.c: Likewise.
9040         * sysdeps/unix/bsd/telldir.c: Likewise.
9041         * sysdeps/unix/bsd/readdir.c: Likewise.
9042         * dirent/Makefile (headers): Remove dirstream.h.
9043         (distribute): Put it here instead.
9044
9045         * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
9046
9047         * stdio/vfscanf.c (number): Allow field width to inhibit first
9048         digit after base detection.
9049
9050         * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
9051         specified by the precision.
9052
9053         * grp/grpread.c (__grpscan): New function.
9054         * grp/grp.h (__grpscan): Declare it.
9055         * grp/getgrgid.c: Use __grpscan.
9056         * grp/getgrnam.c: Likewise.
9057         * pwd/pwdread.c (__pwdscan): New function.
9058         * pwd/pwd.h (__pwdscan): Declare it.
9059         * pwd/getpwnam.c: Use __pwdscan.
9060         * pwd/getpwuid.c: Likewise.
9061
9062 Thu Aug 24 16:29:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9063
9064         * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
9065         MAP_FILE.
9066
9067         * hurd/thread-cancel.c: Return EINTR when called on self.
9068         * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
9069         __data_start.
9070
9071 Tue Aug 22 16:49:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9072
9073         * inet/netdb.h: Moved to resolv.
9074         * inet/Makefile (headers): Remove netdb.h.
9075         * resolv/Makefile (headers): Add netdb.h.
9076         * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
9077         resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
9078
9079         * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
9080         resuming the thread.
9081         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
9082
9083         * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
9084
9085 Mon Aug 21 16:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9086
9087         * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
9088         relocs, and do nothing.  Why the linker generates them we may
9089         never know.
9090
9091 Thu Aug 17 16:18:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9092
9093         * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
9094         `subdirs' variable.
9095
9096         * sysdeps/mach/hurd/i386/intr-msg.h: New file.
9097         * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
9098         "intr-msg.h" for special syscall code, instead of i386-specific asm.
9099         * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
9100         machine-dependent "intr-msg.h" before mutating thread state to
9101         skip RPC.
9102
9103         * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
9104         _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
9105         %ecx.
9106
9107         * Makeconfig (link-libc): New variable; use shared library if
9108         available.
9109         (+link): Use it.
9110
9111         * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
9112         Instead, declare with `symbol_set_declare'.
9113         (fork): Use symbol_set_* macros for _hurd_fork_locks.
9114         Use SS->thread instead of __mach_thread_self ().  Suspend all
9115         other threads during task_create and port copying.
9116
9117 Wed Aug 16 17:04:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9118
9119         * hurd/intr-msg.c: Fixed calculation of syscall %esp.
9120
9121 Tue Aug 15 12:26:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9122
9123         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
9124
9125         * hurd/Makefile (sig): Add intr-msg.
9126
9127 Mon Aug 14 16:51:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9128
9129         * hurd/thread-cancel.c: New file.
9130         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
9131         rpc_wait case, frob mach_msg args to set timeout on receive.
9132         (_hurdsig_rcv_interrupted_p): Function removed.
9133         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
9134         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
9135         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
9136         * hurd/intr-msg.c: New file.
9137         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
9138         (_hurdsig_rcv_interrupted_p): Declaration removed.
9139         (HURD_EINTR_RPC): Macro removed.
9140         (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
9141         these.
9142         * hurd/intr-rpc.h: New file.
9143         * hurd/intr-rpc.defs: Just import intr-rpc.h.
9144         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
9145         (interrupted_reply_port_location): Take new flag arg; only catch
9146         faults if it's set.
9147         (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
9148         No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
9149         &_hurd_intr_rpc_msg_in_trap.  If before it, mutate state to simulate
9150         MACH_SEND_INTERRUPTED return; on it, interrupt the operation.  All
9151         callers changed.
9152         * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
9153         * hurd/Makefile (distribute): Remove intr-rpc.awk.
9154         (sig): Add thread-cancel.
9155         (transform-user-stub, transform-user-stub-output): Variables removed.
9156         * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
9157         `__hurd_intr_rpc_*' to `__*'.
9158         (_hurd_intr_rpc_mach_msg): New function.
9159         (_hurd_thread_sigstate): Function removed.
9160         * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
9161         instead of __mach_msg inside HURD_EINTR_RPC macro.
9162
9163         * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
9164         to take ptrdiff_t arg.
9165
9166         * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
9167
9168         * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
9169
9170         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
9171         weak_alias): Use `extern' storage class.
9172
9173 Wed Aug  9 14:25:35 1995  Miles Bader  <miles@geech.gnu.ai.mit.edu>
9174
9175         * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
9176         port-count parameters to __auth_makeauth.
9177         * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
9178
9179 Tue Aug  8 12:22:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9180
9181         * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
9182
9183         * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
9184
9185 Tue Aug  8 12:06:04 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>
9186
9187         * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
9188         IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
9189         layer socket options.
9190         (IPPROTO_GGP): Delete obsolote protocol.
9191         (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
9192         (struct ip_mreq): New type.
9193
9194 Mon Aug  7 14:04:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9195
9196         * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
9197
9198         * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
9199         (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
9200
9201         * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
9202         when __stdio_open fails with a code other than ENFILE or EMFILE.
9203
9204 Fri Aug  4 16:01:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9205
9206         * Makefile (headers): Added gnu-versions.h.
9207
9208 Thu Aug  3 14:41:11 1995  Michael I. Bushnell  <mib@duality.gnu.ai.mit.edu>
9209
9210         * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
9211         equality, not assignment, to test bitfields.
9212
9213 Sat Jul 29 10:41:06 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
9214
9215         * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
9216         resolve AF_LOCAL addresses.
9217
9218         * sysdeps/mach/hurd/accept.c (accept): If the protocol family
9219         can't tell us what an address means, just return a zero-length
9220         buffer instead.
9221         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
9222
9223 Fri Jul 28 15:29:11 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
9224
9225         * sysdeps/mach/hurd/bind.c (bind): Don't use
9226         file_invoke_translator, as it doesn't work.  Instead just lookup
9227         the translated node again, and hope we're not hit by any race
9228         conditions.
9229
9230 Wed Jul 26 02:00:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9231
9232         * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
9233         [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
9234         [start-installed-name-rule]: If this is defined, elide rule for
9235         $(objpfx)$(start-installed-name).
9236         * csu/initfini.c (SECTION): New macro, different definitions for
9237         #ifdef HAVE_ELF and not.
9238         (_init, _fini): Use that macro.
9239         * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
9240         (start-installed-rule, start-installed-name-rule): New variables;
9241         specify crt1.o, created by our own rule.
9242         ($(objpfx)crt1.o): New rule.
9243         * configure.in: Require autoconf 2.4.2 or later.  Change all
9244         AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
9245         prettify some messages.
9246         [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
9247         sections.
9248         * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
9249         this case rather than #ifdef HAVE_ELF.
9250         * config.h.in (HAVE_INITFINI): New macro.
9251         * config.make.in (have-initfini): New variable, set by configure.
9252
9253         * stdio/vfscanf.c (conv_error): Simplify expression to avoid
9254         "value computed is not used" warning.
9255
9256         * Makeconfig (+gccwarn): Removed -Wconversion.
9257
9258         * csu/initfini.c (GLOBAL): Macro removed.
9259         (_init, _fini): Always define globally.
9260         * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
9261
9262         * asia, backward, europe, leapseconds, southamerica: New data from
9263         ADO's 95e.
9264
9265         * inet/Makefile (routines): Removed inet_addr.
9266         * inet/inet_addr.c: Moved to resolv/ subdirectory.
9267         * resolv/Makefile (routines): Added inet_addr.
9268         * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
9269         * resolv/gethnamaddr.c: Likewise.
9270         * resolv/getnetbyaddr.c: Likewise.
9271         * resolv/getnetbyname.c: Likewise.
9272         * resolv/getnetent.c: Likewise.
9273         * resolv/getnetnamadr.c: Likewise.
9274         * resolv/herror.c: Likewise.
9275         * resolv/nsap_addr.c: Likewise.
9276         * resolv/res_comp.c: Likewise.
9277         * resolv/res_debug.c: Likewise.
9278         * resolv/res_init.c: Likewise.
9279         * resolv/res_mkquery.c: Likewise.
9280         * resolv/res_query.c: Likewise.
9281         * resolv/res_send.c: Likewise.
9282         * resolv/resolv.h: Likewise.
9283         * resolv/sethostent.c: Likewise.
9284         * resolv/arpa/nameser.h: Likewise.
9285         * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
9286         [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
9287         its declarations (and doing so only #ifdef sun!).
9288         * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
9289
9290         * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
9291         [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
9292
9293         * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
9294         if possible.
9295
9296         * mach/shortcut.awk: Emit decls for RPC.
9297
9298         * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
9299         weak_alias, strong_alias): Define using GCC __attribute__ syntax.
9300
9301         * Makerules ($(installed-libcs)): Depend on `lib' (only).
9302
9303 Tue Jul 25 09:14:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9304
9305         * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
9306
9307         * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
9308
9309         * sysdeps/unix/sysv/ftime.S: New file.
9310
9311         * locale/locfile-parse.c (categories_write): Cast "" to char *.
9312
9313         * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
9314
9315         * time/strftime.c: Use year modulo 100 for %y.
9316
9317         * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
9318
9319         * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
9320         of one, to work around bug in sunos4.1.2 sed.
9321
9322         * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
9323         memchr instead of strlen to limit search for NUL by precision.
9324
9325 Mon Jul 24 03:13:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9326
9327         * sysdeps/posix/pathconf.c: New file.
9328
9329 Sat Jul 22 20:53:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9330
9331         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
9332         before @PLT.
9333         * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
9334         * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
9335         * sysdeps/i386/bsd-setjmp.S: Likewise.
9336
9337 Sat Jul 22 19:58:54 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
9338
9339         * inet/Makefile (routines): Added `ruserpass'.
9340         * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
9341         client.  Modified to remove the fourth arg AACCT.  Do nothing for
9342         the `account' and `macdef' keywords.  Other incidental changes
9343         because we are not in the FTP source tree.
9344
9345 Sat Jul 22 01:56:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9346
9347         * sysdeps/stub/init-posix.c: Removed stub warning.
9348
9349         * Makefile (autoconf-it): Make it executable and unwritable.
9350
9351         * configure.in (sysnames): Under --enable-debug-configure, spew
9352         potential sysnames.
9353
9354         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
9355         #ifdef PIC.
9356         (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
9357         * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
9358         jump insn.
9359
9360         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
9361         * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
9362         * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
9363         <sys/socketcall.h>.  Save %ebx in call-clobbered %edx instead of
9364         stack.  Use JUMPTARGET(syscall_error) in jump insn.
9365
9366         * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
9367
9368         * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
9369         ASM_TYPE_DIRECTIVE.
9370         (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
9371
9372         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
9373         Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
9374         * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
9375
9376         * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
9377         instead of unix/sysv.
9378         * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
9379         socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
9380         to new directory sysdeps/unix/sysv/sysv4/linux.
9381         * sysdeps/unix/sysv/linux: Directory removed.
9382         * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
9383         to new directory sysdeps/unix/sysv/sysv4/linux/i386.
9384         * sysdeps/unix/sysv/linux/i386: Directory removed.
9385
9386         Fixes to help Linux, inspired by drepper's work:
9387         * sysdeps/posix/utimes.c: New file.
9388         * sysdeps/generic/getdomain.c: New file.
9389         * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
9390         * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
9391         externals _dl_argc, _dl_argc, and _environ.
9392
9393 Fri Jul 21 12:57:29 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
9394
9395         * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
9396         EOPNOTSUPP as indications that the server has died.
9397         * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
9398         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
9399
9400 Mon Jul 17 08:45:40 1995  Jim Meyering  (meyering@comco.com)
9401
9402         * strtol.c: Portability changes from Uli Drepper.
9403         [!STDC_HEADERS && !defined(NULL)]: Define NULL.
9404
9405 Mon Jul 10 05:39:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9406
9407         * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
9408         DATA for the entry SP; DATA[-1] is always the return address
9409         location.  In both cthreads and non-cthreads cases, use asm to
9410         force parameters into %eax and %ecx before return, and mutate
9411         DATA[-1] to return to specific asm code to set up the user from
9412         %eax and %ecx.
9413         [PIC] (_init): Caller changed.
9414         (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
9415         with SP unwound to argument data ptr.
9416
9417 Thu Jul  6 14:28:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9418
9419         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
9420         when 0x08000000 and up are not mapped.
9421
9422         * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
9423         before touching it.
9424         (lib%.so): Use -Wl to get -soname to ld.
9425
9426         * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
9427
9428         * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
9429
9430 Tue Jun 20 02:18:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9431
9432         * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
9433         library's name including $(libprefix) and major version number.
9434
9435         * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
9436         in place of xcalloc.
9437
9438         * Makeconfig (prefix, exec_prefix, libprefix): Instead of
9439         `ifndef', use the $(origin) function to only set these if they are
9440         undefined, and not if they are defined to empty.
9441
9442         * gnu-versions.h: New file.
9443         * features.h (__GNU_LIBRARY__): Increase value to 5.
9444
9445 Wed Jun 14 03:45:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9446
9447         * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
9448         expression, to avoid gcc's "value computed is not used" warning.
9449
9450         * libc-symbols.h (_elf_set_element): Give the set-element variable
9451         an `unused' attribute.
9452
9453         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
9454         __attribute__ ((__const__)).
9455         * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
9456
9457         * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
9458         LINK->resource.next->resource.prevp when appropriate, not
9459         LINK->resource.next->thread.prevp!!!
9460
9461 Tue Jun 13 15:45:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9462
9463         * configure.in (libc_cv_asm_set_directive): Make sure that the
9464         `.set' directive really worked by linking against a reference to
9465         the alias.
9466
9467         * sysdeps/stub/init-first.c: Don't include <hurd.h>.
9468         [PIC] (soinit): Renamed to (global) _init.
9469
9470 Mon Jun 12 13:15:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9471
9472         * malloc/Makefile (gmalloc-routines): Remove valloc.
9473         (dist-routines): Add it here.
9474
9475         * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
9476         emacs_loser_valloc to inhibit valloc declaration below.
9477
9478         * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
9479         installation rules.
9480
9481         * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
9482         it uses the `.type' directive, which is necessary for shared
9483         libraries to work properly.
9484
9485 Thu Jun  8 02:50:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9486
9487         * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
9488         from zero fill.
9489
9490         * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
9491         if nonzero, don't let *REF satisfy the reference itself.
9492         * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
9493         * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
9494         _dl_lookup_symbol.
9495         * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
9496         R->r_offset to RESOLVE callback.
9497         * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
9498         satisfy the reference itself if its value equals the reloc's
9499         offset.
9500
9501         * elf/rtld.c (dl_main): Write a newline in fatal msg.
9502
9503         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
9504
9505         * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
9506
9507         * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
9508         and user entry point addresses.
9509
9510         * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
9511         (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
9512
9513         * Makerules (install-lib.so): Don't include libc.so.
9514         [$(build-shared)=yes] (install): Depend on the installed libc.so file.
9515         [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
9516         install, depend on the installed $(install-lib.so) files.
9517         [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
9518
9519         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
9520         allocate high addresses to avoid random mappings appearing there.
9521         (mmap): Comment out mask; always pass zero.
9522
9523 Tue Jun  6 13:34:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9524
9525         * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9526         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
9527
9528         * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
9529         when successful.
9530
9531         * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
9532         (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
9533         variables, using the `threadvars' buffer.
9534
9535         * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
9536         * sysdeps/i386/dl-runtime.c: Likewise.
9537
9538         * elf/rtld.c (dl_main): Add missing NULL terminating argument in
9539         _dl_sysdep_fatal call.
9540         (__assert_fail): Likewise.
9541
9542         * locale/Makefile (localedef-modules): Renamed ctype to
9543         locale-ctype so as not to conflict with the object file for
9544         ctype/ctype.c in the build directory.
9545
9546 Mon Jun  5 04:02:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9547
9548         * elf/elf.h (ELFMAG): Use \177 instead of \x7f.  It seems GCC
9549         insists on seeing the following E as part of hex 7FE, and
9550         complaining that is wider than a byte.
9551
9552 Sun Jun  4 22:14:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9553
9554         * hurd/Makefile (sig): Added thread-self.
9555         * hurd/hurd.h: Declare hurd_thread_self.
9556         * hurd/thread-self.c: New file.
9557
9558 Thu Jun  1 12:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9559
9560         * elf/rtld.c: Initialize RTLD_MAP.l_type.
9561         * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
9562         the dynamic linker itself.
9563         * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
9564         lt_interpreter, first undo relocation done during bootstrapping.
9565
9566 Tue May 30 15:52:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9567
9568         * mach/Makefile (server-interfaces): Removed notify and
9569         device_reply.  For shlibs with eager binding, libmachuser.so must
9570         not refer to any functions not defined in libc.
9571
9572 Sat May 27 16:23:22 1995  Jim Meyering  (meyering@comco.com)
9573
9574         * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
9575         to avoid error from Irix-4.0.5's C compiler.  From Kaveh Ghazi.
9576
9577 Fri May 26 13:00:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9578
9579         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
9580         pending signals if the thread is in a critical section.  It will
9581         send us a msg when it finishes.
9582
9583         * sysdeps/mach/hurd/pathconf.c: New file.
9584         * sysdeps/mach/hurd/fpathconf.c: New file.
9585
9586         * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
9587         SIGCHLD when the SA_NOCLDSTOP bit actually changes.
9588
9589 Sun May 21 05:05:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9590
9591         * elf/Makefile (ld.so): Use -nostartfiles in addition to
9592         -nostdlib.
9593
9594 Sun May 21 02:01:29 1995  Jim Meyering  (meyering@comco.com)
9595
9596         * sysdeps/generic/memchr.c: Don't include <string.h> at all.
9597         HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
9598         memchr unless one manually arranges for them to define __STDC__.
9599
9600 Fri May 19 17:16:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9601
9602         * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
9603         args on stack from kernel.
9604
9605         * posix/Makefile, sysdeps/alpha/Makefile,
9606         * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
9607         * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
9608         in the absence of CVS dirs.
9609
9610         * hurd/hurdstartup.c: Don't call __mach_init.  Grok args from the
9611         kernel on the stack properly.
9612
9613         * set-init.c: Never call _init/_fini; just run __libc_subinit.
9614
9615         * Makerules (LDFLAGS-c.so): Add -nostartfiles.
9616         * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
9617
9618         * configure.in: Move defaulting of --with-elf and --with-gnu-*
9619         based on host os outside the AC_CACHE_VAL for the sysdirs
9620         calculation.
9621
9622         * Makeconfig (localedir, nlsdir): New variables.
9623
9624         * values.h: New file.
9625         * Makefile (headers): Add values.h.
9626
9627         * locale/Makefile (distribute): Add error.h.
9628         * locale/localedef.c: Include "error.h".
9629         (main): Use error_message_count instead of warning_cntr.
9630
9631 Wed May 17 16:50:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9632
9633         Merged 1003.2 locale and localedef programs by Ulrich Drepper.
9634         * locale/charmap.c: New file.
9635         * locale/collate.c: New file.
9636         * locale/config.h: New file.
9637         * locale/ctype.c: New file.
9638         * locale/ctypedump.c: New file.
9639         * locale/hash.c: New file.
9640         * locale/hash.h: New file.
9641         * locale/iso-4217.def: New file.
9642         * locale/keyword.gperf: New file.
9643         * locale/keyword.h: New file.
9644         * locale/libintl.h: New file.
9645         * locale/locale.c: New file.
9646         * locale/localedef.c: New file.
9647         * locale/localedef.h: New file.
9648         * locale/locfile-lex.c: New file.
9649         * locale/locfile-parse.c: New file.
9650         * locale/messages.c: New file.
9651         * locale/monetary.c: New file.
9652         * locale/numeric.c: New file.
9653         * locale/token.h: New file.
9654
9655         * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
9656         * posix/Makefile (headers): Add regex.h.
9657         (routines): Add regex.
9658         (gpl2lgpl): Add regex.c and regex.h.
9659
9660 Tue May 16 17:35:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9661
9662         * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
9663         instead of hard-coding "/share/locale".
9664
9665 Sat May 13 02:16:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9666
9667         * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
9668
9669 Fri May 12 15:31:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9670
9671         * elf/elf.h (ELFMAG, SELFMAG): New macros.
9672
9673 Fri May 12 11:24:53 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>
9674
9675         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
9676         the case where it starts out less than _hurd_dtablesize.
9677
9678 Thu May 11 20:51:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9679
9680         * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
9681         make sure the new size exceeds FIRST_FD.
9682
9683 Wed May 10 21:00:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9684
9685         * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
9686
9687 Tue May  9 01:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9688
9689         * Makerules (install-lib.so): Add %.so for each %_pic.a.
9690
9691         * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
9692         the first thing in .data.
9693
9694         * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
9695
9696         * hurd/hurdstartup.h: New file.
9697
9698         * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
9699         are the same.  Use `jz' instead of `jeq'.
9700
9701         * Makeconfig (config.make): Depend on config.status, and run it to
9702         update.
9703         (config.status): New target; depend on configure.
9704         If target (config.status) exists, run it with --recheck to update;
9705         if not, give error msg saying to run confiugre by hand.
9706         * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
9707         (sysd-Makefile-force): Set this variable to FORCE in this case, to
9708         force a rebuild of sysd-Makefile.
9709         (sysd-Makefile): Depend on $(sysd-Makefile-force).
9710         Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
9711         [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
9712         variable to FORCE in this case, to force a rebuild of sysd-rules.
9713         (sysd-rules): Depend on $(sysd-rules-force).
9714         Write into the file sysd-rules-sysdirs:=$(sysdirs).
9715
9716         * Makerules (LDFLAGS-c.so): Change ld option -interp to
9717         -dynamic-linker.
9718
9719         * Makerules (do-install-program): New canned sequence.
9720         (install-bin, install-sbin): Use it.
9721         (install for lib*.so): Use it instead of $(do-install).
9722         Fix .so installation rules to handle lib*.so and *.so, deal with
9723         $(libprefix) right, and install *.so as *.so$($(*.so)-version);
9724         i.e. "libc.so-version = .1".
9725
9726 Mon May  8 05:10:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9727
9728         * elf/do-rel.h: New file, split out of dynamic-link.h.
9729         * elf/Makefile (distribute): Add do-rel.h.
9730
9731 Sat May  6 11:06:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9732
9733         * Makeconfig (+gccwarn): Add -Winline.
9734
9735         * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
9736         set, avoid abort_rpcs, and use reply and intr ports saved in
9737         SS->context.
9738         * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
9739         from SS->context.  Don't clear SS->context.
9740         * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
9741         setting SS->context.  If msg_sig_post returns, re-lock and clear
9742         SS->context.
9743
9744 Fri May  5 10:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9745
9746         * mach/Makefile (errsystems.c): Comment out generation rule.
9747
9748         * sysdeps/mach/_strerror.c: Consider a system unknown if its
9749         bad_sub member is null.
9750
9751         * mach/mig-alloc.c: Add weak alias to non-__ name.
9752
9753 Wed May  3 11:56:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9754
9755         * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
9756
9757 Tue May  2 01:52:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9758
9759         * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
9760         function.  Duh.
9761
9762         * hurd/Makefile (distribute): Added hurdstartup.h.
9763         * hurd/hurd.h: Remove _hurd_startup decl.
9764
9765         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
9766         ((__unused__)) instead of gratuitous self reference.
9767
9768         * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
9769         table if FD2 doesn't fit.
9770
9771         * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
9772         not the current table size.
9773
9774         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
9775
9776         Implemented runtime dynamic linker to support ELF shared libraries.
9777         * elf/Makefile: Added rules to make ld.so and libdl.
9778         * elf/dl-error.c: New file.
9779         * elf/dl-fini.c: New file.
9780         * elf/dl-init.c: New file.
9781         * elf/dl-load.c: New file.
9782         * elf/dl-lookup.c: New file.
9783         * elf/dl-object.c: New file.
9784         * elf/dl-reloc.c: New file.
9785         * elf/dlclose.c: New file.
9786         * elf/dlerror.c: New file.
9787         * elf/dlopen.c: New file.
9788         * elf/dlsym.c: New file.
9789         * elf/dynamic-link.h: New file.
9790         * elf/link.h: New file.
9791         * elf/rtld.c: New file.
9792         * sysdeps/i386/dl-machine.h: New file.
9793         * sysdeps/stub/dl-machine.h: New file.
9794         * sysdeps/i386/dl-runtime.c: New file.
9795         * sysdeps/stub/dl-runtime.c: New file.
9796         * sysdeps/i386/elf/start.S: New file.
9797         * sysdeps/generic/dl-sysdep.c: New file.
9798         * sysdeps/mach/hurd/dl-sysdep.c: New file.
9799         * sysdeps/mach/hurd/i386/init-first.c: New file.
9800         * sysdeps/i386/init-first.c: New file.
9801         * sysdeps/stub/init-first.c: New file.
9802
9803 Mon May  1 18:48:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9804
9805         * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
9806         libc.so runnable.
9807         * version.c (__libc_print_version): Add "et al" and missing NL to
9808         author credit.
9809
9810 Sat Apr 29 15:46:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9811
9812         * posix/glob.c (S_ISDIR): Define if undefined.
9813
9814 Thu Apr 27 01:24:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9815
9816         * configure.in: Unless --without-fp, prepend */fpu before each
9817         machine dir in $mach; don't prepend FPU dirs at end.  If
9818         --with-elf, prepend MACHINE/elf directories at end; don't insert
9819         them into $mach.
9820
9821         * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
9822
9823         * sysdeps/stub/clock.c: Added stub warning.
9824         * sysdeps/stub/dirfd.c: Likewise.
9825         * sysdeps/stub/exc2signal.c: Likewise.
9826         * sysdeps/stub/fdopen.c: Likewise.
9827         * sysdeps/stub/flock.c: Likewise.
9828         * sysdeps/stub/fpathconf.c: Likewise.
9829         * sysdeps/stub/ftruncate.c: Likewise.
9830         * sysdeps/stub/gtty.c: Likewise.
9831         * sysdeps/stub/isatty.c: Likewise.
9832         * sysdeps/stub/killpg.c: Likewise.
9833         * sysdeps/stub/madvise.c: Likewise.
9834         * sysdeps/stub/mkstemp.c: Likewise.
9835         * sysdeps/stub/mktemp.c: Likewise.
9836         * sysdeps/stub/mprotect.c: Likewise.
9837         * sysdeps/stub/msync.c: Likewise.
9838         * sysdeps/stub/pathconf.c: Likewise.
9839         * sysdeps/stub/poll.c: Likewise.
9840         * sysdeps/stub/raise.c: Likewise.
9841         * sysdeps/stub/readv.c: Likewise.
9842         * sysdeps/stub/setenv.c: Likewise.
9843         * sysdeps/stub/setlogin.c: Likewise.
9844         * sysdeps/stub/sigaltstack.c: Likewise.
9845         * sysdeps/stub/sigintr.c: Likewise.
9846         * sysdeps/stub/sigstack.c: Likewise.
9847         * sysdeps/stub/sleep.c: Likewise.
9848         * sysdeps/stub/sstk.c: Likewise.
9849         * sysdeps/stub/stime.c: Likewise.
9850         * sysdeps/stub/stty.c: Likewise.
9851         * sysdeps/stub/syscall.c: Likewise.
9852         * sysdeps/stub/sysconf.c: Likewise.
9853         * sysdeps/stub/truncate.c: Likewise.
9854         * sysdeps/stub/ualarm.c: Likewise.
9855         * sysdeps/stub/usleep.c: Likewise.
9856         * sysdeps/stub/utimes.c: Likewise.
9857         * sysdeps/stub/writev.c: Likewise.
9858
9859         * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
9860
9861 Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9862
9863         * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
9864
9865 Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9866
9867         * posix/glob.c (glob): If GLOB_MARK set, stat names to find
9868         directories and append slashes to them in final pass before
9869         sorting.
9870         (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
9871         slash; never append it here.
9872
9873 Sat Apr 22 14:48:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9874
9875         * mach/Machrules [interface-library]
9876         (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
9877         -nostdlib.
9878
9879         * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed.  Lock
9880         _hurd_siglock only around initial task creation in parent.  Use
9881         _hurd_critical_section_unlock at end.  Handle dead name rights
9882         properly, and deal with a send right dying while we try to copy
9883         it.  For the time being, use assert_perror for kernel and proc RPC
9884         failures.
9885
9886 Fri Apr 21 01:10:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9887
9888         * extra-lib.mk: Don't include $(o-iterator); construct it by hand
9889         using $(object-suffixes-$(lib)) instead.
9890
9891         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
9892
9893         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
9894         (LDFLAGS-c.so): New variable.
9895
9896         * resolv/res_init.c (res_init): Don't clobber _res.options with
9897         RES_DEFAULT.  If RES_INIT is clear, OR in RES_DEFAULT.
9898
9899         * hurd/hurd.h: Declare _hurd_startup.
9900         * hurd/hurdstartup.c: New file.
9901         * hurd/Makefile (routines): Add hurdstartup.
9902
9903 Thu Apr 20 22:23:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9904
9905         * hurd/hurdsig.c: Use assert_perror for many calls which should
9906         never fail and previously were not checked.
9907
9908         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
9909         Point the return address for sigreturn's frame at a "hlt" insn so
9910         it will definitely crash if sigreturn returns.
9911
9912 Wed Apr 19 18:40:11 1995  Brendan Kehoe  (brendan@zen.org)
9913
9914         * time/tzset.c (__tzname, __daylight, __timezone): Don't check
9915         HAVE_WEAK_SYMBOLS for doing weak_alias.
9916
9917 Wed Apr 19 18:12:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9918
9919         * configure.in: Move $os tests to set $elf et al earlier, before
9920         construction of $sysnames.  Instead of prepending MACHINE/elf to
9921         $sysnames, append &/elf after each elt appended to $mach.
9922
9923 Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9924
9925         * configure.in (libc_cv_asm_global_directive): New check to define
9926         ASM_GLOBAL_DIRECTIVE.
9927         * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
9928         * libc-symbols.h (strong_alias_asm, strong_alias): Use
9929         ASM_GLOBAL_DIRECTIVE on the alias.
9930
9931         * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
9932         HAVE_WEAK_SYMBOLS" #defns.
9933
9934 Mon Apr 17 12:02:49 1995  Brendan Kehoe  (brendan@zen.org)
9935
9936         * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
9937         of the byte that was zero, so we return a valid number.
9938
9939 Sun Apr 16 03:23:09 1995  Brendan Kehoe  (brendan@zen.org)
9940
9941         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
9942         NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
9943
9944 Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)
9945
9946         * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
9947         [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
9948         * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
9949         [BITS_PER_MP_LIMB == 64]: Likewise.
9950
9951         * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
9952         * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
9953         * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
9954         * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
9955         * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
9956         * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
9957         * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
9958         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
9959         * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
9960         * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
9961         * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
9962
9963         * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
9964         * sysdeps/unix/mips/fork.S (fork): Likewise.
9965         * sysdeps/unix/mips/pipe.S (fork): Likewise.
9966         * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
9967         * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
9968         * sysdeps/unix/mips/wait.S (__handler): Likewise.
9969         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
9970         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
9971         * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
9972         * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
9973         * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
9974         * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
9975         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
9976         * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
9977         * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
9978         * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'
9979         instead of `zero' for the li instruction.
9980
9981         * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
9982         preprocessor comments, not assembler comments.
9983         * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
9984         * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
9985
9986 Fri Apr 14 15:53:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9987
9988         * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
9989         in place of inline.
9990
9991 Thu Apr 13 09:45:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9992
9993         * Makefile (distribute): Add ChangeLog.[0-9].
9994
9995         * configure.in: Add check for .set directive.
9996         * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
9997         * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
9998         strong_alias_asm): Use `foo = bar' syntax instead.
9999
10000         * Makerules [! subdir] (O%-lib): Don't prepend ../.
10001
10002         * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
10003
10004         * configure.in: Fix AC_ARG_WITH uses; check for --with-fp.  Move
10005         $host_os checks to set gnu_ld/as and elf before sysdirs
10006         generation.  Fix $with_fp test.
10007         [$elf=yes]: Prepend MACHINE/elf directory.
10008
10009         * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
10010         being cleared are already known to be set.  Thanks Ulrich.
10011
10012 Wed Apr 12 23:27:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10013
10014         * posix/environ.c: Add weak alias `_environ'.
10015
10016 Tue Apr 11 20:38:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10017
10018         * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
10019         * sysdeps/i386/sub_n.S [PIC]: Likewise.
10020
10021 Mon Apr 10 14:53:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10022
10023         * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
10024         word `const'.
10025
10026         * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
10027         $(foo-$(suffix $@)).
10028
10029         * manual/Makefile (chapters-incl): Filter out summary.texi.
10030
10031         * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
10032         a weak symbol instead of literal "STRTOF".
10033
10034         * locale/setlocale.c: Work around ld bug: don't weakify refs to
10035         _nl_{current,C}_*.
10036
10037 Sun Apr  9 01:24:33 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10038
10039         * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
10040
10041         * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
10042         * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
10043
10044         * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
10045         #ifdef emacs, but only #ifndef memmove.
10046         * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
10047         safe_bcopy.
10048         (memmove): Define only if undefined.
10049
10050 Sat Apr  8 00:40:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10051
10052         * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
10053         sure these are simply-expanded variables.
10054
10055         * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
10056         mmap call.
10057
10058         * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
10059         for these too.
10060
10061         * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
10062         set c_oflag value.
10063
10064         * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
10065
10066         * locale/Makefile (categories): Uncomment collate.
10067         * locale/lc-collate.c: New file.
10068
10069         * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
10070         #ifdef emacs.
10071         * malloc/realloc.c: Likewise.
10072
10073         * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
10074         (_itoa): Use it in defn.
10075         * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
10076         "_itoa.h".
10077         (_itoa): Function removed.
10078
10079         * malloc/free.c: Remove use of `assert'.
10080
10081         * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
10082         __malloc_safe_bcopy; #define safe_bcopy.
10083         * malloc/free.c: Cope with systems lacking `memmove'.
10084         (_free_internal): Cast result of _malloc_internal.
10085
10086 Wed Apr  5 00:13:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10087
10088         * hurd/hurdinline.c: Include signal.h first, so we don't define
10089         its inlines too.
10090
10091         * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
10092         of -1 to avoid compiler warning.
10093
10094         * configure.in (host_os=linux*): Set elf=yes for this, not just
10095         linux*elf*.
10096
10097         * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
10098         and open.
10099
10100         * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
10101
10102 Tue Apr  4 00:48:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10103
10104         * sysdeps/unix/start.c: Remove spurious decl and #endif.
10105
10106         * misc/progname.c (program_invocation_name,
10107         program_invocation_short_name): Make these initialized data
10108         definitions.
10109
10110         * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
10111         so gcc doesn't optimize out the function entirely.
10112
10113 Sun Apr  2 13:13:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10114
10115         * posix/execvp.c: Don't use stat to search path; just try execv
10116         until it works.
10117
10118         * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
10119         SS->active_resources, so that _hurdsig_longjmp_from_handler will
10120         be called when a longjmp unwinds the signal frame.
10121         * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
10122         SS->active_resources chain added by _hurd_setup_sighandler.
10123         * hurd/sigunwind.c: New file.
10124         * hurd/Makefile (sig): Add sigunwind.
10125
10126         * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
10127
10128         * MakeTAGS (tags-sources): Include $(all-dist).
10129         [subdir] (all-dist): Define to $(distribute).
10130
10131 Sat Apr  1 00:08:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10132
10133         * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
10134         parent objdirs.
10135
10136         * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
10137         filtering out $($(lib)-inhibit-o); use that instead of
10138         $(object-suffixes) in all the other variables.
10139
10140         * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
10141         if undefined.
10142
10143         * string/strxfrm.c: Just copy the string (for now).
10144         * string/strcoll.c: Just call strcmp (for now).
10145
10146         * mach/Makefile (lock): Add mutex-init.
10147         * mach/mutex-solid.c (_cthread_mutex_lock_routine,
10148         _cthread_mutex_unlock_routine): Variables removed.
10149         (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
10150         (__mutex_init): Function moved to new file mutex-init.c.
10151         * mach/mutex-init.c: New file, broken out of mutex-solid.c.
10152
10153 Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>
10154
10155         * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
10156         * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
10157
10158 Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10159
10160         * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
10161         both are zero).
10162
10163 Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10164
10165         * elf/dlfcn.h: New file.
10166
10167         * Make-dist (README): Commit it to CVS if there is a CVS directory.
10168
10169         More changes from Germano Caronni <caronni@tik.ethz.ch>:
10170         * malloc/free.c: Relocate _heapinfo when that allows us to return
10171         core to the system.
10172
10173         * malloc/malloc.c: Move #include <errno.h> outside #ifndef
10174         _MALLOC_INTERNAL.
10175
10176 Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10177
10178         * mach/Makefile (headers): Add mach/mach_traps.h.
10179
10180         * Makerules ($(installed-libcs) rule): Fix typos.
10181
10182         * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
10183         * sysdeps/stub/revoke.c: New file.
10184         * misc/Makefile (routines): Add revoke.
10185         * posix/unistd.h [__USE_BSD] (revoke): Declare it.
10186         * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
10187         (forkpty): Declare login_tty.
10188         * misc/logwtmp.c (logwtmp): Declare to return void.
10189         * misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.
10190
10191         * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
10192
10193         * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
10194         unless L_SET already defined.
10195         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
10196         already defined.
10197
10198         Incorporated -lutil library from 4.4-Lite.
10199         * misc/Makefile (extra-libs, libutil-routines): New variables.
10200         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
10201         sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
10202
10203         Support simple, light-weight unwind-protect mechanism for longjmp.
10204         * setjmp/longjmp.c: Call _longjmp_unwind first thing.
10205         * sysdeps/mach/hurd/jmp-unwind.c: New file.
10206         * sysdeps/stub/jmp-unwind.c: New file.
10207         * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10208         * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10209         * setjmp/Makefile (routines): Add jmp-unwind.
10210         * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
10211         `prevp' members into new substructure `resource'; add another such
10212         substructure `thread' and members `cleanup' (function ptr) and
10213         `cleanup_data' (generic ptr).
10214         (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
10215         into the `_hurd_self_sigstate ()->active_resources' list via the
10216         `thread' substructure.
10217         * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
10218         (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
10219         LINK->cleanup_data' to the port extracted.
10220         * hurd/hurd/signal.h (struct hurd_sigstate): New member
10221         `active_resources'.
10222         * hurd/port-cleanup.c: New file.
10223         * hurd/Makefile (routines): Add port-cleanup.
10224
10225         * malloc/malloc.c: Include errno.h.
10226
10227 Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10228
10229         * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
10230
10231 Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10232
10233         * misc/Makefile (headers): Add utmp.h.
10234         * misc/utmp.h: New file, incorporated from 4.4-Lite.
10235
10236         * stdio/printf-parse.h: New file, mostly written by drepper.
10237         * stdio/vfprintf.c: Rewritten, mostly by drepper.
10238         * stdio/printf-prs.c: Rewritten.
10239         * stdio/Makefile (distribute): Add printf-parse.h.
10240
10241 Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10242
10243         * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
10244         with asm name.  Just do a ".set start, __start".
10245
10246         * malloc/realloc.c: Call _free_internal instead of free.
10247
10248 Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10249
10250         * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
10251         directory, open LOCALE/LC_*/SYS_LC_* instead.
10252
10253 Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10254
10255         * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
10256         stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
10257         stdio/gen-mpn-copy: Files moved to stdlib.
10258         * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
10259         * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
10260         * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
10261         headers.
10262         * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
10263         headers.
10264
10265         * Makefile (parent-mostlyclean): Don't use $(libc.a).
10266         (parent-clean): Use $(objpfx) to find sysd-*.
10267         * Rules (generated): Append dummy.o dummy.c.
10268         * Makerules (lib): Depend on lib-noranlib.
10269         (lib-noranlib): Depend on $(install-lib) in objdir.
10270         (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
10271         from objdir.  Don't remove TAGS; it comes in the distribution.
10272
10273         * malloc/malloc.c (morecore): Save errno around call to
10274         _realloc_internal.  Don't account for the additional new blocks of
10275         the info table itself when choosing the new table size for the
10276         first crack; if it succeeds, the new blocks will have been found
10277         in existing free space already described by the existing info
10278         table.
10279
10280         * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
10281         read-ahead character.
10282
10283 Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10284
10285         * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
10286           hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
10287           hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
10288           hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
10289         Get anal with unsigned to pacify compiler.
10290
10291         * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
10292         means %d from 3rd arg).
10293
10294         * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
10295
10296         * stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
10297         END, not GROUP.
10298
10299 Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10300
10301         * Makefile (subdirs): Put elf last.
10302
10303         * sunrpc/Makefile (install-lib): Variable removed.
10304         (rpcsvc-objs): Variable removed.
10305         (extra-objs): Don't include $(rpcsvc-objs).
10306         (extra-libs): New variable, contains librpcsvc.
10307         (librpcsvc-routines): New variable.
10308         (librpcsvc-inhibit-o): New variable, contains .so.
10309         (omit-deps): Set this to $(librpcsvc-routines).
10310         ($(objpfx)rpcgen): Don't use $(libc.a).
10311         (lib, $(objpfx)librpcsvc.a): Targets removed.
10312
10313         * o-iterator.mk, extra-lib.mk: New files.
10314         * Makerules (o-iterator): New variable.
10315         [extra-libs]: Include extra-lib.mk to generate rules for each word
10316         of $(extra-libs).
10317         * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
10318
10319 Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
10320
10321         * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
10322         Handle 80-bit denormalized numbers correctly.
10323
10324         * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
10325         (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
10326         * stdlib/strtod.c (RETURN): Add parentheses around return value.
10327         (round_and_return): Correct handling of denormalized numbers.
10328
10329         * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
10330         LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
10331         exponent.
10332
10333 Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10334
10335         * locale/C-ctype.c: New correct data generated by drepper.
10336
10337         * Rules: Don't use $(libc.a).
10338
10339         Parsing of grouped numbers contributed by Ulrich Drepper.
10340         * stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
10341         new flag arg; if nonzero, parse locale-dependent thousands
10342         grouping and interpret only the prefix that is correctly grouped.
10343         (strtol): Define this to call _strtol_internal with zero for the flag.
10344         Use a weak symbol for the definition.
10345         * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
10346         Check for the exponent of the number overflowing the float format.
10347         * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
10348         (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
10349         [__OPTIMIZE__]: Define inline functions calling those.
10350         * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
10351         (strtold): Remove weak alias.
10352         * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
10353         (strtof): Remove weak alias.
10354         * stdlib/grouping.h: New file, written by drepper.
10355         * stdlib/Makefile (distribute): Add grouping.h.
10356         * stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
10357         __strtoX_internal with the grouping flag set iff the modifier is
10358         present.
10359
10360 Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10361
10362         * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
10363
10364         * mach/Machrules: Produce static deps for all object flavors.
10365         [interface-library]: Remove all these variables and rules.
10366         ($(interface-library)-routines): Define this variable.
10367         (extra-libs): Append $(interface-library) to this.
10368         * mach/Makefile (interface-library): Omit .a suffix.
10369         * hurd/Makefile: Likewise.
10370
10371 Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10372
10373         * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
10374         early if no new data in buffer after priming.
10375
10376 Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10377
10378         * Makerules (object-suffixes, libtypes): Move all these variables
10379         to Makeconfig.
10380         * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
10381
10382         * Makerules (build-extra-lib): New canned sequence.
10383
10384         * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
10385         fix uses of FILE and PORT.  Remove bogus weak alias for `access'.
10386
10387         * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
10388         Add missing semicolon.
10389         * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
10390         hurd_fd *' temp var, since DIRP->__fd is a `void *'.
10391         * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
10392
10393         * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
10394         locale data format is implemented.
10395
10396         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10397         Pass &__sigreturn on the stack to the trampoline code, so it is
10398         not position-dependent.
10399
10400         * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
10401         Don't include <stdarg.h>.
10402         (__printf_fp): Last arg ARGS is now `const void **const';
10403         dereference ARGS[0] instead of using va_arg.
10404
10405         * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
10406         loop to install data.
10407
10408         * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
10409         to extract number from item code.
10410         (_nl_load_locale): Close the descriptor when finished.
10411
10412         * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
10413         place of malloc.
10414
10415         * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
10416
10417         * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
10418         to avoid warning.
10419         * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
10420         int to avoid warning.
10421
10422         Support building several flavors of objects and libraries.
10423         * Makerules (libtypes, object-suffixes): New variables.
10424         (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
10425         suffix.
10426         (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
10427         (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
10428         (close-check-inhibit-asm): Append a semicolon.
10429         (sysd-rules): Generate rules for each object suffix.
10430         (compile.S, compile.c): Always assume gcc.
10431         (OUTPUT_OPTION): Define unconditionally.
10432         (+make-deps): In generated rule, produce a dependent for each
10433         object suffix.
10434         (.SUFFIXES): Add $(object-suffixes) in place of .o.
10435         (.PRECIOUS): Make all suffix flavors precious.
10436         ($(libc.a)): Target removed.
10437         (lib): Depend on each enabled libtype.
10438         (libobjs, objects, objs): Depend on all the enabled object flavors.
10439         (lib%.a): New pattern rule.
10440         [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
10441         (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
10442         to make one for each flavor; library dep rule likewise rewritten.
10443         ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
10444         flavor.
10445         (symdef.%): New pattern rule; helper for __.SYMDEF targets.
10446         (installed-libcs): New variable.
10447         (install): Depend on that instead of
10448         $(libdir)/lib$(libprefix)$(libc-name).a;
10449         that file's rule rewritten to make each enabled libtype.
10450         (install-lib.so): New variable, filters lib%.so from $(install-lib).
10451         (install-lib): Filter out lib%.so after setting install-lib.so.
10452         [$(build-shared)=yes] (install): Install $(install-lib.so).
10453         (common-mostlyclean): Remove all flavors of objects.
10454         * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
10455         [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
10456
10457 Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10458
10459         * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
10460         * sysdeps/stub/pause.c: Likewise.
10461         * sysdeps/stub/time.c: Likewise.
10462
10463         * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
10464         locale data format is implemented.
10465         * stdlib/wctomb.c: Likewise.
10466
10467         * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
10468         gcc bug is fixed.
10469         * mach/errsystems.c: File removed.
10470
10471         * Makeconfig (libc.a): Variable removed.
10472         (+link): Don't use it.
10473
10474         * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
10475         assuming `yes'.
10476
10477         * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
10478         * malloc/realloc.c (_realloc_internal): Renamed from realloc;
10479         don't use __realloc_hook.
10480         (realloc): New function; call __realloc_hook ?: _realloc_internal.
10481         * malloc/malloc.c (_malloc_internal): Renamed from malloc;
10482         don't use __malloc_hook.
10483         (malloc): New function; call __malloc_hook ?: _malloc_internal.
10484         Changes from Germano Caronni <caronni@tik.ethz.ch>:
10485         (initialize): Set up _heaplimit to cover the _heapinfo table.
10486         (morecore_recursing): New static variable.
10487         (morecore): If that is set, return null immediately.
10488         When growing the info table, before getting new core from the
10489         system for it, set morecore_recursing and try moving _heapinfo
10490         with _realloc_internal.  When that fails and we get new core, set
10491         _heaplimit to cover the core for the new _heapinfo table.
10492         (register_heapinfo): New function.  Record the _heapinfo table's
10493         own blocks in that table and in the statistics variables.
10494         (initialize, _malloc_internal): Use it after allocating new table.
10495
10496 Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)
10497
10498         * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
10499         by other packages.
10500         [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
10501
10502 Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10503
10504         * mach/errorlib.h (errors): Use const for decl.
10505
10506         * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
10507         (decode): New inline function; decode signed 32-bit integers, and
10508         sign-extend properly when long is longer than 32 bits.
10509         (__tzfile_read): Changed all uses of uc2ul to decode.
10510         Decode the transition times properly when sizeof (time_t) > 4.
10511
10512         * stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
10513         (printf_function): Make last arg ARGS a vector of pointers instead of a
10514         pointer to va_list.
10515
10516 Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
10517
10518         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
10519         (buffered_vfprintf): Remove line buffer when flush failed.
10520
10521 Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10522
10523         * time/tzfile.c (struct ttinfo): New member `isgmt'.
10524         (__tzfile_read): Read isgmt flags for each type.
10525         (__tzfile_default): When using TZDEFRULES DST rules, adjust
10526         transition times according to the isstd and isgmt flags for the
10527         types of each transition, and adjust each transition to point to
10528         type index either 0 or 1.  Reset type indices 0 and 1 to describe
10529         the user's settings.
10530
10531 Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10532
10533         * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
10534         into just CLASS.  Add standard/optional flag to all items.
10535
10536         * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
10537
10538         * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
10539         Rearrange defn to satisfy compiler.
10540
10541         * locale/localeinfo.h: Declare _nl_current.
10542
10543         * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args
10544         --enable-shared, --enable-profile, --enable-omitfp; pass settings
10545         through to config.make.
10546         * config.make.in (build-shared, build-profile, build-omitfp): New
10547         config vars.
10548
10549         * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
10550         (DT_NUM): New macro.
10551
10552         * locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.
10553
10554         * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
10555
10556         * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
10557         MAP_COPY to MAP_PRIVATE.
10558
10559 Thu Mar  9 17:16:53 1995  Brendan Kehoe  (brendan@zen.org)
10560
10561         * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
10562         that's used inside the alpha sysdep.h.
10563
10564         * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
10565         keyword.
10566         * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
10567
10568         * configure.in: Match `osf*', not `osf1*'.
10569         * configure: Likewise.
10570         * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
10571
10572 Wed Mar  8 13:38:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10573
10574         * posix/glob/configure.bat: Fixes from DJ.
10575
10576         * time/backward, time/europe, time/northamerica, time/pacificnew,
10577         time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
10578         time/ialloc.c: Code and data updated from ADO's 95b.
10579         * time/emkdir.c: File removed.
10580         * time/Makefile (distribute, extra-objs, zic): Omit it.
10581
10582         * time/localtime.c: Deansideclized.  Never #define __tzname et al
10583         to non-__ names.
10584
10585         * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
10586         instead of short int *.
10587         * ctype/ctype-info.c: Likewise.
10588         * ctype/ctype.h: Likewise.
10589
10590         * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
10591         of EB and EL versions.
10592
10593 Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10594
10595         * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
10596         (_IS* enum): Use _ISbit to produce values.
10597
10598 Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10599
10600         * locale/localeinfo.h: Rewritten for new locale system, using
10601         locale data files and with <langinfo.h> interface.
10602         * locale/setlocale.c: Rewritten to use locale data files.
10603         * langinfo.h: New file.
10604         * locale/langinfo.h: New file.
10605         * locale/nl_langinfo.c: New file.
10606         * locale/loadlocale.c: New file.
10607         * locale/lc-ctype.c: New file.
10608         * locale/lc-messages.c: New file.
10609         * locale/lc-monetary.c: New file.
10610         * locale/lc-numeric.c: New file.
10611         * locale/lc-time.c: New file.
10612         * locale/categories.def: New file.
10613         * locale/Makefile (headers): Remove localeinfo.h.
10614         (distribute): New variable; put localeinfo.h here, and categories.def.
10615         (routines): Add loadlocale.
10616         (categories): New variable.
10617         (aux): Use that to get C-category and lc-category.
10618         * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
10619         * ctype/ctype-info.c: For initial tables, use
10620         _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
10621         locale/C-ctype.c.
10622         * locale/C-ctype.c, locale/C-messages.c: New files.
10623         * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
10624         Default "C" locale data updated for new locale system.
10625         * locale/C-collate.c: File removed.
10626         * locale/C-ctype_ct.c: File removed.
10627         * locale/C-ctype_mb.c: File removed.
10628         * locale/C-response.c: File removed.
10629         * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
10630         * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
10631           stdlib/strtod.c, time/asctime.c, time/strftime.c:
10632         Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
10633         locale data.
10634         * time/localtime.c: Don't include <localeinfo.h>.
10635         * time/tzset.c: Don't use locale items for default TZ value or
10636         "GMT" string (use "UTC").
10637
10638         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
10639         WIDTH>0; update DONE.
10640
10641         * malloc/malloc.c (morecore): Fix last change to calculate by
10642         blocks instead of bytes.
10643
10644 Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10645
10646         * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
10647         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
10648         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
10649         * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
10650         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
10651         * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
10652         alias munmap.
10653         * sysdeps/unix/mman/munmap.S: Likewise.
10654         * sysdeps/mach/munmap.c: Likewise.
10655         * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
10656         alias mmap.
10657         * sysdeps/unix/mman/mmap.S: Likewise.
10658         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
10659         * sysdeps/stub/mmap.c: Likewise.
10660
10661         * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
10662
10663         * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
10664
10665 Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10666
10667         * misc/search.h: Add missing semicolon.
10668
10669         * sysdeps/unix/dirfd.c: Fix typo.
10670
10671         * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
10672         in decl.
10673
10674         * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
10675         WIDTH before test.
10676
10677 Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10678
10679         * stdlib/strtod.c: Fixes from drepper.
10680         [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
10681         * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
10682         * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
10683
10684         * stdio/vfprintf.c: Correctly notice Z modifier.
10685
10686         * misc/search.h: New file.
10687         * misc/Makefile (headers): Add search.h.
10688         * misc/insremque.c: Include search.h.
10689         (struct qelem): Type removed.
10690
10691 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10692
10693         * elf/libelf.h: New file.
10694         * elf/elf_hash.c: New file.
10695
10696 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10697
10698         Changes from Germano Caronni <caronni@tik.ethz.ch>:
10699         * malloc/malloc.c (morecore): Account in NEWSIZE for the
10700         malloc_info structures for each new block.
10701
10702 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10703
10704         * sysdeps/mach/hurd/kill.c: When the process has no message port
10705         registered and we have its task port, translate a few signals to
10706         task_suspend/task_resume/task_terminate.
10707
10708 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10709
10710         * io/Makefile (routines): Add euidaccess.
10711         * sysdeps/mach/hurd/euidaccess.c: New file.
10712         * sysdeps/stub/euidaccess.c: New file.
10713         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
10714
10715         * dirent/Makefile (routines): Add dirfd.
10716         * sysdeps/stub/dirfd.c: New file.
10717         * sysdeps/unix/dirfd.c: New file.
10718         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
10719         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
10720         _DIR_dirfd if that is defined.
10721         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
10722         with `void *__fd'.
10723         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
10724         Open the file with `open'; set FD_CLOEXEC on the fd.
10725         * sysdeps/mach/hurd/closedir.c: Likewise.
10726         * sysdeps/mach/hurd/readdir.c: Likewise.
10727         * sysdeps/mach/hurd/dirfd.c: New file.
10728
10729         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
10730         directory.
10731         (glob/ChangeLog): Likewise.
10732
10733         * locale/locale.h (LC_*): Use small integers instead of bit masks.
10734
10735         * stdio/bug4.c: Put temporary files in /tmp.
10736         * stdio/bug3.c: Likewise.
10737         * stdio/bug5.c: Likewise.
10738         * stdio/test-fseek.c: Likewise.
10739         * stdio/test-popen.c: Likewise.
10740
10741 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10742
10743         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
10744
10745         * libc-symbols.h (weak_symbol): New macro.
10746
10747         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
10748         elts with null handlers.
10749
10750         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
10751
10752 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10753
10754         * stdlib/random.c (__srandom): Change algorithm used to populate
10755         the state array.
10756         (randtbl): Recomputed with new algorithm.
10757
10758         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
10759         to original value of `crypt'.
10760         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
10761         (crypt): New variable, set to crypt.solar.
10762
10763 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
10764
10765         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
10766
10767         * config.h.in: Put comment around ^L to pacify Solaris as here too.
10768
10769 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10770
10771         * string/Makefile (distribute): Add pagecopy.h.
10772         * sysdeps/mach/pagecopy.h: New file.
10773         * sysdeps/generic/pagecopy.h: New file.
10774         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
10775         PAGE_COPY_FWD_MAYBE first when word aligned.
10776         * sysdeps/generic/memmove.c: Likewise.
10777
10778         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
10779         (getpgrp): Call __getpgid instead of __getpgrp.
10780
10781         * Makefile (subdirs): Add elf first.
10782         * elf/Makefile: New file.
10783         * elf/elf.h: New file.
10784
10785         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
10786         as a macro.
10787         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
10788         indirection.
10789
10790         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
10791         add crti_s, crtn_s.
10792         (install-lib, extra-objs, generated-, omit-deps): Use that.
10793         (initfini): New canned sequence, broken out of crt[in].s rule.
10794         (crt[in].s rule): Use it.
10795         (crt[in]_s.s): New rule.
10796         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
10797         (_init, _fini): Use GLOBAL as storage class.
10798         Add self reference to avoid GCC optimizing out the functions.
10799
10800         * Makefile (headers): Remove $(stddef.h).
10801         * Makeconfig (stddef.h): Variable removed; now require gcc version
10802         >= 2.2.
10803         * stddef.h: File removed.
10804
10805 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10806
10807         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
10808         definition.
10809         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
10810
10811         * stdlib/strtod.c: Allow the string to start with a decimal point
10812         without a leading zero.
10813
10814 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
10815
10816         * Makefile (subdirs): Put csu first.
10817
10818         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
10819
10820         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
10821         to crt[in].o.
10822         (csu-objpfx): New variable.
10823         (+link): Use it to find start.o and $(+preinit), $(+postinit).
10824
10825         * Rules (subdir_lib, all): Depend on objs.
10826
10827         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
10828
10829         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
10830         access to float.h macros.
10831
10832         * misc/efgcvt.c: New file.
10833         * misc/Makefile (routines): Add efgcvt.
10834
10835 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
10836
10837         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
10838         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
10839         to avoid a misreference that would override sysdeps/generic/mul.c.
10840         * sysdeps/sparc/Dist: Likewise.
10841
10842 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
10843
10844         * posix/Makefile (aux): Add environ.
10845         * posix/environ.c: New file.
10846         * sysdeps/unix/sparc/start.c: Remove __environ definition.
10847         * sysdeps/unix/start.c: Likewise.
10848         * sysdeps/unix/sysv/irix4/start.c: Likewise.
10849         * sysdeps/mach/hurd/start.c: Likewise.
10850         * sysdeps/mach/start.c: Likewise.
10851         * sysdeps/stub/start.c: Likewise.
10852
10853         * sysdeps/unix/make_errlist.c: In produced program, test
10854         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
10855         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
10856         Remove extra weak alias.
10857
10858         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
10859         in #include.
10860
10861         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
10862
10863         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
10864         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
10865         $(CPPFLAGS).
10866         (mk-stdiolim): Use it instead.
10867
10868 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
10869
10870         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
10871         not work to make a weak alias to a bss symbol.
10872
10873         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
10874         (tests): Add test-fwrite.
10875         * stdio/test-fwrite.c: New file.
10876
10877         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
10878         __strtold.
10879
10880         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
10881         there is a CVS directory.
10882         (configure, %/configure): Use $(autoconf-it) for cmds.
10883         * Make-dist: Likewise.
10884         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
10885         if there is a CVS directory.
10886         * sysdeps/sparc/Makefile (divrem output): Likewise.
10887         * sysdeps/alpha/Makefile (divrem output): Likewise.
10888         * Makerules ($(gpl2lgpl)): Likewise.
10889
10890         * Makerules (rule to install lib%.a from $(install-lib)): Fix
10891         patsubst to elide ranlib for $(non-lib.a).
10892
10893         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
10894
10895 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
10896
10897         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
10898         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
10899
10900 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10901
10902         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
10903         DEALLOC_REFPORT; deallocate the refport after use only if it
10904         evaluates to nonzero.
10905         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
10906         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
10907
10908         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
10909         *STATE_CHANGE to indicate whether or not we changed *STATE and it
10910         should be committed to the thread.
10911         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
10912         state for a thread, do thread_set_state on that thread.  Don't use
10913         SS->intr_port for collecting reply ports, it is not safe to
10914         clobber that when suspending; instead, alloca a temporary array.
10915         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
10916         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
10917
10918         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
10919         HURD_FD_PORT_USE will.  Don't use critical sections around
10920         HURD_FD_PORT_USE invocations.
10921
10922         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
10923         * sysdeps/posix/stdio_init.c: Likewise.
10924
10925 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10926
10927         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
10928         locking; don't leave the descriptor locked on return.
10929         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
10930         Use a critical section around locking the descriptor.
10931         Check for an empty descriptor and return EBADF.
10932         * sysdeps/mach/hurd/dup2.c: Likewise.
10933         * sysdeps/mach/hurd/fcntl.c: Likewise.
10934         Use HURD_FD_PORT_USE macro for RPCs.
10935         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
10936         using HURD_FD_PORT_USE.
10937         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
10938         to lock the descriptor.
10939         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
10940         locking the descriptor.
10941         * sysdeps/mach/hurd/fdopen.c: Likewise.
10942         * hurd/fd-close.c: Likewise.
10943         Don't expect the descriptor to be locked on entry.
10944         Check for empty descriptor and return EBADF.
10945
10946         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
10947         new functions _hurd_ctty_input and _hurd_ctty_output, each
10948         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
10949         * hurd/ctty-input.c: New file.
10950         * hurd/ctty-output.c: New file.
10951         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
10952         * hurd/fd-read.c: Use _hurd_ctty_input.
10953         * hurd/fd-write.c: Use _hurd_ctty_output.
10954         * sysdeps/mach/hurd/ioctl.c: Likewise.
10955         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
10956
10957 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10958
10959         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
10960         as appropriate to the type.
10961
10962         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
10963         repeating the union.
10964         (HUGE_VAL, __huge_val): Use it.
10965         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
10966         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
10967         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
10968         (STRTOF): Set to __strtold; define strtold as weak alias.
10969         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
10970         (STRTOF): Set to __strtof; define strtof as weak alias.
10971
10972         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
10973         (IEEE754_FLOAT_BIAS): New macro.
10974
10975         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
10976
10977         * stdlib/testmb.c: Add tests from rfg for using normal chars as
10978         multibyte chars.
10979
10980         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
10981         only the `defined but not used' warning, but also to avoid GCC
10982         optimizing out the entire function (!).
10983
10984         * stdlib/wctomb.c: Include ctype.h.
10985
10986         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
10987
10988         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
10989
10990 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
10991
10992         * stdio/printf_fp.c: Include "fpioconst.h".
10993         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
10994         (__printf_fp): All references changed.
10995         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
10996         (group_number): Use memmove instead of memcpy, since operands overlap.
10997         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
10998         * stdio/fpioconst.h: New file, header declaring the table data.
10999         * stdio/Makefile (aux): Add fpioconst.
11000         (distribute): Add fpioconst.h.
11001         * stdlib/strtod.c: Complete rewrite from drepper.
11002         * stdlib/strtof.c: New file.
11003         * stdlib/strtold.c: New file.
11004         * stdlib/Makefile (routines): Add strtof, strtold.
11005         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
11006         * sysdeps/stub/mpn2flt.c: New file.
11007         * sysdeps/stub/mpn2dbl.c: New file.
11008         * sysdeps/stub/mpn2ldbl.c: New file.
11009         * sysdeps/ieee754/mpn2flt.c: New file.
11010         * sysdeps/ieee754/mpn2dbl.c: New file.
11011         * sysdeps/ieee754/mpn2ldbl.c: New file.
11012
11013         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
11014         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
11015         appears in $(non-lib.a).
11016
11017 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11018
11019         * stdlib/wctomb.c: A normal ASCII character translates to itself.
11020         * stdlib/mbtowc.c: Likewise.
11021
11022 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11023
11024         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
11025         Remove `const' from prototypes.
11026         * sysdeps/m68k/__longjmp.c: Likewise.
11027         * setjmp/longjmp.c: Likewise.
11028         * sysdeps/i386/__longjmp.c: Likewise.
11029
11030         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
11031         so when we return a name, it is incremented past the value that
11032         produces that same name.
11033
11034         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
11035         * stdio/stdio.h (fgets): Likewise.
11036
11037         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
11038
11039         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
11040         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
11041         and retry the RPC.
11042         * hurd/fd-read.c: Likewise.
11043
11044 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11045
11046         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
11047         <mach/mig_support.h>.
11048         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
11049         * assert/assert.c: Likewise.
11050         * sysdeps/posix/libc_fatal.c: Likewise.
11051
11052 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11053
11054         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
11055         as macros, to satisfy ANSI pedants.
11056
11057         * stdio/internals.c (flushbuf): When there is no new data after
11058         priming the stream, return without writing out the buffer.
11059         * stdio/Makefile (tests): Add bug7.
11060         * stdio/bug7.c: New file.
11061
11062         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
11063         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
11064         is defined.
11065
11066         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
11067
11068         * stdio/Makefile (tests): Add errnobug.
11069         * stdio/errnobug.c: New file.
11070
11071         * mach/mig_strncpy.c: Include string.h.
11072
11073         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
11074         inlines cause trouble for files defining global register variables.
11075
11076         * stdio/vfprintf.c: Use _strerror_internal for %m.
11077
11078         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
11079
11080         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
11081         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
11082         * stdio/vfprintf.c (group_number): New function.
11083         (vfprintf): Support %' flag for integer formats, by calling
11084         group_number after formatting the number in WORK.
11085         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
11086         (__printf_fp): Implement `group' flag using them.
11087
11088         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
11089         (parent-clean): Remove sysd-rules, not sysdirs.
11090         (distclean): Pass avoid-generated=yes to submake.
11091         (distclean-1): Remove $(sysdep-$(distclean-1)).
11092
11093         * Makerules (objects, objs): Depend on $(extra-objs) too.
11094         (include sysd-Makefile): Protect with ifndef avoid-generated.
11095
11096         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
11097         (CPPFLAGS): Use $(defines) in place of $(+defines).
11098         Replace -D_LIBC with -include $(..)libc-symbols.h.
11099
11100         * stdio/freopen.c: Set seen bit before calling fclose.
11101
11102 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11103
11104         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
11105         successes and each kind of failure.  Return EPERM or EACCES only
11106         if every task failed that way.
11107
11108         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
11109         correctly.
11110
11111         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
11112         or resume the process after frobbing.
11113
11114         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
11115         throughout.
11116         (_hurd_thread_sigstate): Don't lock the sigstate lock.
11117         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
11118         repeated sequences with calls to it.  Don't expect the sigstate
11119         lock to be held on entry; lock it just before examining sigaction.
11120         In handler case, check SS->critical_section after calling
11121         abort_rpcs; if set, mark the signal pending and resume the thread.
11122         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
11123         (_hurd_self_sigstate): Don't lock the sigstate lock.
11124         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
11125         _hurd_self_sigstate_unlocked.
11126         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
11127         the sigstate lock.
11128         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
11129         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
11130         locking.
11131         * hurd/hurd-raise.c: Likewise.
11132         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11133         * sysdeps/mach/hurd/sigpending.c: Likewise.
11134         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
11135         * sysdeps/mach/hurd/sigaction.c: Likewise.
11136         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11137         * hurd/fd-write.c: Likewise.
11138         * hurd/fd-read.c: Likewise.
11139         * sysdeps/mach/hurd/ioctl.c: Likewise.
11140         * sysdeps/mach/hurd/fork.c: Likewise.
11141         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
11142         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
11143         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
11144         * hurd/hurdmsg.c (get_int): Likewise.
11145
11146         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
11147
11148         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
11149         global.
11150         (PAD): Caller changed.
11151         * stdio/printf_fp.c (__pad): Function removed.
11152         (PAD): Use __printf_pad instead.
11153
11154 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11155
11156         Merged new FP printer by Ulrich Drepper.
11157         * stdio/printf_fp.c: Rewrite by drepper.
11158         * stdio/Makefile (routines): Add ldbl2mpn.
11159         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
11160         member.
11161         (union ieee854_long_double): New type, from drepper.
11162         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
11163         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
11164         * sysdeps/stub/ldbl2mpn.c: New file.
11165         * math/Makefile (routines): Add isinfl and isnanl.
11166         * sysdeps/ieee754/isinfl.c: New file.
11167         * sysdeps/stub/isinfl.c: New file.
11168         * sysdeps/ieee754/isnanl.c: New file.
11169         * sysdeps/stub/isnanl.c: New file.
11170
11171         * malloc/malloc.c (__malloc_extra_blocks): New variable.
11172         (malloc): When getting more core, get __malloc_extra_blocks extra;
11173         put the new block at the end of the free list and let the next loop
11174         iteration use the initial portion of it.
11175         * malloc/free.c (_free_internal): Account for twice
11176         __malloc_extra_blocks in deciding if we have so much extra memory
11177         we should return it to the system.
11178         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
11179         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
11180         const in parameter decl.
11181
11182         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
11183
11184 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11185
11186         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
11187
11188         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
11189         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
11190         * sysdeps/mips/bsd-setjmp.S: Likewise.
11191         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
11192         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
11193         Use `long int' for sigcode.  Use explicit register numbers instead
11194         of names.
11195         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
11196         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
11197
11198 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11199
11200         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
11201
11202         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
11203         using __stpncpy.
11204
11205         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
11206
11207         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
11208
11209 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11210
11211         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
11212         vm_size_t instead of size_t for arg and return types.
11213
11214         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
11215         already does.
11216
11217 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11218
11219         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
11220
11221         * configure.in (friendly stddef.h check): Write override defn for
11222         `stddef.h' Make variable.
11223         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
11224
11225         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
11226
11227         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
11228         empty file.
11229
11230         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
11231
11232 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11233
11234         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
11235
11236         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
11237         mach/machine/syscall_sw.h with this.
11238
11239 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11240
11241         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
11242         instead of <lock-intern.h>.
11243         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
11244         (_hurd_critical_section_lock): Use spin lock operators.
11245         Don't hold the sigstate lock, unlock it after setting the flag.
11246         (_hurd_critical_section_unlock): Take the sigstate lock
11247         to clear the flag; while holding it, check pending signals.  After
11248         unlocking, sig_post ourselves if there were pending signals.
11249
11250         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
11251         sigstate lock.  If it is locked, clear SS->critical_section and
11252         SS->context, and unlock it.
11253
11254         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
11255
11256         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
11257         * munch-tmpl.c: Likewise.
11258
11259         * mach/Makefile (routines): Don't filter out syscall_% from
11260         $(mach-syscalls).
11261
11262 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
11263
11264         * posix/fnmatch.c: Declare errno if it's not defined.
11265         That's simpler than testing #if !defined(__GNU_LIBRARY__)
11266         && !defined(STDC_HEADERS).
11267
11268 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11269
11270         * csu/Makefile: New file.
11271         * csu/initfini.c: New file.
11272         * Makefile (+other_dirs): Add csu.
11273         (+init): Variable renamed to libc-init.  All references changed.
11274         (aux): Remove start.
11275         (install-lib): Variable removed.
11276         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
11277
11278         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
11279         and $(objpfx)config.h.
11280         (static deps of RPC alias *.o): Removed.
11281
11282         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
11283         Protect macros with this.
11284         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
11285         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
11286         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
11287         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
11288         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
11289         * sysdeps/unix/mips/sysdep.h: Likewise.
11290
11291 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11292
11293         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
11294         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
11295
11296         * hurd/intr-rpc.awk: Emit weak alias.
11297
11298         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
11299         __getpgrp.
11300
11301         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
11302         this.
11303         * sysdeps/unix/i386/sysdep.h: Likewise.
11304         * sysdeps/unix/sparc/sysdep.h: Likewise.
11305
11306         * io/ftw.c: Avoid `ret' as variable name.
11307         * posix/glob.c: Likewise.
11308
11309         * ctype/ctype.h (_ISalpha): Define as its own bit.
11310         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
11311
11312         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
11313         DEFINE_HOOK with this.
11314
11315 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11316
11317         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
11318         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
11319         * mach/shortcut.awk: Emit weak alias.
11320         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
11321         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
11322         __ names.
11323         * mach/Makefile (lock): Remove spin-syms.
11324         (routines): Remove __ names, vm_page_size, msgserver_t.
11325         ($(mach-syscalls) rule): Generate files without __, add weak alias.
11326         Remove symbol alias file rule.
11327         ($(mach-shortcuts) rule): Likewise.
11328         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
11329         * mach/Machrules (if-calls.c): Variable and rule removed.
11330         (interface-headers): Don't add $($(if)-calls).
11331         (transform-user-stub): Define to add weak alias.
11332         * set-hooks.h: Use new libc-symbols.h set access macros.
11333         * time/Makefile (routines): Remove __ names.
11334         (aux): Variable removed.
11335         * hurd/Makefile: Likewise.
11336         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
11337         (data_start): Define as weak alias for __data_start.
11338         * sysdeps/mach/hurd/start.c: Likewise.
11339         * sysdeps/unix/sparc/start.c: Likewise.
11340         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
11341         sys_errlist.
11342         * sysdeps/mach/hurd/errlist.awk: Likewise.
11343         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
11344         alias for __environ.
11345         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11346         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
11347         * sysdeps/stub/getdomain.c: Likewise.
11348         * sysdeps/stub/vhangup.c: Likewise.
11349         * sysdeps/stub/swapon.c: Likewise.
11350         * sysdeps/stub/sendmsg.c: Likewise.
11351         * sysdeps/stub/recvmsg.c: Likewise.
11352         * sysdeps/stub/acct.c: Likewise.
11353         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
11354         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
11355         * sysdeps/posix/libc_fatal.c: Likewise.
11356         * sysdeps/i386/abort.c: Likewise.
11357         * sysdeps/i386/__longjmp.c: Likewise.
11358         * sysdeps/generic/make_siglist.c: Emit defn always for
11359         _sys_siglist.  Emit weak alias to sys_siglist.
11360         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
11361         * sysdeps/ieee754/log10.c: Likewise.
11362         * time/difftime.c: Likewise.
11363         * stdlib/random.c (srand): Define as weak alias for __srandom.
11364         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
11365         macros for __libc_atexit.
11366         * stdlib/Makefile (routines): Remove __random, srand.
11367         * stdio/gets.c: Use new link_warning macro instead of old
11368         warn_references.
11369         * stdio/Makefile (routines): Remove __ names.
11370         (aux): Remove syms-stdio.
11371         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
11372         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
11373         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
11374         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
11375         * stdio/stdio.h: Likewise.
11376         * misc/Makefile (routines): Remove __ names.
11377         (aux): Remove data_start.
11378         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
11379         * sysdeps/mach/hurd/brk.c: Likewise.
11380         * hurd/hurdid.c: Likewise.
11381         * hurd/hurdpid.c: Likewise.
11382         * hurd/openport.c: Likewise.
11383         * hurd/hurdsock.c: Likewise.
11384         * hurd/hurdsig.c: Likewise.
11385         * hurd/hurdrlimit.c: Likewise.
11386         * hurd/hurdmalloc.c: Likewise.
11387         * hurd/dtable.c: Likewise.
11388         * hurd/setauth.c: Likewise.
11389         * misc/progname.c: Likewise.
11390         * misc/init-misc.c: Likewise.
11391         * sysdeps/generic/vfork.c: Likewise.
11392         * sysdeps/unix/bsd/init-posix.c: Likewise.
11393         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
11394         * time/time.h: Likewise.
11395         * math/Makefile (routines): Remove __ names.
11396         * io/Makefile: Likewise.
11397         * termios/Makefile: Likewise.
11398         * resource/Makefile: Likewise.
11399         * signal/Makefile: Likewise.
11400         * dirent/Makefile: Likewise.
11401         * assert/assert.h: Replace __NORETURN keyword with __attribute__
11402         uses.  Functions return void and macros deal with this.
11403         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
11404         Return void.  Don't include gnu-stabs.h.
11405         * assert/assert.c: Likewise.
11406         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
11407         getpgid.
11408         (aux): Remove environ.
11409         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
11410         __attribute__ use.
11411         * posix/unistd.h (_exit): Likewise.
11412         (__getpgrp, __setpgrp): Declarations removed.
11413         (__getpgid, getpid): Declare these.
11414
11415         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
11416         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
11417         $libc_link_{sources,dests}.
11418         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
11419         create files, just add to libc_link_{dests,sources}.
11420
11421         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
11422
11423         * config.h.in: Add #undefs used by sysdeps configures.
11424
11425         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
11426         __setpgid, __getpgid.
11427         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
11428         from setpgrp.c.
11429         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
11430         from __getpgrp.c.
11431         * sysdeps/unix/bsd/getpgrp.c: File removed.
11432         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
11433         Call __getpgid with zero.
11434         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
11435         weak aliases setpgid and setpgrp.
11436         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
11437         * sysdeps/unix/common/setpgid.S: Likewise.
11438         * sysdeps/mach/hurd/setpgid.c: Likewise.
11439         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
11440         Use subcall 5 to __pgrpsys.
11441         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
11442         weak alias getpgid.
11443         * sysdeps/mach/hurd/getpgid.c: Likewise.
11444         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
11445         * sysdeps/unix/common/getpgid.S: Likewise.
11446         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
11447         Use subcall 4 to __pgrpsys.
11448         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
11449         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
11450         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
11451         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
11452         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
11453         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
11454         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
11455         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
11456         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
11457         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
11458         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
11459         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
11460
11461         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
11462         from __getdents.S.
11463
11464         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
11465         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
11466         warning.
11467         * sysdeps/stub/fexecve.c: Likewise.
11468         * sysdeps/stub/fchdir.c: Likewise.
11469         * sysdeps/stub/fchflags.c: Likewise.
11470         * sysdeps/stub/chflags.c: Likewise.
11471
11472         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
11473         * sysdeps/generic/abort.c: Likewise.
11474         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
11475
11476         * hurd/hurdioctl.c: Include hurd/ioctl.h.
11477         (_hurd_ioctl_handler_lists): Define this set.
11478         (_hurd_lookup_ioctl_handler): New function.
11479         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
11480         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
11481         (_hurd_lookup_ioctl_handler): Declare it.
11482         (ioctl_handler_t): New typedef.  Use it throughout.
11483         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
11484         (_hurd_ioctl_handler_lists): Don't define.
11485         (__ioctl): Call _hurd_lookup_ioctl_handler.
11486
11487         * stdlib/strtol.c (maxquad): Make this const.
11488         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
11489
11490         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
11491         any compile tests.
11492
11493         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
11494         __msg_sig_post_request, not __sig_post_request.
11495
11496         * misc/getusersh.c: Renamed to getusershell.c.
11497         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
11498         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
11499         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
11500         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
11501
11502 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11503
11504         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
11505         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
11506         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
11507         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
11508         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
11509         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
11510         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
11511         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
11512         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
11513         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
11514         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
11515         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
11516         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
11517         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
11518         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
11519         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
11520         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
11521         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
11522         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
11523         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
11524         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
11525         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
11526         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
11527         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
11528         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
11529         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
11530         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
11531         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
11532         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
11533         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
11534
11535         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
11536         of __sig_post.
11537         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11538         * sysdeps/mach/hurd/kill.c: Likewise.
11539         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11540
11541         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
11542         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
11543
11544         * sysdeps/stub/remove.c: New file.
11545         * sysdeps/posix/remove.c: New file.
11546
11547 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11548
11549         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
11550         mktime.
11551         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
11552         __mig_strncpy.
11553         * mach/msg-destroy.c: Renamed from __msg_dest.c.
11554         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
11555         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
11556         * time/tzset.c (tzname, daylight, timezone): Define as weak
11557         aliases for __ names.
11558         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
11559         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
11560         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
11561         being defined.
11562
11563 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11564
11565         * string/Makefile (routines): Remove __ names, index, rindex, and
11566         bcmp.
11567         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
11568         alias for strchr.
11569         * sysdeps/generic/strchr.c: Likewise.
11570         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
11571         alias for strrchr.
11572         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
11573         alias for memcmp.
11574
11575         * malloc/free.c (cfree): Define this function, with weak_alias if
11576         available, otherwise a C function.
11577         * malloc/Makefile (gmalloc-routines): Remove cfree.
11578
11579 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11580
11581         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
11582         get_limit.  This has the effect of no-op'ing properly for zero.
11583
11584         * configure.in: Add AC_CONFIG_HEADER(config.h).
11585         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
11586         * config.h.in: New file.
11587
11588         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
11589         All code converted to use weak symbols, defined in the files which
11590         define the real code (with the __ names, the non-__ names are weak).
11591         All old symbol alias files removed.
11592         Many files renamed to remove __ prefix since there is now just
11593         the one file for both the __ and non-__ name for each function.
11594         * libc-symbols.h: New file.
11595         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
11596         sets.
11597         * gnu-stabs.h: Prepend #error this file is obsolete.
11598         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
11599         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
11600         access.
11601         * sysdeps/unix/common/__access.S: Likewise.
11602         * sysdeps/mach/hurd/__access.c: Likewise.
11603         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
11604         adjtime.
11605         * sysdeps/unix/common/__adjtime.S: Likewise.
11606         * sysdeps/mach/__adjtime.c: Likewise.
11607         * sysdeps/mach/hurd/__adjtime.c: Likewise.
11608         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
11609         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
11610         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
11611         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
11612         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
11613         * sysdeps/unix/i386/__brk.S: Likewise.
11614         * sysdeps/unix/sparc/__brk.S: Likewise.
11615         * sysdeps/unix/mips/__brk.S: Likewise.
11616         * sysdeps/mach/hurd/__brk.c: Likewise.
11617         * sysdeps/standalone/__brk.c: Likewise.
11618         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
11619         * sysdeps/unix/__chdir.S: Likewise.
11620         * sysdeps/mach/hurd/__chdir.c: Likewise.
11621         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
11622         * sysdeps/unix/__chmod.S: Likewise.
11623         * sysdeps/mach/hurd/__chmod.c: Likewise.
11624         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
11625         * sysdeps/unix/__chown.S: Likewise.
11626         * sysdeps/mach/hurd/__chown.c: Likewise.
11627         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
11628         * sysdeps/unix/__close.S: Likewise.
11629         * sysdeps/mach/hurd/__close.c: Likewise.
11630         * sysdeps/standalone/__close.c: Likewise.
11631         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
11632         alias copysign.
11633         * sysdeps/ieee754/__copysign.c: Likewise.
11634         * sysdeps/alpha/__copysign.c: Likewise.
11635         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
11636         * sysdeps/m68k/fpu/__drem.c: Likewise.
11637         * sysdeps/stub/__drem.c: Likewise.
11638         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
11639         * sysdeps/stub/__dup.c: Likewise.
11640         * sysdeps/unix/__dup.S: Likewise.
11641         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
11642         * sysdeps/stub/__dup2.c: Likewise.
11643         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
11644         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
11645         * sysdeps/unix/common/__dup2.S: Likewise.
11646         * sysdeps/mach/hurd/__dup2.c: Likewise.
11647         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
11648         execve.
11649         * sysdeps/unix/__execve.S: Likewise.
11650         * sysdeps/mach/hurd/__execve.c: Likewise.
11651         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
11652         expm1.
11653         * sysdeps/m68k/fpu/__expm1.c: Likewise.
11654         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
11655         fchmod.
11656         * sysdeps/unix/common/__fchmod.S: Likewise.
11657         * sysdeps/mach/hurd/__fchmod.c: Likewise.
11658         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
11659         fchown.
11660         * sysdeps/unix/common/__fchown.S: Likewise.
11661         * sysdeps/mach/hurd/__fchown.c: Likewise.
11662         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
11663         * sysdeps/unix/__fcntl.S: Likewise.
11664         * sysdeps/mach/hurd/__fcntl.c: Likewise.
11665         * math/__finite.c: Renamed to finite.c; added weak alias finite.
11666         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
11667         * sysdeps/stub/__flock.c: Likewise.
11668         * sysdeps/unix/bsd/__flock.S: Likewise.
11669         * sysdeps/mach/hurd/__flock.c: Likewise.
11670         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
11671         fopenport.
11672         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
11673         * sysdeps/unix/__fork.S: Likewise.
11674         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
11675         * sysdeps/unix/i386/__fork.S: Likewise.
11676         * sysdeps/unix/sparc/__fork.S: Likewise.
11677         * sysdeps/unix/mips/__fork.S: Likewise.
11678         * sysdeps/mach/hurd/__fork.c: Likewise.
11679         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
11680         alias fpathconf.
11681         * sysdeps/stub/__fpathcon.c: Likewise.
11682         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
11683         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
11684         * sysdeps/unix/__fstat.S: Likewise.
11685         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
11686         * sysdeps/mach/hurd/__fstat.c: Likewise.
11687         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
11688         getdelim.
11689         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
11690         alias getdents.
11691         * sysdeps/unix/__getdents.c: Likewise.
11692         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
11693         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
11694         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
11695         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
11696         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
11697         * sysdeps/unix/sysv/__getdents.c: Likewise.
11698         * sysdeps/mach/hurd/__getdents.c: Likewise.
11699         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
11700         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
11701         alias getdtablesize.
11702         * sysdeps/stub/__getdtsz.c: Likewise.
11703         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
11704         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
11705         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
11706         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
11707         getegid.
11708         * sysdeps/unix/__getegid.S: Likewise.
11709         * sysdeps/mach/hurd/__getegid.c: Likewise.
11710         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
11711         geteuid.
11712         * sysdeps/unix/__geteuid.S: Likewise.
11713         * sysdeps/mach/hurd/__geteuid.c: Likewise.
11714         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
11715         getgid.
11716         * sysdeps/unix/__getgid.S: Likewise.
11717         * sysdeps/mach/hurd/__getgid.c: Likewise.
11718         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
11719         alias getgroups.
11720         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
11721         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
11722         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
11723         * sysdeps/unix/common/__getgrps.S: Likewise.
11724         * sysdeps/mach/hurd/__getgrps.c: Likewise.
11725         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
11726         alias gethostname.
11727         * sysdeps/unix/inet/__gethstnm.S: Likewise.
11728         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
11729         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
11730         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
11731         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
11732         alias getitimer.
11733         * sysdeps/unix/common/__getitmr.S: Likewise.
11734         * sysdeps/mach/hurd/__getitmr.c: Likewise.
11735         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
11736         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
11737         alias getpagesize.
11738         * sysdeps/stub/__getpgsz.c: Likewise.
11739         * sysdeps/unix/__getpgsz.c: Likewise.
11740         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
11741         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
11742         * sysdeps/mach/__getpgsz.c: Likewise.
11743         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
11744         getpid.
11745         * sysdeps/unix/__getpid.S: Likewise.
11746         * sysdeps/mach/hurd/__getpid.c: Likewise.
11747         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
11748         getppid.
11749         * sysdeps/unix/__getppid.S: Likewise.
11750         * sysdeps/mach/hurd/__getppid.c: Likewise.
11751         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
11752         alias gettimeofday.
11753         * sysdeps/stub/__gettod.c: Likewise.
11754         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
11755         * sysdeps/unix/common/__gettod.S: Likewise.
11756         * sysdeps/mach/__gettod.c: Likewise.
11757         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
11758         getuid.
11759         * sysdeps/unix/__getuid.S: Likewise.
11760         * sysdeps/mach/hurd/__getuid.c: Likewise.
11761         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
11762         alias infnan.
11763         * sysdeps/ieee754/__infnan.c: Likewise.
11764         * sysdeps/vax/__infnan.c: Likewise.
11765         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
11766         * sysdeps/unix/__ioctl.S: Likewise.
11767         * sysdeps/mach/hurd/__ioctl.c: Likewise.
11768         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
11769         isatty.
11770         * sysdeps/stub/__isatty.c: Likewise.
11771         * sysdeps/unix/bsd/__isatty.c: Likewise.
11772         * sysdeps/mach/hurd/__isatty.c: Likewise.
11773         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
11774         isinf.
11775         * sysdeps/m68k/fpu/__isinf.c: Likewise.
11776         * sysdeps/stub/__isinf.c: Likewise.
11777         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
11778         isnan.
11779         * sysdeps/ieee754/__isnan.c: Likewise.
11780         * sysdeps/m68k/fpu/__isnan.c: Likewise.
11781         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
11782         * sysdeps/unix/__kill.S: Likewise.
11783         * sysdeps/mach/hurd/__kill.c: Likewise.
11784         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
11785         * sysdeps/unix/__link.S: Likewise.
11786         * sysdeps/mach/hurd/__link.c: Likewise.
11787         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
11788         * sysdeps/m68k/fpu/__logb.c: Likewise.
11789         * sysdeps/stub/__logb.c: Likewise.
11790         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
11791         * sysdeps/unix/__lseek.S: Likewise.
11792         * sysdeps/mach/hurd/__lseek.c: Likewise.
11793         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
11794         lstat.
11795         * sysdeps/stub/__lstat.c: Likewise.
11796         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
11797         * sysdeps/unix/common/__lstat.S: Likewise.
11798         * sysdeps/mach/hurd/__lstat.c: Likewise.
11799         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
11800         alias memccpy.
11801         * sysdeps/vax/__memccpy.c: Likewise.
11802         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
11803         * sysdeps/unix/sysv/__mkdir.c: Likewise.
11804         * sysdeps/unix/common/__mkdir.S: Likewise.
11805         * sysdeps/mach/hurd/__mkdir.c: Likewise.
11806         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
11807         * sysdeps/unix/__mknod.S: Likewise.
11808         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
11809         * sysdeps/mach/hurd/__mknod.c: Likewise.
11810         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
11811         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
11812         mach_msg_server.
11813         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
11814         * sysdeps/unix/__open.S: Likewise.
11815         * sysdeps/mach/hurd/__open.c: Likewise.
11816         * sysdeps/standalone/__open.c: Likewise.
11817         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
11818         alias pathconf.
11819         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
11820         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
11821         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
11822         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
11823         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
11824         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
11825         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
11826         * sysdeps/unix/i386/__pipe.S: Likewise.
11827         * sysdeps/unix/sparc/__pipe.S: Likewise.
11828         * sysdeps/unix/mips/__pipe.S: Likewise.
11829         * sysdeps/mach/hurd/__pipe.c: Likewise.
11830         * stdlib/__random.c: Renamed to random.c; added weak alias random.
11831         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
11832         * sysdeps/unix/__read.S: Likewise.
11833         * sysdeps/mach/hurd/__read.c: Likewise.
11834         * sysdeps/standalone/__read.c: Likewise.
11835         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
11836         alias readlink.
11837         * sysdeps/unix/common/__readlink.S: Likewise.
11838         * sysdeps/mach/hurd/__readlink.c: Likewise.
11839         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
11840         * sysdeps/m68k/fpu/__rint.c: Likewise.
11841         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
11842         * sysdeps/unix/sysv/__rmdir.c: Likewise.
11843         * sysdeps/unix/common/__rmdir.S: Likewise.
11844         * sysdeps/mach/hurd/__rmdir.c: Likewise.
11845         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
11846         * sysdeps/stub/__sbrk.c: Likewise.
11847         * sysdeps/mach/hurd/__sbrk.c: Likewise.
11848         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
11849         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
11850         select.
11851         * sysdeps/unix/common/__select.S: Likewise.
11852         * sysdeps/mach/hurd/__select.c: Likewise.
11853         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
11854         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
11855         setgid.
11856         * sysdeps/unix/__setgid.S: Likewise.
11857         * sysdeps/unix/bsd/__setgid.c: Likewise.
11858         * sysdeps/mach/hurd/__setgid.c: Likewise.
11859         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
11860         setitmr
11861         * sysdeps/unix/common/__setitmr.S: Likewise.
11862         * sysdeps/mach/hurd/__setitmr.c: Likewise.
11863         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
11864         setpgrp
11865         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
11866         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
11867         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
11868         * sysdeps/unix/common/__setpgrp.S: Likewise.
11869         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
11870         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
11871         alias setregid.
11872         * sysdeps/unix/common/__setregid.S: Likewise.
11873         * sysdeps/mach/hurd/__setregid.c: Likewise.
11874         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
11875         alias setreuid.
11876         * sysdeps/unix/common/__setreuid.S: Likewise.
11877         * sysdeps/mach/hurd/__setreuid.c: Likewise.
11878         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
11879         setsid.
11880         * sysdeps/unix/bsd/__setsid.c: Likewise.
11881         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
11882         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
11883         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
11884         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
11885         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
11886         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
11887         * sysdeps/mach/hurd/__setsid.c: Likewise.
11888         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
11889         settimeofday.
11890         * sysdeps/unix/bsd/__settod.S: Likewise.
11891         * sysdeps/unix/sysv/__settod.c: Likewise.
11892         * sysdeps/mach/hurd/__settod.c: Likewise.
11893         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
11894         setuid.
11895         * sysdeps/unix/__setuid.S: Likewise.
11896         * sysdeps/unix/bsd/__setuid.c: Likewise.
11897         * sysdeps/mach/hurd/__setuid.c: Likewise.
11898         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
11899         alias sigblock.
11900         * sysdeps/stub/__sigblock.c: Likewise.
11901         * sysdeps/unix/bsd/__sigblock.S: Likewise.
11902         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
11903         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
11904         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
11905         alias sigpause.
11906         * sysdeps/stub/__sigpause.c: Likewise.
11907         * sysdeps/unix/bsd/__sigpause.S: Likewise.
11908         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
11909         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
11910         alias sigprocmask.
11911         * sysdeps/unix/bsd/__sigproc.c: Likewise.
11912         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
11913         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
11914         * sysdeps/mach/hurd/__sigproc.c: Likewise.
11915         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
11916         alias sigreturn.
11917         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
11918         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
11919         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
11920         * sysdeps/unix/i386/__sigret.S: Likewise.
11921         * sysdeps/unix/mips/__sigret.S: Likewise.
11922         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
11923         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
11924         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
11925         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
11926         sigvec.
11927         * sysdeps/stub/__sigvec.c: Likewise.
11928         * sysdeps/unix/bsd/__sigvec.S: Likewise.
11929         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
11930         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
11931         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
11932         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
11933         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
11934         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
11935         * sysdeps/unix/__stat.S: Likewise.
11936         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
11937         * sysdeps/mach/hurd/__stat.c: Likewise.
11938         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
11939         alias stpncpy.
11940         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
11941         symlink.
11942         * sysdeps/unix/common/__symlink.S: Likewise.
11943         * sysdeps/mach/hurd/__symlink.c: Likewise.
11944         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
11945         alias sysconf.
11946         * sysdeps/stub/__sysconf.c: Likewise.
11947         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
11948         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
11949         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
11950         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
11951         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
11952         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
11953         * sysdeps/unix/bsd/__times.c: Likewise.
11954         * sysdeps/unix/sysv/__times.S: Likewise.
11955         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
11956         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
11957         * sysdeps/unix/__umask.S: Likewise.
11958         * sysdeps/mach/hurd/__umask.c: Likewise.
11959         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
11960         unlink.
11961         * sysdeps/unix/__unlink.S: Likewise.
11962         * sysdeps/mach/hurd/__unlink.c: Likewise.
11963         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
11964         utimes.
11965         * sysdeps/unix/bsd/__utimes.S: Likewise.
11966         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
11967         * sysdeps/mach/hurd/__utimes.c: Likewise.
11968         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
11969         vfork.
11970         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
11971         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
11972         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
11973         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
11974         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
11975         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
11976         * sysdeps/unix/sparc/__vfork.S: Likewise.
11977         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
11978         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
11979         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
11980         * sysdeps/stub/__wait.c: Likewise.
11981         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
11982         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
11983         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
11984         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
11985         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
11986         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
11987         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
11988         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
11989         * sysdeps/unix/i386/__wait.S: Likewise.
11990         * sysdeps/unix/mips/__wait.S: Likewise.
11991         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
11992         * sysdeps/stub/__wait3.c: Likewise.
11993         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
11994         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
11995         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
11996         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
11997         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
11998         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
11999         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
12000         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
12001         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
12002         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
12003         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
12004         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
12005         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
12006         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
12007         * sysdeps/mach/hurd/__wait4.c: Likewise.
12008         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
12009         waitpid.
12010         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
12011         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
12012         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
12013         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
12014         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
12015         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
12016         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
12017         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
12018         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
12019         * sysdeps/unix/__write.S: Likewise.
12020         * sysdeps/mach/hurd/__write.c: Likewise.
12021         * sysdeps/standalone/__write.c: Likewise.
12022         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
12023         alias tcgetattr.
12024         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
12025         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
12026         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
12027         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
12028         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
12029         alias sigaction.
12030         * sysdeps/unix/bsd/__sigact.c: Likewise.
12031         * sysdeps/unix/sysv/__sigact.c: Likewise.
12032         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
12033         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
12034         * sysdeps/mach/hurd/__sigact.c: Likewise.
12035         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
12036         alias sigsetmask.
12037         * sysdeps/stub/__sigstmsk.c: Likewise.
12038         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
12039         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
12040         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
12041         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
12042         alias getrusage.
12043         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
12044         * sysdeps/unix/common/__getrusag.S: Likewise.
12045         * hurd/task2pid.c: File removed.
12046         * hurd/setauth.c: File removed.
12047         * hurd/pid2task.c: File removed.
12048         * hurd/hurdsyms.c: File removed.
12049         * hurd/getdport.c: File removed.
12050         * hurd/fopenport.c: File removed.
12051         * mach/thread-sym.c: File removed.
12052         * mach/spin-syms.c: File removed.
12053         * mach/msgserver_t.c: File removed.
12054         * mach/msgserver.c: File removed.
12055         * mach/msg.c: File removed.
12056         * mach/mig_syms.c: File removed.
12057         * malloc/mcheck-init.c: File removed.
12058         * malloc/cfree.c: File removed.
12059         * io/flock.c: File removed.
12060         * io/write.c: File removed.
12061         * io/unlink.c: File removed.
12062         * io/umask.c: File removed.
12063         * io/symlink.c: File removed.
12064         * io/rmdir.c: File removed.
12065         * io/readlink.c: File removed.
12066         * io/read.c: File removed.
12067         * io/pipe.c: File removed.
12068         * io/open.c: File removed.
12069         * io/mkdir.c: File removed.
12070         * io/lstat.c: File removed.
12071         * io/lseek.c: File removed.
12072         * io/link.c: File removed.
12073         * io/isatty.c: File removed.
12074         * io/stat.c: File removed.
12075         * io/fstat.c: File removed.
12076         * io/fchown.c: File removed.
12077         * io/fchmod.c: File removed.
12078         * io/dup2.c: File removed.
12079         * io/dup.c: File removed.
12080         * io/close.c: File removed.
12081         * io/fcntl.c: File removed.
12082         * io/chmod.c: File removed.
12083         * io/chdir.c: File removed.
12084         * io/access.c: File removed.
12085         * io/chown.c: File removed.
12086         * time/tzset.c: File removed.
12087         * time/timelocal.c: File removed.
12088         * time/syms-time.c: File removed.
12089         * time/settod.c: File removed.
12090         * time/setitmr.c: File removed.
12091         * time/gettod.c: File removed.
12092         * time/getitmr.c: File removed.
12093         * time/adjtime.c: File removed.
12094         * termios/tcgetattr.c: File removed.
12095         * string/stpncpy.c: File removed.
12096         * string/rindex.c: File removed.
12097         * string/memccpy.c: File removed.
12098         * string/index.c: File removed.
12099         * string/bcmp.c: File removed.
12100         * stdlib/srand.c: File removed.
12101         * stdlib/random.c: File removed.
12102         * stdio/vsscanf.c: File removed.
12103         * stdio/vfscanf.c: File removed.
12104         * stdio/syms-stdio.c: File removed.
12105         * stdio/remove.c: File removed.
12106         * stdio/getline.c: File removed.
12107         * stdio/getdelim.c: File removed.
12108         * signal/ssignal.c: File removed.
12109         * signal/sigvec.c: File removed.
12110         * signal/sigsetmask.c: File removed.
12111         * signal/sigret.c: File removed.
12112         * signal/sigproc.c: File removed.
12113         * signal/sigpause.c: File removed.
12114         * signal/sigblock.c: File removed.
12115         * signal/sigaction.c: File removed.
12116         * signal/kill.c: File removed.
12117         * signal/gsignal.c: File removed.
12118         * setjmp/siglongjmp.c: File removed.
12119         * setjmp/_longjmp.c: File removed.
12120         * resource/getrusage.c: File removed.
12121         * posix/waitpid.c: File removed.
12122         * posix/wait4.c: File removed.
12123         * posix/wait3.c: File removed.
12124         * posix/wait.c: File removed.
12125         * posix/times.c: File removed.
12126         * posix/sysconf.c: File removed.
12127         * posix/setuid.c: File removed.
12128         * posix/setsid.c: File removed.
12129         * posix/setpgrp.c: File removed.
12130         * posix/setpgid.c: File removed.
12131         * posix/setgid.c: File removed.
12132         * posix/pathconf.c: File removed.
12133         * posix/getuid.c: File removed.
12134         * posix/getppid.c: File removed.
12135         * posix/getpid.c: File removed.
12136         * posix/getgrps.c: File removed.
12137         * posix/getgid.c: File removed.
12138         * posix/geteuid.c: File removed.
12139         * posix/getegid.c: File removed.
12140         * posix/fpathcon.c: File removed.
12141         * posix/fork.c: File removed.
12142         * posix/execve.c: File removed.
12143         * posix/environ.c: File removed.
12144         * misc/utimes.c: File removed.
12145         * misc/setreuid.c: File removed.
12146         * misc/setregid.c: File removed.
12147         * misc/select.c: File removed.
12148         * misc/sbrk.c: File removed.
12149         * misc/mknod.c: File removed.
12150         * misc/ioctl.c: File removed.
12151         * misc/getpgsz.c: File removed.
12152         * misc/gethstnm.c: File removed.
12153         * misc/getdtsz.c: File removed.
12154         * misc/data_start.c: File removed.
12155         * misc/brk.c: File removed.
12156         * math/scalb.c: File removed.
12157         * math/rint.c: File removed.
12158         * math/logb.c: File removed.
12159         * math/isnan.c: File removed.
12160         * math/isinf.c: File removed.
12161         * math/infnan.c: File removed.
12162         * math/finite.c: File removed.
12163         * math/expm1.c: File removed.
12164         * math/drem.c: File removed.
12165         * math/copysign.c: File removed.
12166         * math/__scalb.c: File removed.
12167         * dirent/getdents.c: File removed.
12168
12169 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12170
12171         * sysdeps/generic/morecore.c (__default_morecore): Use
12172         __malloc_ptrdiff_t; don't cast arg to int.
12173
12174         * resolv/getnetnamadr.c: Include "conf/portability.h".
12175
12176 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12177
12178         * stdlib/strtol.c: Include errno.h.
12179         [QUAD] (ULONG_MAX): Define to a static variable initialized to
12180         ULONG_LONG_MAX. This is to work around a GCC bug in using the
12181         constant in arithmetic.
12182
12183         * posix/unistd.h (daemon): Declare it.
12184
12185         * malloc/mcheck-init.c: Remove GNU ld hacks.
12186         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
12187         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
12188         (initialize): Call the hook if set.
12189         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
12190         (__malloc_initialize_hook): Declare new hook variable.
12191
12192 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12193
12194         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
12195         * hurd/hurdpid.c: Likewise.
12196         * hurd/hurdauth.c: Likewise.
12197
12198 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12199
12200         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
12201         if any are successful.
12202
12203         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
12204         (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
12205         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
12206         functions.
12207         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
12208
12209         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
12210         * hurd/hurd-raise.c: Likewise.
12211         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
12212
12213         * sysdeps/mach/hurd/ptrace.c: New file.
12214
12215         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
12216         interface, which has normal EINTR semantics.  Instead of waiting
12217         for io_select_done notification messages, send io_select messages
12218         with short reply timeout and then wait for io_select_reply
12219         messages.
12220
12221         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
12222         EXEC_INHERITED) to file_exec.
12223
12224         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
12225         use sig_post_untraced_reply.  All callers changed.
12226         (abort_thread, abort_rpcs): Take same new arg and pass it through.
12227         All callers changed.
12228         (_hurd_internal_post_signal): Take new arg UNTRACED.
12229         If zero and process is traced, stop with SIGNO as stop signal.  If
12230         nonzero, resume process before delivering signal (unless
12231         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
12232         SIGNO!=0.
12233         (signal_allowed): New function, broken out of _S_sig_post.
12234         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
12235         _hurd_internal_post_signal.
12236         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
12237         pass true for UNTRACED.
12238         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
12239         UNTRACED.
12240         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
12241         to _hurd_internal_post_signal (value zero).
12242
12243 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12244
12245         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
12246         (_hurd_init): Initialize it from FLAGS arg.
12247         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
12248         raise a SIGTRAP signal (with a sigcode of zero).
12249         * hurd/hurd.h (_hurd_exec_flags): Declare it.
12250
12251         * Version 1.09.5.
12252
12253 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
12254
12255         * malloc/malloc.c (malloc): Fix 1-off in previous change.
12256
12257 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12258
12259         * posix/glob/Makefile.in: Remove config.h and config.log.
12260
12261 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12262
12263         * posix/glob/configure.in: Add AC_CONST check.
12264
12265         * conf/portability.h: #undef sun.
12266         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
12267         * resolv/getnetnamadr.c: Likewise.
12268
12269         * socket/Makefile (headers): Add sockaddrcom.h.
12270         * inet/netinet/in.h: Include <sockaddrcom.h>.
12271         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
12272         * socket/sys/un.h (struct sockaddr_in): Likewise.
12273         * socket/sys/socket.h (struct sockaddr): Likewise.
12274         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
12275         * sysdeps/generic/sockaddrcom.h: New file.
12276
12277         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
12278         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
12279         F_FREESP): New macros.
12280         * sysdeps/posix/truncate.c: New file.
12281
12282         * malloc/malloc.c (malloc): Fix typos in RMS's change.
12283
12284         * malloc/Makefile (dist-routines): Add malloc-find.
12285         * malloc/malloc.h (malloc_find_object_address): Declare it.
12286         * malloc/malloc-find.c: New file.
12287
12288         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
12289         __malloc_size_t.
12290         (malloc_info): Use that type for member `busy.info.size'.
12291
12292         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
12293         `LONG' macro.
12294         [! QUAD] (LONG): Define as long.
12295         [QUAD] (LONG): Define as long long.
12296         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
12297         versions.
12298         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
12299         * stdlib/Makefile (routines): Add strtoq and strtouq.
12300         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
12301         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
12302         Declare them.
12303
12304         * stdio/vfprintf.c: If there was a precision specified, ignore the
12305         0 flag and always pad with spaces.
12306
12307         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
12308         Use a loop and also stop on first !isascii char.
12309
12310 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
12311
12312         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
12313
12314         * malloc/malloc.c (malloc): For a multi-block object, store a
12315         negative number into the busy.info.size of all but the first block.
12316
12317 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
12318
12319         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
12320         instead of t0, t1, and t2.
12321
12322 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12323
12324         * malloc/memalign.c (__memalign_hook): New variable.
12325         (memalign): Call it if set.
12326         * malloc/malloc.h (__memalign_hook): Declare new variable.
12327
12328 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12329
12330         * conf/portability.h: Include string.h and stdlib.h.
12331         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
12332         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
12333         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
12334         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
12335         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
12336
12337         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
12338         all uses of `extern __inline' with `__m81_inline'.
12339
12340         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
12341         * sysdeps/unix/__fork.S: Swap args in subl.
12342
12343         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
12344         compatibility.
12345
12346 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
12347
12348         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
12349         of swtch.
12350         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
12351         * mach/spin-solid.c (__spin_lock_solid): Likewise.
12352
12353 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12354
12355         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
12356         for PBUF.
12357         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
12358
12359         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
12360
12361 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12362
12363         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
12364         in `bis' insn; immediate must be second.
12365
12366         * sysdeps/unix/__fork.S: Use subl instead of decl.
12367         * sysdeps/unix/i386/__fork.S: New file.
12368
12369         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
12370         Remove A macro; just use `asm volatile' with proper quotes in each
12371         line.
12372         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
12373         jmp target register.
12374
12375         * time/africa, time/asia, time/australasia, time/emkdir.c,
12376         time/europe, time/ialloc.c, time/northamerica, time/private.h,
12377         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
12378         and data from ADO 94h distribution.
12379
12380         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
12381         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
12382         absolute pointer.  Put second store in jmp delay slot.
12383
12384 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12385
12386         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
12387         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
12388         absolute pointer.
12389         * sysdeps/sparc/bsd-setjmp.S: Likewise.
12390
12391         * configure.in: Use ; before } in { ... } exprs.
12392
12393 \f
12394
12395 See ChangeLog.4 for earlier changes.