1 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
4 from the USA any software that even makes it easy to drop in an
5 encryption module of foreign origin.
6 * Makerules (cryptobjdir): Variable removed.
7 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
8 * Makefile (subdirs): Remove crypt.
10 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
12 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
13 operator to yesexpr and noexpr string.
15 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
17 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
18 old code would have failed on a big-endian 64-bit architecture).
19 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
21 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
22 (xdr_u_long): Use switch instead of chain of if-statements.
23 Remove gratitous parentheses around return expressions.
24 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
26 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
28 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
31 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
33 * dlfcn.h, db.h: New wrapper headers.
35 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
36 for `struct stat;' forward decl.
38 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
40 * locale/iso-4217.def: Add some more standardized currency
43 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
45 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
47 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
49 * crypt/Makefile (lib-noranlib): Depend on
50 $(objpfx)libcrypt.so$(libcrypt.so-version).
53 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
55 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
56 check. mib's clueless hacking broke it.
58 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
60 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
62 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
64 * misc/sys/ustat.h: New file.
65 * misc/ustat.h: Ditto.
66 * sysdeps/generic/ustatbits.h: Ditto.
67 * sysdeps/stub/ustat.c: Ditto.
68 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
69 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
71 (routines): Mention ustat.
73 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
74 * sysdeps/alpha/elf/start.S: here.
76 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
77 alphabetically correct place. Mention ustat.
79 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
80 common symbol (makes errno accessible from gdb).
82 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
85 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
86 record always gets appended at end of file (wtmp is a log file,
87 after all). Set ut_type to DEAD_PROCESS if name is empty.
89 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
90 separate loop from search for UT_ID. Fix code so it is in
91 sync with Unix man page.
93 * login/getutline_r.c (getutline_r): Stop searching only if
94 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
96 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
98 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
99 avoid duplicate declarations.
101 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
103 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
104 and alpha-gnu-linuxecoff targets.
106 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
108 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
110 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
112 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
115 * resolv/res_comp.c (res_hnok): Use empty statement in place
116 of NULL (which generates a "useless expression" warning in
119 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
121 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
122 with $(..) in output.
124 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
126 * elf/Makefile (dl-routines): Add dl-cache.
127 * elf/dl-cache.c: New file.
128 * elf/dl-load.c (_dl_map_object): Check cache before default path.
130 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
132 * stdio-common/vfscanf.c: Major change. Now read character
133 from stream only if needed. Before it was read after the
134 previous character was used.
135 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
137 * stdio-common/tstscanf.c: Change test program so that return
138 value is != 0 if one test failed.
140 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
142 * sysdeps/m68k/Makefile (crypt): Variable removed.
143 * sysdeps/sparc/Makefile: Likewise.
145 * version.h (VERSION): Update to 1.93.
147 * Makerules ($(libdir)/libc.so): Depend on
148 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
150 * crypt/nocrypt.c: New file.
151 * Makefile (subdirs): Add crypt.
152 * crypt/Makefile: New file.
154 * Makerules (soversions.mk): Move this target, include of it, and
155 include of version.mk to ...
156 * Makeconfig: ... here.
157 (soversions.mk): Depend on Makeconfig instead of Makerules.
159 * shlib-versions (*-*-*): Set libcrypt=0.
161 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
163 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
164 word extends right up to rmargin.
166 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
167 output the wrap margin, set point_col to wmargin.
168 Use negative point_col to deal with a wmargin of 0.
169 (line_wrap_point): Return 0 for a negative point_col.
170 (line_wrap_stream): Make wmargin ssize_t.
171 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
173 (line_wrap_stream): Make wmargin ssize_t.
174 (line_wrap_point): Return 0 for a negative point_col.
176 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
178 * shlib-versions (*-*-gnu*): Set libc=0.0
180 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
182 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
183 sysdeps/i386/dl-machine.h.
185 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
187 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
188 to fiddle __put_limit in conjunction with __linebuf_active.
190 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
192 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
193 to the strong name, not the file name.
195 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
197 * csu/initfini.c: More magic. Detect if .end is produced and put it
198 in the output iff the compiler does.
200 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
201 because that is broken on alpha.
203 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
206 * Makerules (make-link): Install the new link with atomic mv -f in
207 case ln itself requires the library being installed.
209 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
211 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
212 i386/dl-machine.h of 960713.
214 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
215 (_dl_sysdep_read_whole_file): Fix result variable declaration.
217 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
219 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
222 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
224 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
225 with pointer to local variable instead of NULL.
227 1996-07-15 Paul Eggert <eggert@twinsun.com>
229 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
231 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
233 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
234 that are already added by other means.
236 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
237 caller column to get those syscalls added automagically.
239 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
241 * login/logout.c (logout): Initialize DATA to a state that will
242 make setutent_r happy.
244 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
246 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
247 instead of setting the DT_DEBUG pointer.
249 * csu/initfini.c (_init, _fini): Generate .end directives after
250 standalone prologues and filter them out from epilogues.
252 * Makeconfig (rtld-installed-name): Set to ld.so.1.
253 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
256 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
258 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
260 * MakeTAGS (extract): Pass --add-comments=TRANS.
261 * sysdeps/gnu/errlist.awk: Write comments into the output with the
262 descriptive paragraphs from the manual preceded by TRANS.
264 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
265 (_dl_start): Move RESOLVE defn inside this function and #include
266 "dynamic-link.h" a second time there.
267 [RTLD_START]: Move use of this after _dl_start function.
269 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
271 * elf/rtld.c: Include <string.h>.
273 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
274 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
275 Conditionalize defns on [RESOLVE].
276 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
277 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
278 Instead use RESOLVE macro with same args.
279 (elf_machine_rel): Conditionalize defn on [RESOLVE].
280 * elf/dl-reloc.c (RESOLVE): New macro, define before including
281 "dynamic-link.h". It replaces `resolve' local function.
282 * elf/dl-runtime.c: Likewise.
283 * elf/rtld.c: Likewise.
285 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
287 * elf/dl-open.c (_dl_open): Force an indirect call for
288 _dl_relocate_object so there is no chance a PLT fixup will be done
289 and clobber _dl_global_scope before our call happens.
291 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
292 to =t; must operate on top of fp reg stack, not second from top.
293 Correct input constraint to 0 from t; must be explicit when input and
294 output are the same register.
295 (floor): Use __volatile instead of volatile.
298 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
301 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
303 * manual/Makefile (lib): New phony target. Depend on stamp files.
304 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
306 1996-07-13 Paul Eggert <eggert@twinsun.com>
308 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
309 to match Emacs format-time-string specification.
310 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
312 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
314 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
315 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
316 between MAP and its deps.
317 * elf/link.h: Fix decl.
318 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
319 colon-separated list of names, map those and pass vector of ptrs as
320 PRELOADS list to _dl_map_object_deps.
321 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
322 _dl_map_object_deps with empty preload list.
323 * elf/dl-open.c (_dl_open): Likewise.
325 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
327 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
328 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
329 Conditionalize defn on [! MAP_ANON].
330 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
332 * elf/rtld.c (dl_main): Likewise.
333 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
334 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
336 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
338 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
340 * stdlib/random.c (__random): Declare as int32_t to be in sync
343 * socket/Makefile (headers): Add socketbits.h.
345 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
348 * grp/initgroups.c (initgroups): Add groups that user is a member
349 of, not the ones he is _not_ a member of.
351 * nss/nsswitch.c (known_compare): Make known_compare() a static
352 instead of a local function. The latter are difficult to debug
353 and slow to execute on certain platforms.
355 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
356 place of sizeof (dev). The size of a literal string includes the
359 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
361 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
363 * misc/mntent.c (addmntent): Seek to end of file before writing
364 entry. Return 1 on error, not -1.
366 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
368 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
371 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
373 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
374 shift amount for Jensen must be 5 not 4.
376 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
378 * socket/sys/socket.h (struct osockaddr): New type.
380 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
382 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
383 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
384 and `long double' versions can be generated.
385 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
386 so that included efgcvt{,_r}.c file generate `long double'
388 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
391 * manual/startup.texi: Document new getsubopt function.
392 * manual/examples/subopt.c: New example program for documenting
395 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
397 * stdlib/Makefile (routines): Add getsubopt.
398 * stdlib/stdlib.h: Add prototype for getsubopt.
399 * stdlib/getsubopt.c: New file. Implement getsubopt function
400 to handle suboption parsing.
402 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
404 * inet/getnetent_r.c: Define NEED_H_ERRNO.
405 * inet/getnetbynm_r.c: Likewise.
406 * inet/getnetent.c: Likewise.
407 * inet/getnetbyad_r.c: Likewise.
408 * inet/getnetbyad.c: Likewise.
409 * inet/getnetbynm.c: Likewise.
411 * sysdeps/generic/pselect.c: Include <sys/time.h>.
413 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
416 * math/Makefile (calls): Add s_frexp, s_ldexp.
417 (routines): Remove them and &f from here.
419 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
421 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
424 * nss/nss_files/files-XXX.c: Comment fix.
426 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
428 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
429 of reentrant function.
430 (setup): Pass additional argument with function name we are
432 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
433 new argument {SET,END,GET}FUNC_NAME_STRING.
435 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
438 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
440 * nss/nss_files/files-parse.c: Add comment about things to #define.
442 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
444 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
445 terminator char as an error.
447 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
449 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
451 * catgets/gencat.c (write_out): Move code to determine new
452 best size out of inner loop.
454 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
456 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
457 implementation of frexp() function.
458 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
459 implementation of ldexp() function.
461 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
464 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
466 * misc/mntent.c: Include <sys/types.h>.
467 (endmntent): Return 1 one success, 0 on failure.
468 (getmntent): Chop newline and ignore empty lines.
470 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
472 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
473 differently based on [RTLD_BOOTSTRAP].
474 (elf_machine_rela): Use it instead of the fn ptr arg directly.
476 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
478 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
479 __glob_closedir_hook): Remove decls.
481 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
483 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
484 for send and connect syscalls.
486 * socket/sys/socket.h: New file, taken from non-sysdep parts of
487 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
488 Declare __ names for send and connect.
489 * sysdeps/generic/socketbits.h: New file.
490 * sysdeps/unix/sysv/linux/socketbits.h: New file.
491 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
492 * sysdeps/generic/sys/socket.h: File removed.
494 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
495 * sysdeps/mach/hurd/send.c: Likewise.
497 * sysdeps/mach/libc-lock.h: New file.
498 * sysdeps/unix/readdir.c: Do locking.
499 * sysdeps/unix/seekdir.c: Likewise.
500 * sysdeps/unix/rewinddir.c: Likewise.
501 * sysdeps/unix/closedir.c: Likewise.
502 * sysdeps/unix/bsd/telldir.c: Likewise.
503 * sysdeps/mach/hurd/seekdir.c: Likewise.
504 * sysdeps/mach/hurd/readdir.c: Likewise.
505 * sysdeps/mach/hurd/closedir.c: Likewise.
506 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
507 * sysdeps/unix/opendir.c: Likewise.
508 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
509 (struct __dirstream): Add lock member using __libc_lock_define.
510 * sysdeps/unix/dirstream.h: Likewise.
512 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
514 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
516 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
518 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
520 * locale/programs/stringtrans.c: Fix typo in copyright.
522 * stdio-common/printf-prs.c: Add casts to prevent
523 signed<->unsigned warnings.
525 * stdio-common/printf-parse.h: Initialize state variable before
527 * stdio-common/printf-prs.c: Don't initialize state variable here.
528 * stdio-common/vfprintf.c: Don't initialize state variable.
529 (vfprintf): While determining length of multibyte string don't
530 try to be clever in determining characters to use for first
533 Add real implementation of multibyte<->wide char conversion
534 functions. The functions always convert between the fixed wide
535 char format (ISO 10646 in UCS4) and the UTF8 representation of
536 this character set. Conversion between the currently used
537 8bit character set and ISO 10646 will not take place. This is
539 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
541 Add optimized version of `mbrlen' function.
542 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
544 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
546 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
547 This is needed in the wchar.h header.
548 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
549 encoded character to UCS4.
550 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
551 element of `mbstate_t' for initial state.
552 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
553 encoded string to UCS4 string.
554 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
555 character to UTF8 encoded form.
556 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
557 encoded string to UTF8 encoded form.
559 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
561 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
562 variable name, so new a libc with new requirements won't fail to
563 notice an insufficient Linux version.
565 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
567 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
568 instead of 2.0 headers.
570 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
572 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
573 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
575 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
576 before using it in lhs of weak_alias.
578 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
579 Call __nss_lookup when not setting STARTP.
580 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
581 function-calling loop.
583 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
585 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
586 PENDIN, NOFLSH): Undefine these at start if they are already
587 defined to avoid collision with termbits.h.
588 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
589 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
591 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
593 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
594 already defined to float, long double. Use those macros for _Mdouble_
595 defns when including mathcalls.h.
596 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
597 -D_Mlong_double_=double.
599 Add more -lm functions to -lc because ldexp uses them.
600 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
601 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
602 ldexp have both f and l code, and those have f though not l code.
604 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
606 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
607 error is 0. The "placeholder" entries recently added to
608 errno.texi convert to zero since `???/' is at the front of them.
609 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
611 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
612 __const to conform with unistd.h.
614 * stdlib/stdlib.h (random): Declare return type to be int32_t.
616 * string/argz-delete.c (argz_delete): Use memmove instead of
617 memcpy for possibly overlapping strings.
619 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
621 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
622 storage class. GCC gives an error for non-extern data defns with the
625 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
627 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
628 memmove instead of memcpy for possible overlapping strings.
630 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
632 * libc-symbols.h (weak_function): New macro.
633 For GCC 2.7+ define as __attribute__ ((weak)).
634 * elf/dl-minimal.c: Use weak_function as keyword in function defns
635 instead of weak_symbol (NAME) after the defn.
636 * stdlib/strtol.c: Likewise.
637 * stdlib/strtod.c: Likewise.
638 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
640 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
641 If this is defined, don't declare _dl_rtld_map as weak, and
642 don't check for MAP pointing to it. RESOLVE is always null in this
643 case, so test with #ifdef instead of if.
645 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
647 * csu/initfini.c (_init): Likewise.
648 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
649 * misc/efgcvt_r.c: Likewise.
650 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
651 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
653 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
654 It was not used in any assembler code.
655 (weak_symbol_asm): Renamed to weak_extern_asm.
656 (weak_extern): New macro replaces weak_symbol for weak extern refs;
657 define to weak_extern_asm for [!ASSEMBLER].
659 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
661 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
662 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
663 define those now as aliases.
664 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
665 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
666 after GCC weak attribute decl.
668 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
669 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
670 (element printer): Check for elt in ALIAS, instead of special case
673 * io/Makefile (headers): Add sys/vfs.h.
674 * io/sys/vfs.h: New file.
676 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
677 critical section lock before unlinking dying active resources.
678 The unlock just before return is right (i.e. old code unlocked twice).
680 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
682 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
683 Use memmove instead of memcpy where overlap is possible (not
684 necessary using current implementation of memcpy, but...).
685 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
687 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
689 * stdio/linewrap.c (lwupdate): New function, mostly was
690 __line_wrap_update. Use POINT_COL field instead of POINT.
691 (__line_wrap_output): Use lwupdate.
692 (__line_wrap_update): New function.
693 (ensure_unwrapped, ensure_wrapped): New functions.
694 (line_wrap_set_lmargin, line_wrap_set_rmargin,
695 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
697 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
698 POINT_COL. Add POINT_OFFS field.
699 (__line_wrap_update): New decl.
700 (line_wrap_set_lmargin, line_wrap_set_rmargin,
701 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
703 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
705 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
707 * login/pututline_r.c (pututline_r): Since we assign RESULT from
708 lseek now, check that it's >= 0, not == 0.
710 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
712 * login/login.c (login): Make a copy of *UT, fill in various
713 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
716 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
717 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
719 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
721 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
722 signal during critical section doing interruptible RPC, if
723 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
724 before thread_resume. If in critical section, pass 0 for SIGNO to
725 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
727 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
729 * sysdeps/unix/sysv/linux/sys/user.h: New file.
730 * sysdeps/unix/sysv/linux/Dist: Add it.
731 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
733 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
734 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
735 itself, no need to skip past a NUL.
737 * nss/nsswitch.h (known_function): Comment fix.
738 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
739 directly. Do the lookup and insertion with a single call, and fill in
740 the tree node afterwards if new.
741 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
743 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
744 (struct timeval): Add bodiless decl for scope.
746 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
747 Move struct timespec defn outside [_TIME_H] so it can be got with
748 #define __need_timespec.
750 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
751 for `struct timespec' member names.
752 (TIMESPEC_TO_TIMEVAL): Likewise.
754 * nss/Makefile (extra-libs-others): New variable.
756 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
757 $(lib) in $(extra-libs-others).
758 * sunrpc/Makefile (extra-libs-others): New variable.
759 (librpcsvc-no-lib-dep): Variable removed.
761 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
762 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
764 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
765 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
766 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
767 _dl_rtld_map weak only here.
769 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
771 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
773 * login/utmp.h: Fix typos.
775 * misc/syslog.c (vsyslog): Use __send instead of send and
776 __connect instead of connect to avoid name-space collisions (e.g.,
779 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
781 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
783 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
785 * malloc/malloc-size.c (malloc_usable_size): Renamed from
786 malloc_object_allocation_size.
787 * malloc/malloc.h: Fix decl.
789 * sys/select.h: New file, wrapper header.
791 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
792 fd_set, associated macros, and select decl.
794 * sysdeps/posix/isfdtype.c: New file.
796 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
798 The latest Japanese proposal for POSIX locales renames the
799 CHARMAP keyword in locale definition files to CHARCONV.
800 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
801 function ctype_is_charmap to ctype_is_charconv.
802 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
804 * locale/programs/locfile-token.h: Add definition of token
806 * locale/programs/locfile.c: Recognize charconv keyword. Rename
807 lables according to this.
809 * locale/weight.h (get_weight): Cast constants to prevent
812 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
813 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
816 New stuff described in P1003.1g.
817 * misc/Makefile (headers): Add sys/select.h.
818 (routines): Add pselect.
819 * misc/sys/select.h: New file. Declare select functions and
820 needed data types and macros.
821 * sysdeps/generic/pselect.c: New file. Add generic implementation
822 of pselect() function which uses select().
824 * posix/getconf.c: Recognize new variables from P1003.1g.
825 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
826 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
827 * posix/unistd.h: Add description of the P1003.1g variables.
828 * sysdeps/generic/confname.h: Define _SC_* values for new
830 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
832 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
833 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
835 * sysdeps/stub/sysconf.c (sysconf): Ditto.
836 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
837 _POSIX_SELECT since Linux has this.
839 * socket/Makefile (routines): Add isfdtype.
840 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
841 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
844 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
846 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
848 * elf/Makefile (LDFLAGS-dl.so): New variable.
849 (libdl.so): Depend on eval.so.
850 (distribute): Add eval.c.
851 * elf/eval.c: New file.
853 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
854 in case it wrote fewer than MAXDIGITS chars.
856 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
857 newline from flushing full buffer in loop, fix test so no fflush is
858 done when last byte written exactly fills the buffer.
860 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
862 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
863 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
865 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
866 extracting _dl_rtld_map.l_addr.
868 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
870 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
872 * shlib-versions (*-*-*): Set libnss_db=1.
874 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
876 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
878 * rpm/template (%build): Use @prefix@ instead of always /usr.
879 Set up configparms only if @prefix@ is in fact /usr.
880 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
882 * elf/Makefile: Add missing endif.
884 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
886 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
887 (DATABASE): Define this instead of DATAFILE.
888 * nss/nss_files/files-hosts.c: Likewise.
889 (hostbyname): Use LOOKUP_NAME macro.
891 * nss/nss_db/db-XXX.c: New file.
892 * nss/Makefile (services): Add db.
893 (libnss_db-inhibit-o): New variable.
894 (libnss_db-routines): New variable.
895 (distribute): Append db-XXX.c.
896 (libnss_db.so): Depend on libdb.so and libnss_files.so.
897 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
899 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
901 (DATAFILE): New macro.
902 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
904 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
905 Pass db key args to DB_LOOKUP.
906 (DATAFILE): Macro removed.
907 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
908 * nss/nss_files/files-service.c: Likewise.
909 * nss/nss_files/files-pwd.c: Likewise.
910 * nss/nss_files/files-proto.c: Likewise.
911 * nss/nss_files/files-grp.c: Likewise.
912 * nss/nss_files/files-ethers.c: Likewise.
914 * elf/linux-compat.c: File removed.
915 * elf/Makefile (distribute): Remove linux-compat.c.
916 (ld-linux.so.1): Remove target and associated variables.
918 * sunrpc/xdr.c: Remove malloc decl.
919 * sunrpc/portmap.c: Likewise.
921 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
922 casting abort to fn returning bool_t.
924 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
926 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
927 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
928 * nss/nss_files/files-grp.c: Likewise.
930 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
932 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
934 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
935 of ld.so so lookups for that soname find it.
937 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
938 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
940 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
941 define parse_line function.
942 (parse_line): #define to _nss_files_parse_pwent and
943 add extern decl for that.
945 * nss/nss_files/files-XXX.c (internal_getent): Return
946 NSS_STATUS_TRYAGAIN for ERANGE error.
948 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
949 of null, so next round returns null again instead of bombing. Fix
952 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
953 Remove ; after `ENTDATA_DECL (data)'.
954 Truncate line at strpbrk (line, EOLSET "\n").
955 (ENTDATA_DECL): Put ; at end.
956 (MIDLINE_COMMENTS): Macro removed.
957 * nss/nss_files/files-ethers.c: Pass new argument.
958 * nss/nss_files/files-hosts.c: Likewise.
959 * nss/nss_files/files-network.c: Likewise.
960 * nss/nss_files/files-parse.c: Likewise.
961 * nss/nss_files/files-proto.c: Likewise.
962 * nss/nss_files/files-rpc.c: Likewise.
963 * nss/nss_files/files-service.c: Likewise.
964 * grp/fgetgrent.c: Likewise.
965 * pwd/fgetpwent.c: Likewise.
966 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
967 fgetpwent.c already defines it.
968 * nss/nss_files/files-grp.c: Likewise.
970 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
971 as well as any matching with l_libname. Fix DT_SONAME lookup to use
972 string table properly.
974 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
975 invoked directly, and l_libname from that if PT_INTERP missing.
976 Set l_name from l_libname only if not set from argv.
978 * time/europe, time/northamerica: Updated from ADO 96i.
980 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
982 * stdio-common/tst-ungetc.c: Include unistd.h.
984 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
986 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
988 * hurd/report-wait.c (describe_number): Make I unsigned long.
990 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
991 actually found any entry.
993 * login/pututline_r.c (pututline_r): If not located after any
994 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
995 Lock the file before stating.
997 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
999 * nss/Makefile (databases): Change host to hosts.
1000 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
1002 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
1004 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
1006 * string/string.h (strndupa): Pass missing arg to strnlen.
1008 * inet/getnetbypt_r.c: Renamed to ...
1009 * inet/getnetbyad_r.c: this; fixed function name.
1010 * inet/getnetbypt.c: Renamed to ...
1011 * inet/getnetbyad.c: this; fixed function name.
1013 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1015 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
1018 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1020 * login/login.c (login): Initialize DATA so that setutent_r will
1021 actually do something.
1023 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
1025 * resolv/res_hconf.c (strndup): Remove function.
1027 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
1028 using ElfW() instead of Elf32_*.
1030 * sysdeps/unix/sysv/linux/alpha/init-first.h,
1031 sysdeps/unix/sysv/linux/m68k/init-first.h,
1032 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
1033 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
1034 init-first.h to make abstract machine dependent parts of
1037 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
1038 error handling. It's safer that way.
1040 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
1041 Fix by Richard Henderson.
1043 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1044 typo/extraneous whitespace.
1046 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1047 determine what integer sizes we're dealing with.
1049 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1051 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1052 check for signal zero, repair logical sense of test by
1053 parenthesizing correctly.
1055 * hurd/hurdsig.c (_hurd_internal_post_signal): In
1056 check-for-pending signals code, release _hurd_siglock before
1057 jumping to deliver_pending.
1059 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1061 * configure.in (config_machine): Make ELF the default even for
1062 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1065 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1067 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1068 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1069 member only #ifdef ENTDATA.
1070 (ENTDATA_DECL): New macro.
1071 (LINE_PARSER): Use it for entdata decl.
1072 (parse_list): Find the space for LIST from DATA->linebuffer instead of
1073 from the input LINE, which might not be writable buffer space.
1074 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1075 [ENTDATA] (parser_stclass): #define to `static inline'.
1076 [!ENDATA] (parser_stclass): #define to empty.
1077 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1078 function is exported to -lnss_files users.
1080 * string/strndup.c: Add missing arg.
1082 * string/string.h (strndupa): Likewise.
1083 * string/strndup.c (strndup): Always terminate the string.
1085 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1087 * stdio/Makefile (routines): Add vscanf.
1088 * stdio-common/Makefile (routines): Remove vscanf.
1089 * stdio-common/vscanf.c: Move to ...
1090 * stdio/vscanf.c: here.
1092 * rpm/Makefile (headers, install-lib, install-lib.so,
1093 versioned, install-bin, install-sbin, install-data,
1094 install-others): Add $(-VARIABLE).
1096 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1098 * nss/Makefile (databases): New variable.
1099 (routines, libnss_files-routines): Use it.
1100 (subdir-dirs): Compute from $(services).
1102 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1103 init_module, klogctl): Use EXTRA in the "caller" column so these get
1104 added to unix-extra-syscalls and thus compiled in misc.
1106 * string/Makefile (routines): Add strndup.
1107 * string/strndup.c: New file.
1108 * string/string.h: Declare strndup.
1109 (strndupa): New macro.
1111 * string/string.h: Declare __strdup.
1112 * string/strdup.c: Deansideclized. Define __ name and weak alias.
1114 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1116 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
1118 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1120 * grp/initgroups.c (initgroups): De-ansi-fy.
1121 Move declaration of NGROUPS and GROUPS outside #if so that
1122 the code compiles for NGROUPS_MAX != 0.
1124 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1125 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1126 ether_ntoa, ether_ntoa_r, and ether_ntoh.
1127 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1128 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1129 inet/ether_ntoh.c: New files. Implementation of functions to
1130 handle Ethernet address to host mapping.
1131 * inet/netinet/ether.h: New file. Declare ether_* functions.
1132 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1134 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1135 * nss/Makefile (routines): Add ethers-lookup.
1136 (libnss_files-routines): Add files-ethers.
1138 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1141 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1142 KEEP_STREAM every time called.
1143 (_nss_files_end): Reset KEEP_STREAM here instead.
1144 (internal_getent): If STREAM == NULL try to open instead of
1146 Use cast to prevent warning.
1147 Terminate read line in case the buffer is too small.
1149 * nss/nss_files/files-ethers.c: New file. Implementation of
1150 Ethernet adress<->hostname lookup through files interface.
1152 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1153 * stdlib/mbtowc.c: Define based on mbrtowc().
1154 * stdlib/wcstombs.c: Define based on wcsrtombs().
1155 * stdlib/wctomb.c: Define based on wcrtomb().
1157 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1158 unexpected_sizes_in_xdr_u_int.
1160 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1161 of `struct ether_addr'.
1162 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1163 declaration of `struct ether_addr'.
1165 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1166 * wcsmbs/mbsrtowcs.c: Ditto.
1167 * wcsmbs/wcrtomb.c: Ditto.
1168 * wcsmbs/wcsrtombs.c: Ditto.
1170 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1172 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1174 * hurd/get-host.c <fcntl.h>: New include.
1175 * hurd/set-host.c <fcntl.h>: New include.
1176 (_hurd_set_host_config): Include NEW in args to dir_link.
1177 Return NWROTE, not NREAD.
1179 * sysdeps/mach/hurd/getcwd.c
1180 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1181 DOTID & DOTDEVID until we're finished with them (we need to keep
1182 them at least until we've fetched the next level of id ports, so
1183 that mach will be able to use the same name if they're the same).
1184 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1185 jumps to errlose, for those places where such cleanup is needed.
1187 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1189 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1191 Move DB code into separate -ldb library.
1192 * db/Makefile (extra-libs): New variable, list libdb.
1193 (routines): Renamed to libdb-routines.
1194 * shlib-versions: Add libdb=2.
1196 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1197 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1199 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1200 of strncasecmp. Extend syntax to grok [!foo=bar].
1202 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1204 * string/string.h: Declare __strncasecmp.
1206 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1207 (service_alias): Variable removed.
1208 (nss_parse_service_list): New function, broken out of nss_getline.
1209 Remove alias conversion; we will just use symlinks.
1210 (__nss_database_lookup): Take new string arg DEFCONFIG.
1211 If no entry exists, make one with service list parsed from that.
1212 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1213 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1214 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1216 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
1219 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1221 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
1223 * locale/programs/locale.c (long_options): Short form of
1224 --version option is `-V'.
1225 (main): Recognize `-V' as option, not `-v'.
1226 Call `usage' instead of printing error message for illegal
1228 (usage): Document `-V'.
1230 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
1232 * sysdeps/mach/hurd/getcwd.c
1233 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1234 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1236 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1238 * inet/getrpcent.c: Fix macros.
1239 * inet/getrpcent_r.c: Fix macros.
1241 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1243 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1245 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1247 * catgets/gencat.c (write_out): Use %Zu to print variables of type
1249 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1250 cast it to (unsigned long) to make it work both on 32 and 64
1253 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1255 * locale/Makefile (distribute): Add `programs/' prefix to all
1256 files in that directory.
1258 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1261 * MakeTAGS (sources, headers): Make them simply expanded variables
1262 so that all-dist is expanded before it is changed.
1264 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1266 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
1267 * Makefile (subdirs): Remove crypt.
1268 * crypt: Directory removed. It will be made an independent library
1271 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1273 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1275 * inet/getrpcbynumber.c (BUFLEN): New macro.
1277 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1279 * Makefile (headers): Add libc-lock.h.
1280 * sysdeps/stub/libc-lock.h: New file.
1282 * inet/getrpcbynumber.c: Remove _r typo.
1284 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1286 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1289 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1290 or doesn't mention DATABASE, use an internal default equivalent to
1291 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1292 (nss_lookup_function): Call nss_new_service as needed.
1293 (nss_parse_file): Don't bother calling nss_new_service here.
1295 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1296 * pwd/fgetpwent.c: Likewise.
1298 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1299 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1300 * malloc/malloc-size.c: New file.
1301 * malloc/malloc-walk.c: New file.
1303 * malloc/malloc-find.c (malloc_find_object_address): Return null if
1304 PTR is outside the heap.
1306 * elf/dl-load.c (_dl_map_object): If the requested name matches the
1307 soname of a loaded object, use that object.
1309 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1311 * Makefile (subdirs): Add nss.
1313 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1314 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1315 * inet/getrpcbynumber_r.c: New file.
1316 * inet/getrpcbynumber.c: New file.
1317 * inet/getrpcbyname.c: New file.
1318 * inet/getrpcbyname_r.c: New file.
1319 * inet/getrpcent_r.c: New file.
1320 * inet/getrpcent.c: New file.
1321 * nss/rpc-lookup.c: New file.
1322 * nss/nss_files/files-rpc.c: New file.
1323 * nss/Makefile (routines): Add rpc-lookup.
1324 (libnss_files-routines): Add files-rpc.
1325 * sunrpc/Makefile (routines): Remove getrpcent.
1326 * sunrpc/getrpcent.c: File removed.
1328 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1331 * Makeconfig (rpath-link): Add $(nssobjdir).
1332 (nssobjdir): New variable.
1334 * Makerules: Move shared library building before objects rules, so
1335 versions are known before extra-lib.mk gets included.
1336 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1338 * pwd/getpwuid.c: Rewritten using nss.
1339 * pwd/getpwnam.c: Likewise.
1340 * pwd/getpwent.c: Likewise.
1341 * grp/getgrnam.c: Likewise.
1342 * grp/getgrgid.c: Likewise.
1343 * grp/getgrent.c: Likewise.
1344 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1345 * pwd/getpwent_r.c: New file.
1346 * pwd/getpwnam_r.c: New file.
1347 * pwd/getpwuid_r.c: New file.
1348 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1349 * grp/getgrnam_r.c: New file.
1350 * grp/getgrgid_r.c: New file.
1351 * grp/getgrent_r.c: New file.
1352 * grp/Makefile (routines): Remove grpopen, grpread.
1353 * pwd/Makefile (routines): Remove pwdopen, pwdread.
1354 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1356 * pwd/fgetpwent.c: Rewritten using files-parse.c.
1357 * grp/fgetgrent.c: Likewise.
1359 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1360 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1361 * nss/nss_files/files-grp.c: New file.
1362 * nss/nss_files/files-pwd.c: New file.
1364 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1366 * nss/nss_files/files-parse.c: New file.
1367 * nss/nss_files/files-XXX.c: New file.
1368 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1369 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1370 Rewritten using them.
1372 * nss/Makefile (libnss_files-routines): Remove files-host.
1373 Add files-hosts, files-grp, files-pwd.
1375 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1377 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
1379 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1380 A .plt entry now loads the .rela.plt offset directly rather
1381 than making us calculate it.
1383 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1385 * time/Makefile ($(installed-localtime-file) rule): Do
1386 $(make-target-directory) first.
1388 * resolv.h: Fix wrapper for resolv/resolv.h.
1390 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1391 Compile dummy file and pass -nostdlib -nostartfiles so as not to
1392 require installed libraries.
1394 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1397 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
1399 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1400 and mapv4v6hostent.h.
1401 (routines): Move res* and gethnamaddr into libresolv-routines.
1402 (libresolv-routines): New variable, put them there.
1403 (extra-libs): New variable, list libresolv.
1404 (CPPFLAGS): Add -D for get*by* to res_get*by*.
1406 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1408 * inet/herrno.c: New file.
1410 * resolv/res_init.c: Remove res_hconf calls.
1412 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1413 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1414 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1415 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1416 nss/service-lookup.c: New files. Implementation of name
1417 service switch, following the approach in Solaris.
1418 Interface specification and general structure inspired by Peter
1419 Eriksson <pen@lysator.liu.se>.
1420 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1421 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1422 Implementation of libnss_files.so module for file based databases
1424 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1425 if libnss_dns.so module for DNS name lookup in NSS service.
1427 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1428 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1429 Changed to serve as interface to NSS.
1430 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1431 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1432 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1433 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1434 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1435 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1436 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
1437 interfaces to NSS, including reentrant functions.
1439 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1440 resolv/sethostent.c: Removed: Obsoleted by NSS.
1442 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1443 gethnamaddr.c. These private functions are now used in more
1446 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1448 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1450 * rpm/Makefile ($(config)): Make sure the word list in the for
1451 loop is syntactically non-empty.
1453 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1455 * Version 1.92 test release.
1457 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1459 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1460 to klogctl to match prototype in sys/klog.h.
1462 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1463 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1465 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1466 Remove. Code is now part of __getcwd again. The old function
1467 never really worked for anything but THISDIR==".".
1469 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1470 only when building ELF version of library.
1472 * libio/libioP.h (_IO_vscanf): Add prototype.
1474 * posix/unistd.h (syscall): Change sysno arg and return value
1477 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1479 * version.h (VERSION): Updated to 1.92.
1481 * misc/Makefile (headers): Add ar.h.
1482 * misc/ar.h: New file.
1484 * config.make.in (BUILD_CC): New variable.
1485 * configure.in: Check for BUILD_CC if $host != $build.
1487 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1489 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1490 (stamp$o files): New targets, create them empty, no deps.
1492 * rpm/template (Source): New field.
1493 (%prep, %build, %install): New sections.
1494 (%files): Add %doc FAQ NEWS NOTES README.
1495 * rpm/rpmrc (builddir): Removed.
1497 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1499 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1500 guessing to not assume p_vaddr of first load cmd is zero.
1502 * sysdeps/sparc/elf/start.S: New file.
1503 * sysdeps/sparc/dl-machine.h: New file.
1505 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1506 only for ?s, not for *s. Fix from Chet Ramey.
1508 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1509 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1510 Use __{BEGIN,END}_DECLS.
1511 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1512 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1513 New macros, moved here from sysdeps/gnu/utmpbits.h.
1514 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1515 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1516 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1517 Use sizeof instead of UT_*SIZE.
1518 * login/logwtmp.c: Likewise.
1520 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1522 * version.c (banner): Add trailing newline.
1524 * login/utmp.h: Declare login_tty.
1526 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
1528 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1529 Changed to a 12-byte PLT entry to remove dependency on $gp.
1530 Take a new got_addr parameter.
1531 (elf_machine_rela): Pass the new parameter.
1532 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1533 (RTLD_START): Do normal linkage with program entry.
1535 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
1537 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1539 * hurd/getuids.c (getuids): New weak link to __getuids.
1541 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
1543 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
1544 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1546 Rename nested function lookup to lookup_op.
1547 (__file_name_lookup, __file_name_lookup_under):
1548 Pass 0 for lookup arg to __hurd_file_name_lookup.
1549 (__file_name_split): Likewise for __hurd_file_name_split.
1550 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1551 Rename nested function lookup to scan_lookup.
1552 (file_name_path_lookup): Pass 0 for lookup arg to
1553 hurd_file_name_path_lookup.
1554 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
1555 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
1556 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1557 Add LOOKUP argument.
1558 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1559 __hurd_file_name_lookup.
1561 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1563 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1564 up a huge list just to discard most of it.
1566 * configure.in (sysnames): Avoid fgrep by using the case shell
1569 * Makeconfig (config.status): Fix dependency on Implies files.
1571 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1573 * math/Makefile (distribute): Add ieee-math.c.
1575 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
1577 * locale/codeset_name.c: New file. Provide function for information
1578 about currently used character set.
1579 * locale/Makefile (routines): Add codeset_name.
1580 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1581 * locale/localeinfo.h: Change magic number because of incompatible
1583 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1584 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1586 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1587 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
1589 * locale/setlocale.c (setlocale): Initialize local variables to
1592 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
1594 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1596 * locale/programs/locale.c: Include string.h.
1598 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1599 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1600 appropriate sign-extension is performed on machines with
1603 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1604 sizeof(int)<sizeof(long), we need to go through a temporary
1607 * locale/programs/ld-numeric.c: Include <alloca.h>
1609 * libio/stdio.h (__libc_fatal): Add prototype.
1611 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1614 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1615 volatile to avoid "might get clobbered by longjmp" warning.
1617 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1618 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1619 probability is a sure loser).
1620 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1622 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1623 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1625 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1626 to be Linux FSSTND compliant.
1628 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
1630 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1632 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1633 sysdeps/unix/sysv/linux/alpha/brk.S,
1634 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1635 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1636 sysdeps/unix/sysv/linux/alpha/llseek.S,
1637 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1638 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1639 __syscall_error to avoid intruding application name space.
1641 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1642 to SYS_get?id so that syscall stubs in sysdeps/unix define
1643 these syscalls in terms of getxpid/getxuid/getxgid.
1645 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1646 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1647 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1648 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1650 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1651 (PSEUDO_END): Rename END() to PSEUDO_END().
1653 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1654 to PSEUDO_END to improve branch-prediction. Include .frame
1655 directive to make syscalls debugabble.
1656 (PSEUDO_END): New macro.
1658 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1659 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1660 latter is illegal under DEC Unix.
1662 * sysdeps/unix/alpha/sysdep.S: Renamed from
1663 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
1665 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1666 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1667 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1669 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1670 address register in the .frame directive.
1672 * sysdeps/alpha/copysign.c: Remove.
1674 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1675 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1677 * errno.h: Move __END_DECLS to correct place to make file
1678 compilable under c++.
1680 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
1681 d_ino only if <direntry.h> hasn't defined d_fileno.
1683 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1684 arguments to weakext to make .weakext detection work on ECOFF systems.
1686 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
1687 that _validuser() has been replaced by __ivaliduser().
1689 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
1691 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1692 as unsigned long, not as int (to avoid incorrect int->long
1695 Tue Jun 18 17:56:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1697 * Version 1.91 test release.
1699 * Makerules ($(common-objpfx)distinfo-$(subdir)): Change target from
1701 (distinfo): Make phony target depending on that.
1702 (TAGS, po/%.pot, dist): Change deps.
1703 (common-clean): Remove that file.
1704 * rpm/Makefile (distinfo): Change names.
1706 * rpm/Makefile (clean): New target.
1708 * stdlib/test-canon.c: New test program contributed by David Mosberger.
1709 * stdlib/Makefile (tests): Add test-canon.
1710 * stdlib/canonicalize.c: Rewritten by David Mosberger.
1712 Mon Jun 17 17:53:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1714 * mach/Machrules (%_server.c %_server.h rule): Remove gratuitous
1715 mention of $< in mig cmd. Thanks to Shantanu Goel.
1717 * sysdeps/mach/hurd/brk.c (___brk_addr): Define as weak alias for
1720 * libio/stdio.h [__USE_SVID]: Declare tempnam.
1722 Fri Jun 14 19:28:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1724 * sysdeps/unix/sysv/linux/syscalls.list: Add swapon with two
1727 Wed Jun 12 20:40:51 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1729 * sysdeps/m68k/dl-machine.h (RTLD_START): Fix access to
1732 Sun Jun 16 03:22:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1734 * sysdeps/stub/elfclass.h: New file.
1736 * Make-dist (subdir): Make empty value really empty.
1738 * version.h (VERSION): Update to 1.91.
1740 * hurd/hurdinit.c (map0): Remove [!PIC] conditional.
1742 * shlib-versions (*-*-*): Add libutil=1.
1744 * rpm/Makefile (install-lib): Add libc.a et al.
1745 (install-others): Only add libc.so if $(build-shared) is yes.
1747 * math/Makefile (install-lib): New variable, list libieee.a.
1748 (non-lib.a): Likewise.
1749 (extra-objs): Likewise, and ieee-math.o.
1750 ($(objpfx)libieee.a): New target, link to ieee-math.o.
1751 * math/ieee-math.c: New file.
1752 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]: Remove setfpucw
1753 and libieee.a stuff.
1754 * sysdeps/unix/sysv/linux/ieee-fpucw.c: File removed.
1755 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c: File removed.
1757 * sysdeps/unix/sysv/Makefile (sysdep_headers): Make append of termio.h
1758 and rule for it conditional on termio.h not already being in
1761 * rpm/Makefile (install-others) [libc.so-version]: Get libc.so from
1762 $(libdir), only the versioned named from $(slibdir).
1763 (instfiles): New variable.
1764 (glibc-$(version).$(config).rpm): New target. Run rpm -bb.
1765 * rpm/rpmrc: New file. A third of the options controlling rpm can
1766 only be given here (another third is on the command line, and a third
1767 cannot be specified in any way shape or form).
1769 Sun Jun 16 02:44:22 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1771 * rpm/template: New file.
1772 * rpm/Makefile: New file.
1774 * Makeconfig (sysdep-configures): Remove empty variable.
1776 * Makerules (distinfo-vars): Write defns for $(install-lib.so) and
1779 * manual/Makefile (subdir_%): Add new rule with no deps, secondary to
1780 to rule w/dep on %, with no-op commands.
1782 * Makerules (subdir_distinfo): New phony target; depend on distinfo.
1783 * Makefile (rpm/%): New rule.
1784 (+subdir_targets): Add subdir_distinfo.
1786 Sun Jun 16 00:40:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1788 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add
1791 * time/Makefile ($(installed-localtime-file)): If target exists, do
1792 nothing but print a message; if not, make it an absolute symlink.
1794 * time/tzset.c (__tzset): After stripping leading :, call
1795 __tzfile_read on TZ even if it's empty or null.
1796 * time/tzfile.c (__tzfile_read): Use "Universal" if passed "".
1798 Sat Jun 15 18:13:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1800 * hurd/Makefile (routines): Add get-host, set-host.
1801 (distribute): Add hurdhost.h.
1802 * hurd/hurdhost.h: New file.
1803 * sysdeps/mach/hurd/gethostname.c: Use _hurd_get_host_config.
1804 * sysdeps/mach/hurd/gethostid.c: Likewise.
1805 * sysdeps/mach/hurd/sethostname.c: Use _hurd_set_host_config.
1806 * sysdeps/mach/hurd/sethostid.c: Likewise.
1807 * hurd/get-host.c: New file.
1808 * hurd/set-host.c: New file.
1810 * math/Makefile (headers): Add fpu_control.h.
1811 (aux): New variable, list fpu_control and setfpucw.
1812 * sysdeps/generic/fpu_control.c: New file.
1813 * sysdeps/stub/fpu_control.h: New file.
1814 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: Moved to ...
1815 * sysdeps/m68k/fpu_control.h: here.
1816 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Moved to ...
1817 * sysdeps/i386/fpu_control.h: here.
1818 * sysdeps/unix/sysv/linux/alpha/fpu_control.h: Moved to ...
1819 * sysdeps/alpha/fpu/fpu_control.h: here. Fixed copyright.
1820 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1821 setfpucw, fpu_control.
1822 * sysdeps/unix/sysv/linux/alpha/fpu_control.c: File removed.
1823 * sysdeps/unix/sysv/linux/setfpucw.c: Moved to ...
1824 * sysdeps/generic/setfpucw.c: here.
1825 (__fpu_control): Variable removed.
1826 (__setfpucw): Use SET even if zero.
1828 * elf/dl-deps.c (_dl_map_object_deps): Set MAP's mark bit before loop.
1829 Set mark bits of deps as opened, instead of as scanned.
1831 * elf/rtld.c (dl_main): Remove _dl_rtld_map from chain unconditionally.
1832 Then if it has a nonzero l_opencount, add it back in search order.
1834 * elf/dl-load.c (_dl_map_object): Don't use _dl_loaded's DT_RPATH if
1837 * sysdeps/unix/sysv/linux/Dist: Add sys/klog.h.
1839 * elf/dl-open.c (_dl_open): Remove PARENT argument, pass null.
1840 * elf/link.h: Update prototype.
1841 * elf/dl-load.c (_dl_map_object): If dependents' DT_RPATHs don't find
1842 NAME, try the DT_RPATH of the executable itself if dynamic.
1843 * elf/dlopen.c (dlopen): Don't pass first arg to _dl_open.
1845 * elf/dl-load.c (_dl_map_object): Exit DT_RPATH checking loop when an
1848 * Makerules (build-shlib): Give -L opts for each elt of $(rpath-link).
1850 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): Variable removed.
1851 (rpath-link): Append to this instead.
1853 Fri Jun 14 01:51:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1855 * version.c (banner): New static const variable, complete version
1857 (__libc_print_version): Use it, and use __write instead of printf.
1859 * configure.in (sysnames): Don't cache the value, because it
1860 depends only on libc sources. Merge uniquifying third pass into
1861 Implies/parent expansion second pass. Report each unique name as
1862 it is added in partial report string, terminated when finished.
1864 * Makeconfig (sysdep_dir): Move defn before config.status rule that
1866 (sysdep-configures): Variable removed.
1867 (config.status): Use its contents directly, tighten up a bit, and
1868 include Implies files.
1870 * elf/dl-open.c (_dl_open) [PIC]: Set PARENT to _dl_loaded if null.
1872 * elf/Makefile ($(objpfx)$(rtld-installed-name)): Make a symlink.
1874 Thu Jun 13 14:29:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
1876 * hurd/hurdsig.c (_hurd_internal_post_signal): Rename `deliver:'
1877 label to `deliver_pending:' to match goto.
1879 Thu Jun 13 00:02:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1881 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1884 * elf/rtld.c (dl_main): Close _dl_zerofd after mapping deps.
1886 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Define mcount as
1887 weak alias for _mcount.
1888 * sysdeps/alpha/_mcount.S (mcount): Define as weak alias.
1890 * elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is
1891 null, consider it a strong reference and give the error.
1893 Wed Jun 12 15:52:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1895 * elf/dl-open.c (_dl_open): Correctly terminate relocating loop
1896 after relocating NEW when it's the only new object.
1898 * elf/dl-init.c (_dl_init_next): When out of initializers, set
1899 _r_debug.r_state to RT_CONSISTENT and call _dl_debug_state just
1902 * elf/rtld.c (dl_main): Move _dl_debug_initialize call after
1903 relocation. Call it unconditionally and only fill in DT_DEBUG
1904 if it's present. Then call _dl_debug_state with r_state RT_ADD
1905 before running initializers.
1907 * elf/dl-open.c (_dl_open): Call _dl_debug_initialize and then call
1908 _dl_debug_state with r_state RT_ADD before running initializers
1909 * elf/dl-close.c (_dl_close): Call _dl_debug_state with r_state
1910 RT_DELETE before running finalizers and with RT_CONSISTENT just
1913 * elf/Makefile (dl-routines): Add dl-debug.
1914 * elf/dl-debug.c: New file.
1915 * elf/rtld.c (_dl_r_debug): Rename to _r_debug and move to dl-debug.c.
1916 (_dl_r_debug_state): Rename to _dl_debug_state and likewise move.
1917 (dl_main): Use _dl_debug_initialize.
1918 * elf/link.h: Fix name to _dl_debug_state in decl.
1919 (_dl_debug_initialize): Declare new function from dl-debug.c.
1920 (_r_debug): Declare it.
1922 * Makerules (distinfo-vars): Add install-{lib,data,bin,sbin,others}.
1923 In distinfo set $(subdir)-VAR and then set VAR to $($(subdir)-VAR).
1925 * Makeconfig (rpath-link): New variable; add $(elfobjdir).
1926 (default-rpath): Use it.
1927 (built-program-cmd): Use it in LD_LIBRARY_PATH.
1929 * Makeconfig (sysdep-configures): Prepend $(sysdep_dir) to names tried.
1931 * sysdeps/unix/Dist: Add make-syscalls.sh.
1933 * misc/Makefile (headers): Add sys/swap.h.
1934 * posix/unistd.h: Remove decls for swapon, swapoff.
1935 * sysdeps/generic/sys/swap.h: New file.
1936 * sysdeps/unix/sysv/linux/sys/swap.h: New file.
1938 * sysdeps/unix/sysv/linux/gnu/types.h: Remove temporary hack #define
1939 of __kernel_fsid_t. It is correctly defines in <linux/types.h> now.
1941 Tue Jun 11 23:23:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1943 * Makerules (LDFLAGS-c.so): Use __libc_main instead of
1944 __libc_print_version as entry point for shared object.
1945 * version.c [HAVE_ELF] (__libc_main): New function.
1947 * elf/dl-load.c (_dl_map_object_from_fd): Relocate l_entry with the
1950 Tue Jun 11 19:13:04 1996 Richard Henderson <rth@tamu.edu>
1952 * sysdeps/alpha/dl-machine.h: New file.
1954 * elf/dl-close.c: Include <string.h> for memcpy.
1955 * elf/dl-lookup.c: Same.
1957 * elf/elf.h: Add Elfxx_Symndx for symbol indices.
1958 * elf/dl-lookup.c (_dl_lookup_symbol): Use it.
1959 (_dl_setup_hash): Use it.
1960 * elf/link.h (struct link_map): Use it.
1962 * elf/rtld.c (_dl_start): Don't rely on pointer-to-first-arg hack
1963 for getting the argc/argv/envp block. Instead, make it the argument.
1964 sysdeps/i386/dl-machine.h (RTLD_START): Do that.
1965 sysdeps/m68k/dl-machine.h (RTLD_START): Same.
1967 * shlib-versions: Add version numbers for alpha-linux. To avoid
1968 user confusion, make them the same as i386-linux.
1970 * sysdeps/alpha/Makefile [subdir elf]: Add -mno-fp-regs to
1971 sysdep-CFLAGS so that _dl_runtime_resolve doesn't have to save them.
1972 Add -mbuild-constants to CFLAGS-rtld.c to that we can bootstrap
1973 without using literal data.
1975 * sysdeps/generic/dl-sysdep.c: Include <string.h> for memcpy.
1976 Finish Elf32 -> ElfW migration.
1978 Tue Jun 11 15:09:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1980 * Makerules (elfobjdir): Use $(objdir) if set, even in elf subdir.
1982 * elf/Makefile (routines): Remove init-first.
1983 * csu/Makefile (routines): New variable; put it here instead.
1985 * config.make.in (CFLAGS): New variable.
1987 * io/sys/stat.h (S_ISLNK, S_ISSOCK): Make conditional on __USE_BSD,
1989 * string/string.h (strncasecmp): Likewise.
1991 * elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
1992 to after `include ../Rules', so $(rtld-installed-name) is defined.
1994 * string/basename.c (basename): Cast FILENAME to char * for return.
1996 * Makerules ($(libdir)/libc.so): Put $(rtld-installed) name between
1997 libc.so and libc.a in the deps.
1999 * elf/Makefile ($(objpfx)$(rtld-installed-name)): New target to make
2000 link to ld.so if that is not the installed name.
2001 (lib-noranlib): Depend on the installed name in the build directory
2002 instead of on ld.so.
2004 * Makeconfig (link-libc): Include $(elfobjdir)/$(rtld-installed-name)
2005 between libc.so and libc.a, because with libc.so's DT_NEEDED for ld.so
2006 ld searches libc.a before ld.so (is that an ld bug?).
2007 Add $(elfobjdir) to -rpath-link.
2009 * Makerules (elfobjdir): Define as . when $(subdir) is elf.
2011 * sysdeps/i386/dl-machine.h (elf_machine_rel): In R_386_32 case when
2012 relocating _dl_rtld_map, subtract SYM's value from final reloc value,
2013 but don't change *RELOC_ADDR before calling *RESOLVE, because it might
2014 call the function we are relocating!
2016 * string/basename.c: New file.
2017 * string/Makefile (routines): Add basename.
2019 Mon Jun 10 06:14:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2021 * Makerules ($(common-objpfx)libc.so): Depend on $(elfobjdir)/ld.so.
2023 * elf/dl-close.c: New file.
2024 * elf/link.h: Declare _dl_close.
2025 * elf/Makefile (routines): Add dl-close.
2026 * elf/dlclose.c (dlclose): Use _dl_close.
2028 * elf/Makefile ($(objpfx)librtld.so): Remove libelf from deps.
2030 * elf/dl-runtime.c (_dl_global_scope): New variable.
2031 (_dl_object_relocation_scope): New function.
2033 * elf/rtld.c (dl_main): Use it.
2034 * elf/dl-open.c (_dl_open): Use it. If (MODE & RTLD_GLOBAL), set the
2035 l_global bit and append the new map to _dl_global_scope.
2036 * elf/link.h: Declare _dl_global_scope, _dl_global_scope_alloc,
2037 and _dl_object_relocation_scope.
2039 * elf/link.h (struct link_map): Add l_loader member.
2040 Remove _dl_map_object_from_fd decl.
2041 * elf/dl-load.c (_dl_map_object): Pass LOADER to ...
2042 (_dl_map_object_from_fd): Take new arg LOADER and set l_loader member.
2043 (_dl_map_object): Try DT_RPATH from all loaders up the chain.
2045 * elf/dl-object.c (_dl_loaded): Variable removed.
2046 (_dl_default_scope): New variable replaces it.
2047 * elf/link.h (_dl_loaded): Remove variable decl; instead define as
2048 macro for _dl_default_scope[2].
2049 (_dl_default_scope): Declare it.
2050 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_default_scope[2]
2051 instead of _dl_loaded.
2052 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2053 * elf/rtld.c (dl_main): Use _dl_default_scope for symbol lookups.
2055 * elf/dl-reloc.c (_dl_relocate_object): Remove check for _dl_rtld_map.
2056 * elf/rtld.c (dl_main): Pass 0 for LAZY flag when re-relocating self.
2058 * elf/link.h (struct link_map.l_type): Remove lt_interpreter.
2059 (struct link_map): Add new flag member l_global.
2061 * elf/dl-reloc.c (_dl_relocate_object): Check for _dl_rtld_map
2062 directly instead of looking for lt_interpreter.
2063 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2064 * elf/rtld.c (_dl_start): Don't bother setting BOOTSTRAP_MAP.l_type.
2065 (dl_main): Set _dl_rtld_map.l_type to lt_library.
2067 * elf/dl-deps.c (_dl_map_object_deps): Propagate MAP->l_type to
2068 dependencies loaded, downgrading lt_executable -> lt_library.
2070 * elf/dl-load.c (_dl_map_object_from_fd): Take new arg TYPE and set
2071 l_type from that, translating lt_library->lt_executable based on the
2073 (_dl_map_object): Likewise.
2074 * elf/link.h: Update prototypes.
2075 * elf/dl-open.c: Pass type lt_loaded.
2076 * elf/rtld.c: Pass type lt_library.
2078 * elf/dl-load.c (_dl_map_object_from_fd): Handle null return from
2080 (_dl_map_object_from_fd: lose): Unchain and free L if it's not null.
2081 Free REALNAME, and just use NAME in error message.
2082 * elf/dl-object.c (_dl_new_object): If malloc fails, return null
2083 instead of calling _dl_signal_error.
2085 * elf/dl-load.c (_dl_map_object_from_fd): Close FD before signalling
2086 error for _dl_zerofd setup failure.
2088 * elf/dl-object.c (_dl_startup_loaded): Variable removed.
2089 * elf/link.h: Remove its decl.
2091 * elf/dl-reloc.c (_dl_relocate_object): Take new SCOPE arg and pass it
2092 through to _dl_lookup_symbol.
2093 * elf/link.h (_dl_relocate_object): Update comment and prototype.
2094 * elf/rtld.c (dl_main): Pass scope vector to _dl_relocate_object.
2096 * elf/dl-lookup.c (_dl_lookup_symbol): Arg SYMBOL_SCOPE is now a
2097 null-terminated vector of pointers, no longer a vector of exactly two.
2098 * elf/link.h (_dl_lookup_symbol): Update comment and prototype.
2100 * elf/dl-runtime.c (fixup): Set up scope for symbol lookup properly as
2101 done in _dl_relocate_object.
2103 * elf/dlopen.c: Pass "" to _dl_open when FILE is null.
2105 * elf/link.h: Include elfclass.h to define __ELF_NATIVE_CLASS.
2106 (ElfW, ELFW): Use it.
2107 * elf/Makefile (headers): Add elfclass.h.
2108 * sysdeps/wordsize-32/elfclass.h: New file.
2109 * sysdeps/wordsize-64/elfclass.h: New file.
2110 * sysdeps/alpha/Implies: Add wordsize-64.
2111 * sysdeps/i386/Implies: Add wordsize-32.
2112 * sysdeps/m68k/Implies: Add wordsize-32.
2113 * sysdeps/mips/Implies: Add wordsize-32.
2114 * sysdeps/sparc/Implies: Add wordsize-32.
2116 * sysdeps/mach/hurd/dl-sysdep.c (__open): Define this instead of open.
2117 (__close, __mmap): Likewise define with __ names now.
2119 Mon Jun 10 05:13:18 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2121 * elf/dl-support.c: New file.
2122 * elf/Makefile (CFLAGS-dl-support.c): New variable.
2123 (routines, elide-routines.so): Add dl-support.
2125 * elf/dl-minimal.c (_dl_pagesize): Remove common defn.
2126 * elf/dl-load.c (_dl_pagesize): Define it here.
2127 (_dl_map_object_from_fd): Initialize it if zero.
2128 * elf/link.h (_dl_pagesize): Remove const.
2130 Sun Jun 9 04:04:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2132 * elf/Makefile (routines): Add dl-symbol.
2133 * elf/dl-lookup.c (_dl_symbol_value): Moved to ...
2134 * elf/dl-symbol.c: New file.
2136 * elf/elf.h (Elf32_Xword, Elf32_Sxword): New types.
2137 (Elf32_Section, Elf64_Section): New types, 16 bits.
2138 (Elf32_Sym, Elf64_Sym): Use it.
2140 * elf/dl-deps.c (_dl_open): Moved to ...
2141 * elf/dl-open.c: New file.
2142 * Makefile (routines): Add dl-open.
2144 * elf/Makefile (dl-routines): New variable.
2145 (routines): Add $(dl-routines).
2146 (elide-routines.so): New variable, set to $(dl-routines).
2147 (libdl-inhibit-o): Variable removed; build all flavors of -ldl.
2148 (rtld-routines): All but rtld, dl-sysdep, and dl-minimal moved to
2151 * elf/dl-lookup.c (_dl_lookup_symbol): Remove magic symbol grokage.
2153 * elf/dladdr.c: Use ELFW(ST_BIND) in place of ELF32_ST_BIND.
2155 * elf/dl-load.c (open_path): Use __ names for open and close. Avoid
2157 (_dl_map_object): Likewise.
2158 (_dl_map_object_from_fd): Use __ names for mmap, munmap, and mprotect.
2159 * elf/dl-minimal.c (malloc): Likewise.
2160 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2162 * elf/dl-minimal.c (_dl_pagesize): New variable.
2163 (malloc): Use that instead of a static variable.
2164 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_pagesize instead of
2165 calling getpagesize.
2166 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2167 * elf/link.h: Declare _dl_pagesize.
2169 * elf/rtld.c (dl_r_debug): Renamed to _dl_r_debug.
2171 * elf/link.h (struct link_map): Use Half for l_phnum instead of Word.
2172 * elf/rtld.c (dl_main): Use Half for phdr count arg.
2173 (_dl_sysdep_start): Update prototype of DL_MAIN function ptr arg.
2175 * elf/dl-load.c (_dl_map_object_from_fd): Use explicit Elf32_Word to
2176 extract 4-byte magic number, not ElfW(Word). Match EI_CLASS against
2177 native wordsize, either 32 or 64.
2179 * elf/elf.h (Elf64_Byte, Elf64_Section): Typedefs removed. In C a
2180 char is always a byte, no need for a typedef. Section indices are
2181 16-bit quantities in elf64, which already have a typedef Elf64_Half.
2183 Remove partial -lelf implementation. There is now a
2184 separately-distributed `libelf' package that implements it.
2185 * elf/dl-lookup.c: Don't #include <libelf.h> any more.
2186 (_dl_elf_hash): New function, moved from
2188 (_dl_lookup_symbol): Use it instead of elf_hash.
2189 * elf/libelf.h: File removed.
2190 * elf/elf_hash.c: File removed.
2191 * elf/Makefile (headers): Remove libelf.h.
2192 (extra-libs): Remove libelf.
2193 (libelf-routines): Variable removed.
2195 * elf/Makefile (libdl.so): Remove commands from this target. The
2196 implicit rule commands are correct, this explicit rule just serves to
2197 add some dependencies.
2199 * elf/dl-lookup.c (_dl_lookup_symbol): Use ELFW(ST_TYPE) in place of
2200 ELF32_ST_TYPE. Likewise ST_BIND.
2201 * elf/do-rel.h (elf_dynamic_do_rel): Likewise R_SYM.
2203 * elf/link.h (ElfW): New macro for wordsize-independent ElfXX_* type
2205 (ELFW): New macro, likewise for ELFXX_* macro naming.
2206 (_ElfW, _ElfW_1): New macros, subroutines of ElfW and ELF.
2208 Sat Jun 8 20:52:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2210 * elf/link.h, elf/do-rel.h, elf/dynamic-link.h, elf/dl-deps.c,
2211 elf/dl-init.c, elf/dl-load.c, elf/dl-lookup.c, elf/dl-reloc.c,
2212 elf/dl-runtime.c, elf/dladdr.c, elf/dlclose.c, elf/dlsym.c,
2213 elf/linux-compat.c, elf/rtld.c: Change all uses of `Elf32_XXX' to
2214 `ElfW(XXX)' for wordsize-independence.
2216 Sat Jun 8 20:50:42 1996 Richard Henderson <rth@tamu.edu>
2218 * elf/elf.h: Move Elf64_* types in parity with Elf32 counterparts.
2219 (Elf64_auxv_t): New type.
2220 (EM_ALPHA, R_ALPHA_*): New macros for elf64-alpha format.
2222 Mon Jun 10 02:22:24 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2224 * sysdeps/unix/sysv/linux/configure.in: New file, start with configure.
2225 Add check for installed <linux/version.h> being v2.0 or later.
2227 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill): Call __open
2229 (_dl_sysdep_fatal): Call __write instead of write.
2230 (_dl_sysdep_message): Likewise.
2232 Sun Jun 9 20:40:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2234 * sysdeps/m68k/fpu/e_acosl.c: New file.
2236 Sun Jun 9 01:11:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2238 * Makerules (o-objects): New variable. Use it in place of
2239 $(objects:.o=$o); it filters out $(elide-routines$o).
2240 Use o-iterator for ar and ranlib rules so they use the per-type object
2243 * elf/dl-load.c (_dl_map_object_from_fd): Close FD before return.
2245 * sysdeps/mach/mprotect.c: Define with __ name and weak alias.
2246 * sysdeps/stub/mprotect.c: Likewise.
2247 * sysdeps/unix/mman/syscalls.list (mprotect): Likewise.
2248 * sysdeps/generic/sys/mman.h: Declare __mprotect.
2249 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
2250 * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
2251 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
2252 * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
2253 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
2255 * Make-dist ($(tardir).tar): Use sed to check for file names longer
2256 than 14 chars, instead of doschk which checks for other things we
2259 * Version 1.90 test release.
2261 * Makerules (make-target-directory): Use ./mkinstalldirs so we do not
2262 assume . is in PATH.
2264 Sat Jun 8 22:05:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2266 * math/Makefile (distribute): Comment out addition of
2267 $(long-m-routines) sources until they are all written.
2269 * math/Makefile (distribute): Append long double source names to this
2270 instead of using elided-routines.
2272 Sat Jun 8 15:15:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2274 * mach/mach_shortcuts.c: Obsolete file removed.
2275 * mach/mach_syscalls.h: Likewise.
2277 * hurd/Makefile (distribute): Consolidate defns into one.
2279 * time/Makefile (tzfiles): Add solar87 solar88 solar89.
2281 Fri Jun 7 16:48:13 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2283 * sysdeps/unix/sysv/linux/i386/Dist: New file, list sys/perm.h and
2286 Removed old math code no longer used since the fdlibm integration.
2287 * sysdeps/stub/acos.c: File removed.
2288 * sysdeps/stub/asin.c: File removed.
2289 * sysdeps/stub/atan2.c: File removed.
2290 * sysdeps/stub/cosh.c: File removed.
2291 * sysdeps/stub/exp.c: File removed.
2292 * sysdeps/stub/fmod.c: File removed.
2293 * sysdeps/stub/frexp.c: File removed.
2294 * sysdeps/stub/log.c: File removed.
2295 * sysdeps/stub/log10.c: File removed.
2296 * sysdeps/stub/sinh.c: File removed.
2297 * sysdeps/stub/tan.c: File removed.
2298 * sysdeps/stub/tanh.c: File removed.
2299 * sysdeps/generic/acos.c: File removed.
2300 * sysdeps/generic/acosh.c: File removed.
2301 * sysdeps/generic/asin.c: File removed.
2302 * sysdeps/generic/asinh.c: File removed.
2303 * sysdeps/generic/atan.c: File removed.
2304 * sysdeps/generic/atan2.c: File removed.
2305 * sysdeps/generic/atanh.c: File removed.
2306 * sysdeps/generic/cabs.c: File removed.
2307 * sysdeps/generic/ceil.c: File removed.
2308 * sysdeps/generic/copysign.c: File removed.
2309 * sysdeps/generic/cosh.c: File removed.
2310 * sysdeps/generic/exp.c: File removed.
2311 * sysdeps/generic/expm1.c: File removed.
2312 * sysdeps/generic/fabs.c: File removed.
2313 * sysdeps/generic/floor.c: File removed.
2314 * sysdeps/generic/fmod.c: File removed.
2315 * sysdeps/generic/frexp.c: File removed.
2316 * sysdeps/generic/hypot.c: File removed.
2317 * sysdeps/generic/infnan.c: File removed.
2318 * sysdeps/generic/isnan.c: File removed.
2319 * sysdeps/generic/ldexp.c: File removed.
2320 * sysdeps/generic/log.c: File removed.
2321 * sysdeps/generic/log10.c: File removed.
2322 * sysdeps/generic/log1p.c: File removed.
2323 * sysdeps/generic/modf.c: File removed.
2324 * sysdeps/generic/pow.c: File removed.
2325 * sysdeps/generic/rint.c: File removed.
2326 * sysdeps/generic/sinh.c: File removed.
2327 * sysdeps/generic/tan.c: File removed.
2328 * sysdeps/generic/tanh.c: File removed.
2329 * sysdeps/ieee754/cabs.c: File removed.
2330 * sysdeps/ieee754/copysign.c: File removed.
2331 * sysdeps/ieee754/frexp.c: File removed.
2332 * sysdeps/ieee754/hypot.c: File removed.
2333 * sysdeps/ieee754/infnan.c: File removed.
2334 * sysdeps/ieee754/ldexp.c: File removed.
2335 * sysdeps/ieee754/log10.c: File removed.
2337 * posix/Makefile (headers): Add schedbits.h.
2339 * math/Makefile (elided-routines): Add long double routines.
2341 Fri Jun 7 11:02:22 1996 Miles Bader <miles@gnu.ai.mit.edu>
2343 * sysdeps/mach/hurd/getpriority.c (getpriority): Use new interface
2344 to __proc_getprocinfo.
2346 * login/login.c (tty_name): New function.
2348 (PATH_MAX): MACRO removed.
2349 <stdlib.h>: New include.
2351 Fri Jun 7 09:11:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2353 * sysdeps/unix/sysv/linux/Dist: Add sys/sysinfo.h, sys/mount.h,
2354 sys/kdaemon.h, sys/io.h, sys/mount.h, sysctl.c.
2356 * gmon/Makefile (distribute): Add profil-counter.h.
2358 * sysdeps/unix/sysv/linux/alpha/Dist: New file.
2360 * sysdeps/unix/Dist: Add s-proto.S.
2362 * sysdeps/unix/common/mk-local_lim.c: Obsolete file removed.
2364 * Make-dist (+sysdep-tsrcs): Get all syscalls.list files too.
2366 * csu/Makefile (distribute): Add start.c.
2368 * elf/Makefile (distribute): Add dl-machine.h.
2370 * sysdeps/alpha/Dist: Add _mcount.S.
2372 * sysdeps/alpha/Makefile (sysdep_routines): Append instead of
2373 resetting; don't add bb_init_func.
2375 * string/Makefile (routines): Add strerror_r.
2376 * string/string.h (strerror_r): Use int for BUFLEN arg.
2378 * Makefile (distribute): Add shlib-versions.
2380 * po/Makefile (distribute): Add SYS_libc.pot.
2382 * misc/Makefile (routines): Add lsearch.
2384 * manual/lang.texi (Consistency Checking): Merge in assert_perror defn
2385 and other changes inadvertently made to the obsolete assert.texi.
2386 * manual/assert.texi: File removed.
2388 * mach/mach_syscalls.c: Obsolete file removed.
2389 * mach/mach_syscalls.h: Likewise.
2390 * mach/mach_traps.S: Likewise.
2391 * mach/msg_destroy.c: Likewise.
2392 * mach/vm_page_size.c: Likewise.
2394 * locale/Makefile (distribute): Add weight.h, charset.h.
2396 * Makefile (distribute): Add version.h.
2398 * hurd/Makefile (headers): Add hurd/ioctl.h.
2399 (distribute): Add intr-rpc.d, intr-rpc.h, faultexc.defs.
2401 * csu/Makefile (distribute): Add gmon-start.c.
2403 * Makefile (distribute): Add config.h.in.
2405 Wed Jun 5 22:06:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2407 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Fix type of reloc
2409 [case R_68K_32]: Check for resolve being null.
2410 (RTLD_START): Add missing label.
2412 Fri Jun 7 1996 05:29:32 Ulrich Drepper <drepper@cygnus.com>
2414 * misc/lsearch.c: New file. Implementation of lfind and
2417 * misc/search.h: Add prototype for functions from tsearch
2418 family with __ prefix.
2419 Correct prototype for lsearch: BASE parameter must not be
2422 * misc/tsearch.c: prepend all global function names with __
2423 and make normal names weak aliases.
2425 Fri Jun 7 00:15:24 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2427 * Make-dist (sysdep_dirs): Skip CVS dirs.
2429 Thu Jun 6 16:12:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2431 * malloc/Makefile (distribute): Change malloc/gmalloc-head.c to
2433 (malloc/gmalloc.c): Depend on malloc/gmalloc-head.c.
2434 (malloc/Makefile): Do $(make-target-directory) first.
2435 * malloc/gmalloc-head.c: New file.
2437 * po/Makefile (linguas.mo): Don't commit .mo files to cvs.
2439 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO==0 pending
2440 check, deliver a pending blocked signal if its action might be to
2442 * sysdeps/mach/hurd/sigaction.c: If new action is SIG_IGN or SIG_DFL
2443 and SIG is pending, wake up signal thread to check us.
2445 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't mark a signal
2446 pending while blocked or stopped when the action is to ignore it.
2448 Thu Jun 6 12:56:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2450 * hurd/hurdsig.c (_hurd_internal_post_signal: resume): Only set
2451 SS_SUSPENDED when the thread is really suspended.
2453 * elf/rtld.c (dl_main): Don't dereference _dl_rtld_map.l_next if null.
2455 * Makerules (headers): Move append of $(sysdep_headers) after include
2456 of sysdep makefiles.
2458 * sysdeps/mach/hurd/errlist.c: File removed.
2460 Thu Jun 6 07:32:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
2462 * resolv/gethnamaddr.c (struct hstorage): Make NAME field a pointer.
2463 (_gethtbyname2): Remove ALIAS variable.
2464 Initialize NAME field of SELF and TARGET to 0.
2465 Add SELF_NAME_SIZE static variable.
2466 Add loop to call gethostname until the space we allocated is enough.
2467 Use malloced strings instead of fixed size buffers.
2468 <stdlib.h>, <unistd.h>: New includes.
2469 * sysdeps/generic/sys/socket.h (PF_INET6, AF_INET6): New macros.
2471 * sysdeps/mach/hurd/errlist.c (_sys_errlist): Add EILSEQ.
2472 (_sys_nerr): Initialize to 107.
2473 Update _HURD_ERRNOS consistency check.
2475 * stdlib/canonicalize.c (canonicalize): Use pathconf for PATH_MAX,
2478 * login/login.c [!PATH_MAX] (PATH_MAX): Define to be 1024 if not
2481 * sysdeps/mach/hurd/setitimer.c (timer_thread): Supply SIGCODE
2482 argument to __msg_sig_post_request.
2484 * hurd/hurdmalloc.c: Changes to bring in line with the hurd
2485 libthreads/malloc.c:
2486 (more_memory): Use assert_perror instead of MACH_CALL.
2487 "cthread_internals.h": Include removed.
2488 (realloc): Use LOG2_MIN_SIZE.
2489 (LOG2_MIN_SIZE): New macro.
2490 (realloc): Don't bother allocating a new block if the
2491 new size request fits in the old one and doesn't waste any space.
2492 Only free the old block if we successfully got a new one.
2493 [MCHECK] (struct header): New type.
2494 (union header): Only define if !MCHECK.
2495 (HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros.
2496 [MCHECK] (MIN_SIZE): Add correct definition for this case.
2497 (more_memory, malloc, free, realloc): Use above macros, and add
2498 appropiate checks & frobs in MCHECK case.
2500 Thu Jun 6 02:00:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2502 * Makerules (distinfo-vars): Don't write constant line to frob sources.
2503 * Make-dist (sources): Append $(elided-routines) and $(extra-libs)
2506 Tue Jun 4 22:03:02 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2508 * sysdeps/m68k/fpu/__math.h: Define long double versions of
2509 the inline functions.
2510 * sysdeps/m68k/fpu/e_asinl.c, sysdeps/m68k/fpu/e_atanl.c,
2511 sysdeps/m68k/fpu/e_acosl.c, sysdeps/m68k/fpu/e_expl.c,
2512 sysdeps/m68k/fpu/e_fmodl.c, sysdeps/m68k/fpu/e_log10l.c,
2513 sysdeps/m68k/fpu/e_logl.c, sysdeps/m68k/fpu/e_powl.c,
2514 sysdeps/m68k/fpu/e_remainderl.c, sysdeps/m68k/fpu/e_scalbl.c,
2515 sysdeps/m68k/fpu/e_sinhl.c, sysdeps/m68k/fpu/e_sqrtl.c,
2516 sysdeps/m68k/fpu/k_cosl.c, sysdeps/m68k/fpu/k_sinl.c,
2517 sysdeps/m68k/fpu/k_tanl.c, sysdeps/m68k/fpu/s_atanl.c,
2518 sysdeps/m68k/fpu/s_ceill.c, sysdeps/m68k/fpu/s_cosl.c,
2519 sysdeps/m68k/fpu/s_expm1l.c, sysdeps/m68k/fpu/s_fabsl.c,
2520 sysdeps/m68k/fpu/s_finitel.c, sysdeps/m68k/fpu/s_floorl.c,
2521 sysdeps/m68k/fpu/s_frexpl.c, sysdeps/m68k/fpu/s_ilogbl.c,
2522 sysdeps/m68k/fpu/s_isinfl.c, sysdeps/m68k/fpu/s_isnanl.c,
2523 sysdeps/m68k/fpu/s_ldexpl.c, sysdeps/m68k/fpu/s_log1pl.c,
2524 sysdeps/m68k/fpu/s_logbl.c, sysdeps/m68k/fpu/s_modfl.c,
2525 sysdeps/m68k/fpu/s_rintl.c, sysdeps/m68k/fpu/s_scalbnl.c,
2526 sysdeps/m68k/fpu/s_significandl.c, sysdeps/m68k/fpu/s_sinl.c,
2527 sysdeps/m68k/fpu/e_atanhl.c, sysdeps/m68k/fpu/e_coshl.c: New files.
2529 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_fmod.c,
2530 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_sin.c,
2531 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/s_atan.c,
2532 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_ilogb.c,
2533 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_ldexp.c,
2534 sysdeps/m68k/fpu/s_modf.c: Define generic functions using FUNC and
2535 float_type with appropriate defaults.
2537 * sysdeps/m68k/fpu/e_acosf.c, sysdeps/m68k/fpu/e_fmodf.c,
2538 sysdeps/m68k/fpu/k_cosf.c, sysdeps/m68k/fpu/k_sinf.c,
2539 sysdeps/m68k/fpu/k_tanf.c, sysdeps/m68k/fpu/s_atanf.c,
2540 sysdeps/m68k/fpu/s_frexpf.c, sysdeps/m68k/fpu/s_ilogbf.c,
2541 sysdeps/m68k/fpu/s_isinff.c, sysdeps/m68k/fpu/s_ldexpf.c,
2542 sysdeps/m68k/fpu/s_modff.c: Include the corresponding double
2543 versions with appropriate definitions to get float functions,
2544 instead of defining them directly.
2546 * sysdeps/m68k/fpu/acos.c: File removed.
2547 * sysdeps/m68k/fpu/asin.c: File removed.
2548 * sysdeps/m68k/fpu/atan.c: File removed.
2549 * sysdeps/m68k/fpu/atan2.c: File removed.
2550 * sysdeps/m68k/fpu/atanh.c: File removed.
2551 * sysdeps/m68k/fpu/ceil.c: File removed.
2552 * sysdeps/m68k/fpu/cos.c: File removed.
2553 * sysdeps/m68k/fpu/cosh.c: File removed.
2554 * sysdeps/m68k/fpu/drem.c: File removed.
2555 * sysdeps/m68k/fpu/exp.c: File removed.
2556 * sysdeps/m68k/fpu/expm1.c: File removed.
2557 * sysdeps/m68k/fpu/fabs.c: File removed.
2558 * sysdeps/m68k/fpu/fl.h: File removed.
2559 * sysdeps/m68k/fpu/floor.c: File removed.
2560 * sysdeps/m68k/fpu/fmod.c: File removed.
2561 * sysdeps/m68k/fpu/frexp.c: File removed.
2562 * sysdeps/m68k/fpu/isinf.c: File removed.
2563 * sysdeps/m68k/fpu/isinfl.c: File removed.
2564 * sysdeps/m68k/fpu/isnan.c: File removed.
2565 * sysdeps/m68k/fpu/isnanl.c: File removed.
2566 * sysdeps/m68k/fpu/ldexp.c: File removed.
2567 * sysdeps/m68k/fpu/log.c: File removed.
2568 * sysdeps/m68k/fpu/log10.c: File removed.
2569 * sysdeps/m68k/fpu/log1p.c: File removed.
2570 * sysdeps/m68k/fpu/logb.c: File removed.
2571 * sysdeps/m68k/fpu/pow.c: File removed.
2572 * sysdeps/m68k/fpu/rint.c: File removed.
2573 * sysdeps/m68k/fpu/sin.c: File removed.
2574 * sysdeps/m68k/fpu/sinh.c: File removed.
2575 * sysdeps/m68k/fpu/sqrt.c: File removed.
2576 * sysdeps/m68k/fpu/tan.c: File removed.
2577 * sysdeps/m68k/fpu/tanh.c: File removed.
2579 Thu Jun 6 00:02:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2581 * sysdeps/unix/sysv/linux/syscalls.list: Add select (the syscall name
2583 * sysdeps/unix/sysv/linux/select.S: File removed.
2585 * sysdeps/unix/sysv/linux/m68k/select.S: File removed; obsolete with
2586 current kernels, generic linux version is fine.
2588 * locale/Makefile: Add vpath for %.gperf to programs.
2590 * Make-dist (+tsrcs): Variable removed.
2591 (dist): Process $^ here instead of using $(+tsrcs).
2593 * sysdeps/unix/sysv/linux/Makefile (install-others): Don't set.
2594 ($(includedir)/sys/syscall.h): Target removed.
2595 (sysdep_headers): Add syscall-list.h.
2596 ($(objpfx)syscall-%.[dh]): New rule to build syscall-list.[dh].
2597 (generated): Add those.
2598 * sysdeps/unix/sysv/linux/syscall.h: Include <syscall-list.h>.
2600 Wed Jun 5 15:57:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2602 * misc/sys/syscall.h: New file.
2603 * misc/Makefile (headers): Add sys/syscall.h.
2605 * time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
2606 time/africa, time/asia, time/australasia, time/europe,
2607 time/northamerica, time/southamerica: Updated from ADO 96h.
2609 * Make-dist (all-headers): Filter $(sysdep_headers) out of $(headers).
2610 (try-sysdeps, +sysdep-names): Check sysdeps/libm-ieee754 too.
2612 * Makerules (distinfo-vars): Add sysdep_headers.
2613 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Append to
2614 this instead of $(headers).
2615 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2616 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2618 * Make-dist [subdirs-dirs]: Don't prefix $(subdir-dirs) with
2619 $(subdir); we are already there.
2621 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: Removed.
2623 * mach/Machrules: Undo last change.
2624 (mach-generated): List .uh and .__h files only for $(user-interfaces),
2625 not for each .h in $(interface-headers); server-interfaces have no .uh
2628 Wed Jun 5 15:42:51 1996 Miles Bader <miles@gnu.ai.mit.edu>
2630 * mach/Machrules (%_server.uh, %_server.__h): New rules, so that the
2631 corrsponding .defs file with without the `_server' will be used.
2633 * mach/Makefile (mach/mach_interface.defs): Renamed from
2634 mach_interface.defs.
2635 (mach/memory_object_user.defs): New variable.
2637 Wed Jun 5 15:10:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2639 * Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
2641 * locale/Makefile (subdir-dirs): New variable.
2643 Wed Jun 5 00:01:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2645 * Makerules (distinfo-vars): Add sysdep_routines.
2647 * mach/Machrules (include-%.defs): New canned sequence.
2648 Change all uses of `#include <$*.defs>' in cmds to use it.
2649 * mach/Makefile (mach_interface.defs): New variable, set to mach.defs.
2651 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle RESOLVE being
2652 null in all cases but R_386_COPY.
2655 Wed Jun 5 00:01:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2657 * sysdeps/unix/bsd/ultrix4/mips/Dist: Updated.
2658 * sysdeps/unix/bsd/ultrix4/Dist: Removed.
2659 * sysdeps/unix/sysv/sysv4/Dist: Updated.
2660 * sysdeps/unix/sysv/sco3.2.4/Dist: Removed.
2661 * sysdeps/unix/sysv/irix4/Dist: Updated.
2662 * sysdeps/unix/sysv/linux/i386/Dist: Removed.
2663 * sysdeps/unix/sysv/Dist: Updated.
2664 * sysdeps/unix/bsd/sun/sunos4/Dist: Removed.
2665 * sysdeps/unix/bsd/sony/newsos4/Dist: Removed.
2666 * sysdeps/gnu/Dist: New file.
2667 * sysdeps/alpha/Dist: Updated.
2668 * sysdeps/mach/hurd/Dist: Updated.
2670 * Make-dist [subdir-dirs]: Set a vpath for %.c.
2672 * Make-dist (README): Fix typo in cvs cmd.
2674 * elf/dl-lookup.c (_dl_lookup_symbol): Fix typos in last change.
2675 Comment out ref to nonexistent _dl_close.
2677 Tue Jun 4 21:01:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2679 * math/Makefile (libm-support, libm-calls): New variables.
2680 (libm-routines): Construct this from those.
2681 (calls): New variable.
2682 (routines): Construct this from it.
2684 * resolv/res_debug.c: Add missing #include <ctype.h>.
2686 * sysdeps/unix/getlogin.c: Must pass struct utmp ptr to getutline_r.
2687 * sysdeps/unix/getlogin_r.c: Likewise.
2689 * sysdeps/libm-ieee754/w_hypotl.c: Fix typo.
2691 * sysdeps/libm-ieee754/w_cabsl.c: __cabsl_complex -> __cabs_complexl
2693 * math/Makefile (long-m-routines): Define recursive variable as
2694 $(long-m-$(long-double-fcts)).
2695 (long-m-yes): Put list of routines here.
2696 (long-c-routines, long-c-yes): Likewise.
2698 * sysdeps/unix/sysv/linux/schedbits.h: File removed.
2700 * sysdeps/i386/Makefile (long-double-fcts): New variable, set to yes.
2701 * sysdeps/m68k/Makefile: Likewise.
2703 * math/Makefile [$(long-double-fcts)!=yes] (CPPFLAGS): Append
2706 * sysdeps/mach/hurd/getlogin_r.c: New file.
2708 Wed Jun 5 02:11:30 1996 Ulrich Drepper <drepper@cygnus.com>
2710 * io/Makefile (routines): Add ttyname_r.
2712 * resolv/res_debug.c, resolv/resolv.h: Update from bind-4.3.4-T4A.
2714 * sysdeps/libm-i387/e_asinl.S, sysdeps/libm-i387/e_atan2l.S,
2715 sysdeps/libm-i387/e_expl.S, sysdeps/libm-i387/e_fmodl.S,
2716 sysdeps/libm-i387/e_log10l.S, sysdeps/libm-i387/e_logl.S,
2717 sysdeps/libm-i387/e_remainderl.S, sysdeps/libm-i387/e_scalbl.S,
2718 sysdeps/libm-i387/e_sqrtl.S, sysdeps/libm-i387/s_atanl.S,
2719 sysdeps/libm-i387/s_cosl.S, sysdeps/libm-i387/s_ilogbl.S,
2720 sysdeps/libm-i387/s_log1pl.S, sysdeps/libm-i387/s_logbl.S,
2721 sysdeps/libm-i387/s_scalbnl.S, sysdeps/libm-i387/s_sinl.S,
2722 sysdeps/libm-i387/s_tanl.S: New files. i387 assembler versions
2723 of `long double' math functions.
2725 * sysdeps/libm-ieee754/k_standard.c: Add handling for errors
2726 in long double functions.
2728 * sysdeps/libm-ieee754/s_ilogbl.c, sysdeps/libm-ieee754/s_logbl.c,
2729 sysdeps/libm-ieee754/s_modfl.c: New files. Generic versions
2730 of `long double' math functions.
2732 * sysdeps/libm-ieee754/s_isinf.c [NO_LONG_DOUBLE]: Add string
2735 * sysdeps/libm-ieee754/w_acoshl.c, sysdeps/libm-ieee754/w_acosl.c,
2736 sysdeps/libm-ieee754/w_asinl.c, sysdeps/libm-ieee754/w_atan2l.c,
2737 sysdeps/libm-ieee754/w_atanhl.c, sysdeps/libm-ieee754/w_cabsl.c,
2738 sysdeps/libm-ieee754/w_coshl.c, sysdeps/libm-ieee754/w_dreml.c,
2739 sysdeps/libm-ieee754/w_expl.c, sysdeps/libm-ieee754/w_fmodl.c,
2740 sysdeps/libm-ieee754/w_gammal.c, sysdeps/libm-ieee754/w_gammal_r.c,
2741 sysdeps/libm-ieee754/w_hypotl.c, sysdeps/libm-ieee754/w_j0l.c,
2742 sysdeps/libm-ieee754/w_j1l.c, sysdeps/libm-ieee754/w_jnl.c,
2743 sysdeps/libm-ieee754/w_lgammal.c, sysdeps/libm-ieee754/w_lgammal_r.c,
2744 sysdeps/libm-ieee754/w_log10l.c, sysdeps/libm-ieee754/w_logl.c,
2745 sysdeps/libm-ieee754/w_powl.c, sysdeps/libm-ieee754/w_remainderl.c,
2746 sysdeps/libm-ieee754/w_scalbl.c, sysdeps/libm-ieee754/w_sinhl.c,
2747 sysdeps/libm-ieee754/w_sqrtl.c: New files. Wrapper functions
2748 around long double function implementations.
2750 * sysdeps/posix/ttyname_r.c (ttyname_r): Use _D_EXACT_NAMLEN
2751 to determine length of directory entry name.
2753 * posix/Makefile (routines): Add getlogin_r.
2754 * posix/unistd.h: Add prototype for getlogin_r.
2755 * sysdeps/stub/getlogin_r.c: New file. Reentrant version of
2756 getlogin function, specified in P1003.1c/D6. Stub version.
2757 * sysdeps/unix/getlogin.c (getlogin): Use ttyname_r instead of
2758 ttyname. This avoids saving and restoring the old content.
2759 Also use setutent_r, getutline_r and endutent_r instead of
2760 accing UTMP file directly.
2761 * sysdeps/unix/getlogin_r.c: New file. Reentrant version of
2762 getlogin function, specified in P1003.1c/D6.
2764 Tue Jun 4 20:10:09 1996 J.T. Conklin <jtc@cygnus.com>
2766 * sysdeps/libm-i387/s_finitef.S: Fix mask for exponent.
2768 Tue Jun 4 18:57:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2770 * elf/dl-lookup.c (_dl_lookup_symbol): Grok magical undefined symbols
2771 _GNU_libc_dl_{open,close,symbol} and resolve them to dl functions.
2773 * elf/rtld.c (rtld_map): Renamed to _dl_rtld_map, made global.
2774 * elf/link.h: Declare _dl_rtld_map.
2776 * elf/dl-lookup.c (_dl_symbol_value): New function.
2777 * elf/link.h: Declare it.
2779 * elf/dladdr.c: Remove #include <setjmp.h>, we don't use it.
2781 * shlib-versions: Set libdl=2.
2783 * elf/dl-deps.c (_dl_map_object_deps): Use a linked list of alloca'd
2784 elements and then scan it to fill the single malloc'd array, instead
2785 of using realloc to grow the array in the first pass. _dl_map_object
2786 may do some mallocs that break our stream of reallocs, and the minimal
2787 realloc can't handle that.
2789 * elf/dl-init.c (_dl_init_next): Take argument, link_map whose
2790 searchlist describes the piece of the DT_NEEDED graph to be
2792 * elf/link.h: Update prototype.
2793 * sysdeps/i386/dl-machine.h (RTLD_START): Pass _dl_loaded as argument
2795 * sysdeps/m68k/dl-machine.h: Likewise.
2796 * elf/dl-deps.c (_dl_open): Pass new object as arg to _dl_init_next.
2798 * elf/link.h (struct link_map): Add `l_reserved' member, soaking up
2799 extra bits in last byte.
2800 * elf/dl-deps.c (_dl_map_object_deps): Use that for mark bit to avoid
2801 putting dup elts in search list.
2803 * elf/dlclose.c: Use MAP->l_searchlist to find deps to close.
2805 * elf/dlsym.c: Don't tweak linked list. Scope array given to
2806 _dl_lookup_symbol does the right thing.
2808 * elf/Makefile (subdir_lib): Change this target to lib-noranlib.
2809 (lib-noranlib): Depend on on $(extra-objs).
2811 * errno.h: Move __END_DECLS out of #ifdef's so it matches
2814 Tue Jun 4 02:25:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2816 * stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as
2817 macro. _IO_size_t is just an alias for the real size_t anyway.
2819 * elf/Makefile (libdl-routines): Add dladdr.
2820 * elf/dladdr.c: New file.
2821 * elf/dlfcn.h (Dl_info): New typedef.
2822 (dladdr): Declare it.
2824 * sysdeps/libm-i387/s_finite.S: Use `setne' instead of `setnel'.
2826 * intl/l10nflist.c: Fix conditional on #include <argz.h>.
2828 * libio/stdio.h (FOPEN_MAX, FILENAME_MAX, TMP_MAX, L_tmpnam): Macros
2829 removed. Instead, include <stdio_lim.h>.
2831 * libio/_G_config.h: New file.
2832 * libio/Makefile (headers): Add _G_config.h.
2834 * MakeTAGS (po/errlist.pot): Extract from sysdeps/gnu/errlist.c.
2836 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Define
2837 this macro too; current Linux kernels test that instead of
2838 _LINUX_TYPES_DONT_EXPORT.
2840 * elf/linux-compat.c (_init): Pass reloc_addr arg to _dl_lookup_symbol.
2842 * elf/dl-lookup.c (_dl_lookup_symbol): Use l_searchlist.
2844 * elf/dl-deps.c: New file.
2845 * elf/Makefile (rtld-routines): Add dl-deps.
2846 * elf/link.h: Declare _dl_map_object_deps, _dl_open.
2847 * elf/rtld.c (dl_main): Use _dl_map_object_deps.
2848 * elf/dlopen.c: Use _dl_open.
2850 * elf/rtld.c (dl_main): Remove BEFORE_RTLD variable and list
2851 frobnication based on its value. Detach RTLD_MAP from the chain if
2852 its l_opencount is zero after loading deps.
2854 * elf/dlfcn.h (RTLD_BINDING_MASK): New macro.
2856 * elf/link.h (struct link_map): Replace l_deps_loaded flag member with
2857 `struct link_map **l_searchlist' and `unsigned int l_nsearchlist'.
2858 * elf/dl-lookup.c (_dl_lookup_symbol): Make SYMBOL_SCOPE arg an array
2859 of two link_map ptrs. Search the maps in the l_searchlist of each
2860 elt that is not null.
2861 * elf/dl-reloc.c (_dl_relocate_object): Pass proper SCOPE array.
2862 * elf/dl-runtime.c: Likewise.
2863 * elf/dlsym.c: Likewise.
2864 * elf/rtld.c (dl_main): Likewise.
2866 * elf/dl-minimal.c (realloc): Support realloc of the block most
2867 recently returned by the minimal malloc.
2869 Tue Jun 4 00:16:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2871 * sysdeps/gnu/errlist.awk: Produce N_("..."), not _N("...").
2873 * intl: Updated from gettext-0.10.13.
2874 * intl/localealias.c, intl/dcgettext.c [_LIBC]: Define HAVE_ALLOCA.
2876 * signal/siggetmask.c: New file. Wrapper around sigblock with
2877 link_warning about obsolescence.
2878 * signal/Makefile (routines): Add siggetmask.
2880 * sysdeps/gnu/errlist.awk: New file, adapted from ...
2881 * sysdeps/mach/hurd/errlist.awk: File removed, above file replaces it.
2882 * sysdeps/mach/hurd/Makefile (errlist.c): Target removed.
2883 * sysdeps/gnu/Makefile: New file.
2884 (sysdeps/gnu/errlist.c): Make the errlist.c generation rule into this.
2886 Mon Jun 3 21:03:54 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2888 * manual/errno.texi (Error Codes): Add placeholder items for missing
2889 Linux/i386 errno codes, with perror text but no documentation.
2890 Some existing perror texts changed.
2892 * malloc/mcheck.c (freehook, reallochook): Handle null pointer args.
2894 * hurd/hurdsig.c (_hurd_internal_post_signal): When setting ACT to
2895 `ignore, resume the thread if SS_SUSPENDED, regardless of old action.
2897 Sun Jun 2 20:14:30 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2899 * locale/programs/linereader.c (lr_open): Don't pass NULL to
2900 xstrdup; fix memory leak.
2901 (lr_close): Fix memory leak.
2903 Mon Jun 3 15:58:22 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
2905 * hurd/hurdsig.c (_hurd_internal_post_signal): When turning the action
2906 for a HANDLE signal to IGNORE because the signal is blocked, clean
2907 up any pending suspension left over from a call to resume.
2909 Mon Jun 3 00:30:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2911 * elf/dl-lookup.c (_dl_lookup_symbol): Take new arg RELOC_ADDR and
2912 don't allow a defn resolving to that address.
2914 * elf/link.h: Update prototype and comment.
2915 * elf/dl-runtime.c (fixup): Define local `resolve' function and pass
2916 it to elf_machine_relplt.
2917 * elf/dl-reloc.c (_dl_relocate_object: resolve): Take new arg
2918 RELOC_ADDR and pass it through to _dl_lookup_symbol.
2919 * elf/do-rel.h (elf_dynamic_do_rel): Pass RESOLVE to elf_machine_rel
2920 instead of calling it ourselves and passing its results.
2921 (elf_dynamic_do_rel): RESOLVE fn takes new arg RELOC_ADDR.
2922 * elf/rtld.c (dl_main): Pass 0 for RELOC_ADDR to _dl_lookup_symbol.
2923 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove SYM_LOADADDR
2924 arg. Add RESOLVE function ptr arg. Call *RESOLVE as necessary.
2925 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
2926 * sysdeps/stub/dl-machine.h: Likewise.
2928 Sun Jun 2 14:56:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2930 * csu/initfini.c (_fini): Add extern decl for i_am_not_a_leaf.
2932 * elf/dlfcn.h (dl_open_mode): Enumerated type removed.
2933 (RTLD_LAZY, RTLD_NOW): Define these as macros instead.
2934 (RTLD_GLOBAL): New macro.
2935 (dlopen): Take arg of type int instead of dl_open_mode.
2936 * elf/dlopen.c: Likewise.
2938 * math/math.h (_Mldbl): New macro, either produces L suffix or not.
2939 (M_*): Use it for these constants.
2941 * elf/dl-lookup.c (_dl_lookup_symbol): Arg NOSELF renamed to NOPLT.
2942 Reject SHN_UNDEF defns iff NOPLT is nonzero.
2943 * elf/link.h (_dl_lookup_symbol): Update prototype and comment.
2944 * elf/dl-runtime.c (fixup): Pass 1 to _dl_lookup_symbol for NOPLT.
2945 * elf/dlsym.c (dlsym): Pass 0.
2946 * elf/rtld.c (dl_main): Likewise.
2947 * elf/dl-reloc.c (_dl_relocate_object: resolve): Second arg R_OFFSET
2948 replaced with NOPLT flag. Pass it through to _dl_lookup_symbol.
2949 * elf/do-rel.h (elf_dynamic_do_rel): Update prototype of RESOLVE arg.
2950 Pass `elf_machine_pltrel_p (R->r_type)' result as NOPLT flag value.
2951 * sysdeps/i386/dl-machine.h (elf_machine_pltrel_p): New macro.
2952 * sysdeps/m68k/dl-machine.h (elf_machine_pltrel_p): Likewise.
2953 * sysdeps/stub/dl-machine.h (elf_machine_pltrel_p): Likewise.
2955 * login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca.
2957 * sysdeps/generic/gnu/types.h (__clock_t): New type.
2959 Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
2961 * sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define
2963 * time/time.h (clock_t): Include <gnu/types.h> and define using
2966 * time/Makefile (tests): Add test-tz.
2968 * time/test-tz.c: New test.
2970 * time/clocktest.c: Rewrite to test more meaningfully.
2972 * sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
2973 create_module, delete_module, get_kernel_syms, init_module,
2976 * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
2977 instead of SYMLOOP_MAX, which is nowhere to be found.
2979 * sysdeps/unix/sysv/linux/sys/msq_buf.h,
2980 sysdeps/unix/sysv/linux/sys/sem_buf.h,
2981 sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
2982 control ops and datastructures.
2984 * sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
2985 I/O related functions.
2987 * sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
2988 daemon related functions/operations.
2990 * sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
2991 logging related functions/operations.
2993 * sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
2994 module related functions/operations.
2996 * sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
2997 for non-Alpha based Linux systems.
2999 * sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
3001 * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
3002 sys/io.h, sys/klog.h, and sys/kdaemon.h.
3004 * sysdeps/unix/sysdep.h (END): Define empty END macro for
3005 platforms that don't need some sort of end directive at the
3008 * sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
3009 syscall wrapper to allow correct generation of debugging
3012 * sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
3013 directive for both ELF and ECOFF.
3014 (ret): Delete macro. It was a dangerous macro and unnecessary
3015 since the Alpha assemblers recognizes "ret" as a macro themselves.
3017 * sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
3018 ut_session to guarantee long alignment. This is important for
3019 Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
3020 This will all get cleaned up as programs start to use ut_tv
3023 * sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
3025 * sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
3028 * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
3029 sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
3030 sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
3031 sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
3032 sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
3033 sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
3034 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3035 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3036 sysdeps/unix/sysv/linux/alpha/llseek.S,
3037 sysdeps/unix/sysv/linux/alpha/pipe.S,
3038 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
3039 sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
3042 * csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
3043 function by having it contain a dummy function call.
3045 * configure.in (config_machine): Don't make ELF the default for
3046 Linux/Alpha just yet (use --with-elf instead).
3047 (.init/.fini check): Generate .text to ensure function start and
3048 end are in same section.
3050 * sysdeps/unix/bsd/osf/alpha/brk.S,
3051 sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
3052 break value, not just the low 32 bits to accomodate large
3055 Tue May 28 10:46:04 1996 Richard Henderson <rth@tamu.edu>
3057 * sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
3058 dynamically resolve _end for initializing __curbrk, support the
3061 * sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
3063 * sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
3065 Sun May 26 22:17:38 1996 Richard Henderson <rth@tamu.edu>
3067 * stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
3068 stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
3070 Thu May 23 02:15:56 1996 David Mosberger-Tang <davidm@azstarnet.com>
3072 * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
3073 sys/klog.h, and sys/kdaemon.h.
3075 * sysdeps/unix/sysv/linux/sys/io.h: New file.
3076 * sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
3077 * sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
3079 * sysdeps/unix/alpha/sysdep.h (ret): Remove macro. It is
3080 dangerous and unnecessary since both OSF/1 as and gas define "ret"
3081 as a pseudo-instruction.
3083 Sat Jun 1 17:18:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3085 * time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
3086 them. Bug found by David Mosberger-Tang.
3088 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
3091 * extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
3092 to work around Make bug when A contains var ref.
3094 Fri May 31 18:27:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3096 * string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
3098 * sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
3099 strong names and [gs]etpgid as weak aliases.
3101 Thu May 30 11:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3103 * math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
3105 * po/header.pot: Replace with exact boilerplate pinard dictates.
3107 * sysdeps/i386/strtok.S (Lillegal_argument): Remove this code to set
3108 errno and the check that jumped to it.
3110 * sysdeps/mach/hurd/Makefile (errnos.d): Use $(sed-remove-objpfx).
3112 Thu May 30 03:21:57 1996 Ulrich Drepper <drepper@cygnus.com>
3114 * FAQ: Document need of gperf program for developers.
3116 * elf/elf.h: Fix typos in comments.
3118 * libio/stdio.h [!__STRICT_ANSI__ || _POSIX_SOURCE]: Add
3119 prototypes for `ctermid' and `cuserid'.
3121 * locale/programs/locale.c: Switch to user selected locale
3122 before printing variables.
3124 * math/Makefile [$(long-double-fcts)==yes]: Define long-m-routines
3125 and long-c-routines. Only if the `long double' data type is
3126 available we need to compile the functions.
3127 (libm-routines): Add $(long-m-routines).
3128 (routines): Remove isinfl, isnanl. Use new file s_isinfl and
3129 s_isnanl instead if `long double' is available.
3131 * math/math.h: Include <mathcalls.h> again to define `long double'
3134 * math/math_private.h: Define data types, prototypes and access
3135 macros for `long double'.
3137 * stdlib/stdlib.h: Add prototypes for `strtoll' and `strtoull'.
3138 [GCC2 && OPTIMIZE]: Define strto{,u}ll as inline function which
3139 calls __strto{,u}q_internal.
3141 * stdlib/strfmon.c: Replace PTR by `void *'.
3143 * stdlib/strtoq.c: Define strtoll as weak alias.
3144 * stdlib/strtouq.c: Define strtoull as weak alias.
3146 * string/tester.c: Correct `strsep' test.
3148 * sysdeps/generic/strsep.c: Make compatible with BSD version.
3149 Trailing characters of skip set are not skipped. In this case
3150 empty tokens are returned.
3152 * sysdeps/i386/isinfl.c, sysdeps/i386/isnanl.c,
3153 sysdeps/ieee754/isinf.c, sysdeps/ieee754/isinfl.c,
3154 sysdeps/ieee754/isnan.c, sysdeps/ieee754/isnanl.c: Removed. We
3155 now use the versions part of libm.
3157 * sysdeps/i386/strsep.S: Removed. Generic C version is of
3159 * sysdeps/i386/strtok.S: Remove support for `strsep'.
3161 * sysdeps/libm-i387/e_acosl.S, sysdeps/libm-i387/s_ceill.S,
3162 sysdeps/libm-i387/s_copysignl.S, sysdeps/libm-i387/s_finitel.S,
3163 sysdeps/libm-i387/s_floorl.S, sysdeps/libm-i387/s_isinfl.c,
3164 sysdeps/libm-i387/s_isnanl.c, sysdeps/libm-i387/s_nextafterl.c,
3165 sysdeps/libm-i387/s_rintl.S, sysdeps/libm-i387/s_significandl.S:
3166 New i387 specific math functions implementing `long double'
3169 * sysdeps/libm-ieee754/s_ceill.c,
3170 sysdeps/libm-ieee754/s_copysignl.c,
3171 sysdeps/libm-ieee754/s_fabsl.c, sysdeps/libm-ieee754/s_finitel.c,
3172 sysdeps/libm-ieee754/s_floorl.c, sysdeps/libm-ieee754/s_isinfl.c,
3173 sysdeps/libm-ieee754/s_isnanl.c,
3174 sysdeps/libm-ieee754/s_nextafterl.c,
3175 sysdeps/libm-ieee754/s_rintl.c, sysdeps/libm-ieee754/s_scalbnl.c,
3176 sysdeps/libm-ieee754/s_significandl.c: New generic `long double'
3177 versions of libm functions.
3179 * sysdeps/libm-i387/e_exp.S: Add a few comments to explain the
3182 * sysdeps/libm-i387/s_ceil.S, sysdeps/libm-i387/s_ceilf.S,
3183 sysdeps/libm-i387/s_floor.S, sysdeps/libm-i387/s_floorf.S: Correct
3184 handling of local variables. The old version created a stack
3185 frame but stored the values outside.
3187 * sysdeps/libm-ieee754/s_isinf.c, sysdeps/libm-ieee754/s_isnan.c
3188 [!NO_LONG_DOUBLE]: Define alias with `long double' versions name.
3190 Wed May 29 12:53:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3192 * login/pututline_r.c: Include sys/stat.h. Fix typos.
3194 * version.h (VERSION): Set to 1.90.
3196 * Makerules (distinfo-vars): Write extra-libs and *-routines for each
3198 * MakeTAGS (sources): Add those sources.
3200 * MakeTAGS (all-sources): Add $(others:=.c) and $(tests:=.c).
3202 Wed May 29 08:53:08 1996 Miles Bader <miles@gnu.ai.mit.edu>
3204 * hurd/report-wait.c (_S_msg_report_wait): Return `itimer' for the
3207 * hurd/hurdinit.c (_hurd_init): Set _HURDSIG_TRACED before calling
3210 Wed May 29 00:52:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3212 * string/tester.c (main): Fix strsep tests 6, 7, 20 to expect null
3213 token instead of it being implicitly skipped.
3215 * sysdeps/i386/fpu/__math.h (logb): Correct contraint from =u to =t.
3216 Must operate on top of fp reg stack, not second from top.
3218 * extra-lib.mk (alltypes-$(lib)): Don't append $(objpfx)$(lib).so.
3219 (others): Instead, make this depend on it.
3221 Tue May 28 04:38:10 1996 Ulrich Drepper <drepper@cygnus.com>
3223 * limits.h: Change MB_LEN_MAX to 6. A 31-bit ISO 10646
3224 character in UTF-8 encoding has that many bytes.
3226 * locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
3227 * locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
3228 * locale/Makefile (routines): Add mb_cur_max.
3229 * locale/mb_cur_max.c: New file. This function gets called
3230 when the macro MB_CUR_MAX is used.
3231 * locale/C-ctype.c: Initialize new mb_cur_max field.
3232 * locale/localeinfo.h: Change magic value because of incompatible
3234 * locale/programs/ld-ctype.c: Determine value of mb_cur_max
3235 according to current character set and write it out with the rest.
3236 * stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore. Get value
3237 according to currently used locale for category LC_CTYPE by
3238 calling the function __ctype_get_mb_cur_max.
3240 Tue May 28 03:27:46 1996 Ulrich Drepper <drepper@cygnus.com>
3242 * FAQ: Fix some typos.
3243 Tell that for Linux the kernel header files are necessary.
3245 * PROJECTS: New file. List of open jobs for glibc.
3246 * Makefile (distribute): Add PROJECTS.
3248 * crypt/GNUmakefile (headers): New variable. Mention crypt.h.
3249 * crypt/crypt.h: Header for crypt functions.
3251 * elf/elf.h: Add some new constants from recent Cygnus ELF
3254 * login/getutid_r.c: Test for correct type.
3255 Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
3256 _HAVE_UT_ID resp. are defined.
3257 Make really compliant with specification.
3259 * login/getutline_r.c, login/pututline_r.c: Don't depend on
3260 ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
3262 Make really compliant with specification.
3264 * login/setutent_r.c: Don't depend on ut_type and ut_id unless
3265 _HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
3267 * login/login.c, login/logout.c, login/logwtmp.c: Complete
3268 rewrite. Now based on getut*/setut* functions.
3270 * stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
3271 This prevented using this file in other GNU packages.
3273 * sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
3274 and _HAVE_UT_TV because struct utmp has these members.
3276 * sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
3278 * utmp.h: New file. Wrapper around login/utmp.h.
3280 Tue May 28 13:11:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3282 * elf/dl-error.c (struct catch): New type.
3283 (catch): New static variable, struct catch *.
3284 (catch_env, signalled_errstring, signalled_objname): Variables removed.
3285 (_dl_signal_error): If CATCH is non-null, set its errstring and
3286 objname members and jump to CATCH->env. If it is null, call
3287 _dl_sysdep_fatal with a standard message.
3288 * elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
3289 No longer use _dl_catch_error.
3291 * Makerules (sed-remove-objpfx): Avoid extra space in regexp due to
3294 * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in
3295 setting %ecx to 2nd syscall arg: we have pushed nothing, so function
3296 args are found at 4(%esp), not 8(%esp).
3298 Mon May 27 10:10:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3300 * Makefile ($(includedir)/stubs.h): Add missing backslash.
3302 * sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
3305 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
3308 * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.
3310 * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
3313 * sysdeps/unix/sysv/linux/termio.h: New file.
3314 * sysdeps/unix/sysv/linux/Dist: Add it.
3316 * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
3317 kernel header <asm/termios.h>.
3319 * misc/Makefile (headers): Add ioctl-types.h.
3320 * sysdeps/generic/ioctl-types.h: New file.
3321 * misc/sys/ioctl.h: Include <ioctl-types.h>.
3322 (struct tchars, struct ltchars, struct sgttyb, struct winsize,
3323 struct ttysize): Types moved there.
3325 * Makefile ($(includedir)/stubs.h): Don't touch target if new one is
3328 * time/Makefile (z.% rule): Generate generic zone%/ rule after
3329 zone%/right/ and zone%/posix/ rules so they match first.
3331 Sun May 26 15:15:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3333 * features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
3334 _POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
3336 * time/Makefile (tzcompile): Add missing backslash.
3338 * stdlib/ldiv.c: Deansideclized.
3340 * wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
3341 [! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
3342 stddef.h doesn't define it.
3343 * wcsmbs/wchar.h: Likewise.
3344 * stdlib/strtod.c: Likewise.
3346 * wcsmbs/wcstok.c: Fix argument name typo.
3348 Sun May 26 19:39:53 1996 Ulrich Drepper <drepper@cygnus.com>
3350 * intl/loadmsgcat.c (_nl_load_domain): Test correct variable
3353 * string/Makefile (tester-ENV): New variable to suppress message
3354 translation in test.
3356 * string/tester.c: Add tests for strtok_r and strsep.
3358 * sysdeps/i386/i486/strcat.S: Correct some more 8bit operation
3359 <-> 32 bit operand conflicts.
3361 * sysdeps/i386/strsep.S: Wrapper around <sysdeps/i386/strtok.S>
3362 to produce strsep function.
3363 * sysdeps/i386/strtok.S: Optimized implementation of strtok
3365 * sysdeps/i386/strtok_r.S: Wrapper around <sysdeps/i386/strtok.S>
3366 to produce strtok_r function.
3368 * sysdeps/generic/strtok.c: Moved here from string/strtok.c.
3369 Corrected example in comment.
3371 * string/Makefile (routines): Add strtok_r.
3372 * sysdeps/generic/strtok_r.c: New file. Implement reentrant version
3374 * string/string.h: Add prototype for strtok_r.
3375 * wcsmbs/wcstok.c: Handle illegal SAVE_PTR argument the same
3378 Sun May 26 13:28:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3380 * time/tzset.c (__tzset): Ignore leading : in $TZ; always try tzfile
3381 first and fall back to 1003.1 syntax only if it fails.
3383 * time/Makefile (install-others): Also install posix/ZONE and
3384 right/ZONE for each ZONE in $(zonenames).
3385 (z.% rule): Generate rules for right/ZONE and posix/ZONE targets too,
3386 the difference begin leapseconds vs /dev/null as 3rd dep. For
3387 original ZONE targets use $(leapseconds), to be set in Makeconfig.
3388 (target-zone-flavor): New variable.
3389 (tzcompile): Use it to get the right -d for posix/ and right/ flavors.
3390 * Makeconfig (leapseconds): New variable.
3392 * mach/Machrules (%.udeps rule): Depend on Machrules.
3393 Emit deps for .uh and .__h files.
3394 (%.uh, %.__h rules): Don't depend on %.defs; use #include <$*.defs>
3397 Sun May 26 01:06:47 1996 Ulrich Drepper <drepper@cygnus.com>
3399 * stdlib/Makefile (routines): Add llabs, lldiv.
3400 * stdlib/llabs.c: New file. Implementation of return
3401 absolute value of long long argument.
3402 * stdlib/lldiv.c: New file. Implementation of division with remainder
3403 of long long argument.
3404 * stdlib/stdlib.h [__USE_GNU] (lldiv_t): New type for lldiv
3406 Define prototypes for lldiv and llabs functions.
3408 * locale/C-collate.c: Initialize _NL_COLLATE_NRULES element.
3410 * stdlib/strtod.c: Replace wchar_t with wint_t. The later is
3411 really the type for a single wide character.
3413 * string/strxfrm.c (print_val): Define separate version for
3414 use as wcsxfrm. Here we don't need UTF8 encoding.
3416 * wcsmbs/wchar.h: gcc-2.7.2-960517 finally introduces wint_t
3417 in <stddef.h>. Use this value and only for older gcc version
3419 (uwchar_t): Remove definition.
3421 * wcsmbs/wcscmp.c, wcsmbs/wcscoll.c, wcsmbs/wcsncmp.c,
3422 wcsmbs/wcsxfrm.c, wcsmbs/wmemcmp.c: : Don't use uwchar_t as unsigned
3423 type. wint_t is intended for this.
3425 Sat May 25 14:10:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3427 * sysdeps/unix/bsd/direntry.h: Use [1] instead of [0] for d_name to
3428 quiet -ansi -pedantic.
3429 * sysdeps/unix/common/direntry.h: Likewise.
3431 * login/Makefile (headers): Add lastlog.h.
3432 * login/lastlog.h: New file.
3434 * login/Makefile (CFLAGS): Don't append -D_THREAD_SAFE.
3435 * login/utmp.h [_REENTRANT || _THREAD_SAFE]: Replace this conditional
3436 with #ifdef __USE_REENTRANT.
3438 * features.h (__GNU_LIBRARY__): Set to 6.
3439 [_GNU_SOURCE] (_POSIX_SOURCE, _POSIX_C_SOURCE, _BSD_SOURCE,
3440 _SVID_SOURCE): Make sure they are all defined.
3442 * sysdeps/unix/sysv/linux/gnu/types.h: Instead of including
3443 <linux/posix_types.h>, define _LINUX_TYPES_DONT_EXPORT and then
3444 include <linux/types.h>.
3446 * resource/sys/resource.h: Remove trailing commas from enums.
3448 Fri May 24 17:30:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3450 * sysdeps/generic/netinet/in.h: Remove trailing commas from enums.
3451 * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
3453 * login/getutline_r.c: Include string.h.
3455 * Rules (static-only-routines): Restore the rule to make these .so's
3458 * login/pututline_r.c: Use struct assignment instead of memcpy.
3460 * login/getutline_r.c: Use strncmp instead of comparing two pointers
3461 that will only be equal if you are overwriting the data and screwing
3464 Fri May 24 02:31:36 1996 Ulrich Drepper <drepper@cygnus.com>
3466 * sysdeps/unix/sysv/linux/speed.c: Add new speed value 460800.
3468 Thu May 23 23:09:33 1996 Ulrich Drepper <drepper@cygnus.com>
3470 * FAQ: Add answer for 100% source code compatibility to Linux
3471 libc by David Mosberger-Tang.
3473 Update from bind-4.9.4-T3B.
3474 * inet/arpa/inet.h: Add prototypes for inet_pton, inet_ntop,
3475 inet_nsap_addr, and inet_nsap_ntoa.
3476 * resolv/gethnamaddr.c: Correct compatibility problems (sprintf),
3477 remove fourth argument to inet_pton and correct handling of
3479 * resolv/inet_ntop.c: Correct compatibility problems (sprintf).
3480 * resolv/inet_pton.c: Remove fourth argument.
3481 * resolv/resolv.h: Remove prototypes for inet_nsap_addr and
3482 inet_nsap_ntoa. Now in <arpa/inet.h>.
3484 * stdlib/gmp-impl.h: Add prototypes for internal functions.
3486 Thu May 23 22:49:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3488 * Rules (subdir_install): Remove dep on sor-$(subdir).
3489 (static-only-routines): Removed variable and associated rules.
3491 Wed May 22 00:40:50 1996 David Mosberger-Tang <davidm@azstarnet.com>
3493 * sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
3496 * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
3498 * sysdeps/unix/sysv/linux/alpha/Makefile (headers): Add
3500 * sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
3502 * sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
3505 * sysdeps/generic/sigset.h (__sigismember, __sigaddset,
3506 __sigdelset): Add declaration to keep ANSI compilers quiet.
3508 * sysdeps/alpha/__math.h (cabs): Remove underscores from struct
3509 __cabs_complex member names in call to __hypot().
3511 * sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
3513 * sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
3514 name collision with math library.
3516 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
3517 sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
3518 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
3521 * sysdeps/unix/alpha/sysdep.h: Include regdef.h. Define LEAF macro
3522 to simplify declaration of leaf functions.
3524 * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
3525 sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/ffs.S,
3526 sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
3527 sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
3528 sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
3529 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3530 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3531 sysdeps/unix/sysv/linux/alpha/pipe.S,
3532 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
3533 sysdeps/unix/sysv/linux/alpha/syscall.S,
3534 sysdeps/unix/sysv/linux/alpha/start.S,
3535 sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
3536 sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
3537 framesize declaration. Replace "lda pv,sym/jsr pv" by "jsr sym".
3539 * sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
3542 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
3545 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
3547 * sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
3548 dynamic recognition of platform type.
3549 (_bus_base): New function.
3551 * sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
3553 * sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
3554 they produce ugly warnings by gcc.
3556 * posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
3558 Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
3560 * sysdeps/alpha/setjmp.S: Must establish global pointer before
3561 address of __sigsetjmp_aux can be loaded.
3563 Wed May 22 22:10:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3565 * stdlib/canonicalize.c: New file.
3566 * stdlib/stdlib.h: Declare canonicalize_file_name, realpath.
3567 * stdlib/Makefile (routines): Add canonicalize.
3569 * posix/unistd.h: Declare __canonicalize_directory_name_internal.
3571 Thu May 23 00:01:10 1996 Ulrich Drepper <drepper@cygnus.com>
3573 * db/recno/rec_seq.c: Prevent `sccsid' definition by using the
3574 same #if condition as in the other db files.
3576 * intl/Makefile: Add -Wno-unused CFLAGS for compilation of
3577 bindtextdom.c, finddomain.c, and localealias.c.
3579 * intl/dcgettext.c: Don't define prototype for getcwd() when
3582 * libio/cleanup.c: Add prototype for _IO_register_cleanup.
3584 * libio/filedoalloc.c, libio/fileops.c, libio/iopopen.c: Don't
3585 define _POSIX_SOURCE unconditionally.
3587 * libio/filedoalloc.c, libio/iopopen.c: Include <unistd.h> if
3590 * libio/fileops.c (_IO_file_close_it): Don't sync file, call
3591 flush instead. This relaxes the rules from POSIX.1 about
3592 changing the active handle a bit.
3594 * libio/iofopncook.c (struct _IO_cookie_file): Move definition
3596 Add prototypes for local functions to prevent warnings.
3598 * libio/iopopen.c: Change prototypes for _IO_fork, _IO_pipe, and
3599 _IO_dup2 to contain complete parameter list.
3601 * libio/libio.h: Add definition of struct _IO_cookie_file.
3603 * libio/libioP.h: Add prototypes for _IO_vasprintf, _IO_vdprintf,
3606 * libio/memstream.c: Include <stdio.h>.
3608 * libio/stdio.h: Add prototypes for fopencookie,
3609 __stdio_gen_tempname, __vfscanf, __vsscanf, and __vsnprintf.
3611 * libio/strops.c: Avoid useless expression in `for' initializer.
3613 * locale/findlocale.c: Add some casts to prevent warnings.
3615 * locale/programs/locfile.c (write_locale_data): Don't use
3616 double `/' in locale binary file.
3618 * posix/unistd.h: Remove prototype for `reboot'.
3620 Update from bind-4.9.4-T1A.
3621 * resolv/Makefile (routines): Add inet_ntop and inet_pton.
3622 * resolv/arpa/nameser.h: Add definition of IN6ADDRSZ.
3623 * resolv/gethnamaddr.c, resolv/getnetnamadr.c, resolv/res_comp.c,
3624 resolv/res_debug.c, resolv/res_init.c
3626 * resolv/inet_ntop.c, resolv/inet_pton.c: New files.
3628 * resolv/resolv.h: Add RES_USE_INET6 flag.
3629 (__dn_isvalid): Renamed to __res_dnok.
3630 Add prototypes for __res_ownok and __res_mailok.
3632 * stdio-common/Makefile: Add -Wno-unused to CFLAGS for _itoa.c.
3634 * stdio-common/getline.c, stdio-common/vfscanf.c,
3635 sysdeps/posix/tempname.c: Don't use <ansidecl.h> anymore.
3637 * sysdeps/unix/sysv/linux/Makefile [$subdir == misc]
3638 (sysdep_routines): Add s_reboot.
3639 (install-others): Add $(includedir)/sys/syscall.h.
3640 New rule for $(includedir)/sys/syscall.h to produce from
3643 * sysdeps/unix/sysv/linux/reboot.c: New file. Make single
3644 argument function call 3 argument system call.
3646 * sysdeps/unix/sysv/linux/sys/reboot.h: New file. Linux specific
3647 definition for reboot function.
3649 * sysdeps/unix/sysv/linux/syscall.h: Remove old and obsolete
3652 * sysdeps/unix/sysv/linux/syscalls.list: Rename function for
3653 reboot syscall to __syscall_reboot.
3655 * wcsmbs/wchar.h: Protect prototypes for wcstof and wcstold by
3656 __USE_GNU, not USE_GNU.
3658 Tue May 21 21:55:49 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3660 * locale/programs/charset.c, locale/programs/ld-collate.c:
3661 Add casts to prevent warnings on 64-bit machines.
3663 * locale/programs/ld-monetary.c: Don't do unnecessary tests for
3664 int_frac_digits and frac_digits which only produce warnings.
3666 Mon May 13 23:45:29 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3668 * inet/arpa/inet.h: Backup return type of inet_addr to u_long.
3669 * resolv/inet_addr.c: Likewise.
3671 * resolv/Makefile (distribute): Add res_hconf.h
3672 (routines): Add res_hconf.
3674 * resolv/gethnamaddr.c: Add support for /etc/host.conf.
3676 * resolv/res_init.c: Initialize /etc/host.conf reader.
3678 * resolv/res_hconf.c, resolv/res_hconf.h: New files.
3679 Implementation of reading /etc/host.conf.
3681 Wed May 22 21:21:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3683 * Rules (%.out rules): Prepend $($*-ENV) to the command.
3685 * sysdeps/unix/sysv/linux/i386/brk.c (___brk_addr): Define as weak
3688 Wed May 22 19:37:27 1996 Miles Bader <miles@gnu.ai.mit.edu>
3690 * hurd/hurdexec.c (_hurd_exec): Pass INIT_TRACEMASK.
3691 * hurd/hurdmsg.c (set_int): Support INIT_TRACEMASK.
3693 Wed May 22 18:47:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3695 * sysdeps/mach/hurd/getcwd.c
3696 (_hurd_canonicalize_directory_name_internal): New function, broken out
3699 (__canonicalize_directory_name_internal): New function using it.
3701 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal): New
3702 function, broken out of __getcwd.
3705 Wed May 22 18:14:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
3707 * string/argz-create.c (__argz_create): Correctly calculate length.
3709 * string/argz-extract.c (__argz_extract): Add terminating 0 entry.
3710 * hurd/hurdstartup.c (_hurd_startup): ... and don't so here.
3712 Wed May 22 17:22:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3714 * posix/glob.c [VMS]: Don't include <pwd.h>.
3715 [HAVE_VMSDIR_H]: Include "vmsdir.h".
3716 (glob) [VMS]: Don't grok ~.
3718 Wed May 22 14:46:53 1996 Miles Bader <miles@gnu.ai.mit.edu>
3720 * hurd/hurdstartup.c (_hurd_startup): Terminate the vectors we get
3721 back from argz_extract.
3723 Wed May 22 13:56:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3725 * configure.in: Remove checks for objdump, objcopy, and awk.
3726 * config.make.in (OBJDUMP, OBJCOPY, AWK): Variables removed.
3727 * Makefile (distribute): Remove extract-dynsym.
3728 * extract-dynsym: File removed.
3730 Tue May 21 22:17:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3732 * termios/cfmakeraw.c: Set MIN to 1 and TIME to 0.
3734 Wed May 22 01:48:54 1996 Ulrich Drepper <drepper@cygnus.com>
3736 * stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
3737 macros if they are not available.
3738 (WEAKNAME): New macro to declare argument as weak.
3739 Define function with __ prefix and add normal name as weak alias.
3741 * sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
3742 these macros if not already available based on R_OK, W_OK, and
3745 Tue May 21 18:48:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3747 * misc/sys/syslog.h (__need___va_list): Define this instead of
3748 __need_va_list before including <stdarg.h>.
3750 * Makerules (o-iterator): Use $(object-suffixes-left) instead
3751 of $(object-suffixes) to produce repetitions; this is used for other
3752 lists than just that one.
3753 [versioned]: Use $(o-iterator) properly.
3755 * sysdeps/unix/sysv/linux/Implies: Include `gnu'.
3756 * sysdeps/mach/hurd/Implies: Likewise.
3758 Sat May 18 02:57:46 1996 Ulrich Drepper <drepper@cygnus.com>
3760 * login/Makefile: New file. This directory contains functions
3761 for user administration.
3762 * Makefile (subdirs): Add login.
3764 * misc/Makefile (headers): Remove utmp.h. Now in login/utmp.h.
3765 (extra-libs, libutil-routines): Ditto.
3766 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
3767 misc/utmp.h: Moved to misc/.
3768 * login/login.c, login/login_tty.c, login/logout.c,
3769 login/logwtmp.c, login/utmp.h: Moved to here from misc/.
3771 * login/utmp.h: Split file. Definitions of data structures
3772 and constants are now in the system dependent utmpbits.h file.
3774 * login/setutent_r.c, login/setutent.c, login/endutent_r.c,
3775 login/endutent.c, login/getutent_r.c, login/getutent.c,
3776 login/getutid_r.c, login/getutid.c, login/getutline_r.c,
3777 login/getutline.c, login/pututline_r.c, login/pututline.c:
3778 New files. Routines to handle utmp-style files.
3780 * sysdeps/gnu/utmpbits.h: New file. Contains GNU/Linux
3781 specific definitions of utmp data structures and constants.
3783 * sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
3785 * sysdeps/generic/utmpbits.h: New file. Generic (BSDish) version of
3786 definitions of utmp data structures and constants.
3788 Fri May 17 00:01:31 1996 Ulrich Drepper <drepper@cygnus.com>
3790 * locale/C-monetary.c: Default value for mon_decimal_point should be
3793 * stdio-common/printf.h: Remove Linux libc compatibility stuff.
3794 Add `extra' flag. Currently used in __printf_fp.
3796 * stdio-common/printf_fp.c (__guess_grouping): Renamed from
3797 `guess_grouping' and extend visibility to extern. This function
3798 is now used in `strfmon'.
3799 (__printf_fp): Recognize new bit flag in info struct. This
3800 triggers to use the grouping information and decimal point from
3801 the LC_MONETARY category instead of the LC_NUMERIC category.
3803 * stdio-common/vfprintf.c (process_arg): Correct major bug. In
3804 `complicated' loop we must not use the varargs because the args
3805 are already available in the ARGS_VALUE array.
3807 * stdlib/Makefile (headers): Add monetary.h.
3808 (routines): Add strfmon.
3809 * stdlib/monetary.h: New file. Header for strfmon function.
3810 * stdlib/strfmon.c: New file. Implement strfmon function to print
3811 monetary amounts according to current locale's rules.
3813 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
3814 now (>= Linux-1.3.100) called <asm/vm86.h>.
3816 Thu May 16 00:31:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3818 * Makerules [versioned]: Make symlinks in the build directory, because
3819 the versioned names might be referenced by a DT_NEEDED in another
3822 Wed May 15 18:59:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3824 * manual/examples/longopt.c: Include stdlib.h and getopt.h.
3826 Tue May 14 03:36:21 1996 Ulrich Drepper <drepper@cygnus.com>
3828 * sysdeps/unix/sysv/linux/Makefile [$subdir == misc] (headers):
3829 Add sys/acct.h and sys/sysctl.h.
3831 Tue May 14 19:42:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3833 * sysdeps/generic/strrchr.c: Deansideclized.
3835 * elf/Makefile (ldd): Depend on Makefile.
3836 Find ld.so in $(slibdir) instead of $(libdir).
3838 * sysdeps/i386/strrchr.S: Use `testl $3, %esi' instead of `testb $3,
3839 %esi'; gas misassembles the latter into `testb $3, %dh'.
3841 * mach/Machrules (%.udeps rule): Do $(make-target-directory) first.
3843 Tue May 14 16:38:44 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3845 * sunrpc/getrpcent.c (interpret): Declare args. Rewrite parsing using
3848 Tue May 14 20:18:38 1996 Ulrich Drepper <drepper@cygnus.com>
3850 * time/Makefile (routines): Add strptime.
3851 * time/time.h: Add prototype for strptime.
3852 * time/strptime.c: New file. Implementation according to XPG4.
3854 Tue May 14 14:07:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3856 * libc-symbols.h (lint): Macro removed. The sunrpc code does some
3857 really stupid things #ifdef lint.
3859 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Fix
3860 struct member name: sc_eip -> eip.
3862 Mon May 13 19:52:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3864 * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
3865 output redirect outside it.
3867 * elf/Makefile (subdir_lib): Depend on ld.so.
3869 Sun May 12 22:52:22 1996 Bruce Elliott <belliott@accessone.com>
3871 * stdio-common/vfprintf.c: Correct handling of unsigned short
3874 Mon May 13 12:03:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3876 * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
3878 * Makerules [install-lib.a]: Find them there.
3880 * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
3882 * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
3884 * posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.
3886 * configure.in (--with-fp): Note in help string that it's the default.
3888 * locale/programs/ld-ctype.c (struct locale_ctype_t): Use u_int32_t
3889 instead of unsigned int for map_collection_max and map_collection_act.
3891 * stdio-common/vfprintf.c [USE_IN_LIBIO] (flockfile, funlockfile):
3892 Macros removed; they are in <stdio.h>.
3893 * stdio-common/vfscanf.c: Likewise.
3895 * posix/glob.c [_AMIGA]: Don't include <pwd.h>.
3896 (glob): Remove bogus & in call to globfree.
3897 [_AMIGA]: Use AmigaDOS file name conventions.
3899 * time/Makefile (zonenames): Target removed.
3900 (extra-objs): Remove it from here.
3901 Include the z.* files directly instead of including zonenames; use
3902 `-include' to not complain before they exist.
3904 * sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
3905 $(common-objpfx) instead of $(objpfx).
3907 * sysdeps/unix/bsd/telldir.c (seekdir, telldir): Use new struct member
3910 * Makerules [install-lib-non.a]: Find these things with $(objpfx)
3911 instead of $(common-objpfx).
3913 * Makeconfig (sysdep-configures): New variable.
3914 (config.status): Depend on $(sysdep-configures).
3916 Fri May 10 20:07:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3918 * sysdeps/unix/sysv/linux/profil.c: New file.
3920 Fri May 10 19:59:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3922 * sysdeps/m68k/Makefile (CFLAGS-setjmp.c): New variable.
3924 Fri May 10 19:55:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3926 * shlib-versions: Use libm=6 and libc=6 for m68k-linux.
3928 Sun May 12 11:16:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3930 * string/envz.c: Fix uses of unsigned to size_t.
3932 * Makerules ($(libdir)/libc.so): Make the file an ld script.
3934 * sysdeps/mach/hurd/configure.in: Don't grok --with-hurd option.
3936 * sysdeps/mach/configure.in: File removed.
3937 * sysdeps/mach/configure: File removed.
3939 * mach/Machrules (%.udeps rule): Write deps for %_server.[ch] too.
3940 (%_server.[ch] rule): Don't depend on %.defs; use #include to get
3941 installed .defs file.
3943 * stdio-common/vfprintf.c (flockfile, funlockfile): Define to
3944 nothing for stdio. Fix fUNlockfile -> funlockfile for libio.
3945 * stdio-common/vfscanf.c: Likewise.
3947 Sat May 11 13:43:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3949 * hurd/hurdfault.c: Include faultexc_server.h instead of faultexc.h.
3951 * mach/Machrules (%.ir rule): Don't produce deps for imports.
3953 * elf/dl-fini.c (_dl_fini): Clear L->l_init_called after calling fn.
3955 * Makerules (install): Depend on $(slibdir)/libc.so$(libc.so-version).
3956 [!subdir] ($(libdir)/libc.so, $(common-objpfx)/libc-syms.so): Protect
3957 these targets and install dep on $(libdir)/libc.so with this.
3959 * hurd/Makefile: Removed all rules and defns for using code from Hurd
3960 sources and installing headers from there.
3962 * sysdeps/mach/hurd/errnos.awk: Set in_mach_errors to FILENAME when we
3963 set it. In Mach error matching clause, only match if FILENAME is
3964 still the same value.
3966 * sysdeps/mach/hurd/Makefile: Don't include sysdeps/mach/Makefile;
3967 $(mach-srcdir) no longer exists.
3968 (hurd-srcdir): Variable removed.
3969 (includes): Don't append -I$(hurd-srcdir).
3970 (last-includes): Variable removed.
3971 Remove vpath specs using $(hurd-srcdir).
3972 (mach-errno-h): New canned sequence.
3973 ($(common-objpfx)errnos.d): New target, generated included makefile
3974 to determine absolute file names of Mach headers to search for error
3975 codes and set variable mach-errnos-deps.
3976 ($(common-objpfx)stamp-errnos): Depend on $(mach-errnos-deps) instead
3977 of prior explicit list.
3978 (generated): Add errnos.d, stamp-errnos.
3980 * mach/Machrules (some-if-rtn): New variable and target; compute deps
3981 of some if routine and make all if routines depend on that .d file
3982 instead of static list of .h files.
3984 * mach/Makefile (mach/mach_interface.defs,
3985 mach/memory_object_user.defs): Targets removed.
3986 ($(objpfx)mach-syscalls.mk): Tweak this kludge so it doesn't depend
3987 directly on Mach sources.
3989 * sysdeps/mach/Makefile (mach-srcdir): Variable removed.
3990 (includes): Don't append -I$(mach-srcdir).
3991 Remove vpath specs using $(mach-srcdir).
3993 * hurd/Makefile (server-interfaces): Add faultexc.
3994 (sig): Remove it from here.
3995 (fault%.[ch]): Rule removed.
3996 (MIGFLAGS-faultexc): New variable.
3998 * hurd/faultexc.defs: New file.
4000 * mach/Machrules (%.ustamp rule): Pass $(MIGFLAGS-$*) to mig.
4001 (%_server.[ch] rule): Likewise.
4003 * mach/Makefile: Removed all rules and defns for using code from Mach
4004 sources and installing headers from there.
4006 * Makeconfig [$(build-shared)=yes] (link-libc): Append
4007 $(libc.so-version) to libc.so.
4009 Fri May 10 18:36:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4011 * mach/Machrules (%.ustamp rule): Don't depend on %.defs.
4012 (%.udeps): New rule parallel to that one, generating included
4013 makefiles with -M output from `#include <%.defs>'.
4015 * Makerules (sed-remove-objpfx): Remove space before \ at eol.
4017 * Makefile (distribute): Add FAQ.
4018 * FAQ: New file contributed by drepper.
4020 * time/Makefile (headers): Add timebits.h.
4021 * sysdeps/unix/sysv/linux/timebits.h: New file.
4022 * sysdeps/stub/timebits.h: New file.
4023 * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
4024 (CLOCKS_PER_SEC): Remove this macro. Instead #include <timebits.h>.
4026 Fri May 10 16:22:44 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
4028 * string/argz-create.c (__argz_create): Restore const keyword to
4030 * string/argz.h (__argz_create, argz_create): Restore const
4032 * string/envz.c (envz_get): Don't declare ENTRY const.
4034 Fri May 10 11:48:03 1996 Miles Bader <miles@gnu.ai.mit.edu>
4036 * string/argz.h (argz_create): Fix param type.
4037 * string/argz-create.c (__argz_create): Remove const from param type.
4038 * string/envz.c (envz_get): Remove const from return type.
4040 Fri May 10 09:41:54 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
4042 * string/argz.h (__argz_create, argz_create): Omit const keyword
4043 from declaration of ARGV.
4044 * string/envz.h (envz_get): Omit const from declaration of return
4047 Thu May 9 09:17:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4049 * aclocal.m4 (AC_FD_MSG, AC_FD_CC): Fix these for autoconf weirdness.
4051 Cleanups in sunrpc code from NIIBE Yutaka <gniibe@mri.co.jp>.
4052 * sunrpc/clnt_tcp.c (clnttcp_create): Don't close *SOCKP if it's -1.
4053 * sunrpc/clnt_simp.c (callrpc): Don't close CRP->socket if it's
4055 * sunrpc/pmap_clnt.c (pmap_set): Don't close SOCKET, since
4056 CLNT_DESTROY already has.
4057 (pmap_unset): Likewise.
4058 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
4059 * sunrpc/pm_getport.c (pmap_getport): Likewise.
4060 * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
4061 * sunrpc/portmap.c (callit): Likewise.
4063 * Makerules (versioned): Strip whitespace.
4065 * Rules (static-only-routines rule): Remove spurious space in dep.
4067 * misc/getusershell.c: Undo changes of 7 May 96 (rev 1.6).
4068 Cast string constants to char *.
4070 * posix/glob/SMakefile, posix/glob/SCOPTIONS, posix/glob/Makefile.ami:
4071 New files, AmigaDOS support from Aaron Digulla.
4072 * posix/Makefile (glob.tar): Add AmigaDOS support files.
4074 * sysdeps/unix/sysv/linux/net/if.h: New file.
4075 * sysdeps/unix/sysv/linux/Dist: Add it.
4076 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
4079 * Makeconfig (link-libc): Add libc.a after libc.so in link.
4081 * Rules (static-only-routines rule): Use empty.o instead of dummy.o.
4082 (empty.o): New target.
4083 (generated): Add empty.c, empty.o.
4085 * resolv: Code updated from BIND-4.9.3P2C3.
4087 * Rules (static-only-routines rule): Use dummy.o, not dummy.so.
4089 Wed May 8 20:04:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4091 * extract-dynsym: New file.
4092 * Makefile (distribute): Add it.
4093 * Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
4094 [! libc.so-version]: Clear static-only-routines.
4095 ($(common-objpfx)sor-$(subdir)): New target.
4096 [static-only-routines]: New static pattern rule for these .so's.
4097 * Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
4098 [libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
4099 New targets replace it.
4100 (install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
4102 * io/Makefile (static-only-routines): New variable.
4103 * configure.in: Check for tools objdump and objcopy, and for awk.
4104 * config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
4106 Thu May 9 01:24:00 1996 Ulrich Drepper <drepper@cygnus.com>
4108 * locale/programs/config.h: Remove definition of wint_t.
4110 * locale/programs/ld-collate.c: Include <wchar.h> instead of
4113 * manual/time.texi: Add some more description for %U and %W
4114 format of strftime. Describe new format %V of strftime.
4116 * resolv/gethnamaddr.c: Prevent warning by preventing variable
4118 * stdio-common/_itoa.c: Ditto.
4120 Tue May 7 23:43:07 1996 Ulrich Drepper <drepper@cygnus.com>
4122 * libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
4123 libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
4124 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
4125 libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
4126 libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
4127 libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
4128 libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
4129 libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
4130 libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
4131 libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
4132 stdio-common/vfscanf.c: Prepare for reentrant libio.
4134 * libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
4135 libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
4136 libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
4137 Used in reentrant libio.
4139 * misc/getusershell.c: Prevent warnings.
4141 Wed May 8 12:08:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4143 * Makerules (install-lib.so rules): Undouble $s in target and dep
4144 parts of o-iterator-doit defns.
4145 (unversioned libraries install rule): Fix pattern.
4147 * mach/Makefile (mach-src-headers): Use $(base-machine) instead of
4149 ($(includedir)/machine): Likewise.
4151 * config.make.in (base-machine): New variable.
4152 * configure.in (machine): Move case stmt to set $machine out of sysdep
4153 dirs AC_CACHE_CHECK.
4154 (base_machine): New variable, set in that switch and AC_SUBST'd.
4156 * Makerules (stub-$(subdir)): Use file name in directory as output,
4159 * configure.in (MSGFMT): Use : if none found.
4161 * po/Makefile: Include ../Rules instead of ../Makerules.
4163 Tue May 7 23:18:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4165 * po/Makefile: New file.
4166 * Makefile (subdirs): Add po.
4168 * configure.in: Check for msgfmt.
4169 * config.make.in (MSGFMT): New variable.
4171 Sun May 5 23:49:10 1996 Ulrich Drepper <drepper@cygnus.com>
4173 * misc/Makefile (routines): Add swapoff.
4175 * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
4177 * sysdeps/unix/sysv/linux/sys/quota.h: New file. Wrapper around
4180 Tue May 7 19:00:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4182 * string/argz-extract.c: Remove const from decl.
4183 * string/argz.h: Here too.
4185 * Makeconfig (version.mk): Fix regexp in sed cmd.
4186 Depend on $(..)Makeconfig.
4188 * GMP code updated from gmp-2.0 release.
4189 * stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
4190 * sysdeps/generic/add_1.c: File removed.
4191 * stdlib/strtod.c: mp_limb is now mp_limb_t.
4192 * stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
4193 * stdio-common/_itoa.c: Likewise.
4194 * stdio-common/printf_fp.c: Likewise.
4195 Don't include ansidecl.h.
4197 * sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
4199 * shlib-versions: New file.
4200 * Makerules (soversions.mk): New target, include file generated from
4201 shlib-versions. Moved shared library rules before installation rules.
4202 Rewrote shared library installation rules for versioned libraries.
4203 * math/Makefile (libm.so-version): Variable removed.
4205 * sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
4207 * hurd/report-wait.c (_S_msg_describe_ports): New function.
4209 * configure.in: Add AC_PROG_LN_S check.
4210 * config.make.in (LN_S): New variable.
4212 Sun May 5 03:10:44 1996 Ulrich Drepper <drepper@cygnus.com>
4214 * misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug. gcc does
4215 not know about weak aliases now and optimizes necessary `if'
4218 * posix/unistd.h: Add swapoff prototype.
4220 * sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
4222 * sysdeps/posix/fpathconf.c (__fpathconf): Get information
4223 for _PC_PATH_MAX from fstatfs function if available.
4225 * sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
4226 _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
4227 _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
4228 _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
4230 * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4232 * sysdeps/stub/swapoff.c: New file. Stub version for swapoff
4235 * sysdeps/unix/syscalls.list: Add swapoff.
4237 * sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
4239 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
4240 (sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
4241 sysinfo, and uselib.
4242 (headers): Add sys/sysinfo.h.
4244 * sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
4246 * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
4247 (sysdep_routines): Add ioperm, iopl, and vm86.
4248 (headers): Add sys/perm.h and sys/vm86.h.
4250 * sysdeps/unix/sysv/linux/i386/sys/perm.h: New file. Contains
4251 prototypes for iopl and ioperm.
4253 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: New file. Contains
4256 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file. Add
4259 * sysdeps/unix/sysv/linux/sys/acct.h: New file. Contains
4260 prototypes for acct function.
4262 * sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
4263 file with prototypes.
4265 * sysdeps/unix/sysv/linux/sys/sysinfo.h: New file. Contains
4266 prototype for sysinfo function.
4268 * sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
4269 llseek, setfsgid, setfsuid, sysinfo, and uselib.
4271 * sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
4272 posix/sysconf.c now only handle cases different to that
4275 Tue May 7 15:08:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
4277 * stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
4278 (all references changed). Now exported.
4280 * stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
4281 (wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
4282 line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
4283 instead of struct data.
4284 (lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
4285 occurences of `wrap' and `wrapmargin' to `wmargin'.
4286 (line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
4287 line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
4288 line_wrap_set_wmargin, line_wrap_point): New functions.
4289 * stdio/linewrap.h: New file.
4290 * stdio/Makefile (headers): Add linewrap.h.
4292 Tue May 7 14:19:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4294 * sysdeps/unix/sysv/linux/i386/Makefile: File removed.
4296 * stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
4298 * sysdeps/unix/sysv/linux/schedbits.h: New file.
4300 Tue May 7 13:47:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
4302 * stdio/linewrap.c (struct data): Make margin fields not-pointers.
4303 (lwoutput): Adjust uses acordingly.
4305 Tue May 7 10:51:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4307 * sysdeps/mach/hurd/fdatasync.c: New file.
4308 * sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
4310 * sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
4311 * sysdeps/mach/hurd/symlink.c: Likewise.
4312 * sysdeps/mach/hurd/link.c: Likewise.
4313 * sysdeps/mach/hurd/bind.c: Likewise.
4314 * hurd/hurdsig.c (write_corefile): Likewise.
4316 * hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
4318 * sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
4320 * sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
4322 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
4324 * sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
4326 * sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
4328 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
4330 * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4331 * hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
4332 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4334 * sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
4336 * hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
4338 * hurd/hurdsig.c (write_corefile): Take const struct
4339 hurd_signal_detail * arg. Pass all details to crash_dump_task.
4340 (_hurd_internal_post_signal): Pass DETAIL to write_corefile.
4341 (_hurd_internal_post_signal: suspend): Pass code and error to
4344 * hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
4345 proc_getprocinfo by reference.
4347 * wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos.
4349 * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo.
4351 * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>.
4352 * sysdeps/stub/sched_sets.c: Likewise.
4353 * sysdeps/stub/sched_setp.c: Likewise.
4354 * sysdeps/stub/sched_rr_gi.c: Likewise.
4355 * sysdeps/stub/sched_gets.c: Likewise.
4357 * hurd/hurdsig.c: Use struct hurd_signal_detail.
4358 * hurd/hurd/fd.h (_hurd_fd_error): Likewise.
4359 * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
4361 Mon May 6 09:51:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4363 * stdio/linewrap.c: New file.
4364 * stdio/Makefile (routines): Add linewrap.
4365 * stdio/stdio.h [__USE_GNU]: Declare line_wrap_stream,
4368 Mon May 6 14:53:26 1996 Ulrich Drepper <drepper@cygnus.com>
4370 * time/strftime.c (week): Add third parameter telling how
4371 many days must be in new year so that it is called week 1.
4372 (Following ISO 8601).
4373 Correct computation for %U and %V formats when day was first
4375 (strftime): Implement %V format according to Spec1170.
4377 Mon May 6 17:01:09 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
4379 * hurd/hurd/signal.h (_hurd_intr_rpc_mach_msg): New declaration.
4381 Sat May 4 05:44:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4383 * hurd/hurd/sigpreempt.h (struct hurd_signal_preempter): Change
4384 prototype of `preempter' elt to use struct hurd_signal_detail.
4386 * hurd/hurd/signal.h (struct hurd_signal_detail): New type.
4387 (struct hurd_sigstate): Make `pending_data' member an array of that.
4388 Use the new type in several decls.
4390 * locale/setlocale.c (_nl_C_name): Variable removed.
4391 * locale/C_name.c: New file.
4392 (_nl_C_name): Put it here instead.
4393 * locale/Makefile (aux): Add C_name.
4395 * sysdeps/mach/hurd/dl-sysdep.c (open): Don't pass io port in
4396 auth_user_authenticate rpc.
4397 (open): Avoid using strtol in digit conversion for "fd/N" magic.
4398 (_dl_sysdep_start): Likewise for memobj name in magic switches.
4400 * elf/Makefile (reloc-link): New variable.
4401 (dl-allobjs.so): New target, link together $(rtld-routines).
4402 (librtld.so): Depend on that instead of the rtld components.
4403 (generated): Add dl-allobjs.so.
4405 * hurd/hurd-raise.c (_hurd_raise_signal): Pass sigcode in msg_sig_post
4408 * hurd/hurdmsg.c (_S_msg_set_environment): Use argz.h functions
4409 instead of _hurd_split_args.
4410 (_S_msg_*_exec_flags): Functions removed.
4411 (_S_msg_startup_dosync): Stub removed.
4413 Sat May 4 02:11:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4415 * sysdeps/mach/hurd/ptrace.c: Set _hurdsig_traced instead of
4416 EXEC_TRACED bit in _hurd_exec_flags.
4417 Pass sigcode arg in msg_sig_post_untraced rpc.
4419 * sysdeps/mach/hurd/access.c: Don't pass io port in
4420 auth_user_authenticate rpc.
4422 * posix/sched.h: Fix typos.
4424 * sysdeps/mach/hurd/fork.c: Use new critical section lock.
4425 Clear _hurdsig_traced instead of EXEC_TRACED.
4427 * sysdeps/stub/nanosleep.c (nanosleep): Fix typo.
4429 * wcsmbs/wcstol.c: Find strtol.c in ../stdlib.
4430 * wcsmbs/wcstof.c: Find strtod.c in ../stdlib.
4431 * wcsmbs/wcstod.c: Likewise.
4432 * wcsmbs/wcstold.c: Likewise.
4434 * wcsmbs/wcwidth.h: Find cname-lookup.h in ../wctype.
4436 * string/envz.c (envz_entry): Use const.
4437 (envz_get, envz_remove): Likewise.
4438 (envz_entry): Return char *, not const char *.
4440 * string/envz.h: Fix decl.
4442 * string/argz-create.c: Use const in prototype.
4443 * string/argz-next.c: Likewise.
4445 Fri May 3 13:32:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4447 * sysdeps/mach/hurd/sigprocmask.c: Pass sigcode arg to msg_sig_post.
4448 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
4449 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
4450 * sysdeps/mach/hurd/kill.c: Likewise.
4452 * hurd/hurdexec.c (_hurd_exec): Use new critical section lock.
4453 * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4454 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Likewise.
4455 * hurd/thread-cancel.c (hurd_thread_cancel, hurd_check_cancel):
4457 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
4458 * sysdeps/mach/hurd/sigaction.c: Likewise.
4460 * sysdeps/mach/hurd/errnos.awk: Don't use ARGV in comment; it can
4461 change meaninglessly.
4463 * hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
4464 flag with a spin lock.
4465 (_hurd_critical_section_lock): Use spin_try_lock on that to see if we
4466 get it. No need to take SS->lock at all.
4467 (_hurd_critical_section_unlock): Unlock SS->critical_section_lock
4468 instead of clearing the old flag member.
4469 * hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
4470 test the critical section state.
4472 * hurd/hurdinit.c (_hurd_init): Set _hurdsig_traced from the intarray.
4474 * hurd/hurdkill.c (_hurd_sig_post): Pass 0 sigcode in msg_sig_post.
4476 * hurd/hurdsig.c (_hurd_internal_post_signal): Test _hurdsig_traced
4477 instead of testing (_hurd_exec_flags & EXEC_TRACED).
4478 (_S_msg_sig_post): Take sigcode arg and pass it through.
4479 (_S_msg_sig_post_untraced): Likewise.
4480 (reauth_proc): Don't pass proc port in auth_user_authenticate.
4482 * hurd/setauth.c (_hurd_setauth): Don't pass object ports in
4483 auth_user_authenticate RPCs, just the one-off rendezvous port.
4484 * hurd/dtable.c (reauth_dtable): Likewise.
4485 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
4487 * hurd/hurdexec.c (_hurd_exec): Pass 0 flags to file_exec.
4488 Pass sigcode arg to msg_sig_post.
4490 * string/argz.h (argz_create): Use const in prototype.
4492 * hurd/hurdinit.c (_hurd_proc_init): Test _hurdsig_traced instead of
4493 testing (_hurd_exec_flags & EXEC_TRACED).
4494 Pass sigcode arg to msg_sig_post.
4496 * hurd/hurd.h: Declare _hurdsig_traced.
4498 * string/argz.h (__argz_next): Cast ENTRY before returning it.
4500 * hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
4503 * hurd/path-lookup.c: New file.
4504 * hurd/Makefile (routines): Add path-lookup.
4505 * hurd/hurd/lookup.h: Declare file_name_path_scan,
4506 hurd_file_name_path_lookup.
4507 * hurd/hurd.h: Declare file_name_path_lookup.
4509 * sysdeps/mach/hurd/select.c: The io_select rpc no longer has a TAG_ID
4510 argument. Instead, use a separate reply port for each RPC and put them
4511 all in a port set to wait for slow replies.
4513 * intl/Makefile (CPPFLAGS): Change $(nlsdir) to $(i18ndir) in
4516 Fri May 3 03:14:02 1996 Ulrich Drepper <drepper@cygnus.com>
4518 * intl/Makefile (routines): Add l10nflist and explodename.
4519 (distribute): Add loadinfo.h and locale.alias.
4520 (install-others): New variable to install locale.alias.
4522 * intl/dcgettext.c, intl/finddomain.c, intl/gettextP.h,
4523 intl/loadmsgcat.c: Adapt for upcoming gettext-0.10.13. Some code
4524 is now shared with the locale implementation.
4526 * intl/explodename.c, intl/l10nflist.c, intl/loadinfo.h: New file.
4527 Extracted from finddomain.c. This is also used in the locale
4530 * intl/locale.alias: New file. Locale alias database compatible
4531 with X Window System's locale alias file. Can now be used in
4532 locale and gettext code.
4534 * libio/stdio.h: Add prototypes for asprint and vasprintf.
4536 * locale/C-collate.c, locale/C-ctype.c, locale/C-messages.c,
4537 locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c: Add new
4538 field in structure with name of locale ("C" in this case).
4540 * locale/Makefile (routines): Add findlocale.
4542 * locale/findlocale.c: New file. Instead of trying to load the
4543 directly described file we now try to be much smarter when this
4544 fails. Use the same code as gettext does.
4546 * locale/loadlocale.c, locale/setlocale.c: Rewrite to know about
4549 * locale/localeinfo.h: Adapt prototypes and declarations for new
4550 setlocale implementation. Remove definition of u32_t type. We
4551 now use u_int32_t from <sys/types.h>.
4553 * locale/programs/charset.h (ILLEGAL_CHAR_VALUE): Provide type
4556 * locale/programs/config.h, locale/lc-collate.c,
4557 locale/localeinfo.h, locale/programs/ld-collate.c,
4558 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
4559 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
4560 locale/programs/ld-time.c, locale/weight.h, string/strcoll.c:
4561 Change to use u_int32_t and u_int16_t.
4563 * locale/programs/localedef.c (construct_output_path): Change name
4564 of output locale to contain normalized form of the character set
4567 * string/Makefile (routines): Add agrz-ctsep and argz-next.
4568 (tests): Add tst-strlen.
4570 * string/argz-ctsep.c: New file. Implement reverse operation
4571 from argz-stringify.
4573 * string/argz-next.c: Non-inline version of function from argz.h.
4575 * string/argz.h, string/envz.h: Make usable as global header file.
4577 * string/envz.c: Fix declarations to use size_t where prototypes
4580 * string/tst-strlen.c: New file. Another test for critical
4581 situation in strlen implementations.
4583 * sysdeps/i386/i586/strlen.S: Fix bug with highest byte in word
4586 * wctype/test_wctype.c: Fix controlling comparison after change to
4587 32 bit character class array.
4589 Fri May 3 12:53:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4591 * sysdeps/unix/sysv/linux/sys/socket.h: Remove spurious doubled line.
4593 Thu May 2 22:50:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4595 * sysdeps/unix/sysv/linux/getpriority.c: New file.
4596 * sysdeps/unix/sysv/linux/syscalls.list: Add s_getpriority.
4598 Thu May 2 22:41:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4600 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_DEFAULT):
4601 Disable all exceptions.
4603 Thu May 2 22:33:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4605 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
4606 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
4607 sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
4608 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
4609 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
4610 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
4611 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
4612 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
4613 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c: Don't
4614 define __NO_MATH_INLINES, which is already defined on command
4617 Thu May 2 22:18:28 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4619 * sysdeps/libm-ieee754/e_j0f.c (__ieee754_j0f, __ieee754_y0f):
4620 Replace 0x80000000 by 0x48000000.
4621 * sysdeps/libm-ieee754/e_j1f.c (__ieee754_j1f): Likewise.
4623 Thu May 2 21:30:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4625 * sunrpc/svc_simple.c: Make global variable pl local to
4628 Thu May 2 00:24:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4630 * time/Makefile (tz-cflags): New variable.
4631 (CFLAGS-tzfile.c): New variable.
4632 (CFLAGS-zic.c): Add $(tz-cflags).
4633 (tz-cc): Remove variable.
4634 ($(objpfx)tzfile.o, $(objpfx)zic.o): Remove targets.
4636 Wed May 1 09:10:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4638 * sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
4639 name, instead of checking for reaching end of buffer, which happens
4640 when the match is the last entry in the buffer.
4642 * time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
4645 Mon Apr 29 02:48:26 1996 Ulrich Drepper <drepper@cygnus.com>
4647 * ctype/ctype-info.c: (__ctype_width): New variable.
4648 (__ctype_names): Initialize correctly without offset.
4650 * locale/C-collate.c, locale/C-ctype.c,
4651 locale/C-messages.c, locale/C-monetary.c,
4652 locale/C-numeric.c, locale/C-time.c: Change copyright.
4654 * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Correct
4655 endianess for initialization value.
4657 * locale/lc-ctype.c (current): Add parameter for offset.
4658 (__ctype32_b, __ctype_width): Add initialization for these
4661 * locale/programs/charmap.c: Finish support for WIDTH information.
4662 (new_width): New function.
4664 * locale/programs/charset.h (width_rule): new data structure.
4665 (charset_t): Add elements for width information.
4667 * locale/programs/ld-ctype.c (locale_ctype_t): Add element
4668 for width information.
4669 (allocate_arrays): Add new argument for charset.
4670 (ctype_finish): Make sure all characters named in charset
4671 width table are known to name table.
4672 (ctype_output): Correct handling of class and map name
4673 information and write out width information.
4674 (find_idx): Prepare for being called with NULL pointer as
4675 TABLE argument. This means only allocate name entry.
4676 (allocate_arrays): Correct handling of array element -1.
4677 Because EOF == -1 the value of element 127 must *not* be
4679 Fill width information from charset tables.
4681 * locale/programs/localedef.c (main): Correct loop over all
4682 categories after change of order from Thu Mar 28 14:22:51 1996.
4683 Add new charset argument to call of `write_all_categories'.
4685 * locale/programs/locales.h (ctype_finish, ctype_output): New
4688 * locale/programs/locfile.c (write_all_categories): Call
4689 `ctype_output' with additional argument charset.
4691 * posix/getconf.c (vars): Add _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4692 and _POSIX_PRIO_IO definitions.
4694 * posix/posix2_lim.h: Add definition of _POSIX2_CHARCLASS_NAME_MAX
4695 and CHARCLASS_NAME_MAX.
4697 * posix/unistd.h: Document _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4700 * stdlib/grouping.h: Prepare for use in wide string functions.
4702 * stdlib/stdlib.h: Correct prototypes for __strto*_internal
4705 * stdlib/strtod.c: Extend for use as `wcsto{f,d,ld}'.
4707 * stdlib/strtol.c: Extend for use as `wcsto{l,ul,q,uq}'.
4709 * string/strcoll.c: Extend for use as `wcscoll'.
4711 * string/strxfrm.c: Extend for use as `wcsxfrm'.
4713 * sysdeps/generic/confname.h: Add definition of _PC_SYNC_IO,
4714 _PC_ASYNC_IO, _PC_PRIO_IO and _SC_CHARCLASS_NAME_MAX.
4716 * sysdeps/generic/stpncpy.c: Correct return value.
4718 * sysdeps/posix/fpathconf.c: Add handling of _PC_SYNC_IO,
4719 _PC_ASYNC_IO, and _PC_PRIO_IO.
4721 * sysdeps/posix/sysconf.c: Add handling of _SC_REALTIME_SIGNALS,
4722 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
4723 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC,
4724 _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4725 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES,
4726 _SC_SHARED_MEMORY_OBJECTS, and _SC_CHARCLASS_NAME_MAX.
4727 * sysdeps/stub/sysconf.c: Ditto.
4728 * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4730 * sysdeps/unix/sysv/linux/Dist: Add sys/sysctl.h.
4732 * sysdeps/unix/sysv/linux/Makefile [subdir == misc]
4733 (sysdep_routines): Add s_sysctl and sysctl.
4735 * sysdeps/unix/sysv/linux/sys/mman.h: Add declaration of mremap.
4737 * sysdeps/unix/sysv/linux/sys/socket.h: New file. Wrapper
4738 around kernel header.
4740 * sysdeps/unix/sysv/linux/sys/sysctl.h: New file. Define
4741 interface to `sysctl' function.
4743 * sysdeps/unix/sysv/linux/syscalls.list: Add mremap and _sysctl.
4745 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of
4746 _SC_CHARCLASS_NAME_MAX.
4748 * sysdeps/unix/sysv/linux/sysctl.c: new file. Implement caller
4749 of _sysctl system call.
4751 * sysvipc/Makefile (routines): Add ftok.
4753 * sysvipc/ftok.c: use variable `proj_id' not `id'. Patch by
4754 David Mosberger-Tang.
4756 * wcsmbs/Makefile (routines): Add wcpcpy, wcpncpy, wcstol,
4757 wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4758 wcsxfrm, wcwidth, and wcswidth.
4760 * wcsmbs/wchar.h: Add declarations for wcpcpy, wcpncpy, wcstol,
4761 wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4762 wcsxfrm, wcwidth, and wcswidth.
4763 Declare internal interfaces for wcsto* functions.
4764 [OPTIMIZE]: Define inline functions for wcsto* functions to
4765 call internal interface functions.
4767 * wcsmbs/wcpcpy.c, wcsmbs/wcpncpy.c: New files. Implement non-
4768 standard function equivalent to stpcpy/stpncpy.
4770 * wcsmbs/wcscoll.c: Implement `wcscoll' function by using
4771 `strcoll' implementation.
4773 * wcsmbs/wcscpy.c, wcsmbs/wcsncpy.c: Use wint_t instead of
4776 * wcsmbs/wcstod.c: Implement `wcstod' function by using `strtod'
4778 * wcsmbs/wcstof.c: Same for `wcstof'.
4779 * wcsmbs/wcstold.c: Same for `strtold'.
4781 * wcsmbs/wcstol.c: Implement `wcstol' function by using `strtol'
4783 * wcsmbs/wcstoq.c: Same for `wcstoq'.
4784 * wcsmbs/wcstoul.c: Same for `wcstoul'.
4785 * wcsmbs/wcstouq.c: Same for `wcstouq'.
4787 * wcsmbs/wcswidth.c: Implement `wcswidth' function from X/Open
4789 * wcsmbs/wcwidth.c: Ditto for `wcwidth'.
4790 * wcsmbs/wcwidth.h: Common function for definitions of above two
4793 * wcsmbs/wcsxfrm.c: Implement `wcsxfrm function by using
4794 `strxfrm implementation.
4796 * wctype/wctype.c: Remove case for `wctype_t' being 16 bit type.
4798 * wctype/wctype.h (wint_t): Protect against multiple definition.
4799 (wctype_t): Always define as `unsigned long int'.
4801 * wctype.h: New file. Wrapper around wctype/wctype.h.
4803 Tue Apr 30 17:30:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
4805 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Add timeout argument to
4806 interrupt_operation call.
4807 (_hurdsig_interrupt_timeout): New variable.
4809 * hurd/report-wait.c (describe_number): Correctly allocate space
4810 in DESCRIPTION for the digits in I.
4812 Mon Apr 29 00:11:59 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4814 * hurd/hurdstartup.c (_hurd_split_args): Function removed.
4815 (_hurd_startup): Use argz functions.
4817 * hurd/hurdexec.c: Use argz functions.
4819 * errno.h [!__error_t_defined] (error_t): New type.
4820 * sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
4821 typedef in errnos.h.
4823 * string/envz.c, string/envz.h: New files.
4824 * string/argz.h, string/argz-append.c, string/argz-count.c,
4825 string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
4826 string/argz-insert.c, string/argz-stringify.c: New files.
4827 * string/Makefile (routines): Add envz, argz-*.
4828 (headers): Add argz.h, envz.h.
4830 Sun Apr 28 14:14:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4832 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
4834 Wed Apr 24 17:35:30 Ulrich Drepper <drepper@cygnus.com>
4836 * inet/netinet/in.h, socket/sys/socket.h: Move to
4837 sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
4838 * netinet/in.h, sys/socket.h: Remove file.
4840 * misc/Makefile (routines): Add fdatasync.
4842 * posix/Makefile (headers): Add sched.h.
4843 (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
4844 sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
4846 * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
4847 _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
4848 _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
4849 _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
4850 _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
4851 _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
4853 * posix/sched.h: New file. Header for POSIX scheduling interface.
4855 * posix/unistd.h: Describe options from POSIX.4.
4856 Add declaration of fdatasync.
4858 * sysdeps/generic/confname.h: Add definition for
4859 _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
4860 _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
4861 _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4862 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
4863 _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
4865 * sysdeps/generic/fdatasync.c: New file. Default implementation
4868 * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
4870 * sysdeps/generic/schedbits.h: New file. System dependent
4871 defintion for POSIX.4 scheduling interface.
4873 * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
4875 * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
4876 sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
4877 sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
4878 sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
4879 sysdeps/stub/sched_yield.c: New file: Stub implementation
4880 for systems missing these POSIX.4 system calls.
4882 * sysdeps/unix/sysv/linux/gnu/types.h,
4883 sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
4884 data type definitions.
4886 * sysdeps/unix/sysv/linux/netinet/in.h: New file. Linux
4889 * sysdeps/unix/sysv/linux/posix_opt.h: New file. Define POSIX
4890 options applicable for Linux.
4892 * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
4893 fdatasync, nanosleep, sched_setparam, sched_getparam,
4894 sched_setscheduler, sched_getscheduler, sched_yield,
4895 sched_get_priority_max, sched_get_priority_min, and
4896 sched_rr_get_interval.
4898 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
4901 * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
4903 * time/sys/time.h: Remove definition of `struct timespec'.
4905 * time/time.h (struct timespec): Move definition to here.
4907 Fri Apr 26 01:55:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4909 * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
4911 Thu Apr 25 15:49:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
4913 * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
4914 the scan for a name, avoid doing another readdir (which overwrites
4915 NENTRIES, and was resulting in a bogus ENOENT).
4917 * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
4919 Wed Apr 24 00:22:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4921 * stdio/internals.c (seek_to_target): Set errno if seek function
4922 returns the wrong offset.
4924 * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
4925 * wcsmbs/wcrtomb.c: Likewise.
4927 * stdio-common/vfprintf.c: Include errno.h.
4929 Tue Apr 23 21:09:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
4931 * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
4932 variable, LUCKY, to use instead of setting D to -1 (which fouls
4935 Tue Apr 23 15:56:56 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4937 * config.h.in (HAVE_REGEX): New macro.
4939 * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
4940 * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
4941 (routines): Add statfs, fstatfs.
4942 * sysdeps/mach/hurd/statfs.c: New file.
4943 * sysdeps/mach/hurd/fstatfs.c: New file.
4944 * sysdeps/stub/fstatfs.c: New file.
4945 * sysdeps/stub/statfs.c: New file.
4946 * io/sys/statfs.h: New file.
4947 * sysdeps/generic/statfsbuf.h: New file.
4948 * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
4950 Tue Apr 23 00:06:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4952 * malloc/Makefile (gmalloc-routines): Add valloc back here.
4953 (dist-routines): Remove it here.
4954 * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
4955 (ELIDE_VALLOC): Define it.
4956 [! ELIDE_VALLOC]: Make whole file conditional on this.
4957 * malloc/malloc.h (valloc): Make decl conditional on
4958 [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
4960 Mon Apr 22 00:02:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4962 * MakeTAGS: Include version.mk.
4963 (po/SYS_libc.pot): Add missing / in sed s cmd.
4965 Sat Apr 20 18:13:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4967 * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
4968 $(libc_cv_ld_no_whole_archive).
4970 Sat Apr 20 17:07:17 1996 Ulrich Drepper <drepper@cygnus.com>
4972 * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
4973 grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
4974 math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
4975 misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
4976 posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
4977 posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
4978 resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
4979 stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
4980 string/string.h, sysdeps/generic/sigaction.h,
4981 sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
4982 sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
4983 sysdeps/unix/sysv/linux/sys/ptrace.h,
4984 sysdeps/unix/sysv/minix/sigaction.h,
4985 sysdeps/unix/sysv/sco3.2.4/sigaction.h,
4986 sysdeps/unix/sysv/sysv4/sigaction.h,
4987 sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
4988 time/sys/time.h, time/time.h: Fix copyright comment.
4990 Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4992 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
4993 not given in stack aux vector, fetch them with syscalls.
4995 * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
4996 for nonmatching nonerror (instead of !MATCH).
4997 (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
4999 * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
5000 unsigned long for variable NET2.
5002 * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
5004 Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
5006 * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
5007 catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
5008 catgets/open_catalog.c: New files. Implementation of XPG4
5009 compliant catgets() function and needed tools.
5010 * Makefile (subdirs): Add catgets.
5012 Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
5014 * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
5016 Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
5018 * stdio-common/vfprintf.c: Correct some typos.
5020 * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
5021 sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
5024 Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
5026 * Makerules (no-whole-archive): New variable.
5027 (build-shlib): Use it.
5028 * elf/Makefile (libdl.so): Use it.
5029 * configure.in (libc_cv_ld_no_whole_archive): New check for
5031 * config.make.in (have-no-whole-archive): New variable.
5033 * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
5036 * Make-dist: Include version.mk.
5037 (version, release): Variables removed.
5038 * Makeconfig (version.mk): New target.
5040 Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
5042 * locale/Makefile (headers): Add langinfo.h.
5043 (CPPFLAGS): Remove -Iliblib.
5045 Mon Apr 15 16:49:04 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5047 * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
5048 function and its declaration.
5050 Wed Apr 10 14:13:45 1996 Miles Bader <miles@gnu.ai.mit.edu>
5052 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
5053 MACH_PORT_DEAD in the thread reply-port variable before destroying
5054 the signal handler's reply port, to avoid infinite recursion.
5056 Mon Apr 8 18:27:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
5058 * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
5059 user passes in TZ, just zero it (emacs passes in a dummy variable,
5060 and rms says the hurd should be the one to change).
5062 Sun Apr 7 10:37:30 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5064 * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
5067 Fri Apr 5 17:43:41 1996 Miles Bader <miles@gnu.ai.mit.edu>
5069 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
5070 MACH_PORT_DEAD in the thread reply-port variable before destroying
5071 the signal handler's reply port to avoid infinite recursion.
5072 * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
5073 attempt to destroy PORT if it's a valid port name.
5075 Wed Apr 3 17:10:44 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5077 * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
5078 * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
5079 instead of $(objpfx).
5081 Tue Apr 2 21:27:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5083 * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
5084 the pattern ends with a backslash and quoting is enabled.
5085 * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
5088 Mon Apr 1 13:34:55 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5090 * stdio-common/tst-printf.c (main): Add new test case.
5092 * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
5094 Mon Apr 1 11:39:10 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5096 * stdlib/strtod.c (STRTOD): Fix handling of American style FP
5099 * stdio-common/vfprintf.c (vfprintf): Don't increment format
5100 string pointer twice after seeing `*'.
5102 Sun Mar 31 17:31:54 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5104 * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
5107 Sun Mar 31 18:07:32 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5109 * locale/Makefile (others, install-bin): Compiling locale works
5111 (locale-modules): locale has no --dump option anymore. Remove
5114 * locale/programs/config.h: Don't declare euidaccess.
5115 Use #include_next to get libc's config.h.
5117 * locale/programs/ctypedump.c: Not needed anymore. Dump option
5118 of locale is removed.
5120 * locale/programs/locale.c: Adapt for new locale implementation.
5122 * stdio-common/_itoa.h (_itoa_word): Define as inline function.
5123 * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
5124 Don't declare static because used in _itoa_word inline function.
5126 * stdio-common/printf-parse.h: Prepare for use in wide-char
5127 stdio implementation.
5128 (find_spec): Take additional argument to work with mbrlen instead
5130 (parse_one_spec): Ditto.
5132 * stdio-common/printf-prs.c: Prepare for use in wide-char
5133 stdio implementation.
5135 * stdio-common/printf.h: Mark change for wide-char handling.
5136 Changing it now would result in incompatibilities.
5138 * stdio-common/vfprintf.c: New and fast implementation.
5140 * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
5141 mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
5142 mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
5143 Change wcswcs to wcsstr.
5144 Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
5145 mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
5147 * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
5148 wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
5149 wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
5150 wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
5151 wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
5152 function according to ISO C amendment 1.
5153 * wchar.h: Wrapper around "wcsmbs/wchar.h".
5155 * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
5156 wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
5157 wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
5158 wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
5159 wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
5162 * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
5163 wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
5164 wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
5165 wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
5166 wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
5167 Implement functions from early drafts, not part of final standard.
5169 Sun Mar 31 16:50:41 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5171 * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
5172 __jmp_bug_tag so its C++ implicit typedef does not conflict with the
5175 * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
5176 compiling in the source directories.
5178 Fri Mar 29 16:26:35 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5180 * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
5181 * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
5183 Fri Mar 29 11:29:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5185 * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
5186 with weak alias signgam.
5188 Thu Mar 28 18:32:34 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5190 * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
5192 Thu Mar 28 14:22:51 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5194 * sunrpc/rpc_main.c (main): Call textdomain.
5196 * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
5198 (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
5199 ($P/subdirs.pot): New target.
5200 ($P/SYS_libc.pot): Add -n switch.
5202 * locale/locale.h (LC_*): Values reordered to match Linux libc.
5204 * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
5205 the process is a zombie; send no messages and return success.
5207 Thu Mar 28 11:53:26 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5209 * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
5210 * wctype/wctype.c: Likewise.
5211 * wctype/wctrans.c: Likewise.
5213 Thu Mar 28 03:00:43 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5215 * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
5218 * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
5220 * configure.in (.weakext check): Fix asm code to use .weakext instead
5221 of .weak! Fix bogus test calls.
5222 * configure: Regenerated.
5224 Thu Mar 28 03:25:10 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5226 * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
5228 * locale/programs/ld-collate.c (collate_finish): Use error_at_line
5229 instead of error_with_loc.
5231 * locale/weight.h: Use u_int32_t instead of u32_t.
5232 * string/strxfrm.c: Likewise.
5234 * string/strxfrm.c: Find weight.h in ../locale; don't #include
5236 * string/strcoll.c: Likewise.
5238 * intl/Makefile (copysrc): Add missing > in sed cmd.
5240 Sat Mar 23 17:52:49 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5242 * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
5243 change value to $(datadir)/i18n. `nls' is not an appropriate
5246 * Makefile (subdirs): Add new subdir wctype.
5248 * ctype/ctype-info.c: Add new global variable __ctype_names
5249 and initialize from _nl_C_LC_CTYPE.
5251 * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
5253 [_ISbit]: Protect definition of bitmasks because they are also
5256 * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
5257 after successfully pushing back a character.
5259 Fundamental changes in locale implementation. Almost nothing
5260 from the old code is used anymore.
5261 * locale/charmap.c, locale/collate.c, locale/config.h,
5262 locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
5263 locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
5264 locale/locale.c locale/localeconv.c, locale/localedef.c,
5265 locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
5266 locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
5267 locale/numeric.c, locale/setlocale.c, locale/token.h,
5268 locale/xmalloc.c: Removed.
5270 * locale/Makefile: Update for new locale implementation with
5271 program source code distributed in subdir.
5273 * locale/categories.def, locale/iso-4217.def: Updated file
5274 for new locale implementation.
5276 * locale/langinfo.h: Updated for new locale implementation.
5277 (ERA_D_T_FMT, ERA_T_FMT): New official values according to
5279 (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
5280 _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
5281 _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
5282 _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
5283 _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
5284 _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
5285 extended LC_CTYPE and LC_COLLATE implementation.
5287 * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
5288 locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
5289 for locale related programs.
5291 * locale/C-collate.c, locale/C-ctype.c,
5292 locale/C-messages.c, locale/C-monetary.c,
5293 locale/C-numeric.c, locale/C-time.c,
5294 locale/lc-collate.c, locale/lc-ctype.c,
5295 locale/lc-messages.c, locale/lc-monetary.c,
5296 locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
5297 functions, and new generated "C" locale data.
5299 * locale/loadlocale.c: Now handles word fields in locale binary
5300 automatically by changing the endianess if necessary.
5302 * locale/localeinfo.h (LIMAGIC): Changed magic number because
5303 of incompatible changes.
5304 (locale_data): Changed definition to allow word as a value type.
5305 (coll_sort_rule): Values for collation sorting mode.
5306 (_NL_CURRENT_WORD): New macro to access word value of locale entry.
5307 (__collate_table, __collate_extra): Declare new global variables
5308 for collation tables.
5310 * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
5311 locale/programs/charmap.c, locale/programs/charset.c,
5312 locale/programs/charset.h, locale/programs/config.h,
5313 locale/programs/ctypedump.c, locale/programs/ld-collate.c,
5314 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
5315 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
5316 locale/programs/ld-time.c, locale/programs/linereader.c,
5317 locale/programs/linereader.h, locale/programs/locale.c,
5318 locale/programs/localedef.c, locale/programs/locales.h,
5319 locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
5320 locale/programs/locfile-token.h, locale/programs/locfile.c,
5321 locale/programs/locfile.h, locale/programs/stringtrans.c,
5322 locale/programs/stringtrans.h: Implementation of locale related
5325 * locale/weight.h: Functions to access collation tables.
5327 * posix/unistd.h: Define _POSIX2_LOCALEDEF.
5329 * stdio-common/printf_fp.c: Fix bug with printing certain numbers
5330 < 10^-1. Reported by Bill Metzenthen.
5332 * stdio-common/tfformat.c: Add new test for above bug.
5334 * string/strcoll.c, string/strxfrm.c: Real implementation of
5335 string collation according to ISO C.
5337 * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
5338 wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
5339 wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
5340 Implementation of wide character classes and mapping.
5342 Wed Mar 27 14:52:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5344 * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
5345 _dl_relocate_object loop. Avoid relocating RTLD_MAP in that loop, and
5346 do it individually if necessary after _dl_sysdep_start_cleanup call.
5348 * stdlib/Makefile (mpn-routines): Add divrem.
5350 Tue Mar 26 22:54:14 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5352 * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
5353 instead of __mpn_divmod.
5355 Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
5357 * sysdeps/alpha/setjmp.S: Must establish global pointer before
5358 address of __sigsetjmp_aux can be loaded.
5360 Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5362 * sysdeps/i386/i586/memset.S: New file. Highly optimized
5363 version for i586 contributed by Torbjorn Granlund.
5364 Adapted for use as bzero.
5365 * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
5366 code to implement bzero().
5368 Tue Mar 26 20:01:17 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5370 * stdlib/Makefile (mpn-routines): Remove divmod.
5372 Tue Mar 26 15:40:14 1996 Brendan Kehoe <brendan@zen.org>
5374 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
5375 wrapped with #ifndef, to avoid config.h defining it.
5377 Mon Mar 25 13:10:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5379 * malloc/realloc.c (_realloc_internal): In case of growing large
5380 block, leave _heaplimit zero across _malloc_internal call.
5382 * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
5384 Mon Mar 25 03:35:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5386 * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
5387 table when _heaplimit==0 during realloc growing large block.
5389 * MakeTAGS (extract): Remove /dev/null from xgettext command line.
5390 (text-srcs): New variable: extract only C sources from $(tags_sources).
5391 (po/$(domain).pot): Depend on that.
5392 If it's empty, cp /dev/null $@ instead of $(extract).
5394 * misc/Makefile (headers): Add iovec.h.
5395 * sysdeps/unix/sysv/linux/iovec.h: New file.
5396 * sysdeps/generic/iovec.h: New file.
5397 * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
5399 * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
5402 * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
5403 macros inside [! __STDC__].
5405 * stdlib/rpmatch.c: New file.
5406 * stdlib/Makefile (routines): Add rpmatch.
5407 * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
5409 * MakeTAGS (MSGJOIN): Variable removed.
5410 (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
5412 Wed Mar 20 20:08:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5414 * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
5416 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
5419 Thu Mar 21 11:19:15 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5421 * mach/devstream.c (input): Translate \r to \n on input.
5423 Wed Mar 20 11:28:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5425 * stdio-common/printf.h, stdio-common/printf_fp.c,
5426 stdio-common/vfprintf.c: Place const in parameter list at
5429 Wed Mar 20 23:58.12 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5431 * sysdeps/i386/ldbl2mpn.c: Copy of former version of
5432 sysdeps/ieee754/ldbl2mpn.c.
5433 * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
5434 Reported by Andreas Schwab.
5436 Wed Mar 20 19:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5438 * version.c: Include version.h to define RELEASE and VERSION macros.
5439 (__libc_release, __libc_version): Use them.
5440 * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
5441 use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
5442 * Make-dist (rel+vers): Snarf the macro values from version.h.
5444 * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
5445 (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
5446 pass -a for these files.
5448 * Makerules (po/%.pot): Depend on FORCE target so recursive make is
5451 Mon Mar 18 22:54:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5453 * sysdeps/unix/sysv/linux/wait3.c: New file.
5454 * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
5455 one from sysdeps/posix.
5457 Wed Mar 20 09:42:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5459 * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
5461 * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
5462 lt_executable, then lt_library.
5463 * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
5465 Wed Mar 20 00:08:23 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5467 * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
5469 Tue Mar 19 16:31:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5471 * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
5472 VEOL2, VMIN, VTIME): Corrected.
5473 (PAGEOUT, WRAP, VDSUSP): Deleted.
5475 Tue Mar 19 14:18:42 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5477 * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
5478 (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
5480 * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
5482 * math/math.h: Move M_* constants before __math.h include.
5483 [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
5485 * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
5486 If log10 is not defined (i.e. no -lm), use stupid loop instead.
5488 * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
5489 and no other _*_SOURCE macro is.
5490 (_GNU_SOURCE): Don't define by default.
5491 * libc-symbols.h (_GNU_SOURCE): Define it.
5493 * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
5495 * config.make.in (weak-symbols): Variable removed.
5496 * configure.in (--with-weak-symbols): Option removed.
5497 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5500 * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
5501 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5503 * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
5505 * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
5507 Mon Mar 4 20:17:28 1996 David Mosberger-Tang <davidm@azstarnet.com>
5509 * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
5510 * inet/inet_mkadr.c: Likewise.
5511 * inet/inet_net.c: Likewise.
5512 * inet/inet_netof.c: Likewise.
5513 * inet/rcmd.c: Likewise.
5514 * inet/arpa/inet.h: Likewise.
5515 * inet/netinet/in.h: Likewise.
5516 * inet/netinet/tcp.h: Likewise.
5517 * inet/protocols/rwhod.h: Likewise.
5518 * inet/protocols/talkd.h: Likewise.
5519 * resolv/inet_addr.c: Likewise.
5521 * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
5523 * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
5525 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
5528 * sysdeps/alpha/__math.h (atan, cabs): New functions.
5530 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
5531 expects set-value, not pointer to it).
5533 Sun Feb 25 22:36:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
5535 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
5537 * gmon/gmon.c (__bb_head): new variable.
5538 (write_hist, write_call_graph, write_bb_counts): new functions.
5539 (_mcleanup): modified to call above functions instead of directly
5540 writing out gmon.out.
5541 * gmon/sys/gmon.h (struct __bb): New type.
5542 (struct gmonhdr): Type removed.
5543 (struct gmonparam): New member `log_hashfraction'.
5544 (GMONVERSION): Macro removed.
5546 * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
5547 sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
5549 * gmon/Makefile (headers): Add sys/gmon_out.h.
5550 (routines): Add bb_init_func, bb_exit_func.
5552 * gmon/mcount.c: Avoid integer division.
5554 Wed Feb 21 23:56:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
5556 * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
5557 passed to match what __sigsetjmp_aux() expects.
5559 Tue Feb 20 11:33:46 1996 David Mosberger-Tang <davidm@azstarnet.com>
5561 * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
5562 connect, getpeername, getsockname, listen, recv, recvfrom,
5563 recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
5564 added to override same-name assembly file in the parent directory.
5566 * stdlib/stdlib.h: add include of sys/types.h in front of random
5567 etc declarations to ensure int32_t is declared.
5569 * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
5570 where 32 bit integers are required. Also change LONG_MAX into
5571 0x7fffffff since the intent is to turn off the sign bit in a
5574 * time/offtime.c (__offtime): Use Paul Eggert's code to deal
5575 with very large values for "days" (e.g., 64 bit values).
5577 Mon Feb 19 22:22:12 1996 David Mosberger-Tang <davidm@azstarnet.com>
5579 * stdlib/stdlib.h (__random, __random_r, random_r, struct
5580 random_data): use int32_t instead of `long int'.
5582 Sat Feb 17 11:29:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
5584 * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
5586 * sysdeps/alpha/ffs.S: new file.
5588 * sysdeps/alpha/fabs.c: File removed.
5590 * time/tzfile.c (__tzfile_read): counter variable is i, *not*
5593 * time/offtime.c: make capable of dealing with very large (64 bit)
5594 time_t values. Use old algorithm until a year is reached that
5595 is an integer multiple of 400, then use DAYS_PER_400_YEARS to
5596 do the remainder in a single division.
5598 * sysdeps/generic/ffs.c (ffs): fix variable declarations to
5599 be unsigned int, not unsigned long.
5601 * string/test-ffs.c (main): add test case with all upper bits
5604 * stdlib/tst-strtol.c: add tests cases for machines where
5607 * stdlib/testrand.c (main): disallow rand() to return negative
5610 * stdlib/testmb.c (main): fix format to use %lx instead of %x.
5612 * stdlib/stdlib.h: on 64 bit machines, declare
5613 struct random_data, __random(), __random_r, and random_r to
5614 return "int" instead of "long int".
5616 * stdlib/random_r.c: 64 bit machines use "int" instead of "long
5617 int". Similarly, use INT_MAX instead of LONG_MAX.
5619 * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
5620 need to operate on "int" instead of "long int".
5622 * locale/locfile-hash.c (compute_hashval): make shifted constant
5623 a long to avoid loosing bits on 64 bit machines.
5625 * dirent/tst-seekdir.c (main): fix confusing comment; print
5626 a line to mark point where directory is rewound.
5628 Fri Feb 16 15:01:49 1996 David Mosberger-Tang <davidm@azstarnet.com>
5630 * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
5632 Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
5634 * sysdeps/unix/sysv/linux/alpha/Makefile,
5635 sysdeps/unix/sysv/linux/alpha/brk.S,
5636 sysdeps/unix/sysv/linux/alpha/fpu_control.c,
5637 sysdeps/unix/sysv/linux/alpha/fpu_control.h,
5638 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
5639 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
5640 sysdeps/unix/sysv/linux/alpha/pipe.S,
5641 sysdeps/unix/sysv/linux/alpha/setfpucw.c,
5642 sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
5643 sysdeps/unix/sysv/linux/alpha/speed.c,
5644 sysdeps/unix/sysv/linux/alpha/start.S,
5645 sysdeps/unix/sysv/linux/alpha/syscall.S,
5646 sysdeps/unix/sysv/linux/alpha/syscalls.list,
5647 sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
5648 sysdeps/unix/sysv/linux/alpha/sysdep.S,
5649 sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
5651 * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
5652 address register before returning (gcc 2.7.1 doesn't do it,
5653 presumably because $26 is declared as a global variable).
5655 * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
5658 * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
5659 instead of multiplication.
5661 * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
5662 currently blocked signals instead of the empty mask to ensure
5663 that execution of alarm handler occurs with none of the currently
5664 blocked signals enabled.
5666 * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
5668 * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
5669 sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
5671 * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
5672 sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
5673 sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
5674 sysdeps/alpha/strlen.S: New files.
5676 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
5677 sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
5678 sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
5679 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
5682 * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
5685 * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
5686 to end of function to avoid a jump across NOPs.
5688 * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
5689 pertaining to integer division/remainder routines since new code
5690 doesn't require them.
5692 * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
5693 where 32 bit quantities are consumed/stored. Various other minor
5694 64-bit cleanups (casting).
5696 * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
5697 whether xdr_long or xdr_short should be used to encode an int.
5698 Notice that an xdr_long is 4 bytes independent of the architecture
5699 (otherwise no Alpha could interoperate with existing NFS servers,
5700 for example). Ditto for enums.
5702 * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
5703 to 16 since it really wants 16 bytes.
5705 * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
5707 * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
5708 u_int32_t (instead of u_long).
5710 * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
5711 "buf" pointer by casting it to a char* first since a long* may be 8
5712 bytes or more and oa->oa_length may be any multiple of 4.
5714 * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
5715 since it really is testing for 32 bits. Fixed casts to use
5716 u_int32 instead of u_long.
5717 * sunrpc/xdr_rec.c: Likewise.
5719 * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
5720 * sunrpc/rpc/auth.h: Likewise.
5722 * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
5725 Tue Mar 19 13:27:49 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5727 * sysdeps/i386/fpu/__math.h: New file.
5728 Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
5730 Sun Mar 17 00:28:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5732 * sysdeps/posix/clock.c: Don't multiply the return value by
5733 CLOCKS_PER_SEC or CLK_TCK.
5735 Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5737 * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
5738 scan finds no match.
5740 * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
5741 * misc/bsd-compat.c (setpgrp): New function, two arg version.
5742 * sysdeps/stub/setpgid.c: Remove setpgrp alias.
5743 * sysdeps/mach/hurd/setpgid.c: Likewise.
5744 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
5745 * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
5746 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
5747 * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
5748 * posix/setpgrp.c (setpgrp): New file.
5749 * posix/Makefile (routines): Add setpgrp.
5751 * elf/Makefile (rtld-link): New canned sequence.
5752 (ld.so, ld-linux.so.1): Use it. Pass -soname option.
5754 * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
5756 Sun Mar 17 23:15:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5758 * sysdeps/unix/sysv/linux/tcgetpgrp.c,
5759 sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
5761 Sun Mar 17 07:19:33 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5763 * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
5764 (CFLAGS): Append -Wno-unitialized.
5766 Sat Mar 16 20:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5768 * stdlib/erand48_r.c: Use FP division by powers of two to distribute
5769 short bits into double.
5771 Sat Mar 16 20:08:22 1996 David Mosberger-Tang <davidm@azstarnet.com>
5773 * sysdeps/alpha/memchr.S: New file.
5774 * sysdeps/alpha/memchr.c: Obsolete file removed.
5775 * string/tester.c: Soup up memchr tests.
5777 Sat Mar 16 16:26:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5779 * misc/Makefile (headers): Add sysexits.h.
5780 * misc/sysexits.h: New file.
5782 Thu Mar 14 15:20:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5784 * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
5786 * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
5789 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
5790 sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
5791 sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
5792 sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
5793 sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
5794 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
5795 sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
5796 sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
5797 sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
5798 sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
5799 sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
5800 sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
5801 sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
5802 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
5803 sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
5804 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
5805 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
5806 sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
5807 sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
5808 sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
5809 sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
5810 sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
5811 sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
5812 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
5813 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
5814 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
5815 sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
5816 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
5817 sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
5818 sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
5819 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
5820 sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
5821 sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
5822 sysdeps/m68k/fpu/s_significand.c,
5823 sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
5824 sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
5825 sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
5826 sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
5828 * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
5830 * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
5831 * sysdeps/m68k/fpu/isnanl.c: Likewise.
5833 Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5835 * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
5836 calculation to include trailing invariant portion. Don't use alloca;
5837 instead use a dynamic auto array for GCC, malloc for non-GCC.
5838 Handle nested braces properly.
5840 * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
5842 * libc-symbols.h (lint): New macro.
5844 Fri Mar 15 01:18:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5846 * libio/iosetvbuf.c: Add weak alias setvbuf.
5848 Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5850 * string/strnlen.c: New file.
5851 * string/Makefile (routines): Add strnlen.
5852 * string/string.h [__USE_GNU] (strnlen): Declare new function.
5853 [__OPTIMIZE__]: Define extern inline implementation of it.
5855 * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
5856 addition, to avoid using anything from -lm.
5858 Mon Mar 4 21:57:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5860 * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
5862 * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
5863 (CALL_MCOUNT): New macro, empty unless [PROF].
5864 (ENTRY): Do CALL_MCOUNT just after the label.
5865 (JUMPTARGET): New macro.
5866 (SYSCALL_ERROR_HANDLER): Fix syntax.
5868 Thu Mar 14 04:20:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5870 * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
5871 function instead of using inline asm i386 syscall.
5872 * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
5874 * posix/unistd.h [__USE_BSD]: Declare usleep.
5876 Tue Mar 12 04:57:57 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5878 * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
5879 (fcvt, ecvt): Use it for buffer size.
5881 * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
5882 conditionalizing long vs long long.
5884 * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
5885 pointers; never return EFAULT.
5886 * stdlib/drand48_r.c (drand48_r): Likewise.
5887 * stdlib/erand48_r.c (erand48_r): Likewise.
5889 * setjmp/Makefile (tests): Add jmpbug.
5890 * setjmp/jmpbug.c: New file.
5892 Tue Mar 12 04:42:01 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5894 * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
5895 * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
5896 * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
5897 `restore' until the target frame is hit.
5899 Sun Mar 10 20:29:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5901 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
5902 * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
5905 Thu Mar 7 21:30:58 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5907 * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
5908 left side of sed substitutions.
5910 Sun Mar 10 16:58:10 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5912 * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
5913 is not available anymore. Do it ourselves.
5915 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
5916 Correct GCC `asm' syntax.
5918 Tue Mar 12 03:15:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5920 * stdio-common/Makefile (tests): Add tst-ungetc.
5921 * stdio-common/tst-ungetc.c: New test from drepper.
5922 * stdio-common/tstscanf.c (main): New %[ test case from drepper.
5924 * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
5925 somehow this was missed, though the weak alias is already there.
5927 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
5928 default to double precision, all interrupts masked; fdlibm requires.
5930 Sat Mar 9 18:44:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5932 * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
5934 Fri Mar 8 22:16:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5936 * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
5938 Tue Mar 5 18:45:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
5940 * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
5943 Mon Mar 4 20:54:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5945 * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
5947 Tue Mar 5 12:14:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
5949 * sysdeps/mach/hurd/select.c (__select): Also don't fault just
5950 because some fdmask is 0.
5952 Mon Mar 4 17:35:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
5954 * sysdeps/mach/hurd/select.c (__select):
5955 Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
5956 Don't return without frobbing the bitmasks after a timeout.
5957 When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
5959 Mon Mar 4 17:35:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5961 * hurd/catch-signal.c (hurd_safe_memmove): New function.
5962 (hurd_safe_copyin, hurd_safe_copyout): New functions.
5963 * hurd/hurd/sigpreempt.h: Declare them.
5965 Sun Mar 3 08:43:44 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5967 Replace math code with fdlibm from Sun as modified for netbsd by
5968 JT Conklin and Ian Taylor, including x86 FPU support.
5969 * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
5970 * math/math_private.h: New file.
5971 * sysdeps/i386/fpu/Implies: New file.
5972 * sysdeps/ieee754/Implies: New file.
5973 * math/machine/asm.h, math/machine/endian.h: New files.
5974 * math/Makefile, math/math.h: Rewritten.
5975 * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
5976 * math/finite.c: File removed.
5977 * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
5979 * math/test-math.c: Include errno.h and string.h.
5981 * sysdeps/unix/bsd/dirstream.h: File removed.
5982 * sysdeps/unix/bsd/readdir.c: File removed.
5984 Sat Mar 2 16:35:40 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5986 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
5987 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
5989 * sysdeps/generic/profil-counter.h: New file.
5991 Fri Mar 1 17:11:59 1996 Brendan Kehoe <brendan@zen.org>
5993 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
5994 including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
5995 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
5996 same as linux/m68k/profil-counter.h except the comment.
5998 Fri Mar 1 10:09:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6000 * stdlib/Makefile (mpn-stuff): New target.
6003 * Code copied from GMP updated to 1.937 version.
6004 * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
6006 * posix/glob.c: Use canonical code from autoconf manual for dirent
6008 [_D_NAMLEN]: Redefine NAMLEN using this.
6009 (glob_in_dir): Use NAMLEN macro.
6011 * sysdeps/posix/profil.c: New file.
6013 Thu Feb 29 20:55:57 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6015 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
6017 Tue Feb 27 12:14:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6019 * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
6022 * time/strftime.c: Support - and _ flags to affect number padding.
6024 * sysdeps/unix/common/tcsendbrk.c: New file.
6026 Mon Feb 26 10:22:30 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6028 * sysdeps/unix/dirstream.h: Rewritten.
6029 * sysdeps/unix/readdir.c: Rewritten.
6030 * sysdeps/unix/telldir.c: Rewritten.
6031 * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
6032 Remove __ from DIR struct member names.
6033 * sysdeps/unix/dirfd.c: Likewise.
6034 * sysdeps/unix/seekdir.c: Likewise.
6035 * sysdeps/unix/rewinddir.c: Likewise.
6036 * sysdeps/unix/opendir.c: Likewise. Don't allocate extra space after
6038 * sysdeps/stub/direct.h: File removed.
6039 * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
6040 * sysdeps/unix/bsd/direct.h: File removed.
6041 * sysdeps/unix/common/direct.h: File removed.
6042 * sysdeps/unix/sysv/irix4/direct.h: File removed.
6043 * sysdeps/unix/sysv/isc3/direct.h: File removed.
6044 * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
6045 * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
6046 * sysdeps/unix/common/direntry.h: New file.
6047 * sysdeps/unix/bsd/direntry.h: New file.
6048 * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
6049 * sysdeps/unix/sysv/direntry.h: New file.
6050 * sysdeps/stub/direntry.h: New file.
6051 * dirent/dirent.h (struct dirent): Type removed. Include <direntry.h>
6053 (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
6054 * dirent/Makefile (headers): Add direntry.h.
6055 (distribute): Remove direct.h.
6056 * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
6057 * dirent/scandir.c: Likewise.
6058 * io/fts.c (fts_build): Likewise.
6059 * io/ftw.c (ftw_dir): Likewise.
6060 * sysdeps/posix/ttyname.c: Likewise.
6062 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6064 * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
6065 (collector_timeout): New static variable.
6066 (update_waiter): Actually call __task_enable_pc_sampling.
6067 Set collector_timeout based on the `tick' count returned.
6068 (profile_waiter): Use MAX_PC_SAMPLES. Set nsamples before RPC.
6069 Use collector_timeout in __mach_msg call.
6071 * gmon/Makefile (noprof): New variable containing mcount.
6072 Append profil unless it is in $(unix-syscalls).
6073 (mcount.po): Use $(noprof) for list of targets in this rule.
6075 * libc-symbols.h: Define _LIBC before #include <config.h>.
6077 Sun Feb 25 12:29:23 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6079 * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
6080 Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
6082 * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
6084 Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
6086 * libio/cleanup.c (_IO_cleanup_registration_needed)
6087 [!_G_HAVE_ATEXIT]: Init to NULL.
6088 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
6090 Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
6092 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
6093 previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
6095 Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
6097 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
6100 Sat Feb 24 11:34:13 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6102 * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
6104 * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
6106 Wed Feb 21 02:25:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6108 * Rules (others): Depend on $(extra-objs), $(install-lib),
6109 $(install-bin), $(install-sbin), in object directory.
6111 * Makeconfig (link-libc): Don't pass -rpath option with default
6112 path, since ld.so should use the same default.
6113 * Makerules (build-shlib): Likewise.
6115 * Makerules (make-target-directory): Use mkinstalldirs.
6117 * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
6118 redefine ENTRY et al.
6120 * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
6121 Macros removed. The code in unix/i386/sysdep.h should now suffice.
6123 * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
6125 (ENTRY): Use it in .align directive.
6126 (CALL_MCOUNT): New macro, empty unless [PROF].
6127 (ENTRY): Do CALL_MCOUNT just after the label.
6129 * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
6130 code can call mcount.
6132 Tue Feb 20 23:05:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6134 * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
6135 translation markings are now integrated in his distribution.
6137 * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
6139 Mon Feb 19 18:31:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6141 * po: New directory where `LANG.po' files for message translations
6143 * po/SYS_libc.pot: New file, template of message strings as in source.
6144 * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
6145 the source using xgettext.
6146 * Makerules ($(..)po/%.pot): New rule.
6147 * manual/Makefile (../po/manual.pot): New target, make it empty.
6149 * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
6150 * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
6151 * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
6152 * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
6153 * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
6155 * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
6156 Updated from ADO 96d.
6158 Sun Feb 18 14:08:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6160 * csu/initfini.c (_init): Remove bogus volatile declarations and
6161 extra variable, take the address of __gmon_start__ only implicitly
6162 to avoid the test being optimized out.
6164 Sun Feb 18 15:08:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6166 * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
6169 Sun Feb 18 13:56:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6171 * elf/Makefile, time/Makefile: Make `all' the default target.
6173 Mon Feb 19 18:09:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6175 * misc/sys/ptrace.h: Moved to ...
6176 * sysdeps/generic/sys/ptrace.h: ... here.
6177 * sys/ptrace.h: File removed.
6179 Sun Feb 18 12:13:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6181 * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
6183 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
6184 so that the symbol alias works.
6186 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
6188 * sysdeps/unix/sysv/linux/resourcebits.h: New file.
6190 * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
6192 * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
6195 * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
6198 Sat Feb 17 10:30:21 1996 David Mosberger-Tang <davidm@AZStarNet.com>
6200 * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
6201 sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
6202 sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
6203 to `long' where necessary.
6205 Thu Feb 15 20:04:50 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
6207 * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
6208 * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
6209 to correctly access MPN array depending on architecture.
6211 Mon Feb 19 15:30:26 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6213 * stdio-common/tstscanf.c (main): Add check for "0" as %d.
6215 * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
6216 Only some systems have three args; let them define their own stub.
6218 * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
6220 * sysdeps/generic/machine-gmon.h: New file.
6221 * gmon/Makefile (distribute): Add machine-gmon.h.
6222 * gmon/mcount.c: Undo changes of Feb 13.
6223 Include "machine-gmon.h".
6225 Sun Feb 18 13:24:06 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6227 * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
6228 identical to unix/common/direct.h.
6230 * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
6232 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
6234 * stdio-common/Makefile (tests): Remove scanf6.
6236 * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
6238 * time/mktime.c (mktime): Move static variable localtime_offset to
6241 * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
6244 Thu Feb 15 16:56:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6246 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
6247 (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
6248 (_dl_runtime_resolve): Save %a1 as well.
6249 (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
6250 (elf_machine_relplt): Define.
6252 * elf/dl-runtime.c: Include possible extra args in declaration of
6255 Fri Feb 16 11:01:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6257 * time/tzset.c: Limit hours to 23, not 12. From jaffer.
6259 Fri Feb 16 10:14:05 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6261 * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
6263 Thu Feb 15 13:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6265 * mach/Machrules: Use -include for $(*.ir).
6267 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
6269 * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
6270 (_IOT_COUNT2): Field is 3 bits, not 2.
6271 * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
6272 * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
6273 bits before looking up handler.
6274 (fioctl): Use __hurd_dfail.
6275 (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
6277 Thu Feb 15 11:49:45 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6279 * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
6280 (sysdep_routines): Don't add sys-sig.
6282 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6284 Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
6286 * sysdeps/alpha/memchr.c (memchr): loop searching for matching
6287 character bailed out one too early; changed constant 6 to
6290 Wed Feb 14 01:08:58 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6292 * posix/execvp.c: When executing shell on script, first arg is
6293 full file name, not argv[0].
6295 * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
6296 * mach/Machrules [no_deps]: Inhibit interface rules.
6298 * malloc/Makefile (distribute): Removed TODO.
6300 Tue Feb 13 05:12:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6302 * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
6305 * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
6307 * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
6309 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
6310 (sysdep_routines): Append setfpucw.
6311 (extra-objs): Append ieee-fpucw.o.
6312 (install-lib): Append libieee.a.
6313 (libieee.a): New target.
6314 * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
6315 * sysdeps/unix/sysv/linux/i386/fpu_control.h
6316 (_FPU_GETCW, _FPU_SETCW): New macros.
6317 (fpu_control_t): New typedef.
6318 (__setfpucw): Use fpu_control_t for argument type.
6319 * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
6321 * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
6323 * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
6324 * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
6326 Sat Feb 10 13:09:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6328 * sysdeps/unix/sysv/linux/m68k/brk.c,
6329 sysdeps/unix/sysv/linux/m68k/mmap.S,
6330 sysdeps/unix/sysv/linux/m68k/select.S,
6331 sysdeps/unix/sysv/linux/m68k/sigcontext.h,
6332 sysdeps/unix/sysv/linux/m68k/sigreturn.S,
6333 sysdeps/unix/sysv/linux/m68k/socket.S,
6334 sysdeps/unix/sysv/linux/m68k/syscall.S,
6335 sysdeps/unix/sysv/linux/m68k/sysdep.S,
6336 sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
6338 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
6340 * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
6341 sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
6343 * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
6344 MAP_FILE if not already defined.
6346 * elf/elf.h: Add m68k reloc definitions.
6347 * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
6349 Tue Feb 13 00:12:12 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6351 * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
6352 this macro declare extra leading args.
6354 * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
6356 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
6357 elf_machine_relplt): New macros.
6358 * elf/dl-runtime.c: New file.
6359 * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
6361 * gmon/Makefile (headers): Remove machine-gmon.h.
6362 * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
6363 * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
6365 (_mcount): Define normally, taking no args.
6366 Use __builtin_return_address to fetch PC values of caller and caller's
6369 * Makerules: Rewrote rules to update libc archives of all flavors.
6370 Define separate specific rules for each flavor using o-iterator.
6372 * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
6374 Sat Feb 10 11:35:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6376 * Makerules (ar-symtab-name): New macro. Replace all occurences
6377 of __.SYMDEF by $(ar-symtab-name).
6378 * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
6380 Mon Feb 12 03:10:41 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6382 * Makefile (configure, %/configure): Depend on aclocal.m4.
6383 * Make-dist (configure, %/configure): Likewise.
6385 * sysdeps/unix/Makefile: Include s-proto.d for its deps.
6387 * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
6388 only needed in the implementation, not for any users.
6390 * time/northamerica: Updated from ADO 96c, new rules for Mexico in
6393 * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
6394 * sunrpc/pm_getmaps.c: Likewise.
6396 * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
6397 so real syscalls override unix/sysv/*.c on sysv-derived systems
6399 * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
6400 override unix/sysv/settimeofday.c since that overrides
6403 * Makeconfig (+link): Put $(link-libc) after deps from $^,
6404 regardless of where libc.a appears in the deps.
6406 * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
6408 * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
6409 Define __ name for sigprocmask.
6410 * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
6412 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
6413 * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
6414 * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
6415 * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
6416 Add getdents, wait3, waitpid.
6417 * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
6418 settimeofday, sigsuspend, sstk, utimes.
6419 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6420 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6421 * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
6423 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
6424 * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
6425 * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
6426 * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
6427 * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
6428 * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
6429 * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
6430 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6431 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
6432 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6433 * sysdeps/unix/sysv/irix4/wait3.S: File removed.
6434 * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
6435 * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
6436 * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
6437 * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
6438 * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
6439 * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
6441 * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
6442 FORWARD_SIGEXC to one. Uncomment setting of thread exc port, and
6443 move it to last thing.
6445 Sat Feb 10 05:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6447 * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
6449 * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
6451 Sat Feb 10 04:18:48 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6453 * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
6456 Fri Feb 9 11:46:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6458 * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
6459 CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
6461 * hurd/Makefile (user-interfaces): Added hurd/tioctl.
6463 Thu Feb 8 18:55:27 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6465 * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
6467 Wed Feb 7 18:48:30 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6469 * Makefile (subdirs): Added wcsmbs.
6470 * wcsmbs: New directory of wide char/multibyte char functions from
6473 * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
6474 * hurd/report-wait.c: New file.
6475 * hurd/Makefile (routines): Added report-wait.
6477 * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
6479 * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
6481 (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
6482 * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
6483 Structure moved to intr-msg.h; include that.
6485 * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
6486 (CFLAGS-scheck.c): New variable.
6488 * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
6489 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
6490 __hurd_threadvar_stack_mask): New variables.
6492 * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
6493 its new message port.
6495 * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
6497 * configure.in (uname): Add quoting.
6499 * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
6500 * hurd/fchroot.c: Likewise.
6502 * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
6503 __attribute__ ((__mode__ (__XX__))).
6505 Wed Feb 7 03:24:05 1996 Torbjorn Granlund <tege@tmg.se>
6507 * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
6508 destination cache lines.
6509 (WORD_COPY_BWD): Likewise.
6511 Wed Feb 7 14:16:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6513 * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
6514 file name first thing, before $(native-compile) changes directories.
6516 From Gord Matzigkeit <gord@enci.ucalgary.ca>:
6517 * sysdeps/unix/make_errlist.c: Use strerror if available.
6518 * sysdeps/unix/configure.in: New file
6520 * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
6521 * sysdeps/unix/bsd/sun/sigvec.S: File removed.
6523 * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
6524 * sysdeps/stub/connect.c: Likewise.
6525 * sysdeps/stub/bind.c: Likewise.
6527 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
6528 "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
6529 another dir_lookup of "".
6531 Tue Feb 6 12:46:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
6533 * libc-symbols.h (weak_alias, weak_symbol): added definitions
6534 for ECOFF (HAVE_ECOFF).
6536 Fri Feb 2 13:09:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6538 * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
6540 Wed Jan 31 20:08:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6542 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
6543 when cancelled before RPC.
6545 Tue Jan 30 13:32:05 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6547 * dirent/scandir.c: Allocate dirents with correct size for name, and
6548 copy with correct size.
6550 * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
6552 * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
6554 (__vfscanf): Fix checking of extra type modifiers.
6556 * time/asia, time/australasia, time/backward: Updated from ADO 96b.
6558 Tue Jan 30 12:17:26 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
6560 * stdlib/strtod.c: Only negate exponent when there really is one.
6562 * stdio-common/vfscanf.c: Accept type modifiers on %n.
6563 Fix FP number parsing.
6565 Mon Jan 29 21:53:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6567 * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
6569 * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
6571 Mon Jan 29 16:29:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
6573 * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
6574 include an increment for each operation allowed on each fd.
6576 Mon Jan 29 11:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6578 * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
6580 * Makefile: Use -include for sysd-dirs.
6582 * configure.in (uname): Check for uname in syscalls.list files.
6583 * sysdeps/unix/sysv/syscalls.list: Remove uname.
6584 * sysdeps/unix/syscalls.list: Add uname.
6586 * stdlib/strtol.c (weak1): New macro, to get the right name declared
6589 * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
6591 * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
6592 (dbm_open): Use dynamic allocation for file name buffer, instead of
6593 limitting its size to MAXPATHLEN.
6595 * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
6596 buffer, instead of limitting its size to MAXPATHLEN.
6598 * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
6599 * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
6601 Sun Jan 28 19:42:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6603 * time/Makefile: Fix check for cross compiling.
6605 Thu Jan 25 21:10:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6607 * db/Makefile (subdir-dirs): Renamed from dbdirs.
6609 * Makerules (distinfo-vars): Add subdir-dirs.
6611 * MakeTAGS: Remove vpath directives.
6612 (all-dirs): Prepend $(subdir-dirs).
6613 (all-sources, all-headers): Use wildcard to find sources.
6615 Mon Jan 29 10:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6617 * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
6620 * mach/msgserver.c: Declare DEMUX arg with prototype.
6622 Sun Jan 28 17:25:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6624 * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
6626 * alpha/jmp_buf.h: Likewise.
6627 * m68k/jmp_buf.h: Likewise.
6628 * mips/jmp_buf.h: Likewise.
6629 * sparc/jmp_buf.h: Likewise.
6630 * vax/jmp_buf.h: Likewise.
6632 * sysdeps/generic/memmem.c: Fix return value in case where
6635 * hurd/hurdlookup.c (__file_name_lookup_under,
6636 __file_name_lookup): Restrict mode with umask.
6637 * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
6638 * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
6640 Fri Jan 26 12:20:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6642 * stdlib/strtol.c: Undo last change. ANSI C changed since the
6643 draft I checked yesterday. Sigh.
6645 Thu Jan 25 18:58:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6647 * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
6649 Wed Jan 24 03:22:07 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6651 * malloc/mcheck.c (mabort): Declare prototype.
6653 * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
6655 * Makerules: Use -include for generated makefiles.
6657 * errno.h: Don't declare errno if it's defined as a macro.
6659 * stdio-common/vfscanf.c: Disallow l flag after ll or L.
6661 * stdio-common/Makefile (tests): Add scanf[1-9].
6662 * stdio-common/scanf[1-9].c: New files. Bug tests from hjl.
6664 Wed Jan 24 04:18:36 1996 Paul Eggert <eggert@twinsun.com>
6666 * strftime.c (strftime):
6667 When invoking self, check whether the subsidiary invocation failed.
6668 Use "???" (not "") to denote unknown time zone information.
6670 Make this source file portable to standalone contexts (e.g. GNU Emacs).
6671 <config.h>: Include if HAVE_CONFIG_H is defined.
6672 (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
6673 defined if _LIBC or if <config.h> defines them.
6674 <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
6675 <sys/types.h>: New include; some hosts require it for `time_t'.
6676 <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
6677 <limits.h>: Include only if HAVE_LIMITS_H.
6678 <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
6679 (memcpy): Define in terms of bcopy if !STDC_HEADERS.
6680 (__P, PTR): Define if not already defined.
6681 (__tzname, __daylight, __timezone): Remove macros; no longer needed.
6682 (add, strftime): Don't use NULL, for portability to some weird hosts.
6683 (fmt): If !_LIBC, don't assume sprintf returns a count.
6684 (week, strftime): Use old-style function declarations.
6685 (weekday_name, month_name): New constants.
6686 (strftime): Use traditional C values if locale support isn't available.
6687 Use `const' instead of CONST. For time zones, use tm_zone if
6688 possible, then fall back on tzname. Don't check for multibyte
6689 characters unless mblen is supported. Use formats like %02d instead
6690 of %.2d, for portability to older hosts.
6692 Wed Jan 24 00:07:52 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6694 * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
6695 (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
6696 Fix bug in recognition of %ll flag for long long.
6697 Fix overeager checks for conflicting type modifiers.
6698 With ' flag, match thousands separators for decimal numbers.
6700 Tue Jan 23 22:02:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6702 * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
6704 * resolv/Makefile (CFLAGS): Disable some warnings.
6706 * sysdeps/generic/Makefile (elided-routines): Removed hypot.
6707 (+gccwarn): Set with override.
6709 * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
6711 * posix/Makefile (CFLAGS-regex.c): New variable.
6713 * malloc/Makefile (CFLAGS-obstack.c): New variable.
6715 * io/Makefile (CFLAGS-fts.c): New variable.
6716 * io/fts.c (fts_open): Use prototypes for COMPAR decl.
6718 Tue Jan 23 21:35:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
6720 * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
6721 case is '\0'-terminated.
6723 Tue Jan 23 19:49:54 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6725 * elf/rtld.c (dl_main): Support additional args in --list mode for
6726 debugging: look them up as symbol names and print values.
6728 * misc/getttyent.c (skip, value): Declare with prototypes in file
6731 * csu/initfini.c (_init): Explicitly set a variable that is
6732 pointer to volatile with the address of __gmon_start__, to avoid
6733 the test being optimized out.
6735 Mon Jan 22 10:40:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6737 * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
6739 * io/fts.h (FTSENT): Define fts_compar member with prototype.
6741 * hurd/hurd.h: Use prototype in getcttyid decl.
6743 * stdlib/l64a.c: Fix typo in last change.
6745 * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
6746 for determining size of types.
6747 * stdlib/srand48_r.c: Likewise.
6749 * misc/utmp.h: Declare login, logout, logwtmp.
6750 * misc/logout.c: Declare argument as pointer to const.
6751 * misc/login.c: Likewise.
6752 * misc/logwtmp.c: Likewise.
6753 Include time.h, string.h.
6755 * misc/efgcvt_r.c: Include stdlib.h.
6757 * io/mknod.c: Include sys/types.h.
6759 * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
6761 * csu/gmon-start.c (_start, etext): Declare with prototypes.
6763 * stdio-common/vfscanf.c (%[): Fix range handling.
6765 Sun Jan 21 00:55:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6767 * misc/Makefile (headers): Rename queue.h to sys/queue.h.
6768 * misc/queue.h: Moved to misc/sys/queue.h.
6770 * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
6773 * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
6775 * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
6776 literal byte values.
6778 * misc/bsd-compat.c (getpgrp): Define with prototype.
6780 * misc/init-misc.c (__progname_full): New variable.
6781 (program_invocation_name, program_invocation_short_name): New aliases.
6782 (__init_misc): Define with prototype. Set __progname_full.
6783 * misc/progname.c: File removed.
6784 * misc/Makefile (aux): Remove progname.
6786 * misc/hsearch_r.c (isprime): Define with prototype.
6788 * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
6789 * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
6790 * sysdeps/unix/bsd/setegid.c: Likewise.
6792 Fri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6794 * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
6797 * posix/glob.c (glob): Use prototype in getlogin decl.
6799 * db/ndbm.h: Declare dbm_error, dbm_clearerr.
6800 * db/db/db.c (__dberr): Define with prototype.
6801 (__dbpanic): Use prototypes in casts.
6802 * db/hash/hash_log2.c: Add prototype decl.
6804 * sysdeps/generic/_strerror.c (_strerror_internal): Define with
6807 * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
6808 They will be overridden with syscalls if extant by unix/syscalls.list.
6810 * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
6812 * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
6813 * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
6815 Thu Jan 18 00:32:43 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6817 * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
6819 * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
6822 * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
6823 defines GNU extensions.
6824 * posix/fnmatch.c: Likewise.
6826 Replaced all simple system call files *.S throughout sysdeps/unix
6827 with syscalls.list files to be processed by make-syscalls.sh.
6828 * sysdeps/unix/s-proto.S: New file.
6829 * sysdeps/unix/syscalls.list: New file.
6830 * sysdeps/unix/bsd/syscalls.list: New file.
6831 * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
6832 * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
6833 * sysdeps/unix/bsd/osf/syscalls.list: New file.
6834 * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
6835 * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
6836 * sysdeps/unix/bsd/sun/syscalls.list: New file.
6837 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
6838 * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
6839 * sysdeps/unix/common/syscalls.list: New file.
6840 * sysdeps/unix/inet/syscalls.list: New file.
6841 * sysdeps/unix/mman/syscalls.list: New file.
6842 * sysdeps/unix/sysv/syscalls.list: New file.
6843 * sysdeps/unix/sysv/irix4/syscalls.list: New file.
6844 * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
6845 * sysdeps/unix/sysv/linux/syscalls.list: New file.
6846 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
6847 * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
6848 * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
6849 * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
6850 * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
6851 * sysdeps/unix/acct.S: File removed.
6852 * sysdeps/unix/chdir.S: File removed.
6853 * sysdeps/unix/chmod.S: File removed.
6854 * sysdeps/unix/chown.S: File removed.
6855 * sysdeps/unix/chroot.S: File removed.
6856 * sysdeps/unix/close.S: File removed.
6857 * sysdeps/unix/configure: File removed.
6858 * sysdeps/unix/configure.in: File removed.
6859 * sysdeps/unix/dup.S: File removed.
6860 * sysdeps/unix/fcntl.S: File removed.
6861 * sysdeps/unix/fsync.S: File removed.
6862 * sysdeps/unix/getgid.S: File removed.
6863 * sysdeps/unix/getpid.S: File removed.
6864 * sysdeps/unix/getuid.S: File removed.
6865 * sysdeps/unix/ioctl.S: File removed.
6866 * sysdeps/unix/kill.S: File removed.
6867 * sysdeps/unix/link.S: File removed.
6868 * sysdeps/unix/lseek.S: File removed.
6869 * sysdeps/unix/open.S: File removed.
6870 * sysdeps/unix/ptrace.S: File removed.
6871 * sysdeps/unix/read.S: File removed.
6872 * sysdeps/unix/reboot.S: File removed.
6873 * sysdeps/unix/setgid.S: File removed.
6874 * sysdeps/unix/setuid.S: File removed.
6875 * sysdeps/unix/sync.S: File removed.
6876 * sysdeps/unix/umask.S: File removed.
6877 * sysdeps/unix/unlink.S: File removed.
6878 * sysdeps/unix/write.S: File removed.
6879 * sysdeps/unix/bsd/flock.S: File removed.
6880 * sysdeps/unix/bsd/getdtsz.S: File removed.
6881 * sysdeps/unix/bsd/getpagesize.S: File removed.
6882 * sysdeps/unix/bsd/killpg.S: File removed.
6883 * sysdeps/unix/bsd/profil.S: File removed.
6884 * sysdeps/unix/bsd/readv.S: File removed.
6885 * sysdeps/unix/bsd/settimeofday.S: File removed.
6886 * sysdeps/unix/bsd/sigblock.S: File removed.
6887 * sysdeps/unix/bsd/sigpause.S: File removed.
6888 * sysdeps/unix/bsd/sigsetmask.S: File removed.
6889 * sysdeps/unix/bsd/sigstack.S: File removed.
6890 * sysdeps/unix/bsd/sigvec.S: File removed.
6891 * sysdeps/unix/bsd/utimes.S: File removed.
6892 * sysdeps/unix/bsd/writev.S: File removed.
6893 * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
6894 * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
6895 * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
6896 * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
6897 * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
6898 * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
6899 * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
6900 * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
6901 * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
6902 * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
6903 * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
6904 * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
6905 * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
6906 * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
6907 * sysdeps/unix/bsd/osf/msync.S: File removed.
6908 * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
6909 * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
6910 * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
6911 * sysdeps/unix/bsd/sun/getdents.S: File removed.
6912 * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
6913 * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
6914 * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
6915 * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
6916 * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
6917 * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
6918 * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
6919 * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
6920 * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
6921 * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
6922 * sysdeps/unix/common/access.S: File removed.
6923 * sysdeps/unix/common/adjtime.S: File removed.
6924 * sysdeps/unix/common/dup2.S: File removed.
6925 * sysdeps/unix/common/fchmod.S: File removed.
6926 * sysdeps/unix/common/fchown.S: File removed.
6927 * sysdeps/unix/common/ftruncate.S: File removed.
6928 * sysdeps/unix/common/getgroups.S: File removed.
6929 * sysdeps/unix/common/getitimer.S: File removed.
6930 * sysdeps/unix/common/getpgid.S: File removed.
6931 * sysdeps/unix/common/getpriority.S: File removed.
6932 * sysdeps/unix/common/getrlimit.S: File removed.
6933 * sysdeps/unix/common/getrusage.S: File removed.
6934 * sysdeps/unix/common/gettimeofday.S: File removed.
6935 * sysdeps/unix/common/mkdir.S: File removed.
6936 * sysdeps/unix/common/readlink.S: File removed.
6937 * sysdeps/unix/common/rename.S: File removed.
6938 * sysdeps/unix/common/rmdir.S: File removed.
6939 * sysdeps/unix/common/select.S: File removed.
6940 * sysdeps/unix/common/setgroups.S: File removed.
6941 * sysdeps/unix/common/setitimer.S: File removed.
6942 * sysdeps/unix/common/setpgid.S: File removed.
6943 * sysdeps/unix/common/setpriority.S: File removed.
6944 * sysdeps/unix/common/setregid.S: File removed.
6945 * sysdeps/unix/common/setreuid.S: File removed.
6946 * sysdeps/unix/common/setrlimit.S: File removed.
6947 * sysdeps/unix/common/swapon.S: File removed.
6948 * sysdeps/unix/common/symlink.S: File removed.
6949 * sysdeps/unix/common/truncate.S: File removed.
6950 * sysdeps/unix/common/vhangup.S: File removed.
6951 * sysdeps/unix/inet/accept.S: File removed.
6952 * sysdeps/unix/inet/bind.S: File removed.
6953 * sysdeps/unix/inet/connect.S: File removed.
6954 * sysdeps/unix/inet/gethostid.S: File removed.
6955 * sysdeps/unix/inet/gethostname.S: File removed.
6956 * sysdeps/unix/inet/getpeername.S: File removed.
6957 * sysdeps/unix/inet/getsockname.S: File removed.
6958 * sysdeps/unix/inet/getsockopt.S: File removed.
6959 * sysdeps/unix/inet/listen.S: File removed.
6960 * sysdeps/unix/inet/recv.S: File removed.
6961 * sysdeps/unix/inet/recvfrom.S: File removed.
6962 * sysdeps/unix/inet/recvmsg.S: File removed.
6963 * sysdeps/unix/inet/send.S: File removed.
6964 * sysdeps/unix/inet/sendmsg.S: File removed.
6965 * sysdeps/unix/inet/sendto.S: File removed.
6966 * sysdeps/unix/inet/sethostid.S: File removed.
6967 * sysdeps/unix/inet/sethostname.S: File removed.
6968 * sysdeps/unix/inet/setsockopt.S: File removed.
6969 * sysdeps/unix/inet/shutdown.S: File removed.
6970 * sysdeps/unix/inet/socket.S: File removed.
6971 * sysdeps/unix/inet/socketpair.S: File removed.
6972 * sysdeps/unix/mman/madvise.S: File removed.
6973 * sysdeps/unix/mman/mmap.S: File removed.
6974 * sysdeps/unix/mman/mprotect.S: File removed.
6975 * sysdeps/unix/mman/msync.S: File removed.
6976 * sysdeps/unix/mman/munmap.S: File removed.
6977 * sysdeps/unix/sysv/alarm.S: File removed.
6978 * sysdeps/unix/sysv/ftime.S: File removed.
6979 * sysdeps/unix/sysv/nice.S: File removed.
6980 * sysdeps/unix/sysv/pause.S: File removed.
6981 * sysdeps/unix/sysv/poll.S: File removed.
6982 * sysdeps/unix/sysv/s_getdents.S: File removed.
6983 * sysdeps/unix/sysv/signal.S: File removed.
6984 * sysdeps/unix/sysv/stime.S: File removed.
6985 * sysdeps/unix/sysv/time.S: File removed.
6986 * sysdeps/unix/sysv/times.S: File removed.
6987 * sysdeps/unix/sysv/ulimit.S: File removed.
6988 * sysdeps/unix/sysv/uname.S: File removed.
6989 * sysdeps/unix/sysv/utime.S: File removed.
6990 * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
6991 * sysdeps/unix/sysv/irix4/msync.S: File removed.
6992 * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
6993 * sysdeps/unix/sysv/irix4/signal.S: File removed.
6994 * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
6995 * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
6996 * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
6997 * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
6998 * sysdeps/unix/sysv/linux/fork.S: File removed.
6999 * sysdeps/unix/sysv/linux/getpgid.S: File removed.
7000 * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
7001 * sysdeps/unix/sysv/linux/getsid.S: File removed.
7002 * sysdeps/unix/sysv/linux/gtty.S: File removed.
7003 * sysdeps/unix/sysv/linux/mlock.S: File removed.
7004 * sysdeps/unix/sysv/linux/mlockall.S: File removed.
7005 * sysdeps/unix/sysv/linux/mount.S: File removed.
7006 * sysdeps/unix/sysv/linux/munlock.S: File removed.
7007 * sysdeps/unix/sysv/linux/munlockall.S: File removed.
7008 * sysdeps/unix/sysv/linux/pipe.S: File removed.
7009 * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
7010 * sysdeps/unix/sysv/linux/setpgid.S: File removed.
7011 * sysdeps/unix/sysv/linux/setsid.S: File removed.
7012 * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
7013 * sysdeps/unix/sysv/linux/sigpending.S: File removed.
7014 * sysdeps/unix/sysv/linux/stty.S: File removed.
7015 * sysdeps/unix/sysv/linux/umount.S: File removed.
7016 * sysdeps/unix/sysv/linux/wait4.S: File removed.
7017 * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
7018 * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
7019 * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
7020 * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
7021 * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
7022 * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
7023 * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
7024 * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
7025 * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
7026 * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
7027 * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
7028 * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
7029 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
7031 * io/mknod.c: New file.
7033 * Makerules (COMPILE.s): New variable.
7035 * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
7036 make-syscalls.sh and include it.
7037 [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
7039 * sysdeps/unix/make-syscalls.sh: New file.
7041 * Makerules (COMPILE.S): New variable.
7043 Wed Jan 17 11:04:58 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7045 * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
7046 _STAT_VER_SVR4, _STAT_VER): New macros.
7047 (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
7049 * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
7052 * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
7053 (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
7054 [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
7055 as `extern inline's calling the `x' functions.
7056 * io/fstat.c: New file.
7057 * io/lstat.c: New file.
7058 * io/stat.c: New file.
7059 * sysdeps/generic/lstat.c: File removed.
7060 * sysdeps/generic/lxstat.c: New file.
7061 * sysdeps/mach/hurd/fstat.c: File removed.
7062 * sysdeps/mach/hurd/fxstat.c: New file.
7063 * sysdeps/mach/hurd/lstat.c: File removed.
7064 * sysdeps/mach/hurd/lxstat.c: New file.
7065 * sysdeps/mach/hurd/mknod.c: File removed.
7066 * sysdeps/mach/hurd/stat.c: File removed.
7067 * sysdeps/mach/hurd/xmknod.c: New file.
7068 * sysdeps/mach/hurd/xstat.c: New file.
7069 * sysdeps/stub/fstat.c: File removed.
7070 * sysdeps/stub/fxstat.c: New file.
7071 * sysdeps/stub/lstat.c: File removed.
7072 * sysdeps/stub/lxstat.c: New file.
7073 * sysdeps/stub/mknod.c: File removed.
7074 * sysdeps/stub/stat.c: File removed.
7075 * sysdeps/stub/xmknod.c: New file.
7076 * sysdeps/stub/xstat.c: New file.
7077 * sysdeps/unix/common/lstat.S: File removed.
7078 * sysdeps/unix/common/lxstat.c: New file.
7079 * sysdeps/unix/fstat.S: File removed.
7080 * sysdeps/unix/fxstat.c: New file.
7081 * sysdeps/unix/mknod.S: File removed.
7082 * sysdeps/unix/stat.S: File removed.
7083 * sysdeps/unix/sysv/linux/fstat.c: File removed.
7084 * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
7085 * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
7086 * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
7087 * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
7088 * sysdeps/unix/sysv/linux/lstat.c: File removed.
7089 * sysdeps/unix/sysv/linux/mknod.c: File removed.
7090 * sysdeps/unix/sysv/linux/stat.c: File removed.
7091 * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
7092 * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
7093 * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
7094 * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
7095 * sysdeps/unix/xmknod.c: New file.
7096 * sysdeps/unix/xstat.c: New file.
7097 * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
7098 * misc/Makefile (routines): Remove mknod.
7100 * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
7101 Add missing ; in little-endian case.
7103 * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
7104 Define this instead of ELF_DYNAMIC_DO_RELA.
7106 * sysdeps/unix/sysv/time.S: Moved from sysv4.
7107 * sysdeps/unix/sysv/irix4/time.S: File removed.
7109 * sysdeps/unix/sysv/linux/signum.h: Moved from
7110 sysdeps/unix/sysv/linux/i386.
7111 (_NSIG): Move inside #ifdef _SIGNAL_H.
7113 Tue Jan 16 17:37:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7115 * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
7116 * sysdeps/unix/telldir.c: Fix position calculation to account for
7117 buffered data properly.
7119 * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
7122 * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
7123 * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
7125 [! HAVE_INITFINI]: Only make it a constructor in this case.
7127 * gmon/Makefile (CFLAGS-mcount.c): New variable.
7128 (mcount.po): New target.
7130 * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
7132 * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
7133 (initfini): Compile initfini.c with -fPIC.
7135 Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7137 * sysdeps/mips/bytesex.h: Add default byte sex. By Ralf Baechle.
7139 * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
7140 member of `struct timex' instead of `modes'. From Andreas Schwab.
7142 * sysdeps/unix/sysv/linux/mknod.c: New file. Generic C version.
7143 * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
7145 * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
7146 [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
7147 [$(subdir) = misc] (headers): Append sys/mount.h.
7149 * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
7150 New files. Implement system calls.
7151 * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
7153 * sysdeps/unix/sysv/linux/ptrace.c: New file. Wrapper around
7155 * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
7157 * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
7158 types for i386/Linux.
7160 Sun Jan 14 17:51:09 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7162 * MakeTAGS (all-sources, all-headers): Always search the
7163 current directory first.
7165 * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
7168 * stdio-common/vfscanf.c (inchar, conv_error, input_error,
7169 memory_error): Add cast to void to avoid gcc warning.
7170 (vfscanf): Rewrite character class parsing to make it more efficient.
7172 * misc/efgcvt_r.c (ecvt_r): Handle negative values.
7174 * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
7175 * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
7176 sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
7178 * stdio-common/printf_fp.c (__printf_fp): Fix parameter
7181 * sysdeps/generic/putenv.c (putenv): Fix second argument of
7184 * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
7185 * sysdeps/ieee754/cabs.c: Don't define hypot here.
7187 * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
7188 definition of ieee_nan alternative.
7190 * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
7193 * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
7195 * sysdeps/m68k/fpu/__math.h: Include <errno.h>. Replace obsolete
7196 __CONSTVALUE by attribute.
7197 (floor): Round to negative infinity.
7198 (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
7199 clash when compiling source.
7200 (pow): Handle x == 0 and x < 0.
7201 (ceil, __isinf, __isnan): Fix register constraints.
7202 (__isinfl, __isnanl): Added.
7203 * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
7204 sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
7205 sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
7207 * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
7210 * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
7213 * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
7215 (clock): Don't multiply by CLOCKS_PER_SEC.
7217 * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
7219 * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
7222 * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
7224 * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
7226 * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
7228 Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7230 * stdlib/strtol.c: Return correct pointer for strings
7231 like "0xyz" and base 0 or 16.
7233 * string/strxfrm.c: Handle case for LENGTH == 0 correct.
7235 * sunrpc/etc.rpc: Add some more known protocols.
7237 Fri Jan 12 13:40:01 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7239 * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
7241 * posix/glob.c (glob): Add parens in glob call flags arg for
7244 * string/string.h (strdupa): New macro.
7246 * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
7247 terminator on empty set. From drepper.
7249 Thu Jan 11 13:09:20 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7251 * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
7252 referent for STB_LOCAL.
7254 Wed Jan 10 10:11:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7256 * time/africa, time/antarctica, time/asia, time/australasia,
7257 time/europe, time/northamerica, time/pacificnew, time/solar87,
7258 time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
7260 Tue Jan 9 16:10:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7262 * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
7263 segment to find location, mprotect excess region to no access,
7266 * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
7267 KERN_NO_SPACE for fixed location, deallocate it and try again.
7269 Mon Jan 8 17:43:23 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7271 * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
7272 * locale/hash.c: Renamed to locale/locfile-hash.c.
7274 Sat Jan 6 16:39:14 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7276 * Makefile (subdirs): Added db.
7278 * resolv/Makefile (routines): Add res_data.
7279 * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
7280 Updated from BIND 4.9.3 final release.
7282 * elf/dynamic-link.h (elf_get_dynamic_info): Handle
7283 processor-specific tags.
7284 (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
7286 * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
7287 * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
7289 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
7290 arg LAZY. Only do our work if LAZY and there is a DT_JMPREL record.
7291 * elf/dl-reloc.c (_dl_relocate_object): Call
7292 elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
7294 * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
7295 Align end of load segment only to page size, not to segment alignment.
7297 Thu Jan 4 11:35:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7299 * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
7300 preemption interface.
7302 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7303 Use _hurdsig_catch_memory_fault.
7305 * hurd/Makefile (headers): Add hurd/sigpreempt.h.
7306 (sig): Add catch-signal.
7308 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
7309 Rewritten using a preempter in new interface.
7310 * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
7311 (_hurdsig_catch_memory_fault): New macro.
7313 Wed Jan 3 20:23:42 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7315 * hurd/catch-signal.c: New file.
7317 * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
7319 * hurd/hurdsig.c: Use new hurdfault.h interface.
7320 (abort_all_rpcs): Mutate return value to EINTR in threads whose
7321 replies we will wait for.
7323 * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
7326 Wed Jan 3 19:17:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
7328 * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
7329 to auth_makeauth() in the right order.
7331 Wed Jan 3 17:19:04 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7333 * sysdeps/generic/strsep.c: Rewritten.
7335 * sysdeps/mach/hurd/fork.c: Use a different workaround for the
7336 suspended page fault deadlock kernel bug: thread_abort our signal
7337 thread first thing after proc_dostop.
7339 * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
7340 recognize rootness properly.
7342 Tue Jan 2 00:50:10 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7344 * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
7345 (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
7346 * hurd/hurd/sigpreempt.h: New file.
7347 * hurd/preempt-sig.c: Rewritten with new interface.
7348 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
7349 preempters being unwound past.
7350 * hurd/hurdsig.c: Use new signal preemption interface.
7352 * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
7355 * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
7358 * misc/queue.h: New file, incorporated from 4.4BSD.
7359 * misc/Makefile (headers): Add queue.h.
7361 * posix/sys/types.h [__USE_BSD]: Include endian.h.
7363 * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
7366 Thu Dec 28 10:21:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7368 * sysdeps/generic/confname.h: Define all names as self-referential
7369 macros so #ifdef works.
7371 * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
7372 of _hurd_signal_preempters[SIGNO].
7374 Mon Dec 25 20:56:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7376 * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
7377 EADDRINUSE. If translated node doesn't grok ifsock protocol,
7380 * sysdeps/mach/hurd/connect.c: Make address arg
7381 `const struct sockaddr_un *'.
7382 The redecl is kosher and avoids another variable for AF_LOCAL case.
7383 * sysdeps/mach/hurd/sendto.c: Likewise.
7384 * sysdeps/mach/hurd/bind.c: Likewise.
7386 * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
7387 code for GCC >= 2.7; use __transparent_union__ for name safety;
7388 add several sockaddr flavors.
7389 (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
7390 constructing the transparent union declarations.
7391 (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
7392 (bind, connect, sendto): Make the sockaddr argument use that.
7394 Fri Dec 22 00:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7396 * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
7398 * sysdeps/mach/hurd/setuid.c: Likewise.
7400 * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
7402 * sysdeps/mach/hurd/setgid.c: Likewise.
7403 * sysdeps/mach/hurd/setreuid.c: Likewise.
7404 * sysdeps/mach/hurd/setregid.c: Likewise.
7405 * sysdeps/mach/hurd/setegid.c: Likewise.
7406 * sysdeps/mach/hurd/seteuid.c: Likewise.
7408 * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
7409 proc_dostop call to work around kernel paging bug.
7411 Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com>
7413 * stdio-common/vfscanf.c: Correctly handle white space skipping.
7414 * stdio-common/Makefile (tests): Add bug11.
7415 * stdio-common/bug11.c: New file.
7417 Thu Dec 21 12:19:32 1995 Miles Bader <miles@gnu.ai.mit.edu>
7419 * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
7420 instead of putting it (and other uids) in the gids and leaving the
7423 Wed Dec 20 18:23:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7425 * stdio/internals.c (flushbuf): If the target is -1, always
7426 discard the buffer of read data.
7427 Only set TWIDDLED flag in !ALIGNED case.
7428 Never increment target or offset when old value is -1.
7430 Tue Dec 19 17:00:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7432 * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
7435 Mon Dec 18 13:40:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7437 * stdio/fread.c: Don't increment __offset when it's -1.
7439 * elf/rtld.c (dl_main): Prepend tab to "statically linked". Exit
7442 * misc/err.c (vwarnx, vwarn): Fix major brainos.
7444 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
7447 Sun Dec 17 15:56:35 1995 Miles Bader <miles@gnu.ai.mit.edu>
7449 * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
7451 Sat Dec 16 10:33:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7453 * Makerules: Use $(do-install-so) for installing shared objects.
7454 (do-install-so): New canned sequence. Make a symlink LIB.so after
7455 installing LIB.so.VERSION.
7457 * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
7459 Fri Dec 15 04:41:22 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7461 * stdio-common/Makefile (tests): Add bug10.
7462 * stdio-common/bug10.c: New file. From HJ Lu.
7464 * stdio-common/tstdiomisc.c: Make more test-suite like: exit
7465 status tells about successful run.
7467 * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
7469 Correct handling of trailing white spaces in format + EOF.
7471 Fri Dec 15 01:31:56 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7473 * stdio-common/Makefile (tests): Add bug8 and bug9.
7474 * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
7476 * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
7478 * stdlib/strtod.c: Correct spelling: nominator -> numerator.
7479 Thanks to Jim Meyering.
7481 Sat Nov 25 06:05:12 1995 H.J. Lu <hjl@nynexst.com>
7483 * stdio-common/vfscanf.c: Always check width !=0.
7484 Correctly handle %%.
7486 Thu Dec 14 02:28:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7488 * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
7489 and cast STREAM to DIR * before passing to readdir and closedir.
7491 Wed Dec 13 22:06:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7493 * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
7494 after aborting RPCs but before calling proc_mark_stop.
7496 Mon Dec 11 20:07:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7498 * posix/glob.c [! STDC_HEADERS]: Declare getenv.
7499 (glob): Avoid using function as value.
7501 * elf/rtld.c (dl_main): When mapping argument executable, set
7502 l_name to "", not l_libname.
7503 After loading DT_NEEDED library, set its l_type to lt_library.
7505 * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
7506 VM_INHERIT. We can't handle MAP_INHERIT easily.
7507 Handle non-page-aligned addresses if congruent to offset.
7509 * elf/dl-init.c: Skip the initializer for l_type lt_executable
7510 with l_name "". Start at _dl_loaded; don't skip the first element.
7512 * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
7513 (MAP_COPY): Define to MAP_PRIVATE if undefined.
7514 (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
7515 If file it ET_EXEC, set its l_type to lt_executable.
7517 Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7519 * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
7521 Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7523 * locale/error.c, locale/error.h: Files removed.
7524 * locale/Makefile (distribute): Remove error.h.
7525 (lib-modules): Remove error.
7527 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
7528 magic, return ENXIO if no ctty.
7530 * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
7531 mapping if vm_map fails for that reason.
7533 * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
7534 GLOB_TILDE, GLOB_NOMAGIC.
7535 (glob): Use stat instead of lstat to determine directoriness.
7536 * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
7538 (__GLOB_FLAGS): Include them.
7539 (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
7542 * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
7544 * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
7545 define all the bit values.
7546 (MAP_*, MCL_*): Macros removed.
7548 Thu Dec 7 02:27:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7550 * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
7551 Updated from BIND 4.9.3-BETA27.
7553 Wed Dec 6 18:44:01 1995 Miles Bader <miles@gnu.ai.mit.edu>
7555 * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
7557 * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
7558 we get a delayed reply.
7559 Only grab values out of entries in TYPES that have SELECT_RETURNED
7560 turned on, and turn it on whenever an rpc returns.
7561 Only clear bits in the user's fdsets -- those needing to be set
7563 Use SELECT_ALL in appropiate places.
7564 (SELECT_RETURNED, SELECT_ALL): New macros.
7566 Wed Dec 6 09:10:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7568 * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
7570 * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
7572 Tue Dec 5 14:00:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7574 * misc/Makefile (headers): Add error.h, err.h.
7575 (routines): Add error, err.
7576 (gpl2lgpl): New variable.
7577 * misc/err.c: New file.
7578 * misc/err.h: New file.
7579 * misc/error.c, misc/error.h: New files.
7581 * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
7583 * Makeconfig (+link): Translate libc% from $^, not just libc.a.
7584 (link-libc): Append $(libc.so-version) to libc.so.
7585 (built-program-cmd): Fix comma usage.
7586 * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
7587 symlink to libc.so in the build directory.
7588 * Rules ($(others) $(tests)): Depend on the library that appears
7590 (%.out): Use $(built-program-cmd) in commands.
7592 * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
7594 * sysdeps/generic/setenv.c: Added canonical portability cruft.
7595 (setenv): Use realloc on LAST_ENVIRON instead of always copying.
7596 (unsetenv): New function.
7597 * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
7598 * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
7600 Tue Dec 5 02:27:32 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7602 * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
7604 * libio/iofscanf.c: Remove file.
7606 * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
7609 * libio/iopopen.c: New file from GNU libio.
7611 * libio/memstream.c: Fixed bug in fclose handling. Instead of
7612 providing a close callback we need a finish callback.
7614 * libio/pclose.c: New file. Derived from popen.c in GNU libio.
7616 * posix/gnu/types.h: Fixed typo.
7618 * stdio-common/errnobug.c: fputs returns EOF in error case. Do
7621 * stdio-common/printf-parse.h (parse_one_spec): Do not force
7622 padding with ' ' if precision is given. Fix by HJ Lu.
7624 * stdio-common/printf_fp.c: Fix comment.
7626 * stdio-common/tfformat.c, stdio-common/tiformat.c,
7627 stdio-common/tstdiomisc.c: New files from GNU libio test suite.
7629 * stdio-common/tstgetln.c: Provide ssize_t type when testing
7632 * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
7633 (vfprintf): Cleasr args_type array before using it.
7634 When printing 0 as an integer with precision 0 nothing must be
7635 written for the number.
7636 Based on patch by HJ Lu.
7638 * stdio-common/vfscanf.c: Remove fixed input buffer. Now we
7639 have a dynamically extended buffer.
7641 * stdlib/strtod.c: Merge with version in Linux libc. This fixes
7642 some bugs with handling of very small numbers and has different
7643 solution for formaer patches.
7645 * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
7646 macros r1 and r2 to t1, and t2 resp. This is necessary because
7647 glibc headers also define r1.
7649 Mon Dec 4 12:10:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7651 * stdlib/gen-mpn-copy (translations): Updated for new layout in
7654 * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
7656 (malloc): Caller changed.
7657 * malloc/realloc.c (realloc): Call __malloc_initialize if
7658 necessary, before checking hook.
7659 * malloc/malloc.h: Declare __malloc_initialize.
7661 * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
7662 as integer_t arg in RPC.
7664 Sat Dec 2 03:47:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7666 * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
7667 (_hurd_set_brk): Try to allocate more space when we run out.
7669 * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
7670 zero and examine it again.
7671 * sysdeps/unix/sysv/linux/i386/brk.c: New file.
7672 * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
7673 * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
7674 * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
7675 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
7676 Invoke this macro before calling DL_MAIN.
7678 * malloc/malloc.c (malloc): Do initialization here, before
7680 (_malloc_internal): Don't do it here.
7682 Wed Nov 29 12:30:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7684 * libio/vsnprintf.c (__vsnprintf): Define as alias.
7685 * libio/iovsscanf.c (__vsscanf): Define as alias.
7686 * asprintf.c: Remove libio adaptation code added by drepper.
7687 * dprintf.c: Likewise.
7688 * printf.c: Likewise.
7689 * scanf.c: Likewise.
7690 * snprintf.c: Likewise.
7691 * sprintf.c: Likewise.
7692 * sscanf.c: Likewise.
7693 * vprintf.c: Likewise.
7694 * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
7696 (vfscanf): Define unconditionally.
7698 * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
7701 * misc/getpass.c: Write a newline after reading the unechoed
7704 Mon Nov 27 19:24:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7706 * posix/Makefile (routines): Add getsid.
7707 * sysdeps/unix/sysv/linux/getsid.S: New file.
7708 * sysdeps/mach/hurd/getsid.c: New file.
7709 * sysdeps/stub/getsid.c: New file.
7710 * posix/unistd.h [__USE_GNU]: Declare getsid.
7712 Sun Nov 26 12:44:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7714 * libc-symbols.h (N_): New macro.
7716 Sat Nov 25 02:48:47 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7718 * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
7719 malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
7720 resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
7721 sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
7722 sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
7723 sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
7724 sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
7725 sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
7728 Sun Nov 26 02:00:02 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7730 * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
7732 Thu Nov 23 02:21:55 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7734 * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
7736 * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
7737 mlock, munlock, mlockall, and munlockall.
7739 Thu Nov 23 18:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7741 * configure.in (--enable-libio): Set $stdio based on $enableval,
7742 not always to libio.
7744 Thu Nov 23 18:06:48 1995 Richard Stallman <rms@gnu.ai.mit.edu>
7746 * malloc/malloc.c (_malloc_internal): Can't use
7747 get_contiguous_space when the heap info table
7748 will be growing. Account for new contiguous space in _heaplimit.
7750 Wed Nov 22 12:37:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7752 * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
7755 * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
7756 alias for _IO_vfprintf.
7758 * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
7760 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
7761 __fpu_control instead of ___fpu_control.
7762 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
7763 (___fpu_control): Renamed to __fpu_control.
7764 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
7765 * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
7767 * elf/dl-minimal.c: New file.
7768 * elf/Makefile (rtld-routines): Add dl-minimal.
7769 * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
7770 Functions moved to dl-minimal.c.
7771 * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
7772 sigjmp_save, longjmp): Likewise.
7774 * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
7775 to &_end, regardless of PIC.
7777 * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
7779 Tue Nov 21 14:12:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7781 * malloc/malloc.c (align): Don't check contiguity and call abort.
7783 * hurd/hurdsig.c (post_reply): Function removed.
7784 (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
7785 Take single callback fn arg instead of reply port and type.
7786 (_hurd_internal_post_signal): Callers changed.
7787 Cache reply stub fn ptr in local var before UNTRACED might be changed.
7789 * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
7790 PROT_READ|PROT_WRITE copy mapping. Pass a proper vm_inherit_t to
7793 * elf/rtld.c (_dl_start): For --list, do output and exit before
7796 Mon Nov 20 16:19:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7798 * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
7799 get .c and .h files.
7801 * malloc/malloc.c (align): Use abort instead of assert.
7803 Sun Nov 19 18:23:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7805 * Makeconfig (+includes): Add $($(stdio)-include).
7806 (libio-include): New variable.
7808 * stdlib/strtod.c: Put weak_symbol after function defn.
7809 * stdlib/strtol.c: Likewise.
7811 * configure.in (--enable-libio): If not present, set $stdio to
7812 "default". Move stdio/libio check to end, so sysdeps fragments
7813 can affect it. Reset $stdio to "stdio" if it's "default".
7814 * sysdeps/unix/sysv/linux/configure: New file.
7816 Sat Nov 18 16:46:01 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7818 * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
7819 libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
7820 libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
7821 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
7822 libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
7823 libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
7824 libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
7825 libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
7826 libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
7827 libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
7828 libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
7829 libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
7830 libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
7831 libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
7832 libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
7833 New files. Slightly modified version from Linux libc.
7835 * libio/memstream.c, libio/vdprintf.c: New files for functions not
7836 (yet) part of GNU libio.
7838 * libio/iofopncook.c: Implementation of `fopencookie', mainly written
7841 * stdio-common/getline.c: Adapted to libio.
7842 * stdio-common/snprintf.c: Adapted to libio.
7843 * stdio-common/vfprintf.c: Adapted to libio.
7844 * stdio-common/vfscanf.c: Adapted to libio.
7845 * sysdeps/posix/tempname.c: Adapted to libio.
7847 Fri Nov 17 17:57:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7849 * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
7851 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7854 * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
7855 (_hurdsig_fault_init): Remove #if 0 from setting exception port.
7856 Insert send right for SIGEXC before thread_set_special_port.
7857 * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
7858 (_hurdsig_init): Remove #if 0 from setting exception port.
7860 * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
7861 HURD_MSGPORT_RPC macro.
7863 Thu Nov 16 06:07:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7865 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7867 (_dl_sysdep_start): Move cleanup code there.
7869 * Makeconfig (default-rpath): New variable.
7870 (link-libc): Use it.
7871 * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
7872 * elf/rtld.c (_dl_rpath): New variable.
7873 (_dl_start): Set it from rtld_map's DT_RPATH.
7874 Call _dl_setup_hash on rtld_map.
7875 (dl_main): Cache address of _exit in variable before relocating,
7876 and use that in later calls. Call _dl_sysdep_start_cleanup before
7877 relocating. Keep track of dependency order while loading; remove
7878 rtld_map from chain, and reinsert in proper order if there is a
7881 * sysdeps/generic/Makefile (make_siglist): Pass
7882 -DSIGNUM_H=... with config's signum.h location.
7883 * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
7885 (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
7886 (main): Deansideclize output.
7888 * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
7889 of DEFAULT_RPATH macro.
7890 * elf/Makefile: Undo last change.
7892 * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
7894 Wed Nov 15 19:22:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7896 * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
7899 * elf/Makefile (default-rpath): New variable.
7900 (CPPFLAGS): Append -DDEFAULT_RPATH=....
7901 * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
7902 hard-coded "/lib:/usr/lib".
7904 * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
7906 (_dl_sysdep_start): If passed user entry is zero and
7907 EXEC_STACK_ARGS flag set, reset user entry to &_start.
7909 * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
7912 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
7913 repeat weak decl using weak_symbol macro, in case using broken GCC
7916 Wed Nov 15 18:49:55 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7918 * sysdeps/i386/isnanl.c: New file.
7919 * sysdeps/i386/isinfl.c: New file.
7921 Tue Nov 14 18:44:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7923 * malloc/free.c (free): Moved null and aligned_blocks checks
7924 inside _free_internal.
7926 Mon Nov 13 15:23:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7928 * malloc/malloc.c (morecore): Fix inverted test in allocating new
7931 * malloc/malloc.c (align): Fix assertion.
7933 * malloc/malloc.c: Include assert.h.
7935 * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
7937 * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
7938 (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
7940 Fri Nov 10 14:15:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7942 * malloc/malloc.c (align): Assert that space for alignment
7943 adjustment is same original space.
7945 * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
7946 arg to vm_address_t.
7948 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
7949 skip straight to pending check. When UNTRACED, resume process
7950 from suspension first.
7952 * intl/Makefile (headers): New variable, libintl.h.
7953 [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
7954 * configure.in: Check for --with-gettext arg.
7956 Fri Nov 10 13:51:30 1995 Richard Stallman <rms@gnu.ai.mit.edu>
7958 * malloc/malloc.c (get_contiguous_space): New function.
7959 (morecore): Rewrite allocating new malloc info table.
7960 (_malloc_internal): Use get_contiguous_space.
7962 Fri Nov 10 13:03:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7964 * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
7965 _hurd_msgport to be destroyed.
7967 * Makerules (installed-libcs): Filter out %_pic.a.
7969 * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
7970 to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
7972 * hurd/Makefile (user-interfaces): Add hurd/process_request.
7974 Wed Nov 8 16:31:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7976 * termios/Makefile (headers): Add sys/ttychars.h.
7977 * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
7980 * signal/signal.h [__USE_BSD] (sig_t): New typedef.
7982 Wed Nov 8 15:12:47 1995 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
7984 * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
7985 proc server that we are now traced.
7987 Tue Nov 7 12:29:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7989 * elf/Makefile (ldd): Make it executable.
7991 * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
7993 * Makeconfig (slibdir): New variable.
7994 * Makerules (install): Install libc.so in $(slibdir).
7995 * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
7998 * elf/linux-compat.c: New file.
7999 * elf/Makefile (distribute): Add linux-compat.c.
8000 (generated): Add librtld.so.
8001 [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
8002 [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
8003 (librtld.so): New target.
8004 (ld.so, ld-linux.so.1): Make from librtld.so.
8006 * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
8007 call our own DT_INIT if we have one (and then clear it).
8008 (__dgettext): New weak function.
8010 * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
8013 * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
8014 instead of snprintf.
8016 * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
8019 * elf/rtld.c (rtld_map): New static variable.
8020 (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
8021 bootstrapping. Then copy data into `rtld_map'.
8022 (dl_main): Finish filling in rtld_map and link it into the chain,
8023 instead of allocating a new structure.
8024 (dl_main): Call _dl_compat_init if it is defined (use weak ref).
8026 * elf/dlsym.c: Fix last change: move REF out of `doit'.
8028 Mon Nov 6 16:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8030 * elf/dlsym.c: Return the proper value, not just the defining
8033 Sun Nov 5 16:09:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8035 * stdio-common/vfprintf.c (%c): Count the character itself towards
8036 the field width in all cases.
8038 * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
8039 __vm_deallocate arg to vm_address_t.
8041 Fri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8043 * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
8044 socket_create_address.
8045 * sysdeps/mach/hurd/connect.c: Likewise.
8046 * sysdeps/mach/hurd/bind.c: Likewise.
8048 * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
8049 args to proc_getprocinfo.
8050 * sysdeps/mach/hurd/getpriority.c: Likewise.
8052 * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
8054 Thu Nov 2 19:24:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8056 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
8058 Tue Oct 31 00:07:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8060 * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
8061 PI_FETCH_TASKINFO to proc_getprocinfo and through
8062 _hurd_priority_which_map.
8064 * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
8065 _hurd_priority_which_map.
8066 * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
8067 passed through to proc_getprocinfo RPC.
8068 * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
8070 * sysdeps/mach/hurd/group_member.c: New file.
8071 * sysdeps/generic/group_member.c: New file.
8073 * Makerules (lib-noranlib): Don't depend on $(install-lib).
8075 * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
8077 Mon Oct 30 12:33:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8079 * Rules (others): Depend on $(extra-objs).
8081 * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
8082 * posix/Makefile (routines): Add group_member.
8084 * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
8086 * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
8087 SIG operand in asm so it must be a register.
8088 Add dead return to quiet gcc warning.
8090 * Makerules (sysd-rules): Write a defn for sysd-rules-done.
8091 [! sysd-rules-done]: Inhibit deps.
8093 Thu Oct 26 23:11:11 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8095 * sysdeps/unix/sysv/linux/poll.c: Don't define as stub. Use
8096 simulation of system call using select.
8098 * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
8100 * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
8102 * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
8103 name usage (new->act, old->oact).
8104 Correct asm statement because of gcc strangeness.
8106 * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
8108 * sunrpc/clnt_perr.c: Remove declaration of sys_errlist. They
8109 conflict with the ones in stdio.h.
8111 * string/tester.c: %Z is no complete format. Change to %Zd.
8113 Thu Oct 26 18:13:33 1995 Miles Bader <miles@gnu.ai.mit.edu>
8115 * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
8116 * sysdeps/mach/hurd/link.c (__link): Ditto.
8117 * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
8118 * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
8119 Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
8121 Thu Oct 26 00:11:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8123 * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
8125 * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
8126 on syscall_error. For PIC, it is a local label;
8127 for non-PIC, JUMPTARGET expands to the unadorned name anyway.
8128 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
8129 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8130 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8131 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
8132 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8133 * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
8135 Thu Oct 26 03:01:22 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8137 * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
8138 comment to the necessary ones. Add _readv and _writev.
8140 * sysdeps/unix/configure.in: Change syntax for system call test
8141 candidates and adapt sed script for this. Now use : to separate
8142 syscall name and file name.
8144 * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
8145 number is now set is DO_CALL. So call with additional argument.
8146 (DO_CALL): Takes an additional argument. Load system call
8147 number according to new argument.
8148 (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
8149 * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
8150 locally using SYSCALL_ERROR_HANDLER macro.
8151 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8152 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
8153 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8154 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
8155 * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
8156 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8157 Don't use DO_CALL macro; instead use lower level macros for better
8160 * sysdeps/unix/sysv/linux/sigaction.h: New file.
8161 * sysdeps/unix/sysv/linux/sigaction.S: File removed.
8162 * sysdeps/unix/sysv/linux/signal.S: File removed.
8164 Wed Oct 25 14:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8166 * hurd/hurdstartup.c (_hurd_startup): Use new
8167 exec_startup_get_info RPC from exec_startup.defs
8168 in place of old exec_startup from exec.defs. Remove kludge to
8169 guess user entry and phdr locations, since the new RPC gives us
8172 * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
8173 * sysdeps/generic/_strerror.c: Undo last change.
8175 * sysdeps/unix/sysv/linux/stat.c: New file.
8176 * sysdeps/unix/sysv/linux/fstat.c: New file.
8177 * sysdeps/unix/sysv/linux/lstat.c: New file.
8178 * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
8179 * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
8180 * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
8182 Tue Oct 24 15:22:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8184 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8186 (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
8188 * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
8191 * Makeconfig (built-program-cmd): New variable.
8192 * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
8193 * time/Makefile (zic-cmd): Likewise.
8195 * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
8197 * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
8198 * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
8199 make `others' rather than `lib-noranlib' depend on the libraries.
8201 * sysdeps/unix/configure.in: Check for fchdir syscall.
8202 Improve sed script to allow / on rhs without / on lhs.
8204 Thu Oct 19 03:47:32 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8206 * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
8208 * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
8210 * sysdeps/unix/sysv/linux/select.S: New file.
8212 Wed Oct 18 03:33:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8214 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
8215 SYSCALL_PIC_SETUP before jumping to syscall_error.
8216 * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
8217 (PSEUDO): Use it before jumping to syscall_error.
8218 * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
8219 expect it in %ebx on entry. Pop old %ebx value off stack after
8222 * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
8225 * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
8227 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
8228 `fd/', pass the right pointer to strtol to parse the number.
8230 Tue Oct 17 23:00:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8232 * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
8235 Tue Oct 17 19:51:17 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8237 * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
8238 register %ebx before calling __xstat through PLT.
8240 * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
8242 * sysdeps/unix/sysv/linux/sigset.h: Remove file.
8244 Tue Oct 17 01:21:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8246 * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
8248 * hurd/hurdlookup.c: Likewise.
8250 * hurd/hurd/signal.h: Declare hurd_preempt_signals and
8251 hurd_unpreempt_signals.
8253 * stdio/stdio.h: Declare __snprintf and __vsnprintf.
8255 * stdio-common/psignal.c: Translate signal description strings.
8256 * string/strsignal.c: Likewise.
8257 * sysdeps/generic/_strerror.c (_strerror_internal): Translate
8259 * sysdeps/mach/_strerror.c: Likewise.
8261 * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
8263 (snprintf): Define as weak alias.
8264 * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
8265 (vsnprintf): Define as weak alias.
8267 Mon Oct 16 03:22:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8269 * Makerules (install-lib): Filter out %_pic.a; install only the
8270 linked shared objects.
8272 * locale/Makefile (aux): Add SYS_libc.
8273 * locale/SYS_libc.c: New file.
8274 * libc-symbols.h [! ASSEMBLER] (_): New macro.
8276 * configure.in (libc_cv_asm_set_directive): Link program into
8277 conftest instead of letting it default to a.out.
8279 * elf/Makefile (install-others): Add missing slash.
8281 * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
8282 won't search LD_LIBRARY_PATH.
8284 * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
8285 * configure.in: Grok arg --enable-libio.
8286 ($stdio = libio): Define USE_IN_LIBIO.
8287 * config.h.in (USE_IN_LIBIO): Add #undef.
8288 * config.make.in (stdio): New variable, set by configure.
8289 * Makeconfig (stdio): New variable.
8290 * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
8292 * stdio-common/Makefile: New file.
8293 * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
8294 * stdio/_itoa.c: Moved to stdio-common.
8295 * stdio/_itoa.h: Moved to stdio-common.
8296 * stdio/asprintf.c: Moved to stdio-common.
8297 * stdio/bug1.c: Moved to stdio-common.
8298 * stdio/bug1.input: Moved to stdio-common.
8299 * stdio/bug2.c: Moved to stdio-common.
8300 * stdio/bug3.c: Moved to stdio-common.
8301 * stdio/bug4.c: Moved to stdio-common.
8302 * stdio/bug5.c: Moved to stdio-common.
8303 * stdio/bug6.c: Moved to stdio-common.
8304 * stdio/bug6.input: Moved to stdio-common.
8305 * stdio/bug7.c: Moved to stdio-common.
8306 * stdio/dprintf.c: Moved to stdio-common.
8307 * stdio/errnobug.c: Moved to stdio-common.
8308 * stdio/getline.c: Moved to stdio-common.
8309 * stdio/getw.c: Moved to stdio-common.
8310 * stdio/perror.c: Moved to stdio-common.
8311 * stdio/printf-parse.h: Moved to stdio-common.
8312 * stdio/printf-prs.c: Moved to stdio-common.
8313 * stdio/printf.c: Moved to stdio-common.
8314 * stdio/printf.h: Moved to stdio-common.
8315 * stdio/printf_fp.c: Moved to stdio-common.
8316 * stdio/psignal.c: Moved to stdio-common.
8317 * stdio/putw.c: Moved to stdio-common.
8318 * stdio/reg-printf.c: Moved to stdio-common.
8319 * stdio/scanf.c: Moved to stdio-common.
8320 * stdio/snprintf.c: Moved to stdio-common.
8321 * stdio/sprintf.c: Moved to stdio-common.
8322 * stdio/sscanf.c: Moved to stdio-common.
8323 * stdio/tempnam.c: Moved to stdio-common.
8324 * stdio/temptest.c: Moved to stdio-common.
8325 * stdio/test-fseek.c: Moved to stdio-common.
8326 * stdio/test-fwrite.c: Moved to stdio-common.
8327 * stdio/test-popen.c: Moved to stdio-common.
8328 * stdio/test_rdwr.c: Moved to stdio-common.
8329 * stdio/tmpfile.c: Moved to stdio-common.
8330 * stdio/tmpnam.c: Moved to stdio-common.
8331 * stdio/tst-fileno.c: Moved to stdio-common.
8332 * stdio/tst-printf.c: Moved to stdio-common.
8333 * stdio/tstgetln.c: Moved to stdio-common.
8334 * stdio/tstgetln.input: Moved to stdio-common.
8335 * stdio/tstscanf.c: Moved to stdio-common.
8336 * stdio/tstscanf.input: Moved to stdio-common.
8337 * stdio/vfprintf.c: Moved to stdio-common.
8338 * stdio/vfscanf.c: Moved to stdio-common.
8339 * stdio/vprintf.c: Moved to stdio-common.
8340 * stdio/xbug.c: Moved to stdio-common.
8341 * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
8342 stdio-common instead of stdio.
8343 * sysdeps/unix/Makefile (errlist.c rules): Likewise.
8344 * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
8346 * stdio-common/dprintf.c: Likewise.
8347 * stdio-common/printf.c: Likewise.
8348 * stdio-common/scanf.c: Likewise.
8349 * stdio-common/snprintf.c: Likewise.
8350 * stdio-common/sprintf.c: Likewise.
8351 * stdio-common/sscanf.c: Likewise.
8352 * stdio-common/vprintf.c: Likewise.
8354 * Makerules: Include $(+depfiles) directly instead of generating
8356 (depend-$(subdir)): Target removed.
8357 (common-clean): Don't remove depend-$(subdir).
8359 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
8360 (config-LDFLAGS): Variable removed.
8362 * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
8363 * sysdeps/mach/hurd/bind.c: Likewise.
8364 * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
8367 * hurd/hurdexec.c: Undo last change (10 Oct 95).
8369 Sun Oct 15 21:04:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8371 * hurd/hurd/lookup.h: New file.
8372 * hurd/hurdlookup.c (__file_name_lookup_under): New function.
8373 (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
8374 __hurd_file_name_split): Rewritten to take callback functions for
8375 using any needed init or dtable port, instead of passing in crdir
8377 (__file_name_lookup, __file_name_split): Use new calling
8378 convention; pass _hurd_ports_use and __getdport as the callback
8381 * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
8382 of __hurd_file_name_lookup.
8383 * sysdeps/mach/hurd/chdir.c: Likewise.
8384 * sysdeps/mach/hurd/fchdir.c: Likewise.
8385 * hurd/fchroot.c: Likewise.
8387 * stdlib/Makefile (mpn-found): Don't omit %.s.
8388 (mpn-copy-sysdep): Omit files in nonexistent directories.
8389 (copy-mpn): Commit files to CVS.
8390 * stdlib/gen-mpn-copy (translations): Update translations for GMP
8393 * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
8395 Sat Oct 14 02:52:36 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8397 * malloc/malloc.c (_malloc_internal): Performance fix. Move
8398 if statement out of loop.
8400 * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite. Much faster
8401 implementation using GMP functions. Contributed by
8402 Torbjorn Granlund and Ulrich Drepper.
8404 * stdio/test_rdwr.c: Include <errno.h>.
8406 * sysdeps/i386/i586/Implies: New file.
8408 New highly optimized string functions for i[345]86.
8409 * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
8410 * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
8411 * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
8412 * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
8413 * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
8414 * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
8415 * sysdeps/i386/i586/strlen.S: New file.
8416 * sysdeps/i386/memchr.c: Removed. There is now an assembler version.
8418 * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
8419 not correspond to used values.
8421 * sysdeps/unix/sysv/linux/nfs/nfs.h: New file. Simply a wrapper
8422 around a kernel header file.
8423 * sysdeps/unix/sysv/linux/Dist: Add it.
8424 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
8427 * sysdeps/unix/sysv/linux/local_lim.h: Rewrite. Instead of
8428 defining ourself we use a kernel header file.
8430 * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
8431 call handler for i586.
8433 * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
8435 Thu Oct 12 15:45:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8437 * hurd/hurd.h (file_name_lookup_under): Declare it.
8438 * hurd/Makefile (headers): Add hurd/lookup.h.
8440 * hurd/hurdinit.c (_hurd_ports_use): New function.
8441 * hurd/hurd.h (_hurd_ports_use): Declare it.
8442 (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
8443 hurd_file_name_lookup_retry): Remove these decls.
8444 * hurd/Makefile (routines): Remove invoke-trans.
8446 Wed Oct 11 00:00:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8448 * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
8449 apply R_386_PC32 reloc.
8451 * Makeconfig (config-LDFLAGS): Add missing slash.
8453 * sysdeps/mach/hurd/profil.c (fork_profil): Only call
8454 update_waiter if profiling was enabled in the parent.
8456 * csu/initfini.c: Don't pass -f flag to cp.
8458 Tue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8460 * Makerules (build-shlib): Pass -rpath and -rpath-link options.
8461 (LDFLAGS-c.so): Don't pass -dynamic-linker here.
8462 * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
8463 (link-libc): Pass -rpath and -rpath-link options.
8465 * MakeTAGS (all-dirs): Omit CVS directories.
8466 Specify vpath directives to find source files in $(all-dirs).
8467 (sources, headers): Append sources and headers from $(all-dist) to
8469 (all-dist): Filter them out of this.
8470 (all-headers, all-sources): Use $(shell find ...) instead of
8473 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
8476 * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
8478 * elf/Makefile (install-others): Add missing $.
8480 Mon Oct 9 02:54:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8482 * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
8484 * Makeconfig (config-LDFLAGS): Define to
8485 -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
8486 (rtld-installed-name): New variable.
8487 * elf/Makefile (install-lib): Variable removed.
8488 (install-others): Define this instead, to
8489 $(libdir)(rtld-installed-name).
8490 ($(libdir)(rtld-installed-name)): New target; install from ld.so.
8492 * elf/ldd.sh.in: New file.
8493 * elf/Makefile (distribute): Add ldd.sh.in.
8494 (install-bin): Add ldd.
8495 ($(objpfx)ldd: ldd.sh.in): New rule.
8497 * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
8498 * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
8499 Translate some Mach errors to Hurd errors.
8501 * elf/rtld.c (dl_main): Under --list, print msg if executable is
8504 * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
8507 Sat Oct 7 01:25:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8509 * sysdeps/stub/machine-gmon.h: Add #error.
8511 Fri Oct 6 01:49:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8513 * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
8516 Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com>
8518 Rewrite mktime from scratch for performance, and for correctness
8519 in the presence of leap seconds.
8521 * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
8523 (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
8524 TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
8525 <limits.h>, <stdlib.h>: New #includes.
8526 (main): Support tests with given broken-down value; support benchmarks.
8527 (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
8528 do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
8531 * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
8532 * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
8534 * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
8535 time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
8537 * time/offtime.c (__offtime): Remove useless assignment
8538 `tp->tm_isdst = -1'.
8540 * manual/maint.texi: Update credits.
8542 Fri Oct 6 00:28:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8544 * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
8545 * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
8546 * sysdeps/unix/sysv/linux/readv.c: File removed.
8547 * sysdeps/unix/sysv/linux/writev.c: File removed.
8548 * sysdeps/unix/configure.in: Check for readv and writev syscalls.
8550 * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
8551 set it to $unix_syscall instead of $unix_function.
8553 Thu Oct 5 00:59:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8555 * elf/rtld.c (dl_main): Grok --list flag.
8556 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
8558 Wed Oct 4 00:21:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8560 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
8561 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
8562 * elf/link.h (_dl_sysdep_message): Declare it.
8564 * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
8567 * time/northamerica: Corrections to Canada data from ADO 95i.
8569 * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
8570 unconditionally. In socket subdir, append sys/socketcall.h; in
8571 time subdir, append sys/timex.h.
8572 (config-LDFLAGS): New variable.
8573 * sysdeps/unix/sysv/linux/Dist: New file.
8574 * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
8576 * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
8578 * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
8580 Sat Sep 30 11:47:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8582 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
8583 kernel with args on stack, point _dl_hurd_data at zero data
8584 instead of garbage. When ld.so run as program, grok args
8585 -LIB=MEMOBJ and pre-load shared object files found in memory
8586 objects loaded by the boot loader.
8588 * elf/link.h (struct link_map): New member `l_entry'.
8589 (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
8590 * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
8591 last arg ENTRY_POINT. Store the entry point location in the
8592 `l_entry' member of the new map.
8593 * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
8594 _dl_map_object. When run as program, set *USER_ENTRY to L->l_entry.
8595 * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
8598 * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
8600 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
8601 restore %ebx by hand for personality syscall.
8602 GCC cannot deal with spilling the dedicated GOT register.
8604 * misc/Makefile (routines): Add mntent, which was somehow omitted.
8606 Fri Sep 29 15:07:10 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8608 * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
8609 Change name of field `mode' in `struct timex' to `modes'.
8610 Linux-1.3.28 updates this name according to RFC 1489.
8612 Thu Sep 28 13:05:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8614 Merge new message handling code from GNU gettext, by Drepper.
8615 * intl: New directory.
8616 * Makefile (subdirs): Add intl.
8618 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
8619 USER_ENTRY instead of storing it on our stack.
8621 * elf/rtld.c (rtld_command): Variable removed.
8622 (_dl_skip_args): New variable.
8623 (dl_main): Increment _dl_skip_args instead of setting rtld_command.
8624 If the link_map for the executable itself is not first in the chain,
8626 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
8627 count of args to skip.
8629 Thu Sep 28 09:20:04 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
8631 * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
8634 Wed Sep 27 00:27:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8636 * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
8637 (getcwd): Define as weak alias.
8638 * sysdeps/posix/getcwd.c: Likewise.
8639 * sysdeps/stub/getcwd.c: Likewise.
8640 * posix/unistd.h: Declare __getcwd.
8642 * string/string.h: Declare __strcasecmp.
8643 * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
8645 (strcasecmp): Define as weak alias.
8647 * string/string.h: Declare __stpcpy.
8648 * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
8649 (stpcpy): Define as weak alias.
8651 * sysdeps/unix/sysv/linux/Implies: Add unix/common.
8653 * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
8654 Don't use `type' for arg name, since we are using it as a keyword
8657 * sysdeps/unix/configure.in: Check for syscalls getpriority,
8658 setpriority, getrlimit, setrlimit.
8660 * sysdeps/posix/truncate.c: Include fcntl.h.
8662 * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
8664 * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
8665 use new stub_warning syntax.
8666 * sysdeps/stub/setpriority.c: Likewise.
8667 * sysdeps/stub/__longjmp.c: Likewise.
8668 * sysdeps/stub/_exit.c: Likewise.
8669 * sysdeps/stub/accept.c: Likewise.
8670 * sysdeps/stub/acos.c: Likewise.
8671 * sysdeps/stub/alarm.c: Likewise.
8672 * sysdeps/stub/asin.c: Likewise.
8673 * sysdeps/stub/atan2.c: Likewise.
8674 * sysdeps/stub/bind.c: Likewise.
8675 * sysdeps/stub/cbrt.c: Likewise.
8676 * sysdeps/stub/chroot.c: Likewise.
8677 * sysdeps/stub/closedir.c: Likewise.
8678 * sysdeps/stub/connect.c: Likewise.
8679 * sysdeps/stub/cos.c: Likewise.
8680 * sysdeps/stub/cosh.c: Likewise.
8681 * sysdeps/stub/ctermid.c: Likewise.
8682 * sysdeps/stub/cuserid.c: Likewise.
8683 * sysdeps/stub/defs.c: Likewise.
8684 * sysdeps/stub/exp.c: Likewise.
8685 * sysdeps/stub/fmod.c: Likewise.
8686 * sysdeps/stub/frexp.c: Likewise.
8687 * sysdeps/stub/fsync.c: Likewise.
8688 * sysdeps/stub/getcwd.c: Likewise.
8689 * sysdeps/stub/getenv.c: Likewise.
8690 * sysdeps/stub/gethostid.c: Likewise.
8691 * sysdeps/stub/getlogin.c: Likewise.
8692 * sysdeps/stub/getpeername.c: Likewise.
8693 * sysdeps/stub/getrlimit.c: Likewise.
8694 * sysdeps/stub/getsockname.c: Likewise.
8695 * sysdeps/stub/getsockopt.c: Likewise.
8696 * sysdeps/stub/listen.c: Likewise.
8697 * sysdeps/stub/log.c: Likewise.
8698 * sysdeps/stub/log10.c: Likewise.
8699 * sysdeps/stub/mkfifo.c: Likewise.
8700 * sysdeps/stub/morecore.c: Likewise.
8701 * sysdeps/stub/nice.c: Likewise.
8702 * sysdeps/stub/nlist.c: Likewise.
8703 * sysdeps/stub/opendir.c: Likewise.
8704 * sysdeps/stub/pipestream.c: Likewise.
8705 * sysdeps/stub/ptrace.c: Likewise.
8706 * sysdeps/stub/putenv.c: Likewise.
8707 * sysdeps/stub/readdir.c: Likewise.
8708 * sysdeps/stub/reboot.c: Likewise.
8709 * sysdeps/stub/recv.c: Likewise.
8710 * sysdeps/stub/recvfrom.c: Likewise.
8711 * sysdeps/stub/rename.c: Likewise.
8712 * sysdeps/stub/rewinddir.c: Likewise.
8713 * sysdeps/stub/seekdir.c: Likewise.
8714 * sysdeps/stub/send.c: Likewise.
8715 * sysdeps/stub/sendto.c: Likewise.
8716 * sysdeps/stub/setegid.c: Likewise.
8717 * sysdeps/stub/seteuid.c: Likewise.
8718 * sysdeps/stub/setgroups.c: Likewise.
8719 * sysdeps/stub/sethostid.c: Likewise.
8720 * sysdeps/stub/sethostname.c: Likewise.
8721 * sysdeps/stub/setjmp.c: Likewise.
8722 * sysdeps/stub/setrlimit.c: Likewise.
8723 * sysdeps/stub/setsockopt.c: Likewise.
8724 * sysdeps/stub/shutdown.c: Likewise.
8725 * sysdeps/stub/signal.c: Likewise.
8726 * sysdeps/stub/sigsuspend.c: Likewise.
8727 * sysdeps/stub/sin.c: Likewise.
8728 * sysdeps/stub/sinh.c: Likewise.
8729 * sysdeps/stub/socket.c: Likewise.
8730 * sysdeps/stub/socketpair.c: Likewise.
8731 * sysdeps/stub/sqrt.c: Likewise.
8732 * sysdeps/stub/sync.c: Likewise.
8733 * sysdeps/stub/system.c: Likewise.
8734 * sysdeps/stub/tan.c: Likewise.
8735 * sysdeps/stub/tanh.c: Likewise.
8736 * sysdeps/stub/tcdrain.c: Likewise.
8737 * sysdeps/stub/tcflow.c: Likewise.
8738 * sysdeps/stub/tcgetpgrp.c: Likewise.
8739 * sysdeps/stub/tcsendbrk.c: Likewise.
8740 * sysdeps/stub/tcsetattr.c: Likewise.
8741 * sysdeps/stub/tcsetpgrp.c: Likewise.
8742 * sysdeps/stub/telldir.c: Likewise.
8743 * sysdeps/stub/tempname.c: Likewise.
8744 * sysdeps/stub/ttyname.c: Likewise.
8745 * sysdeps/stub/ttyname_r.c: Likewise.
8746 * sysdeps/stub/utime.c: Likewise.
8748 * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
8750 * time/mktime.c (localtime_r): Use 0 instead of NULL.
8752 * config.make.in (AS): New variable; set to `$(CC) -c'.
8754 * posix/unistd.h [__USE_BSD]: Declare profil.
8756 * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
8758 (_dl_map_object): Call it.
8759 * elf/link.h (_dl_map_object_from_fd): Declare it.
8761 Tue Sep 26 16:50:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8763 * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
8766 * sysdeps/unix/sysv/linux/sys/param.h: New file.
8767 * sysdeps/unix/sysv/linux/Subdirs: File removed.
8769 * libc-symbols.h (_LIBC): Define to 1, not just empty.
8771 * gmon: New directory of profiling code, incorporated from
8772 4.4BSD-Lite and modified.
8773 * sysdeps/i386/machine-gmon.h: New file.
8774 * sysdeps/stub/machine-gmon.h: New file.
8775 * sysdeps/mach/hurd/profil.c: New file.
8776 * sysdeps/stub/profil.c: New file.
8777 * sysdeps/unix/bsd/profil.S: New file.
8778 * Makefile (subdirs): Add gmon.
8779 * csu/gmon-start.c: New file.
8780 * csu/Makefile (extra-objs): Add gmon-start.o,
8781 g$(start-installed-name).
8782 (install-lib, omit-deps): Add g$(start-installed-name).
8783 ($(objpfx)g$(start-installed-name)): New target.
8785 Fri Sep 22 14:24:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8787 * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
8790 Thu Sep 21 00:03:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8792 * sysdeps/unix/configure.in: Check for `profil' syscall.
8794 * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
8797 * time/africa, time/asia, time/europe, time/northamerica,
8798 time/yearistype: New data from ADO 95h.
8800 * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
8801 $(notdir $*), so it wins for the explicit libc.so rule as well as the
8804 * sysdeps/stub/sys/sem_buf.h (union semun): New type.
8806 * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
8807 __libc_global_ctors.
8808 * sysdeps/i386/init-first.c: Rewritten.
8809 * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
8810 * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
8812 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
8815 * Makerules (build-shlib): New canned sequence, broken out of
8816 lib%.so rule. Link in $^ instead of just $<.
8817 (lib%.so: lib%_pic.a): Use it.
8818 (libc.so): New target; use $(build-shlib) for cmds, but also depend
8819 on soinit.so first and sofini.so last.
8821 * elf/soinit.c: New file.
8822 * elf/sofini.c: New file.
8823 * elf/Makefile (distribute): Add soinit.c and sofini.c.
8824 (extra-objs): Add soinit.so and sofini.so.
8826 * sysvipc/sys/shm.h (shmat): Fix return type to char *.
8827 * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
8829 * misc/syslog.c (vsyslog): Rewritten using open_memstream to
8830 dynamically allocate buffers.
8832 * Makerules (install-lib-nosubdir): Make this, rather than
8833 install-no-libc.a, depend on the installed shared libraries.
8835 Wed Sep 20 18:02:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8837 * locale/locale.c: Include errno.h.
8838 * locale/localedef.c: Likewise.
8840 Tue Sep 19 00:02:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8842 * Makefile (distclean-1): Remove config.cache, config.log, config.h.
8843 (parent-mostlyclean): Remove all flavors of the parent library.
8845 * misc/mntent.c (getmntent): Skip multiple whitespace chars
8848 * hurd/hurdstartup.c (_hurd_startup): If RPC returns
8849 EXEC_STACK_ARGS flag, get args from stack.
8850 If args on stack but have info from RPC, relocate args on stack to make
8851 space for struct hurd_startup_data.
8853 Mon Sep 18 15:06:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8855 * elf/dl-object.c: Include errno.h.
8856 * posix/execvp.c: Likewise.
8857 * dirent/scandir.c: Likewise.
8858 * sysdeps/posix/system.c: Likewise.
8859 * sysdeps/generic/setenv.c: Likewise.
8860 * stdlib/msort.c: Likewise.
8861 * stdio/memstream.c: Likewise.
8862 * stdio/fclose.c: Likewise.
8863 * stdio/getdelim.c: Likewise.
8864 * stdio/setvbuf.c: Likewise.
8865 * sysdeps/ieee754/ldexp.c: Likewise.
8866 * locale/locfile-parse.c: Likewise.
8868 * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
8869 * stdlib/seed48_r.c: Likewise.
8870 * stdlib/srand48_r.c: Likewise.
8871 * stdlib/jrand48_r.c: Likewise.
8872 * stdlib/nrand48_r.c: Likewise.
8874 * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
8877 Mon Sep 18 12:39:22 1995 Paul Eggert <eggert@twinsun.com>
8879 * mktime.c (localtime_r): Add substitute if the system doesn't
8882 Mon Sep 18 14:39:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8884 * time/gmtime.c (gmtime_r): Define as weak alias.
8885 * time/localtime.c (localtime_r): Define as weak alias.
8886 * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
8888 * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
8889 #undef __need_Emath after including errnos.h.
8890 [_ERRNO_H]: Protect decls with this.
8892 Sun Sep 17 08:22:12 1995 Paul Eggert <eggert@twinsun.com>
8894 Fix mktime so that it does not write over localtime's returned value.
8895 * localtime.c (__localtime_r): New function, with extra arg
8896 specifying where to store result.
8897 (localtime): Use it.
8899 * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
8900 * mktime.c (__mktime_internal): Conversion function is now
8901 __localtime_r style, not localtime style.
8902 (mktime): Pass __localtime_r, not localtime.
8903 * timegm.c (timegm): Pass __gmtime_r, not gmtime.
8904 * offtime.c (__offtime): New arg specifying where to store result.
8905 * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
8906 (__gmtime_r, __localtime_r): New decls.
8908 * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
8909 <stdlib.h>, <string.h>: Remove includes.
8910 <errno.h>: Add include.
8912 * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
8913 Renamed from _mktime_internal to avoid namespace pollution.
8915 * time/gmtime.c: Clear tm_isdst.
8917 Mon Sep 18 01:58:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8919 * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
8920 * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
8923 * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
8925 * sysdeps/mach/hurd/pathconf.c: Likewise.
8927 * Makefile (subdirs): Add sysvipc.
8929 * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
8930 * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8932 Sun Sep 17 18:29:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8934 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
8935 __file_set_size instead of __file_truncate.
8937 * features.h (__USE_REENTRANT): New macro.
8939 * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
8941 * sysdeps/mach/hurd/ftruncate.c: Likewise.
8943 * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
8945 Sat Sep 16 17:47:19 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8947 * elf/elf.h (AT_GID): Fix typo: Read -> Real.
8949 * misc/efgvt_r.c: New file. Reentrant version of [efg]cvt functions.
8950 * misc/efgcvt.c: Rewrite to use reentrant functions.
8951 * misc/search.h: Many decls for hsearch functions.
8952 * misc/hsearch_r.c: New file. Reentrant version of functions from
8954 * misc/hsearch.c, misc/tsearch.c: New files.
8955 * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
8957 * posix/unistd.h (ttyname_r): Add prototype for new function.
8959 * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
8960 stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
8961 stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
8962 stdlib/drand48-iter.c: New files implementing reentrant versions
8963 of functions from drand48 family.
8964 * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
8965 stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
8966 stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
8967 Rewrite to use reentrant versions.
8968 * stdlib/a64l.c, stdlib/l64a.c: New files. Implement a64l()
8969 and l64a() functions from SysV library.
8970 * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
8971 nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
8972 drand48-iter, a64l, l64a.
8973 * stdlib/stdlib.h: Declare them.
8975 * stdlib/random_r.c: New file. Reentrant version of functions
8977 * stdlib/stdlib.h: Declare them.
8978 * stdlib/random.c: Rewrite to use reentrant functions.
8980 * string/strerror_r.c: New file. Reentrant version.
8981 * string/strerror.c: Change for new _strerror_internal form.
8982 * string/Makefile (routines): Add strerror_r.
8984 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
8985 value of user_entry to `_start'.
8986 Close AT_ENTRY case with `break'.
8988 * sysdeps/generic/strstr.c: New and much faster implementation
8989 by Stephen R. van den Berg.
8991 * sysdeps/generic/_strerror.c: _strerror_internal now takes
8992 three argument and has and explicit buffer length.
8993 * sysdeps/mach/_strerror.c: Change for new interface with three
8995 * stdio/perror.c, stdio/vfprintf.c: Callers changed.
8997 * sysdeps/mach/hurd/ttyname_r.c: New file. Reentrant version.
8998 * sysdeps/posix/ttyname_r.c: New file. Reentrant version.
8999 * sysdeps/stub/ttyname_r: New file. Define as dummy function.
9001 * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
9002 (utimes): First parameter to utime must be file, not path.
9004 * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
9005 _SC_CLK_TCK and return it when available.
9006 Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
9008 Add case for _SC_2_LOCALEDEF which is now available.
9010 * posix/sys/types.h [__USE_SVID] (key_t): New type.
9011 * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
9012 sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
9013 sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
9014 sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
9015 sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
9016 sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
9017 sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
9018 sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
9019 Add implementation of System V IPC.
9021 Fri Sep 15 21:34:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9023 * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
9024 (write_corefile): Call __crash_dump_task instead of __core_dump_task.
9025 Use envariable CRASHSERVER instead of CORESERVER.
9026 * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
9028 Tue Sep 12 14:30:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9030 * misc/mntent.c: New file.
9031 * misc/mntent.h: New file.
9032 * misc/Makefile (headers): Added mntent.h.
9033 (routines): Added mntent.
9034 * misc/fstab.c: Rewritten using mntent functions.
9036 Mon Sep 11 14:00:14 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
9038 * posix/glob.c (glob): Comment fix.
9040 Fri Sep 8 16:25:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9042 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
9045 * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
9048 Fri Sep 8 16:32:12 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
9050 * sysdeps/unix/sysv/linux/Implies,
9051 sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
9052 sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
9053 sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
9054 sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
9055 sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
9056 sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
9057 sysdeps/unix/sysv/linux/gethostname.C,
9058 sysdeps/unix/sysv/linux/getpeername.S,
9059 sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
9060 sysdeps/unix/sysv/linux/getsockname.S,
9061 sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
9062 sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
9063 sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
9064 sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
9065 sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
9066 sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
9067 sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
9068 sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
9069 sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
9070 sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
9071 sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
9072 sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
9073 sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
9074 sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
9075 sysdeps/unix/sysv/linux/settimeofday.S,
9076 sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
9077 sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
9078 sysdeps/unix/sysv/linux/shutdown.S,
9079 sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
9080 sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
9081 sysdeps/unix/sysv/linux/sockaddrcom.h,
9082 sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
9083 sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
9084 sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
9085 sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
9086 sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
9087 sysdeps/unix/sysv/linux/tcsetattr.c,
9088 sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
9089 sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
9090 sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
9091 sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
9092 sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
9093 New Linux/ELF specific, architecture independent files.
9094 * sysdeps/unix/sysv/linux/i386/Dist,
9095 sysdeps/unix/sysv/linux/i386/Makefile,
9096 sysdeps/unix/sysv/linux/i386/brk.S,
9097 sysdeps/unix/sysv/linux/i386/fcntlbits.h,
9098 sysdeps/unix/sysv/linux/i386/fpu_control.c,
9099 sysdeps/unix/sysv/linux/i386/fpu_control.h,
9100 sysdeps/unix/sysv/linux/i386/fstat.S,
9101 sysdeps/unix/sysv/linux/i386/fxstat.S,
9102 sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
9103 sysdeps/unix/sysv/linux/i386/init-first.S,
9104 sysdeps/unix/sysv/linux/i386/ipc.S,
9105 sysdeps/unix/sysv/linux/i386/lstat.S,
9106 sysdeps/unix/sysv/linux/i386/lxstat.S,
9107 sysdeps/unix/sysv/linux/i386/mknod.S,
9108 sysdeps/unix/sysv/linux/i386/mmap.S,
9109 sysdeps/unix/sysv/linux/i386/sbrk.S,
9110 sysdeps/unix/sysv/linux/i386/setfpucw.c,
9111 sysdeps/unix/sysv/linux/i386/signum.h,
9112 sysdeps/unix/sysv/linux/i386/socket.S,
9113 sysdeps/unix/sysv/linux/i386/stat.S,
9114 sysdeps/unix/sysv/linux/i386/syscall.S,
9115 sysdeps/unix/sysv/linux/i386/sysdep.S,
9116 sysdeps/unix/sysv/linux/i386/sysdep.h,
9117 sysdeps/unix/sysv/linux/i386/xmknod.S,
9118 sysdeps/unix/sysv/linux/i386/xstat.S:
9119 New Linux i386/ELF specific files.
9120 * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
9121 sysdeps/unix/sysv/linux/sys/mman.h,
9122 sysdeps/unix/sysv/linux/sys/msq_buf.h,
9123 sysdeps/unix/sysv/linux/sys/sem_buf.h,
9124 sysdeps/unix/sysv/linux/sys/shm_buf.h,
9125 sysdeps/unix/sysv/linux/sys/socketcall.h,
9126 sysdeps/unix/sysv/linux/sys/timex.h:
9127 New Linux/ELF specific, architecture independent header files.
9128 * sysdeps/unix/sysv/sysv4/linux: Tree removed.
9130 Thu Sep 7 17:05:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9132 * stdlib/msort.c (msort_with_tmp): Fixed alignment test. B1 and
9133 B2 are always congruent; just test that B1 is aligned.
9135 Wed Sep 6 19:41:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9137 * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
9138 than WEAK_VALUE.a to see if a weak value has been set. A valid
9139 weak value may set WEAK_VALUE.a to 0.
9141 Fri Sep 1 16:16:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9143 * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
9146 * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
9147 for a warning on references to that specific symbol, not the
9148 entire containing object file.
9149 (stub_warning): Pass symbol name to link_warning.
9150 * stdio/gets.c: Pass function name in link_warning invocation.
9152 * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
9153 MACH_SEND_INTERRUPTED. That indicates interrupt_operation was
9156 * stdlib/msort.c: Include memcopy.h.
9157 (msort_with_tmp): If operating on aligned op_t words, use direct word
9160 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
9163 Thu Aug 31 13:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9165 * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
9167 Rewrote i386 setjmp code in assembly, so as to avoid fighting
9168 with the compiler for the register values.
9169 * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
9170 * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
9171 * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
9172 [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
9173 (_JMPBUF_UNWINDS): Use JB_SP.
9175 Wed Aug 30 16:44:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9177 * sysdeps/mach/hurd/select.c: Deal with out of order replies
9178 during io_select request loop.
9179 Handle MACH_RCV_TIMED_OUT error from requests.
9180 * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
9181 distinguish MACH_RCV_TIMED_OUT from EINTR.
9183 * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
9185 (glob_in_dir): Don't allocate extra byte here.
9187 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9188 Decrement the DT_RELSZ value for the skipped reloc.
9190 Tue Aug 29 12:35:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9192 * time/australasia: Updated data from ADO.
9194 Mon Aug 28 17:47:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9196 * dirent/dirent.h: Don't include <dirstream.h>.
9197 Instead, define DIR as typedef for (undefined) `struct __dirstream'.
9199 Fri Aug 25 12:12:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9201 * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
9203 * sysdeps/unix/bsd/dirstream.h: Likewise.
9204 * sysdeps/stub/dirstream.h: Likewise.
9205 * sysdeps/unix/dirstream.h: Likewise.
9206 * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
9207 * sysdeps/mach/hurd/seekdir.c: Likewise.
9208 * sysdeps/mach/hurd/opendir.c: Likewise.
9209 * sysdeps/mach/hurd/closedir.c: Likewise.
9210 * sysdeps/mach/hurd/readdir.c: Likewise.
9211 * sysdeps/unix/telldir.c: Likewise.
9212 * sysdeps/unix/seekdir.c: Likewise.
9213 * sysdeps/unix/rewinddir.c: Likewise.
9214 * sysdeps/unix/readdir.c: Likewise.
9215 * sysdeps/unix/opendir.c: Likewise.
9216 * sysdeps/unix/closedir.c: Likewise.
9217 * sysdeps/unix/bsd/telldir.c: Likewise.
9218 * sysdeps/unix/bsd/readdir.c: Likewise.
9219 * dirent/Makefile (headers): Remove dirstream.h.
9220 (distribute): Put it here instead.
9222 * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
9224 * stdio/vfscanf.c (number): Allow field width to inhibit first
9225 digit after base detection.
9227 * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
9228 specified by the precision.
9230 * grp/grpread.c (__grpscan): New function.
9231 * grp/grp.h (__grpscan): Declare it.
9232 * grp/getgrgid.c: Use __grpscan.
9233 * grp/getgrnam.c: Likewise.
9234 * pwd/pwdread.c (__pwdscan): New function.
9235 * pwd/pwd.h (__pwdscan): Declare it.
9236 * pwd/getpwnam.c: Use __pwdscan.
9237 * pwd/getpwuid.c: Likewise.
9239 Thu Aug 24 16:29:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9241 * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
9244 * hurd/thread-cancel.c: Return EINTR when called on self.
9245 * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
9248 Tue Aug 22 16:49:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9250 * inet/netdb.h: Moved to resolv.
9251 * inet/Makefile (headers): Remove netdb.h.
9252 * resolv/Makefile (headers): Add netdb.h.
9253 * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
9254 resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
9256 * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
9257 resuming the thread.
9258 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
9260 * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
9262 Mon Aug 21 16:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9264 * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
9265 relocs, and do nothing. Why the linker generates them we may
9268 Thu Aug 17 16:18:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9270 * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
9273 * sysdeps/mach/hurd/i386/intr-msg.h: New file.
9274 * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
9275 "intr-msg.h" for special syscall code, instead of i386-specific asm.
9276 * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
9277 machine-dependent "intr-msg.h" before mutating thread state to
9280 * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
9281 _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
9284 * Makeconfig (link-libc): New variable; use shared library if
9288 * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
9289 Instead, declare with `symbol_set_declare'.
9290 (fork): Use symbol_set_* macros for _hurd_fork_locks.
9291 Use SS->thread instead of __mach_thread_self (). Suspend all
9292 other threads during task_create and port copying.
9294 Wed Aug 16 17:04:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9296 * hurd/intr-msg.c: Fixed calculation of syscall %esp.
9298 Tue Aug 15 12:26:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9300 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
9302 * hurd/Makefile (sig): Add intr-msg.
9304 Mon Aug 14 16:51:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9306 * hurd/thread-cancel.c: New file.
9307 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
9308 rpc_wait case, frob mach_msg args to set timeout on receive.
9309 (_hurdsig_rcv_interrupted_p): Function removed.
9310 * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
9311 * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
9312 * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
9313 * hurd/intr-msg.c: New file.
9314 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
9315 (_hurdsig_rcv_interrupted_p): Declaration removed.
9316 (HURD_EINTR_RPC): Macro removed.
9317 (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
9319 * hurd/intr-rpc.h: New file.
9320 * hurd/intr-rpc.defs: Just import intr-rpc.h.
9321 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
9322 (interrupted_reply_port_location): Take new flag arg; only catch
9324 (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
9325 No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
9326 &_hurd_intr_rpc_msg_in_trap. If before it, mutate state to simulate
9327 MACH_SEND_INTERRUPTED return; on it, interrupt the operation. All
9329 * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
9330 * hurd/Makefile (distribute): Remove intr-rpc.awk.
9331 (sig): Add thread-cancel.
9332 (transform-user-stub, transform-user-stub-output): Variables removed.
9333 * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
9334 `__hurd_intr_rpc_*' to `__*'.
9335 (_hurd_intr_rpc_mach_msg): New function.
9336 (_hurd_thread_sigstate): Function removed.
9337 * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
9338 instead of __mach_msg inside HURD_EINTR_RPC macro.
9340 * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
9341 to take ptrdiff_t arg.
9343 * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
9345 * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
9347 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
9348 weak_alias): Use `extern' storage class.
9350 Wed Aug 9 14:25:35 1995 Miles Bader <miles@geech.gnu.ai.mit.edu>
9352 * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
9353 port-count parameters to __auth_makeauth.
9354 * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
9356 Tue Aug 8 12:22:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9358 * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
9360 * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
9362 Tue Aug 8 12:06:04 1995 Michael I. Bushnell, p/BSG <mib@duality.gnu.ai.mit.edu>
9364 * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
9365 IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
9366 layer socket options.
9367 (IPPROTO_GGP): Delete obsolote protocol.
9368 (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
9369 (struct ip_mreq): New type.
9371 Mon Aug 7 14:04:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9373 * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
9375 * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
9376 (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
9378 * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
9379 when __stdio_open fails with a code other than ENFILE or EMFILE.
9381 Fri Aug 4 16:01:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9383 * Makefile (headers): Added gnu-versions.h.
9385 Thu Aug 3 14:41:11 1995 Michael I. Bushnell <mib@duality.gnu.ai.mit.edu>
9387 * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
9388 equality, not assignment, to test bitfields.
9390 Sat Jul 29 10:41:06 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
9392 * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
9393 resolve AF_LOCAL addresses.
9395 * sysdeps/mach/hurd/accept.c (accept): If the protocol family
9396 can't tell us what an address means, just return a zero-length
9398 * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
9400 Fri Jul 28 15:29:11 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
9402 * sysdeps/mach/hurd/bind.c (bind): Don't use
9403 file_invoke_translator, as it doesn't work. Instead just lookup
9404 the translated node again, and hope we're not hit by any race
9407 Wed Jul 26 02:00:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9409 * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
9410 [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
9411 [start-installed-name-rule]: If this is defined, elide rule for
9412 $(objpfx)$(start-installed-name).
9413 * csu/initfini.c (SECTION): New macro, different definitions for
9414 #ifdef HAVE_ELF and not.
9415 (_init, _fini): Use that macro.
9416 * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
9417 (start-installed-rule, start-installed-name-rule): New variables;
9418 specify crt1.o, created by our own rule.
9419 ($(objpfx)crt1.o): New rule.
9420 * configure.in: Require autoconf 2.4.2 or later. Change all
9421 AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
9422 prettify some messages.
9423 [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
9425 * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
9426 this case rather than #ifdef HAVE_ELF.
9427 * config.h.in (HAVE_INITFINI): New macro.
9428 * config.make.in (have-initfini): New variable, set by configure.
9430 * stdio/vfscanf.c (conv_error): Simplify expression to avoid
9431 "value computed is not used" warning.
9433 * Makeconfig (+gccwarn): Removed -Wconversion.
9435 * csu/initfini.c (GLOBAL): Macro removed.
9436 (_init, _fini): Always define globally.
9437 * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
9439 * asia, backward, europe, leapseconds, southamerica: New data from
9442 * inet/Makefile (routines): Removed inet_addr.
9443 * inet/inet_addr.c: Moved to resolv/ subdirectory.
9444 * resolv/Makefile (routines): Added inet_addr.
9445 * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
9446 * resolv/gethnamaddr.c: Likewise.
9447 * resolv/getnetbyaddr.c: Likewise.
9448 * resolv/getnetbyname.c: Likewise.
9449 * resolv/getnetent.c: Likewise.
9450 * resolv/getnetnamadr.c: Likewise.
9451 * resolv/herror.c: Likewise.
9452 * resolv/nsap_addr.c: Likewise.
9453 * resolv/res_comp.c: Likewise.
9454 * resolv/res_debug.c: Likewise.
9455 * resolv/res_init.c: Likewise.
9456 * resolv/res_mkquery.c: Likewise.
9457 * resolv/res_query.c: Likewise.
9458 * resolv/res_send.c: Likewise.
9459 * resolv/resolv.h: Likewise.
9460 * resolv/sethostent.c: Likewise.
9461 * resolv/arpa/nameser.h: Likewise.
9462 * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
9463 [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
9464 its declarations (and doing so only #ifdef sun!).
9465 * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
9467 * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
9468 [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
9470 * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
9473 * mach/shortcut.awk: Emit decls for RPC.
9475 * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
9476 weak_alias, strong_alias): Define using GCC __attribute__ syntax.
9478 * Makerules ($(installed-libcs)): Depend on `lib' (only).
9480 Tue Jul 25 09:14:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9482 * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
9484 * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
9486 * sysdeps/unix/sysv/ftime.S: New file.
9488 * locale/locfile-parse.c (categories_write): Cast "" to char *.
9490 * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
9492 * time/strftime.c: Use year modulo 100 for %y.
9494 * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
9496 * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
9497 of one, to work around bug in sunos4.1.2 sed.
9499 * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
9500 memchr instead of strlen to limit search for NUL by precision.
9502 Mon Jul 24 03:13:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9504 * sysdeps/posix/pathconf.c: New file.
9506 Sat Jul 22 20:53:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9508 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
9510 * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
9511 * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
9512 * sysdeps/i386/bsd-setjmp.S: Likewise.
9514 Sat Jul 22 19:58:54 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
9516 * inet/Makefile (routines): Added `ruserpass'.
9517 * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
9518 client. Modified to remove the fourth arg AACCT. Do nothing for
9519 the `account' and `macdef' keywords. Other incidental changes
9520 because we are not in the FTP source tree.
9522 Sat Jul 22 01:56:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9524 * sysdeps/stub/init-posix.c: Removed stub warning.
9526 * Makefile (autoconf-it): Make it executable and unwritable.
9528 * configure.in (sysnames): Under --enable-debug-configure, spew
9531 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
9533 (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
9534 * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
9537 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
9538 * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
9539 * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
9540 <sys/socketcall.h>. Save %ebx in call-clobbered %edx instead of
9541 stack. Use JUMPTARGET(syscall_error) in jump insn.
9543 * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
9545 * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
9547 (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
9549 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
9550 Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
9551 * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
9553 * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
9554 instead of unix/sysv.
9555 * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
9556 socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
9557 to new directory sysdeps/unix/sysv/sysv4/linux.
9558 * sysdeps/unix/sysv/linux: Directory removed.
9559 * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
9560 to new directory sysdeps/unix/sysv/sysv4/linux/i386.
9561 * sysdeps/unix/sysv/linux/i386: Directory removed.
9563 Fixes to help Linux, inspired by drepper's work:
9564 * sysdeps/posix/utimes.c: New file.
9565 * sysdeps/generic/getdomain.c: New file.
9566 * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
9567 * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
9568 externals _dl_argc, _dl_argc, and _environ.
9570 Fri Jul 21 12:57:29 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
9572 * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
9573 EOPNOTSUPP as indications that the server has died.
9574 * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
9575 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
9577 Mon Jul 17 08:45:40 1995 Jim Meyering (meyering@comco.com)
9579 * strtol.c: Portability changes from Uli Drepper.
9580 [!STDC_HEADERS && !defined(NULL)]: Define NULL.
9582 Mon Jul 10 05:39:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9584 * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
9585 DATA for the entry SP; DATA[-1] is always the return address
9586 location. In both cthreads and non-cthreads cases, use asm to
9587 force parameters into %eax and %ecx before return, and mutate
9588 DATA[-1] to return to specific asm code to set up the user from
9590 [PIC] (_init): Caller changed.
9591 (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
9592 with SP unwound to argument data ptr.
9594 Thu Jul 6 14:28:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9596 * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
9597 when 0x08000000 and up are not mapped.
9599 * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
9601 (lib%.so): Use -Wl to get -soname to ld.
9603 * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
9605 * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
9607 Tue Jun 20 02:18:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9609 * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
9610 library's name including $(libprefix) and major version number.
9612 * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
9613 in place of xcalloc.
9615 * Makeconfig (prefix, exec_prefix, libprefix): Instead of
9616 `ifndef', use the $(origin) function to only set these if they are
9617 undefined, and not if they are defined to empty.
9619 * gnu-versions.h: New file.
9620 * features.h (__GNU_LIBRARY__): Increase value to 5.
9622 Wed Jun 14 03:45:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9624 * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
9625 expression, to avoid gcc's "value computed is not used" warning.
9627 * libc-symbols.h (_elf_set_element): Give the set-element variable
9628 an `unused' attribute.
9630 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
9631 __attribute__ ((__const__)).
9632 * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
9634 * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
9635 LINK->resource.next->resource.prevp when appropriate, not
9636 LINK->resource.next->thread.prevp!!!
9638 Tue Jun 13 15:45:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9640 * configure.in (libc_cv_asm_set_directive): Make sure that the
9641 `.set' directive really worked by linking against a reference to
9644 * sysdeps/stub/init-first.c: Don't include <hurd.h>.
9645 [PIC] (soinit): Renamed to (global) _init.
9647 Mon Jun 12 13:15:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9649 * malloc/Makefile (gmalloc-routines): Remove valloc.
9650 (dist-routines): Add it here.
9652 * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
9653 emacs_loser_valloc to inhibit valloc declaration below.
9655 * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
9658 * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
9659 it uses the `.type' directive, which is necessary for shared
9660 libraries to work properly.
9662 Thu Jun 8 02:50:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9664 * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
9667 * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
9668 if nonzero, don't let *REF satisfy the reference itself.
9669 * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
9670 * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
9672 * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
9673 R->r_offset to RESOLVE callback.
9674 * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
9675 satisfy the reference itself if its value equals the reloc's
9678 * elf/rtld.c (dl_main): Write a newline in fatal msg.
9680 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
9682 * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
9684 * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
9685 and user entry point addresses.
9687 * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
9688 (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
9690 * Makerules (install-lib.so): Don't include libc.so.
9691 [$(build-shared)=yes] (install): Depend on the installed libc.so file.
9692 [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
9693 install, depend on the installed $(install-lib.so) files.
9694 [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
9696 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
9697 allocate high addresses to avoid random mappings appearing there.
9698 (mmap): Comment out mask; always pass zero.
9700 Tue Jun 6 13:34:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9702 * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9703 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
9705 * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
9708 * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
9709 (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
9710 variables, using the `threadvars' buffer.
9712 * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
9713 * sysdeps/i386/dl-runtime.c: Likewise.
9715 * elf/rtld.c (dl_main): Add missing NULL terminating argument in
9716 _dl_sysdep_fatal call.
9717 (__assert_fail): Likewise.
9719 * locale/Makefile (localedef-modules): Renamed ctype to
9720 locale-ctype so as not to conflict with the object file for
9721 ctype/ctype.c in the build directory.
9723 Mon Jun 5 04:02:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9725 * elf/elf.h (ELFMAG): Use \177 instead of \x7f. It seems GCC
9726 insists on seeing the following E as part of hex 7FE, and
9727 complaining that is wider than a byte.
9729 Sun Jun 4 22:14:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9731 * hurd/Makefile (sig): Added thread-self.
9732 * hurd/hurd.h: Declare hurd_thread_self.
9733 * hurd/thread-self.c: New file.
9735 Thu Jun 1 12:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9737 * elf/rtld.c: Initialize RTLD_MAP.l_type.
9738 * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
9739 the dynamic linker itself.
9740 * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
9741 lt_interpreter, first undo relocation done during bootstrapping.
9743 Tue May 30 15:52:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9745 * mach/Makefile (server-interfaces): Removed notify and
9746 device_reply. For shlibs with eager binding, libmachuser.so must
9747 not refer to any functions not defined in libc.
9749 Sat May 27 16:23:22 1995 Jim Meyering (meyering@comco.com)
9751 * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
9752 to avoid error from Irix-4.0.5's C compiler. From Kaveh Ghazi.
9754 Fri May 26 13:00:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9756 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
9757 pending signals if the thread is in a critical section. It will
9758 send us a msg when it finishes.
9760 * sysdeps/mach/hurd/pathconf.c: New file.
9761 * sysdeps/mach/hurd/fpathconf.c: New file.
9763 * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
9764 SIGCHLD when the SA_NOCLDSTOP bit actually changes.
9766 Sun May 21 05:05:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9768 * elf/Makefile (ld.so): Use -nostartfiles in addition to
9771 Sun May 21 02:01:29 1995 Jim Meyering (meyering@comco.com)
9773 * sysdeps/generic/memchr.c: Don't include <string.h> at all.
9774 HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
9775 memchr unless one manually arranges for them to define __STDC__.
9777 Fri May 19 17:16:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9779 * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
9780 args on stack from kernel.
9782 * posix/Makefile, sysdeps/alpha/Makefile,
9783 * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
9784 * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
9785 in the absence of CVS dirs.
9787 * hurd/hurdstartup.c: Don't call __mach_init. Grok args from the
9788 kernel on the stack properly.
9790 * set-init.c: Never call _init/_fini; just run __libc_subinit.
9792 * Makerules (LDFLAGS-c.so): Add -nostartfiles.
9793 * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
9795 * configure.in: Move defaulting of --with-elf and --with-gnu-*
9796 based on host os outside the AC_CACHE_VAL for the sysdirs
9799 * Makeconfig (localedir, nlsdir): New variables.
9801 * values.h: New file.
9802 * Makefile (headers): Add values.h.
9804 * locale/Makefile (distribute): Add error.h.
9805 * locale/localedef.c: Include "error.h".
9806 (main): Use error_message_count instead of warning_cntr.
9808 Wed May 17 16:50:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9810 Merged 1003.2 locale and localedef programs by Ulrich Drepper.
9811 * locale/charmap.c: New file.
9812 * locale/collate.c: New file.
9813 * locale/config.h: New file.
9814 * locale/ctype.c: New file.
9815 * locale/ctypedump.c: New file.
9816 * locale/hash.c: New file.
9817 * locale/hash.h: New file.
9818 * locale/iso-4217.def: New file.
9819 * locale/keyword.gperf: New file.
9820 * locale/keyword.h: New file.
9821 * locale/libintl.h: New file.
9822 * locale/locale.c: New file.
9823 * locale/localedef.c: New file.
9824 * locale/localedef.h: New file.
9825 * locale/locfile-lex.c: New file.
9826 * locale/locfile-parse.c: New file.
9827 * locale/messages.c: New file.
9828 * locale/monetary.c: New file.
9829 * locale/numeric.c: New file.
9830 * locale/token.h: New file.
9832 * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
9833 * posix/Makefile (headers): Add regex.h.
9834 (routines): Add regex.
9835 (gpl2lgpl): Add regex.c and regex.h.
9837 Tue May 16 17:35:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9839 * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
9840 instead of hard-coding "/share/locale".
9842 Sat May 13 02:16:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9844 * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
9846 Fri May 12 15:31:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9848 * elf/elf.h (ELFMAG, SELFMAG): New macros.
9850 Fri May 12 11:24:53 1995 Michael I Bushnell <mib@duality.gnu.ai.mit.edu>
9852 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
9853 the case where it starts out less than _hurd_dtablesize.
9855 Thu May 11 20:51:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9857 * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
9858 make sure the new size exceeds FIRST_FD.
9860 Wed May 10 21:00:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9862 * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
9864 Tue May 9 01:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9866 * Makerules (install-lib.so): Add %.so for each %_pic.a.
9868 * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
9869 the first thing in .data.
9871 * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
9873 * hurd/hurdstartup.h: New file.
9875 * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
9876 are the same. Use `jz' instead of `jeq'.
9878 * Makeconfig (config.make): Depend on config.status, and run it to
9880 (config.status): New target; depend on configure.
9881 If target (config.status) exists, run it with --recheck to update;
9882 if not, give error msg saying to run confiugre by hand.
9883 * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
9884 (sysd-Makefile-force): Set this variable to FORCE in this case, to
9885 force a rebuild of sysd-Makefile.
9886 (sysd-Makefile): Depend on $(sysd-Makefile-force).
9887 Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
9888 [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
9889 variable to FORCE in this case, to force a rebuild of sysd-rules.
9890 (sysd-rules): Depend on $(sysd-rules-force).
9891 Write into the file sysd-rules-sysdirs:=$(sysdirs).
9893 * Makerules (LDFLAGS-c.so): Change ld option -interp to
9896 * Makerules (do-install-program): New canned sequence.
9897 (install-bin, install-sbin): Use it.
9898 (install for lib*.so): Use it instead of $(do-install).
9899 Fix .so installation rules to handle lib*.so and *.so, deal with
9900 $(libprefix) right, and install *.so as *.so$($(*.so)-version);
9901 i.e. "libc.so-version = .1".
9903 Mon May 8 05:10:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9905 * elf/do-rel.h: New file, split out of dynamic-link.h.
9906 * elf/Makefile (distribute): Add do-rel.h.
9908 Sat May 6 11:06:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9910 * Makeconfig (+gccwarn): Add -Winline.
9912 * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
9913 set, avoid abort_rpcs, and use reply and intr ports saved in
9915 * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
9916 from SS->context. Don't clear SS->context.
9917 * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
9918 setting SS->context. If msg_sig_post returns, re-lock and clear
9921 Fri May 5 10:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9923 * mach/Makefile (errsystems.c): Comment out generation rule.
9925 * sysdeps/mach/_strerror.c: Consider a system unknown if its
9926 bad_sub member is null.
9928 * mach/mig-alloc.c: Add weak alias to non-__ name.
9930 Wed May 3 11:56:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9932 * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
9934 Tue May 2 01:52:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9936 * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
9939 * hurd/Makefile (distribute): Added hurdstartup.h.
9940 * hurd/hurd.h: Remove _hurd_startup decl.
9942 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
9943 ((__unused__)) instead of gratuitous self reference.
9945 * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
9946 table if FD2 doesn't fit.
9948 * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
9949 not the current table size.
9951 * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
9953 Implemented runtime dynamic linker to support ELF shared libraries.
9954 * elf/Makefile: Added rules to make ld.so and libdl.
9955 * elf/dl-error.c: New file.
9956 * elf/dl-fini.c: New file.
9957 * elf/dl-init.c: New file.
9958 * elf/dl-load.c: New file.
9959 * elf/dl-lookup.c: New file.
9960 * elf/dl-object.c: New file.
9961 * elf/dl-reloc.c: New file.
9962 * elf/dlclose.c: New file.
9963 * elf/dlerror.c: New file.
9964 * elf/dlopen.c: New file.
9965 * elf/dlsym.c: New file.
9966 * elf/dynamic-link.h: New file.
9967 * elf/link.h: New file.
9968 * elf/rtld.c: New file.
9969 * sysdeps/i386/dl-machine.h: New file.
9970 * sysdeps/stub/dl-machine.h: New file.
9971 * sysdeps/i386/dl-runtime.c: New file.
9972 * sysdeps/stub/dl-runtime.c: New file.
9973 * sysdeps/i386/elf/start.S: New file.
9974 * sysdeps/generic/dl-sysdep.c: New file.
9975 * sysdeps/mach/hurd/dl-sysdep.c: New file.
9976 * sysdeps/mach/hurd/i386/init-first.c: New file.
9977 * sysdeps/i386/init-first.c: New file.
9978 * sysdeps/stub/init-first.c: New file.
9980 Mon May 1 18:48:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9982 * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
9984 * version.c (__libc_print_version): Add "et al" and missing NL to
9987 Sat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9989 * posix/glob.c (S_ISDIR): Define if undefined.
9991 Thu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9993 * configure.in: Unless --without-fp, prepend */fpu before each
9994 machine dir in $mach; don't prepend FPU dirs at end. If
9995 --with-elf, prepend MACHINE/elf directories at end; don't insert
9998 * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
10000 * sysdeps/stub/clock.c: Added stub warning.
10001 * sysdeps/stub/dirfd.c: Likewise.
10002 * sysdeps/stub/exc2signal.c: Likewise.
10003 * sysdeps/stub/fdopen.c: Likewise.
10004 * sysdeps/stub/flock.c: Likewise.
10005 * sysdeps/stub/fpathconf.c: Likewise.
10006 * sysdeps/stub/ftruncate.c: Likewise.
10007 * sysdeps/stub/gtty.c: Likewise.
10008 * sysdeps/stub/isatty.c: Likewise.
10009 * sysdeps/stub/killpg.c: Likewise.
10010 * sysdeps/stub/madvise.c: Likewise.
10011 * sysdeps/stub/mkstemp.c: Likewise.
10012 * sysdeps/stub/mktemp.c: Likewise.
10013 * sysdeps/stub/mprotect.c: Likewise.
10014 * sysdeps/stub/msync.c: Likewise.
10015 * sysdeps/stub/pathconf.c: Likewise.
10016 * sysdeps/stub/poll.c: Likewise.
10017 * sysdeps/stub/raise.c: Likewise.
10018 * sysdeps/stub/readv.c: Likewise.
10019 * sysdeps/stub/setenv.c: Likewise.
10020 * sysdeps/stub/setlogin.c: Likewise.
10021 * sysdeps/stub/sigaltstack.c: Likewise.
10022 * sysdeps/stub/sigintr.c: Likewise.
10023 * sysdeps/stub/sigstack.c: Likewise.
10024 * sysdeps/stub/sleep.c: Likewise.
10025 * sysdeps/stub/sstk.c: Likewise.
10026 * sysdeps/stub/stime.c: Likewise.
10027 * sysdeps/stub/stty.c: Likewise.
10028 * sysdeps/stub/syscall.c: Likewise.
10029 * sysdeps/stub/sysconf.c: Likewise.
10030 * sysdeps/stub/truncate.c: Likewise.
10031 * sysdeps/stub/ualarm.c: Likewise.
10032 * sysdeps/stub/usleep.c: Likewise.
10033 * sysdeps/stub/utimes.c: Likewise.
10034 * sysdeps/stub/writev.c: Likewise.
10036 * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
10038 Wed Apr 26 16:06:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10040 * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
10042 Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10044 * posix/glob.c (glob): If GLOB_MARK set, stat names to find
10045 directories and append slashes to them in final pass before
10047 (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
10048 slash; never append it here.
10050 Sat Apr 22 14:48:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10052 * mach/Machrules [interface-library]
10053 (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
10056 * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed. Lock
10057 _hurd_siglock only around initial task creation in parent. Use
10058 _hurd_critical_section_unlock at end. Handle dead name rights
10059 properly, and deal with a send right dying while we try to copy
10060 it. For the time being, use assert_perror for kernel and proc RPC
10063 Fri Apr 21 01:10:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10065 * extra-lib.mk: Don't include $(o-iterator); construct it by hand
10066 using $(object-suffixes-$(lib)) instead.
10068 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
10070 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
10071 (LDFLAGS-c.so): New variable.
10073 * resolv/res_init.c (res_init): Don't clobber _res.options with
10074 RES_DEFAULT. If RES_INIT is clear, OR in RES_DEFAULT.
10076 * hurd/hurd.h: Declare _hurd_startup.
10077 * hurd/hurdstartup.c: New file.
10078 * hurd/Makefile (routines): Add hurdstartup.
10080 Thu Apr 20 22:23:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10082 * hurd/hurdsig.c: Use assert_perror for many calls which should
10083 never fail and previously were not checked.
10085 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10086 Point the return address for sigreturn's frame at a "hlt" insn so
10087 it will definitely crash if sigreturn returns.
10089 Wed Apr 19 18:40:11 1995 Brendan Kehoe (brendan@zen.org)
10091 * time/tzset.c (__tzname, __daylight, __timezone): Don't check
10092 HAVE_WEAK_SYMBOLS for doing weak_alias.
10094 Wed Apr 19 18:12:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10096 * configure.in: Move $os tests to set $elf et al earlier, before
10097 construction of $sysnames. Instead of prepending MACHINE/elf to
10098 $sysnames, append &/elf after each elt appended to $mach.
10100 Tue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10102 * configure.in (libc_cv_asm_global_directive): New check to define
10103 ASM_GLOBAL_DIRECTIVE.
10104 * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
10105 * libc-symbols.h (strong_alias_asm, strong_alias): Use
10106 ASM_GLOBAL_DIRECTIVE on the alias.
10108 * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
10109 HAVE_WEAK_SYMBOLS" #defns.
10111 Mon Apr 17 12:02:49 1995 Brendan Kehoe (brendan@zen.org)
10113 * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
10114 of the byte that was zero, so we return a valid number.
10116 Sun Apr 16 03:23:09 1995 Brendan Kehoe (brendan@zen.org)
10118 * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
10119 NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
10121 Fri Apr 14 18:49:03 1995 Brendan Kehoe (brendan@zen.org)
10123 * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
10124 [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
10125 * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
10126 [BITS_PER_MP_LIMB == 64]: Likewise.
10128 * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
10129 * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
10130 * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
10131 * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
10132 * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
10133 * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
10134 * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
10135 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
10136 * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
10137 * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
10138 * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
10140 * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
10141 * sysdeps/unix/mips/fork.S (fork): Likewise.
10142 * sysdeps/unix/mips/pipe.S (fork): Likewise.
10143 * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
10144 * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
10145 * sysdeps/unix/mips/wait.S (__handler): Likewise.
10146 * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
10147 * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
10148 * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
10149 * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
10150 * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
10151 * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
10152 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
10153 * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
10154 * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
10155 * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise. Use `$0'
10156 instead of `zero' for the li instruction.
10158 * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
10159 preprocessor comments, not assembler comments.
10160 * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
10161 * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
10163 Fri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10165 * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
10166 in place of inline.
10168 Thu Apr 13 09:45:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10170 * Makefile (distribute): Add ChangeLog.[0-9].
10172 * configure.in: Add check for .set directive.
10173 * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
10174 * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
10175 strong_alias_asm): Use `foo = bar' syntax instead.
10177 * Makerules [! subdir] (O%-lib): Don't prepend ../.
10179 * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
10181 * configure.in: Fix AC_ARG_WITH uses; check for --with-fp. Move
10182 $host_os checks to set gnu_ld/as and elf before sysdirs
10183 generation. Fix $with_fp test.
10184 [$elf=yes]: Prepend MACHINE/elf directory.
10186 * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
10187 being cleared are already known to be set. Thanks Ulrich.
10189 Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10191 * posix/environ.c: Add weak alias `_environ'.
10193 Tue Apr 11 20:38:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10195 * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
10196 * sysdeps/i386/sub_n.S [PIC]: Likewise.
10198 Mon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10200 * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
10203 * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
10204 $(foo-$(suffix $@)).
10206 * manual/Makefile (chapters-incl): Filter out summary.texi.
10208 * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
10209 a weak symbol instead of literal "STRTOF".
10211 * locale/setlocale.c: Work around ld bug: don't weakify refs to
10214 Sun Apr 9 01:24:33 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10216 * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
10218 * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
10219 * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
10221 * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
10222 #ifdef emacs, but only #ifndef memmove.
10223 * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
10225 (memmove): Define only if undefined.
10227 Sat Apr 8 00:40:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10229 * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
10230 sure these are simply-expanded variables.
10232 * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
10235 * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
10238 * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
10241 * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
10243 * locale/Makefile (categories): Uncomment collate.
10244 * locale/lc-collate.c: New file.
10246 * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
10248 * malloc/realloc.c: Likewise.
10250 * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
10251 (_itoa): Use it in defn.
10252 * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
10254 (_itoa): Function removed.
10256 * malloc/free.c: Remove use of `assert'.
10258 * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
10259 __malloc_safe_bcopy; #define safe_bcopy.
10260 * malloc/free.c: Cope with systems lacking `memmove'.
10261 (_free_internal): Cast result of _malloc_internal.
10263 Wed Apr 5 00:13:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10265 * hurd/hurdinline.c: Include signal.h first, so we don't define
10268 * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
10269 of -1 to avoid compiler warning.
10271 * configure.in (host_os=linux*): Set elf=yes for this, not just
10274 * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
10277 * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
10279 Tue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10281 * sysdeps/unix/start.c: Remove spurious decl and #endif.
10283 * misc/progname.c (program_invocation_name,
10284 program_invocation_short_name): Make these initialized data
10287 * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
10288 so gcc doesn't optimize out the function entirely.
10290 Sun Apr 2 13:13:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10292 * posix/execvp.c: Don't use stat to search path; just try execv
10295 * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
10296 SS->active_resources, so that _hurdsig_longjmp_from_handler will
10297 be called when a longjmp unwinds the signal frame.
10298 * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
10299 SS->active_resources chain added by _hurd_setup_sighandler.
10300 * hurd/sigunwind.c: New file.
10301 * hurd/Makefile (sig): Add sigunwind.
10303 * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
10305 * MakeTAGS (tags-sources): Include $(all-dist).
10306 [subdir] (all-dist): Define to $(distribute).
10308 Sat Apr 1 00:08:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10310 * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
10313 * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
10314 filtering out $($(lib)-inhibit-o); use that instead of
10315 $(object-suffixes) in all the other variables.
10317 * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
10320 * string/strxfrm.c: Just copy the string (for now).
10321 * string/strcoll.c: Just call strcmp (for now).
10323 * mach/Makefile (lock): Add mutex-init.
10324 * mach/mutex-solid.c (_cthread_mutex_lock_routine,
10325 _cthread_mutex_unlock_routine): Variables removed.
10326 (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
10327 (__mutex_init): Function moved to new file mutex-init.c.
10328 * mach/mutex-init.c: New file, broken out of mutex-solid.c.
10330 Thu Mar 30 20:43:02 1995 Brendan Kehoe <brendan@zen.org>
10332 * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
10333 * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
10335 Thu Mar 30 01:38:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10337 * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
10340 Wed Mar 29 11:26:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10342 * elf/dlfcn.h: New file.
10344 * Make-dist (README): Commit it to CVS if there is a CVS directory.
10346 More changes from Germano Caronni <caronni@tik.ethz.ch>:
10347 * malloc/free.c: Relocate _heapinfo when that allows us to return
10348 core to the system.
10350 * malloc/malloc.c: Move #include <errno.h> outside #ifndef
10353 Mon Mar 27 02:23:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10355 * mach/Makefile (headers): Add mach/mach_traps.h.
10357 * Makerules ($(installed-libcs) rule): Fix typos.
10359 * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
10360 * sysdeps/stub/revoke.c: New file.
10361 * misc/Makefile (routines): Add revoke.
10362 * posix/unistd.h [__USE_BSD] (revoke): Declare it.
10363 * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
10364 (forkpty): Declare login_tty.
10365 * misc/logwtmp.c (logwtmp): Declare to return void.
10366 * misc/login_tty.c (login_tty): Include unistd.h. Declare return type.
10368 * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
10370 * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
10371 unless L_SET already defined.
10372 * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
10375 Incorporated -lutil library from 4.4-Lite.
10376 * misc/Makefile (extra-libs, libutil-routines): New variables.
10377 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
10378 sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
10380 Support simple, light-weight unwind-protect mechanism for longjmp.
10381 * setjmp/longjmp.c: Call _longjmp_unwind first thing.
10382 * sysdeps/mach/hurd/jmp-unwind.c: New file.
10383 * sysdeps/stub/jmp-unwind.c: New file.
10384 * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10385 * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10386 * setjmp/Makefile (routines): Add jmp-unwind.
10387 * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
10388 `prevp' members into new substructure `resource'; add another such
10389 substructure `thread' and members `cleanup' (function ptr) and
10390 `cleanup_data' (generic ptr).
10391 (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
10392 into the `_hurd_self_sigstate ()->active_resources' list via the
10393 `thread' substructure.
10394 * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
10395 (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
10396 LINK->cleanup_data' to the port extracted.
10397 * hurd/hurd/signal.h (struct hurd_sigstate): New member
10398 `active_resources'.
10399 * hurd/port-cleanup.c: New file.
10400 * hurd/Makefile (routines): Add port-cleanup.
10402 * malloc/malloc.c: Include errno.h.
10404 Sat Mar 25 18:24:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10406 * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
10408 Fri Mar 24 02:35:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10410 * misc/Makefile (headers): Add utmp.h.
10411 * misc/utmp.h: New file, incorporated from 4.4-Lite.
10413 * stdio/printf-parse.h: New file, mostly written by drepper.
10414 * stdio/vfprintf.c: Rewritten, mostly by drepper.
10415 * stdio/printf-prs.c: Rewritten.
10416 * stdio/Makefile (distribute): Add printf-parse.h.
10418 Thu Mar 23 22:03:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10420 * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
10421 with asm name. Just do a ".set start, __start".
10423 * malloc/realloc.c: Call _free_internal instead of free.
10425 Tue Mar 21 00:14:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10427 * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
10428 directory, open LOCALE/LC_*/SYS_LC_* instead.
10430 Mon Mar 20 03:19:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10432 * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
10433 stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
10434 stdio/gen-mpn-copy: Files moved to stdlib.
10435 * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
10436 * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
10437 * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
10439 * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
10442 * Makefile (parent-mostlyclean): Don't use $(libc.a).
10443 (parent-clean): Use $(objpfx) to find sysd-*.
10444 * Rules (generated): Append dummy.o dummy.c.
10445 * Makerules (lib): Depend on lib-noranlib.
10446 (lib-noranlib): Depend on $(install-lib) in objdir.
10447 (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
10448 from objdir. Don't remove TAGS; it comes in the distribution.
10450 * malloc/malloc.c (morecore): Save errno around call to
10451 _realloc_internal. Don't account for the additional new blocks of
10452 the info table itself when choosing the new table size for the
10453 first crack; if it succeeds, the new blocks will have been found
10454 in existing free space already described by the existing info
10457 * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
10458 read-ahead character.
10460 Sat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10462 * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
10463 hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
10464 hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
10465 hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
10466 Get anal with unsigned to pacify compiler.
10468 * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
10469 means %d from 3rd arg).
10471 * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
10473 * stdlib/strtol.c: If !GROUP, set END to null. In loop, test only
10476 Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10478 * Makefile (subdirs): Put elf last.
10480 * sunrpc/Makefile (install-lib): Variable removed.
10481 (rpcsvc-objs): Variable removed.
10482 (extra-objs): Don't include $(rpcsvc-objs).
10483 (extra-libs): New variable, contains librpcsvc.
10484 (librpcsvc-routines): New variable.
10485 (librpcsvc-inhibit-o): New variable, contains .so.
10486 (omit-deps): Set this to $(librpcsvc-routines).
10487 ($(objpfx)rpcgen): Don't use $(libc.a).
10488 (lib, $(objpfx)librpcsvc.a): Targets removed.
10490 * o-iterator.mk, extra-lib.mk: New files.
10491 * Makerules (o-iterator): New variable.
10492 [extra-libs]: Include extra-lib.mk to generate rules for each word
10494 * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
10496 Fri Mar 17 13:28:04 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
10498 * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
10499 Handle 80-bit denormalized numbers correctly.
10501 * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
10502 (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
10503 * stdlib/strtod.c (RETURN): Add parentheses around return value.
10504 (round_and_return): Correct handling of denormalized numbers.
10506 * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
10507 LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
10510 Thu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10512 * locale/C-ctype.c: New correct data generated by drepper.
10514 * Rules: Don't use $(libc.a).
10516 Parsing of grouped numbers contributed by Ulrich Drepper.
10517 * stdlib/strtol.c (__strtol_internal): Renamed from strtol. Take
10518 new flag arg; if nonzero, parse locale-dependent thousands
10519 grouping and interpret only the prefix that is correctly grouped.
10520 (strtol): Define this to call _strtol_internal with zero for the flag.
10521 Use a weak symbol for the definition.
10522 * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
10523 Check for the exponent of the number overflowing the float format.
10524 * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
10525 (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
10526 [__OPTIMIZE__]: Define inline functions calling those.
10527 * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
10528 (strtold): Remove weak alias.
10529 * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
10530 (strtof): Remove weak alias.
10531 * stdlib/grouping.h: New file, written by drepper.
10532 * stdlib/Makefile (distribute): Add grouping.h.
10533 * stdio/vfscanf.c: Grok %' modifier to numeric conversions. Call
10534 __strtoX_internal with the grouping flag set iff the modifier is
10537 Wed Mar 15 00:40:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10539 * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
10541 * mach/Machrules: Produce static deps for all object flavors.
10542 [interface-library]: Remove all these variables and rules.
10543 ($(interface-library)-routines): Define this variable.
10544 (extra-libs): Append $(interface-library) to this.
10545 * mach/Makefile (interface-library): Omit .a suffix.
10546 * hurd/Makefile: Likewise.
10548 Tue Mar 14 23:40:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10550 * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
10551 early if no new data in buffer after priming.
10553 Mon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10555 * Makerules (object-suffixes, libtypes): Move all these variables
10557 * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
10559 * Makerules (build-extra-lib): New canned sequence.
10561 * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h. Declare ERR;
10562 fix uses of FILE and PORT. Remove bogus weak alias for `access'.
10564 * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
10565 Add missing semicolon.
10566 * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h. Use a `struct
10567 hurd_fd *' temp var, since DIRP->__fd is a `void *'.
10568 * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
10570 * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
10571 locale data format is implemented.
10573 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10574 Pass &__sigreturn on the stack to the trampoline code, so it is
10575 not position-dependent.
10577 * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
10578 Don't include <stdarg.h>.
10579 (__printf_fp): Last arg ARGS is now `const void **const';
10580 dereference ARGS[0] instead of using va_arg.
10582 * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
10583 loop to install data.
10585 * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
10586 to extract number from item code.
10587 (_nl_load_locale): Close the descriptor when finished.
10589 * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
10592 * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
10594 * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
10596 * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
10597 int to avoid warning.
10599 Support building several flavors of objects and libraries.
10600 * Makerules (libtypes, object-suffixes): New variables.
10601 (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
10603 (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
10604 (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
10605 (close-check-inhibit-asm): Append a semicolon.
10606 (sysd-rules): Generate rules for each object suffix.
10607 (compile.S, compile.c): Always assume gcc.
10608 (OUTPUT_OPTION): Define unconditionally.
10609 (+make-deps): In generated rule, produce a dependent for each
10611 (.SUFFIXES): Add $(object-suffixes) in place of .o.
10612 (.PRECIOUS): Make all suffix flavors precious.
10613 ($(libc.a)): Target removed.
10614 (lib): Depend on each enabled libtype.
10615 (libobjs, objects, objs): Depend on all the enabled object flavors.
10616 (lib%.a): New pattern rule.
10617 [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
10618 (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
10619 to make one for each flavor; library dep rule likewise rewritten.
10620 ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
10622 (symdef.%): New pattern rule; helper for __.SYMDEF targets.
10623 (installed-libcs): New variable.
10624 (install): Depend on that instead of
10625 $(libdir)/lib$(libprefix)$(libc-name).a;
10626 that file's rule rewritten to make each enabled libtype.
10627 (install-lib.so): New variable, filters lib%.so from $(install-lib).
10628 (install-lib): Filter out lib%.so after setting install-lib.so.
10629 [$(build-shared)=yes] (install): Install $(install-lib.so).
10630 (common-mostlyclean): Remove all flavors of objects.
10631 * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
10632 [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
10634 Sun Mar 12 18:21:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10636 * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
10637 * sysdeps/stub/pause.c: Likewise.
10638 * sysdeps/stub/time.c: Likewise.
10640 * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
10641 locale data format is implemented.
10642 * stdlib/wctomb.c: Likewise.
10644 * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
10646 * mach/errsystems.c: File removed.
10648 * Makeconfig (libc.a): Variable removed.
10649 (+link): Don't use it.
10651 * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
10654 * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
10655 * malloc/realloc.c (_realloc_internal): Renamed from realloc;
10656 don't use __realloc_hook.
10657 (realloc): New function; call __realloc_hook ?: _realloc_internal.
10658 * malloc/malloc.c (_malloc_internal): Renamed from malloc;
10659 don't use __malloc_hook.
10660 (malloc): New function; call __malloc_hook ?: _malloc_internal.
10661 Changes from Germano Caronni <caronni@tik.ethz.ch>:
10662 (initialize): Set up _heaplimit to cover the _heapinfo table.
10663 (morecore_recursing): New static variable.
10664 (morecore): If that is set, return null immediately.
10665 When growing the info table, before getting new core from the
10666 system for it, set morecore_recursing and try moving _heapinfo
10667 with _realloc_internal. When that fails and we get new core, set
10668 _heaplimit to cover the core for the new _heapinfo table.
10669 (register_heapinfo): New function. Record the _heapinfo table's
10670 own blocks in that table and in the statistics variables.
10671 (initialize, _malloc_internal): Use it after allocating new table.
10673 Fri Mar 10 22:26:28 1995 Jim Meyering (meyering@comco.com)
10675 * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
10677 [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
10679 Fri Mar 10 13:31:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10681 * mach/errorlib.h (errors): Use const for decl.
10683 * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
10684 (decode): New inline function; decode signed 32-bit integers, and
10685 sign-extend properly when long is longer than 32 bits.
10686 (__tzfile_read): Changed all uses of uc2ul to decode.
10687 Decode the transition times properly when sizeof (time_t) > 4.
10689 * stdio/printf.h: Doc fixes. Don't #include <stddef.h>.
10690 (printf_function): Make last arg ARGS a vector of pointers instead of a
10691 pointer to va_list.
10693 Fri Mar 10 13:46:25 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
10695 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
10696 (buffered_vfprintf): Remove line buffer when flush failed.
10698 Fri Mar 10 00:04:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10700 * time/tzfile.c (struct ttinfo): New member `isgmt'.
10701 (__tzfile_read): Read isgmt flags for each type.
10702 (__tzfile_default): When using TZDEFRULES DST rules, adjust
10703 transition times according to the isstd and isgmt flags for the
10704 types of each transition, and adjust each transition to point to
10705 type index either 0 or 1. Reset type indices 0 and 1 to describe
10706 the user's settings.
10708 Thu Mar 9 22:29:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10710 * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
10711 into just CLASS. Add standard/optional flag to all items.
10713 * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
10715 * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
10716 Rearrange defn to satisfy compiler.
10718 * locale/localeinfo.h: Declare _nl_current.
10720 * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
10721 --enable-shared, --enable-profile, --enable-omitfp; pass settings
10722 through to config.make.
10723 * config.make.in (build-shared, build-profile, build-omitfp): New
10726 * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
10727 (DT_NUM): New macro.
10729 * locale/nl_langinfo.c: Include errno.h and stddef.h. Fix typos.
10731 * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
10733 * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
10734 MAP_COPY to MAP_PRIVATE.
10736 Thu Mar 9 17:16:53 1995 Brendan Kehoe (brendan@zen.org)
10738 * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
10739 that's used inside the alpha sysdep.h.
10741 * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
10743 * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
10745 * configure.in: Match `osf*', not `osf1*'.
10746 * configure: Likewise.
10747 * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
10749 Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10751 * posix/glob/configure.bat: Fixes from DJ.
10753 * time/backward, time/europe, time/northamerica, time/pacificnew,
10754 time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
10755 time/ialloc.c: Code and data updated from ADO's 95b.
10756 * time/emkdir.c: File removed.
10757 * time/Makefile (distribute, extra-objs, zic): Omit it.
10759 * time/localtime.c: Deansideclized. Never #define __tzname et al
10762 * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
10763 instead of short int *.
10764 * ctype/ctype-info.c: Likewise.
10765 * ctype/ctype.h: Likewise.
10767 * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
10768 of EB and EL versions.
10770 Mon Mar 6 12:34:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10772 * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
10773 (_IS* enum): Use _ISbit to produce values.
10775 Sun Mar 5 19:40:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10777 * locale/localeinfo.h: Rewritten for new locale system, using
10778 locale data files and with <langinfo.h> interface.
10779 * locale/setlocale.c: Rewritten to use locale data files.
10780 * langinfo.h: New file.
10781 * locale/langinfo.h: New file.
10782 * locale/nl_langinfo.c: New file.
10783 * locale/loadlocale.c: New file.
10784 * locale/lc-ctype.c: New file.
10785 * locale/lc-messages.c: New file.
10786 * locale/lc-monetary.c: New file.
10787 * locale/lc-numeric.c: New file.
10788 * locale/lc-time.c: New file.
10789 * locale/categories.def: New file.
10790 * locale/Makefile (headers): Remove localeinfo.h.
10791 (distribute): New variable; put localeinfo.h here, and categories.def.
10792 (routines): Add loadlocale.
10793 (categories): New variable.
10794 (aux): Use that to get C-category and lc-category.
10795 * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
10796 * ctype/ctype-info.c: For initial tables, use
10797 _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
10799 * locale/C-ctype.c, locale/C-messages.c: New files.
10800 * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
10801 Default "C" locale data updated for new locale system.
10802 * locale/C-collate.c: File removed.
10803 * locale/C-ctype_ct.c: File removed.
10804 * locale/C-ctype_mb.c: File removed.
10805 * locale/C-response.c: File removed.
10806 * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
10807 * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
10808 stdlib/strtod.c, time/asctime.c, time/strftime.c:
10809 Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
10811 * time/localtime.c: Don't include <localeinfo.h>.
10812 * time/tzset.c: Don't use locale items for default TZ value or
10813 "GMT" string (use "UTC").
10815 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
10816 WIDTH>0; update DONE.
10818 * malloc/malloc.c (morecore): Fix last change to calculate by
10819 blocks instead of bytes.
10821 Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10823 * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
10824 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
10825 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
10826 * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
10827 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
10828 * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
10830 * sysdeps/unix/mman/munmap.S: Likewise.
10831 * sysdeps/mach/munmap.c: Likewise.
10832 * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
10834 * sysdeps/unix/mman/mmap.S: Likewise.
10835 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
10836 * sysdeps/stub/mmap.c: Likewise.
10838 * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
10840 * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
10842 Thu Mar 2 12:15:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10844 * misc/search.h: Add missing semicolon.
10846 * sysdeps/unix/dirfd.c: Fix typo.
10848 * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
10851 * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
10854 Wed Mar 1 00:57:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10856 * stdlib/strtod.c: Fixes from drepper.
10857 [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
10858 * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
10859 * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
10861 * stdio/vfprintf.c: Correctly notice Z modifier.
10863 * misc/search.h: New file.
10864 * misc/Makefile (headers): Add search.h.
10865 * misc/insremque.c: Include search.h.
10866 (struct qelem): Type removed.
10868 Mon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10870 * elf/libelf.h: New file.
10871 * elf/elf_hash.c: New file.
10873 Sun Feb 26 15:51:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10875 Changes from Germano Caronni <caronni@tik.ethz.ch>:
10876 * malloc/malloc.c (morecore): Account in NEWSIZE for the
10877 malloc_info structures for each new block.
10879 Sat Feb 25 02:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10881 * sysdeps/mach/hurd/kill.c: When the process has no message port
10882 registered and we have its task port, translate a few signals to
10883 task_suspend/task_resume/task_terminate.
10885 Fri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10887 * io/Makefile (routines): Add euidaccess.
10888 * sysdeps/mach/hurd/euidaccess.c: New file.
10889 * sysdeps/stub/euidaccess.c: New file.
10890 * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
10892 * dirent/Makefile (routines): Add dirfd.
10893 * sysdeps/stub/dirfd.c: New file.
10894 * sysdeps/unix/dirfd.c: New file.
10895 * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
10896 * dirent/dirent.h (dirfd): Declare new function. Define as macro
10897 _DIR_dirfd if that is defined.
10898 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
10900 * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
10901 Open the file with `open'; set FD_CLOEXEC on the fd.
10902 * sysdeps/mach/hurd/closedir.c: Likewise.
10903 * sysdeps/mach/hurd/readdir.c: Likewise.
10904 * sysdeps/mach/hurd/dirfd.c: New file.
10906 * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
10908 (glob/ChangeLog): Likewise.
10910 * locale/locale.h (LC_*): Use small integers instead of bit masks.
10912 * stdio/bug4.c: Put temporary files in /tmp.
10913 * stdio/bug3.c: Likewise.
10914 * stdio/bug5.c: Likewise.
10915 * stdio/test-fseek.c: Likewise.
10916 * stdio/test-popen.c: Likewise.
10918 Wed Feb 22 00:44:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10920 * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
10922 * libc-symbols.h (weak_symbol): New macro.
10924 * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
10925 elts with null handlers.
10927 * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
10929 Tue Feb 21 21:53:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10931 * stdlib/random.c (__srandom): Change algorithm used to populate
10933 (randtbl): Recomputed with new algorithm.
10935 * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
10936 to original value of `crypt'.
10937 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
10938 (crypt): New variable, set to crypt.solar.
10940 Tue Feb 21 11:50:37 1995 Brendan Kehoe (brendan@zen.org)
10942 * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
10944 * config.h.in: Put comment around ^L to pacify Solaris as here too.
10946 Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10948 * string/Makefile (distribute): Add pagecopy.h.
10949 * sysdeps/mach/pagecopy.h: New file.
10950 * sysdeps/generic/pagecopy.h: New file.
10951 * sysdeps/generic/memcpy.c: Include pagecopy.h; call
10952 PAGE_COPY_FWD_MAYBE first when word aligned.
10953 * sysdeps/generic/memmove.c: Likewise.
10955 * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
10956 (getpgrp): Call __getpgid instead of __getpgrp.
10958 * Makefile (subdirs): Add elf first.
10959 * elf/Makefile: New file.
10960 * elf/elf.h: New file.
10962 * sysdeps/unix/start.c (errno): Only define if it's not #define'd
10964 [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
10967 * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
10968 add crti_s, crtn_s.
10969 (install-lib, extra-objs, generated-, omit-deps): Use that.
10970 (initfini): New canned sequence, broken out of crt[in].s rule.
10971 (crt[in].s rule): Use it.
10972 (crt[in]_s.s): New rule.
10973 * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
10974 (_init, _fini): Use GLOBAL as storage class.
10975 Add self reference to avoid GCC optimizing out the functions.
10977 * Makefile (headers): Remove $(stddef.h).
10978 * Makeconfig (stddef.h): Variable removed; now require gcc version
10980 * stddef.h: File removed.
10982 Mon Feb 20 19:42:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10984 * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
10986 * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
10988 * stdlib/strtod.c: Allow the string to start with a decimal point
10989 without a leading zero.
10991 Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10993 * Makefile (subdirs): Put csu first.
10995 * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
10997 * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
10999 (csu-objpfx): New variable.
11000 (+link): Use it to find start.o and $(+preinit), $(+postinit).
11002 * Rules (subdir_lib, all): Depend on objs.
11004 * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
11006 * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
11007 access to float.h macros.
11009 * misc/efgcvt.c: New file.
11010 * misc/Makefile (routines): Add efgcvt.
11012 Sun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
11014 * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
11015 * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
11016 to avoid a misreference that would override sysdeps/generic/mul.c.
11017 * sysdeps/sparc/Dist: Likewise.
11019 Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
11021 * posix/Makefile (aux): Add environ.
11022 * posix/environ.c: New file.
11023 * sysdeps/unix/sparc/start.c: Remove __environ definition.
11024 * sysdeps/unix/start.c: Likewise.
11025 * sysdeps/unix/sysv/irix4/start.c: Likewise.
11026 * sysdeps/mach/hurd/start.c: Likewise.
11027 * sysdeps/mach/start.c: Likewise.
11028 * sysdeps/stub/start.c: Likewise.
11030 * sysdeps/unix/make_errlist.c: In produced program, test
11031 HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
11032 * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
11033 Remove extra weak alias.
11035 * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
11038 * libc-symbols.h: Put comment around ^L to pacify Solaris as.
11040 * sysdeps/posix/Makefile (cded-objdir-includes): New variable
11041 replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
11043 (mk-stdiolim): Use it instead.
11045 Fri Feb 17 12:16:27 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
11047 * mach/mach_init.c (__vm_page_size): Make it initialized. It does
11048 not work to make a weak alias to a bss symbol.
11050 * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
11051 (tests): Add test-fwrite.
11052 * stdio/test-fwrite.c: New file.
11054 * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
11057 * Makefile (autoconf-it): New canned sequence. Do cvs commit if
11058 there is a CVS directory.
11059 (configure, %/configure): Use $(autoconf-it) for cmds.
11060 * Make-dist: Likewise.
11061 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
11062 if there is a CVS directory.
11063 * sysdeps/sparc/Makefile (divrem output): Likewise.
11064 * sysdeps/alpha/Makefile (divrem output): Likewise.
11065 * Makerules ($(gpl2lgpl)): Likewise.
11067 * Makerules (rule to install lib%.a from $(install-lib)): Fix
11068 patsubst to elide ranlib for $(non-lib.a).
11070 * stdio/tst-printf.c: Enable FP tests. Add some new tests from rfg.
11072 Thu Feb 16 04:06:06 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
11074 * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
11075 * mach/mig-dealloc.c: Add weak alias mig_deallocate.
11077 Wed Feb 15 13:34:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11079 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
11080 DEALLOC_REFPORT; deallocate the refport after use only if it
11081 evaluates to nonzero.
11082 * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
11083 * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
11085 * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
11086 *STATE_CHANGE to indicate whether or not we changed *STATE and it
11087 should be committed to the thread.
11088 (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
11089 state for a thread, do thread_set_state on that thread. Don't use
11090 SS->intr_port for collecting reply ports, it is not safe to
11091 clobber that when suspending; instead, alloca a temporary array.
11092 (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
11093 zero when dying, one when suspending. Pass new arg to abort_rpcs.
11095 * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
11096 HURD_FD_PORT_USE will. Don't use critical sections around
11097 HURD_FD_PORT_USE invocations.
11099 * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
11100 * sysdeps/posix/stdio_init.c: Likewise.
11102 Tue Feb 14 03:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11104 * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
11105 locking; don't leave the descriptor locked on return.
11106 (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
11107 Use a critical section around locking the descriptor.
11108 Check for an empty descriptor and return EBADF.
11109 * sysdeps/mach/hurd/dup2.c: Likewise.
11110 * sysdeps/mach/hurd/fcntl.c: Likewise.
11111 Use HURD_FD_PORT_USE macro for RPCs.
11112 * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
11113 using HURD_FD_PORT_USE.
11114 * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
11115 to lock the descriptor.
11116 * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
11117 locking the descriptor.
11118 * sysdeps/mach/hurd/fdopen.c: Likewise.
11119 * hurd/fd-close.c: Likewise.
11120 Don't expect the descriptor to be locked on entry.
11121 Check for empty descriptor and return EBADF.
11123 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
11124 new functions _hurd_ctty_input and _hurd_ctty_output, each
11125 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
11126 * hurd/ctty-input.c: New file.
11127 * hurd/ctty-output.c: New file.
11128 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
11129 * hurd/fd-read.c: Use _hurd_ctty_input.
11130 * hurd/fd-write.c: Use _hurd_ctty_output.
11131 * sysdeps/mach/hurd/ioctl.c: Likewise.
11132 * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
11134 Mon Feb 13 11:36:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11136 * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
11137 as appropriate to the type.
11139 * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
11140 repeating the union.
11141 (HUGE_VAL, __huge_val): Use it.
11142 [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
11143 analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
11144 * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
11145 (STRTOF): Set to __strtold; define strtold as weak alias.
11146 * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
11147 (STRTOF): Set to __strtof; define strtof as weak alias.
11149 * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
11150 (IEEE754_FLOAT_BIAS): New macro.
11152 * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
11154 * stdlib/testmb.c: Add tests from rfg for using normal chars as
11157 * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
11158 only the `defined but not used' warning, but also to avoid GCC
11159 optimizing out the entire function (!).
11161 * stdlib/wctomb.c: Include ctype.h.
11163 * Makerules (install-lib-non.a): Don't include $(non-lib.a).
11165 * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
11167 Sat Feb 11 04:05:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11169 * stdio/printf_fp.c: Include "fpioconst.h".
11170 (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
11171 (__printf_fp): All references changed.
11172 Don't bother computing THOUSANDS_SEP if GROUPING is empty.
11173 (group_number): Use memmove instead of memcpy, since operands overlap.
11174 * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
11175 * stdio/fpioconst.h: New file, header declaring the table data.
11176 * stdio/Makefile (aux): Add fpioconst.
11177 (distribute): Add fpioconst.h.
11178 * stdlib/strtod.c: Complete rewrite from drepper.
11179 * stdlib/strtof.c: New file.
11180 * stdlib/strtold.c: New file.
11181 * stdlib/Makefile (routines): Add strtof, strtold.
11182 * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
11183 * sysdeps/stub/mpn2flt.c: New file.
11184 * sysdeps/stub/mpn2dbl.c: New file.
11185 * sysdeps/stub/mpn2ldbl.c: New file.
11186 * sysdeps/ieee754/mpn2flt.c: New file.
11187 * sysdeps/ieee754/mpn2dbl.c: New file.
11188 * sysdeps/ieee754/mpn2ldbl.c: New file.
11190 * Makerules (install-lib.a): Don't filter out $(non-lib.a).
11191 ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
11192 appears in $(non-lib.a).
11194 Fri Feb 10 17:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11196 * stdlib/wctomb.c: A normal ASCII character translates to itself.
11197 * stdlib/mbtowc.c: Likewise.
11199 Thu Feb 9 03:55:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11201 * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
11202 Remove `const' from prototypes.
11203 * sysdeps/m68k/__longjmp.c: Likewise.
11204 * setjmp/longjmp.c: Likewise.
11205 * sysdeps/i386/__longjmp.c: Likewise.
11207 * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
11208 so when we return a name, it is incremented past the value that
11209 produces that same name.
11211 * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype. Sigh.
11212 * stdio/stdio.h (fgets): Likewise.
11214 * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
11216 * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
11217 when it's EBACKGROUND; we need to notice that it is EBACKGROUND
11219 * hurd/fd-read.c: Likewise.
11221 Wed Feb 8 05:01:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11223 * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
11224 <mach/mig_support.h>.
11225 * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
11226 * assert/assert.c: Likewise.
11227 * sysdeps/posix/libc_fatal.c: Likewise.
11229 Tue Feb 7 12:17:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11231 * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
11232 as macros, to satisfy ANSI pedants.
11234 * stdio/internals.c (flushbuf): When there is no new data after
11235 priming the stream, return without writing out the buffer.
11236 * stdio/Makefile (tests): Add bug7.
11237 * stdio/bug7.c: New file.
11239 * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
11240 S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
11243 * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
11245 * stdio/Makefile (tests): Add errnobug.
11246 * stdio/errnobug.c: New file.
11248 * mach/mig_strncpy.c: Include string.h.
11250 * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>. Its
11251 inlines cause trouble for files defining global register variables.
11253 * stdio/vfprintf.c: Use _strerror_internal for %m.
11255 * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
11257 * stdio/printf.h (struct printf_info): New member `group', for %' flag.
11258 * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
11259 * stdio/vfprintf.c (group_number): New function.
11260 (vfprintf): Support %' flag for integer formats, by calling
11261 group_number after formatting the number in WORK.
11262 * stdio/printf_fp.c (guess_grouping, group_number): New functions.
11263 (__printf_fp): Implement `group' flag using them.
11265 * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
11266 (parent-clean): Remove sysd-rules, not sysdirs.
11267 (distclean): Pass avoid-generated=yes to submake.
11268 (distclean-1): Remove $(sysdep-$(distclean-1)).
11270 * Makerules (objects, objs): Depend on $(extra-objs) too.
11271 (include sysd-Makefile): Protect with ifndef avoid-generated.
11273 * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
11274 (CPPFLAGS): Use $(defines) in place of $(+defines).
11275 Replace -D_LIBC with -include $(..)libc-symbols.h.
11277 * stdio/freopen.c: Set seen bit before calling fclose.
11279 Mon Feb 6 18:34:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11281 * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
11282 successes and each kind of failure. Return EPERM or EACCES only
11283 if every task failed that way.
11285 * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
11288 * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
11289 or resume the process after frobbing.
11291 * hurd/hurdsig.c: Use spin lock operations on sigstate locks
11293 (_hurd_thread_sigstate): Don't lock the sigstate lock.
11294 (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
11295 repeated sequences with calls to it. Don't expect the sigstate
11296 lock to be held on entry; lock it just before examining sigaction.
11297 In handler case, check SS->critical_section after calling
11298 abort_rpcs; if set, mark the signal pending and resume the thread.
11299 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
11300 (_hurd_self_sigstate): Don't lock the sigstate lock.
11301 (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
11302 _hurd_self_sigstate_unlocked.
11303 * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
11305 * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
11306 Don't expect _hurd_self_sigstate to lock it. Fix critical section
11308 * hurd/hurd-raise.c: Likewise.
11309 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11310 * sysdeps/mach/hurd/sigpending.c: Likewise.
11311 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
11312 * sysdeps/mach/hurd/sigaction.c: Likewise.
11313 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11314 * hurd/fd-write.c: Likewise.
11315 * hurd/fd-read.c: Likewise.
11316 * sysdeps/mach/hurd/ioctl.c: Likewise.
11317 * sysdeps/mach/hurd/fork.c: Likewise.
11318 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
11319 * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
11320 * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
11321 * hurd/hurdmsg.c (get_int): Likewise.
11323 * stdio/vfprintf.c: Include stddef.h. Fix typos in libio code.
11325 * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
11327 (PAD): Caller changed.
11328 * stdio/printf_fp.c (__pad): Function removed.
11329 (PAD): Use __printf_pad instead.
11331 Sun Feb 5 17:59:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11333 Merged new FP printer by Ulrich Drepper.
11334 * stdio/printf_fp.c: Rewrite by drepper.
11335 * stdio/Makefile (routines): Add ldbl2mpn.
11336 * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
11338 (union ieee854_long_double): New type, from drepper.
11339 (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
11340 * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
11341 * sysdeps/stub/ldbl2mpn.c: New file.
11342 * math/Makefile (routines): Add isinfl and isnanl.
11343 * sysdeps/ieee754/isinfl.c: New file.
11344 * sysdeps/stub/isinfl.c: New file.
11345 * sysdeps/ieee754/isnanl.c: New file.
11346 * sysdeps/stub/isnanl.c: New file.
11348 * malloc/malloc.c (__malloc_extra_blocks): New variable.
11349 (malloc): When getting more core, get __malloc_extra_blocks extra;
11350 put the new block at the end of the free list and let the next loop
11351 iteration use the initial portion of it.
11352 * malloc/free.c (_free_internal): Account for twice
11353 __malloc_extra_blocks in deciding if we have so much extra memory
11354 we should return it to the system.
11355 * malloc/malloc.h (__malloc_extra_blocks): Declare it.
11356 * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
11357 const in parameter decl.
11359 * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
11361 Fri Feb 3 18:15:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11363 * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
11365 * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
11366 * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
11367 * sysdeps/mips/bsd-setjmp.S: Likewise.
11368 * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
11369 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
11370 Use `long int' for sigcode. Use explicit register numbers instead
11372 (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
11373 * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
11375 Thu Feb 2 20:06:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11377 * hurd/hurdmalloc.c: Remove bogus bcopy decl.
11379 * mach/mig_strncpy.c: Add missing `const' in prototype. Rewritten
11382 * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
11384 * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
11386 Tue Jan 31 13:49:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11388 * mach/mig_strncpy.c: Include mach.h instead of string.h. Use
11389 vm_size_t instead of size_t for arg and return types.
11391 * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
11394 Mon Jan 30 00:33:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11396 * set-hooks.h (RUN_HOOK): Dereference PTR properly.
11398 * configure.in (friendly stddef.h check): Write override defn for
11399 `stddef.h' Make variable.
11400 (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
11402 * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
11404 * Rules ($(objpfx)dummy.o): Write an empty function, not just an
11407 * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
11409 Sat Jan 28 03:38:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11411 * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
11413 * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
11414 mach/machine/syscall_sw.h with this.
11416 Fri Jan 27 18:33:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11418 * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
11419 instead of <lock-intern.h>.
11420 (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
11421 (_hurd_critical_section_lock): Use spin lock operators.
11422 Don't hold the sigstate lock, unlock it after setting the flag.
11423 (_hurd_critical_section_unlock): Take the sigstate lock
11424 to clear the flag; while holding it, check pending signals. After
11425 unlocking, sig_post ourselves if there were pending signals.
11427 * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
11428 sigstate lock. If it is locked, clear SS->critical_section and
11429 SS->context, and unlock it.
11431 * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
11433 * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
11434 * munch-tmpl.c: Likewise.
11436 * mach/Makefile (routines): Don't filter out syscall_% from
11439 Fri Jan 27 17:53:49 1995 Jim Meyering (meyering@comco.com)
11441 * posix/fnmatch.c: Declare errno if it's not defined.
11442 That's simpler than testing #if !defined(__GNU_LIBRARY__)
11443 && !defined(STDC_HEADERS).
11445 Fri Jan 27 15:40:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11447 * csu/Makefile: New file.
11448 * csu/initfini.c: New file.
11449 * Makefile (+other_dirs): Add csu.
11450 (+init): Variable renamed to libc-init. All references changed.
11451 (aux): Remove start.
11452 (install-lib): Variable removed.
11453 (crt0.o, Mcrt1.o crt1.o): Targets removed.
11455 * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
11456 and $(objpfx)config.h.
11457 (static deps of RPC alias *.o): Removed.
11459 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
11460 Protect macros with this.
11461 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
11462 * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
11463 * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
11464 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
11465 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
11466 * sysdeps/unix/mips/sysdep.h: Likewise.
11468 Thu Jan 26 00:02:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11470 * Makerules (compile.[Sc]): Match gcc in $(CC) better.
11471 (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
11473 * hurd/intr-rpc.awk: Emit weak alias.
11475 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
11478 * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
11480 * sysdeps/unix/i386/sysdep.h: Likewise.
11481 * sysdeps/unix/sparc/sysdep.h: Likewise.
11483 * io/ftw.c: Avoid `ret' as variable name.
11484 * posix/glob.c: Likewise.
11486 * ctype/ctype.h (_ISalpha): Define as its own bit.
11487 * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
11489 * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
11490 DEFINE_HOOK with this.
11492 Wed Jan 25 00:45:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11494 * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
11495 * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
11496 * mach/shortcut.awk: Emit weak alias.
11497 * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
11498 * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
11500 * mach/Makefile (lock): Remove spin-syms.
11501 (routines): Remove __ names, vm_page_size, msgserver_t.
11502 ($(mach-syscalls) rule): Generate files without __, add weak alias.
11503 Remove symbol alias file rule.
11504 ($(mach-shortcuts) rule): Likewise.
11505 [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
11506 * mach/Machrules (if-calls.c): Variable and rule removed.
11507 (interface-headers): Don't add $($(if)-calls).
11508 (transform-user-stub): Define to add weak alias.
11509 * set-hooks.h: Use new libc-symbols.h set access macros.
11510 * time/Makefile (routines): Remove __ names.
11511 (aux): Variable removed.
11512 * hurd/Makefile: Likewise.
11513 * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
11514 (data_start): Define as weak alias for __data_start.
11515 * sysdeps/mach/hurd/start.c: Likewise.
11516 * sysdeps/unix/sparc/start.c: Likewise.
11517 * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
11519 * sysdeps/mach/hurd/errlist.awk: Likewise.
11520 * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
11521 alias for __environ.
11522 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11523 * sysdeps/stub/setdomain.c: Use new stub_warning macro.
11524 * sysdeps/stub/getdomain.c: Likewise.
11525 * sysdeps/stub/vhangup.c: Likewise.
11526 * sysdeps/stub/swapon.c: Likewise.
11527 * sysdeps/stub/sendmsg.c: Likewise.
11528 * sysdeps/stub/recvmsg.c: Likewise.
11529 * sysdeps/stub/acct.c: Likewise.
11530 * sysdeps/stub/isinf.c: Likewise. Add weak alias isinf for __isinf.
11531 * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
11532 * sysdeps/posix/libc_fatal.c: Likewise.
11533 * sysdeps/i386/abort.c: Likewise.
11534 * sysdeps/i386/__longjmp.c: Likewise.
11535 * sysdeps/generic/make_siglist.c: Emit defn always for
11536 _sys_siglist. Emit weak alias to sys_siglist.
11537 * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
11538 * sysdeps/ieee754/log10.c: Likewise.
11539 * time/difftime.c: Likewise.
11540 * stdlib/random.c (srand): Define as weak alias for __srandom.
11541 * stdlib/exit.c: Remove obsolete __NORETURN keyword. Use set-hooks
11542 macros for __libc_atexit.
11543 * stdlib/Makefile (routines): Remove __random, srand.
11544 * stdio/gets.c: Use new link_warning macro instead of old
11546 * stdio/Makefile (routines): Remove __ names.
11547 (aux): Remove syms-stdio.
11548 * socket/Makefile (routines): Added e on getpeernam and getsocknam.
11549 * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
11550 * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
11551 * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
11552 * stdio/stdio.h: Likewise.
11553 * misc/Makefile (routines): Remove __ names.
11554 (aux): Remove data_start.
11555 * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
11556 * sysdeps/mach/hurd/brk.c: Likewise.
11557 * hurd/hurdid.c: Likewise.
11558 * hurd/hurdpid.c: Likewise.
11559 * hurd/openport.c: Likewise.
11560 * hurd/hurdsock.c: Likewise.
11561 * hurd/hurdsig.c: Likewise.
11562 * hurd/hurdrlimit.c: Likewise.
11563 * hurd/hurdmalloc.c: Likewise.
11564 * hurd/dtable.c: Likewise.
11565 * hurd/setauth.c: Likewise.
11566 * misc/progname.c: Likewise.
11567 * misc/init-misc.c: Likewise.
11568 * sysdeps/generic/vfork.c: Likewise.
11569 * sysdeps/unix/bsd/init-posix.c: Likewise.
11570 * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
11571 * time/time.h: Likewise.
11572 * math/Makefile (routines): Remove __ names.
11573 * io/Makefile: Likewise.
11574 * termios/Makefile: Likewise.
11575 * resource/Makefile: Likewise.
11576 * signal/Makefile: Likewise.
11577 * dirent/Makefile: Likewise.
11578 * assert/assert.h: Replace __NORETURN keyword with __attribute__
11579 uses. Functions return void and macros deal with this.
11580 * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
11581 Return void. Don't include gnu-stabs.h.
11582 * assert/assert.c: Likewise.
11583 * posix/Makefile (routines): Remove __ names, setpgrp. Add
11585 (aux): Remove environ.
11586 * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
11588 * posix/unistd.h (_exit): Likewise.
11589 (__getpgrp, __setpgrp): Declarations removed.
11590 (__getpgid, getpid): Declare these.
11592 * configure.in (host_os=gnuelf|linuxelf): Set elf=yes. Do AC_SUBST
11593 for gnu_ld, gnu_as, elf, and weak. Call AC_LINK_FILEES on
11594 $libc_link_{sources,dests}.
11595 * sysdeps/unix/configure.in: Remove __ from file names. Don't
11596 create files, just add to libc_link_{dests,sources}.
11598 * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
11600 * config.h.in: Add #undefs used by sysdeps configures.
11602 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
11603 __setpgid, __getpgid.
11604 * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
11606 * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
11608 * sysdeps/unix/bsd/getpgrp.c: File removed.
11609 * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
11610 Call __getpgid with zero.
11611 * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
11612 weak aliases setpgid and setpgrp.
11613 * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
11614 * sysdeps/unix/common/setpgid.S: Likewise.
11615 * sysdeps/mach/hurd/setpgid.c: Likewise.
11616 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
11617 Use subcall 5 to __pgrpsys.
11618 * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
11619 weak alias getpgid.
11620 * sysdeps/mach/hurd/getpgid.c: Likewise.
11621 * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
11622 * sysdeps/unix/common/getpgid.S: Likewise.
11623 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
11624 Use subcall 4 to __pgrpsys.
11625 * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
11626 * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
11627 * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
11628 * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
11629 * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
11630 * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
11631 * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
11632 * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
11633 * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
11634 * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
11635 * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
11636 * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
11638 * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
11641 * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
11642 * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
11644 * sysdeps/stub/fexecve.c: Likewise.
11645 * sysdeps/stub/fchdir.c: Likewise.
11646 * sysdeps/stub/fchflags.c: Likewise.
11647 * sysdeps/stub/chflags.c: Likewise.
11649 * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
11650 * sysdeps/generic/abort.c: Likewise.
11651 * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
11653 * hurd/hurdioctl.c: Include hurd/ioctl.h.
11654 (_hurd_ioctl_handler_lists): Define this set.
11655 (_hurd_lookup_ioctl_handler): New function.
11656 * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
11657 * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
11658 (_hurd_lookup_ioctl_handler): Declare it.
11659 (ioctl_handler_t): New typedef. Use it throughout.
11660 * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
11661 (_hurd_ioctl_handler_lists): Don't define.
11662 (__ioctl): Call _hurd_lookup_ioctl_handler.
11664 * stdlib/strtol.c (maxquad): Make this const.
11665 [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
11667 * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
11670 * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
11671 __msg_sig_post_request, not __sig_post_request.
11673 * misc/getusersh.c: Renamed to getusershell.c.
11674 * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
11675 * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
11676 * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
11677 * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
11679 Tue Jan 24 00:14:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11681 * sysdeps/stub/settod.c: Renamed to settimeofday.c.
11682 * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
11683 * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
11684 * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
11685 * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
11686 * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
11687 * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
11688 * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
11689 * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
11690 * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
11691 * sysdeps/stub/getprio.c: Renamed to getpriority.c.
11692 * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
11693 * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
11694 * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
11695 * sysdeps/stub/setprio.c: Renamed to setpriority.c.
11696 * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
11697 * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
11698 * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
11699 * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
11700 * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
11701 * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
11702 * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
11703 * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
11704 * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
11705 * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
11706 * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
11707 * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
11708 * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
11709 * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
11710 * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
11712 * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
11714 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11715 * sysdeps/mach/hurd/kill.c: Likewise.
11716 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11718 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
11719 [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
11721 * sysdeps/stub/remove.c: New file.
11722 * sysdeps/posix/remove.c: New file.
11724 Mon Jan 23 03:26:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11726 * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
11728 * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
11730 * mach/msg-destroy.c: Renamed from __msg_dest.c.
11731 (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
11732 * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
11733 * time/tzset.c (tzname, daylight, timezone): Define as weak
11734 aliases for __ names.
11735 * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
11736 * hurd/hurdlookup.c: Add weak aliases for non-__ names.
11737 * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
11740 Sun Jan 22 15:19:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11742 * string/Makefile (routines): Remove __ names, index, rindex, and
11744 * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
11746 * sysdeps/generic/strchr.c: Likewise.
11747 * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
11749 * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
11752 * malloc/free.c (cfree): Define this function, with weak_alias if
11753 available, otherwise a C function.
11754 * malloc/Makefile (gmalloc-routines): Remove cfree.
11756 Sat Jan 21 08:08:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11758 * stdio/fseek.c: Do move bufp by O when that puts it exactly at
11759 get_limit. This has the effect of no-op'ing properly for zero.
11761 * configure.in: Add AC_CONFIG_HEADER(config.h).
11762 (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
11763 * config.h.in: New file.
11765 * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
11766 All code converted to use weak symbols, defined in the files which
11767 define the real code (with the __ names, the non-__ names are weak).
11768 All old symbol alias files removed.
11769 Many files renamed to remove __ prefix since there is now just
11770 the one file for both the __ and non-__ name for each function.
11771 * libc-symbols.h: New file.
11772 * set-hooks.h: Use libc-symbols.h macros for accessing symbol
11774 * gnu-stabs.h: Prepend #error this file is obsolete.
11775 * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
11776 * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
11778 * sysdeps/unix/common/__access.S: Likewise.
11779 * sysdeps/mach/hurd/__access.c: Likewise.
11780 * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
11782 * sysdeps/unix/common/__adjtime.S: Likewise.
11783 * sysdeps/mach/__adjtime.c: Likewise.
11784 * sysdeps/mach/hurd/__adjtime.c: Likewise.
11785 * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
11786 * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
11787 * sysdeps/unix/bsd/vax/__brk.S: Likewise.
11788 * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
11789 * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
11790 * sysdeps/unix/i386/__brk.S: Likewise.
11791 * sysdeps/unix/sparc/__brk.S: Likewise.
11792 * sysdeps/unix/mips/__brk.S: Likewise.
11793 * sysdeps/mach/hurd/__brk.c: Likewise.
11794 * sysdeps/standalone/__brk.c: Likewise.
11795 * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
11796 * sysdeps/unix/__chdir.S: Likewise.
11797 * sysdeps/mach/hurd/__chdir.c: Likewise.
11798 * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
11799 * sysdeps/unix/__chmod.S: Likewise.
11800 * sysdeps/mach/hurd/__chmod.c: Likewise.
11801 * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
11802 * sysdeps/unix/__chown.S: Likewise.
11803 * sysdeps/mach/hurd/__chown.c: Likewise.
11804 * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
11805 * sysdeps/unix/__close.S: Likewise.
11806 * sysdeps/mach/hurd/__close.c: Likewise.
11807 * sysdeps/standalone/__close.c: Likewise.
11808 * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
11810 * sysdeps/ieee754/__copysign.c: Likewise.
11811 * sysdeps/alpha/__copysign.c: Likewise.
11812 * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
11813 * sysdeps/m68k/fpu/__drem.c: Likewise.
11814 * sysdeps/stub/__drem.c: Likewise.
11815 * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
11816 * sysdeps/stub/__dup.c: Likewise.
11817 * sysdeps/unix/__dup.S: Likewise.
11818 * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
11819 * sysdeps/stub/__dup2.c: Likewise.
11820 * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
11821 * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
11822 * sysdeps/unix/common/__dup2.S: Likewise.
11823 * sysdeps/mach/hurd/__dup2.c: Likewise.
11824 * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
11826 * sysdeps/unix/__execve.S: Likewise.
11827 * sysdeps/mach/hurd/__execve.c: Likewise.
11828 * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
11830 * sysdeps/m68k/fpu/__expm1.c: Likewise.
11831 * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
11833 * sysdeps/unix/common/__fchmod.S: Likewise.
11834 * sysdeps/mach/hurd/__fchmod.c: Likewise.
11835 * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
11837 * sysdeps/unix/common/__fchown.S: Likewise.
11838 * sysdeps/mach/hurd/__fchown.c: Likewise.
11839 * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
11840 * sysdeps/unix/__fcntl.S: Likewise.
11841 * sysdeps/mach/hurd/__fcntl.c: Likewise.
11842 * math/__finite.c: Renamed to finite.c; added weak alias finite.
11843 * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
11844 * sysdeps/stub/__flock.c: Likewise.
11845 * sysdeps/unix/bsd/__flock.S: Likewise.
11846 * sysdeps/mach/hurd/__flock.c: Likewise.
11847 * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
11849 * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
11850 * sysdeps/unix/__fork.S: Likewise.
11851 * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
11852 * sysdeps/unix/i386/__fork.S: Likewise.
11853 * sysdeps/unix/sparc/__fork.S: Likewise.
11854 * sysdeps/unix/mips/__fork.S: Likewise.
11855 * sysdeps/mach/hurd/__fork.c: Likewise.
11856 * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
11858 * sysdeps/stub/__fpathcon.c: Likewise.
11859 * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
11860 * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
11861 * sysdeps/unix/__fstat.S: Likewise.
11862 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
11863 * sysdeps/mach/hurd/__fstat.c: Likewise.
11864 * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
11866 * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
11868 * sysdeps/unix/__getdents.c: Likewise.
11869 * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
11870 * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
11871 * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
11872 * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
11873 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
11874 * sysdeps/unix/sysv/__getdents.c: Likewise.
11875 * sysdeps/mach/hurd/__getdents.c: Likewise.
11876 * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
11877 * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
11878 alias getdtablesize.
11879 * sysdeps/stub/__getdtsz.c: Likewise.
11880 * sysdeps/unix/bsd/__getdtsz.S: Likewise.
11881 * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
11882 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
11883 * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
11885 * sysdeps/unix/__getegid.S: Likewise.
11886 * sysdeps/mach/hurd/__getegid.c: Likewise.
11887 * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
11889 * sysdeps/unix/__geteuid.S: Likewise.
11890 * sysdeps/mach/hurd/__geteuid.c: Likewise.
11891 * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
11893 * sysdeps/unix/__getgid.S: Likewise.
11894 * sysdeps/mach/hurd/__getgid.c: Likewise.
11895 * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
11897 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
11898 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
11899 * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
11900 * sysdeps/unix/common/__getgrps.S: Likewise.
11901 * sysdeps/mach/hurd/__getgrps.c: Likewise.
11902 * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
11904 * sysdeps/unix/inet/__gethstnm.S: Likewise.
11905 * sysdeps/unix/sysv/__gethstnm.c: Likewise.
11906 * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
11907 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
11908 * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
11910 * sysdeps/unix/common/__getitmr.S: Likewise.
11911 * sysdeps/mach/hurd/__getitmr.c: Likewise.
11912 * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
11913 * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
11915 * sysdeps/stub/__getpgsz.c: Likewise.
11916 * sysdeps/unix/__getpgsz.c: Likewise.
11917 * sysdeps/unix/bsd/__getpgsz.S: Likewise.
11918 * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
11919 * sysdeps/mach/__getpgsz.c: Likewise.
11920 * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
11922 * sysdeps/unix/__getpid.S: Likewise.
11923 * sysdeps/mach/hurd/__getpid.c: Likewise.
11924 * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
11926 * sysdeps/unix/__getppid.S: Likewise.
11927 * sysdeps/mach/hurd/__getppid.c: Likewise.
11928 * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
11929 alias gettimeofday.
11930 * sysdeps/stub/__gettod.c: Likewise.
11931 * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
11932 * sysdeps/unix/common/__gettod.S: Likewise.
11933 * sysdeps/mach/__gettod.c: Likewise.
11934 * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
11936 * sysdeps/unix/__getuid.S: Likewise.
11937 * sysdeps/mach/hurd/__getuid.c: Likewise.
11938 * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
11940 * sysdeps/ieee754/__infnan.c: Likewise.
11941 * sysdeps/vax/__infnan.c: Likewise.
11942 * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
11943 * sysdeps/unix/__ioctl.S: Likewise.
11944 * sysdeps/mach/hurd/__ioctl.c: Likewise.
11945 * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
11947 * sysdeps/stub/__isatty.c: Likewise.
11948 * sysdeps/unix/bsd/__isatty.c: Likewise.
11949 * sysdeps/mach/hurd/__isatty.c: Likewise.
11950 * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
11952 * sysdeps/m68k/fpu/__isinf.c: Likewise.
11953 * sysdeps/stub/__isinf.c: Likewise.
11954 * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
11956 * sysdeps/ieee754/__isnan.c: Likewise.
11957 * sysdeps/m68k/fpu/__isnan.c: Likewise.
11958 * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
11959 * sysdeps/unix/__kill.S: Likewise.
11960 * sysdeps/mach/hurd/__kill.c: Likewise.
11961 * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
11962 * sysdeps/unix/__link.S: Likewise.
11963 * sysdeps/mach/hurd/__link.c: Likewise.
11964 * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
11965 * sysdeps/m68k/fpu/__logb.c: Likewise.
11966 * sysdeps/stub/__logb.c: Likewise.
11967 * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
11968 * sysdeps/unix/__lseek.S: Likewise.
11969 * sysdeps/mach/hurd/__lseek.c: Likewise.
11970 * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
11972 * sysdeps/stub/__lstat.c: Likewise.
11973 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
11974 * sysdeps/unix/common/__lstat.S: Likewise.
11975 * sysdeps/mach/hurd/__lstat.c: Likewise.
11976 * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
11978 * sysdeps/vax/__memccpy.c: Likewise.
11979 * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
11980 * sysdeps/unix/sysv/__mkdir.c: Likewise.
11981 * sysdeps/unix/common/__mkdir.S: Likewise.
11982 * sysdeps/mach/hurd/__mkdir.c: Likewise.
11983 * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
11984 * sysdeps/unix/__mknod.S: Likewise.
11985 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
11986 * sysdeps/mach/hurd/__mknod.c: Likewise.
11987 * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
11988 * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
11990 * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
11991 * sysdeps/unix/__open.S: Likewise.
11992 * sysdeps/mach/hurd/__open.c: Likewise.
11993 * sysdeps/standalone/__open.c: Likewise.
11994 * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
11996 * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
11997 * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
11998 * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
11999 * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
12000 * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
12001 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
12002 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
12003 * sysdeps/unix/i386/__pipe.S: Likewise.
12004 * sysdeps/unix/sparc/__pipe.S: Likewise.
12005 * sysdeps/unix/mips/__pipe.S: Likewise.
12006 * sysdeps/mach/hurd/__pipe.c: Likewise.
12007 * stdlib/__random.c: Renamed to random.c; added weak alias random.
12008 * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
12009 * sysdeps/unix/__read.S: Likewise.
12010 * sysdeps/mach/hurd/__read.c: Likewise.
12011 * sysdeps/standalone/__read.c: Likewise.
12012 * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
12014 * sysdeps/unix/common/__readlink.S: Likewise.
12015 * sysdeps/mach/hurd/__readlink.c: Likewise.
12016 * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
12017 * sysdeps/m68k/fpu/__rint.c: Likewise.
12018 * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
12019 * sysdeps/unix/sysv/__rmdir.c: Likewise.
12020 * sysdeps/unix/common/__rmdir.S: Likewise.
12021 * sysdeps/mach/hurd/__rmdir.c: Likewise.
12022 * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
12023 * sysdeps/stub/__sbrk.c: Likewise.
12024 * sysdeps/mach/hurd/__sbrk.c: Likewise.
12025 * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
12026 * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
12028 * sysdeps/unix/common/__select.S: Likewise.
12029 * sysdeps/mach/hurd/__select.c: Likewise.
12030 * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
12031 * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
12033 * sysdeps/unix/__setgid.S: Likewise.
12034 * sysdeps/unix/bsd/__setgid.c: Likewise.
12035 * sysdeps/mach/hurd/__setgid.c: Likewise.
12036 * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
12038 * sysdeps/unix/common/__setitmr.S: Likewise.
12039 * sysdeps/mach/hurd/__setitmr.c: Likewise.
12040 * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
12042 * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
12043 * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
12044 * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
12045 * sysdeps/unix/common/__setpgrp.S: Likewise.
12046 * sysdeps/mach/hurd/__setpgrp.c: Likewise.
12047 * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
12049 * sysdeps/unix/common/__setregid.S: Likewise.
12050 * sysdeps/mach/hurd/__setregid.c: Likewise.
12051 * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
12053 * sysdeps/unix/common/__setreuid.S: Likewise.
12054 * sysdeps/mach/hurd/__setreuid.c: Likewise.
12055 * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
12057 * sysdeps/unix/bsd/__setsid.c: Likewise.
12058 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
12059 * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
12060 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
12061 * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
12062 * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
12063 * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
12064 * sysdeps/mach/hurd/__setsid.c: Likewise.
12065 * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
12067 * sysdeps/unix/bsd/__settod.S: Likewise.
12068 * sysdeps/unix/sysv/__settod.c: Likewise.
12069 * sysdeps/mach/hurd/__settod.c: Likewise.
12070 * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
12072 * sysdeps/unix/__setuid.S: Likewise.
12073 * sysdeps/unix/bsd/__setuid.c: Likewise.
12074 * sysdeps/mach/hurd/__setuid.c: Likewise.
12075 * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
12077 * sysdeps/stub/__sigblock.c: Likewise.
12078 * sysdeps/unix/bsd/__sigblock.S: Likewise.
12079 * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
12080 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
12081 * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
12083 * sysdeps/stub/__sigpause.c: Likewise.
12084 * sysdeps/unix/bsd/__sigpause.S: Likewise.
12085 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
12086 * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
12088 * sysdeps/unix/bsd/__sigproc.c: Likewise.
12089 * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
12090 * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
12091 * sysdeps/mach/hurd/__sigproc.c: Likewise.
12092 * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
12094 * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
12095 * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
12096 * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
12097 * sysdeps/unix/i386/__sigret.S: Likewise.
12098 * sysdeps/unix/mips/__sigret.S: Likewise.
12099 * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
12100 * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
12101 * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
12102 * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
12104 * sysdeps/stub/__sigvec.c: Likewise.
12105 * sysdeps/unix/bsd/__sigvec.S: Likewise.
12106 * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
12107 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
12108 * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
12109 * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
12110 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
12111 * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
12112 * sysdeps/unix/__stat.S: Likewise.
12113 * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
12114 * sysdeps/mach/hurd/__stat.c: Likewise.
12115 * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
12117 * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
12119 * sysdeps/unix/common/__symlink.S: Likewise.
12120 * sysdeps/mach/hurd/__symlink.c: Likewise.
12121 * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
12123 * sysdeps/stub/__sysconf.c: Likewise.
12124 * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
12125 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
12126 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
12127 * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
12128 * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
12129 * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
12130 * sysdeps/unix/bsd/__times.c: Likewise.
12131 * sysdeps/unix/sysv/__times.S: Likewise.
12132 * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
12133 * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
12134 * sysdeps/unix/__umask.S: Likewise.
12135 * sysdeps/mach/hurd/__umask.c: Likewise.
12136 * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
12138 * sysdeps/unix/__unlink.S: Likewise.
12139 * sysdeps/mach/hurd/__unlink.c: Likewise.
12140 * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
12142 * sysdeps/unix/bsd/__utimes.S: Likewise.
12143 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
12144 * sysdeps/mach/hurd/__utimes.c: Likewise.
12145 * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
12147 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
12148 * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
12149 * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
12150 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
12151 * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
12152 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
12153 * sysdeps/unix/sparc/__vfork.S: Likewise.
12154 * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
12155 * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
12156 * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
12157 * sysdeps/stub/__wait.c: Likewise.
12158 * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
12159 * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
12160 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
12161 * sysdeps/unix/bsd/vax/__wait.S: Likewise.
12162 * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
12163 * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
12164 * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
12165 * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
12166 * sysdeps/unix/i386/__wait.S: Likewise.
12167 * sysdeps/unix/mips/__wait.S: Likewise.
12168 * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
12169 * sysdeps/stub/__wait3.c: Likewise.
12170 * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
12171 * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
12172 * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
12173 * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
12174 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
12175 * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
12176 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
12177 * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
12178 * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
12179 * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
12180 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
12181 * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
12182 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
12183 * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
12184 * sysdeps/mach/hurd/__wait4.c: Likewise.
12185 * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
12187 * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
12188 * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
12189 * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
12190 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
12191 * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
12192 * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
12193 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
12194 * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
12195 * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
12196 * sysdeps/unix/__write.S: Likewise.
12197 * sysdeps/mach/hurd/__write.c: Likewise.
12198 * sysdeps/standalone/__write.c: Likewise.
12199 * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
12201 * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
12202 * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
12203 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
12204 * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
12205 * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
12207 * sysdeps/unix/bsd/__sigact.c: Likewise.
12208 * sysdeps/unix/sysv/__sigact.c: Likewise.
12209 * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
12210 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
12211 * sysdeps/mach/hurd/__sigact.c: Likewise.
12212 * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
12214 * sysdeps/stub/__sigstmsk.c: Likewise.
12215 * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
12216 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
12217 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
12218 * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
12220 * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
12221 * sysdeps/unix/common/__getrusag.S: Likewise.
12222 * hurd/task2pid.c: File removed.
12223 * hurd/setauth.c: File removed.
12224 * hurd/pid2task.c: File removed.
12225 * hurd/hurdsyms.c: File removed.
12226 * hurd/getdport.c: File removed.
12227 * hurd/fopenport.c: File removed.
12228 * mach/thread-sym.c: File removed.
12229 * mach/spin-syms.c: File removed.
12230 * mach/msgserver_t.c: File removed.
12231 * mach/msgserver.c: File removed.
12232 * mach/msg.c: File removed.
12233 * mach/mig_syms.c: File removed.
12234 * malloc/mcheck-init.c: File removed.
12235 * malloc/cfree.c: File removed.
12236 * io/flock.c: File removed.
12237 * io/write.c: File removed.
12238 * io/unlink.c: File removed.
12239 * io/umask.c: File removed.
12240 * io/symlink.c: File removed.
12241 * io/rmdir.c: File removed.
12242 * io/readlink.c: File removed.
12243 * io/read.c: File removed.
12244 * io/pipe.c: File removed.
12245 * io/open.c: File removed.
12246 * io/mkdir.c: File removed.
12247 * io/lstat.c: File removed.
12248 * io/lseek.c: File removed.
12249 * io/link.c: File removed.
12250 * io/isatty.c: File removed.
12251 * io/stat.c: File removed.
12252 * io/fstat.c: File removed.
12253 * io/fchown.c: File removed.
12254 * io/fchmod.c: File removed.
12255 * io/dup2.c: File removed.
12256 * io/dup.c: File removed.
12257 * io/close.c: File removed.
12258 * io/fcntl.c: File removed.
12259 * io/chmod.c: File removed.
12260 * io/chdir.c: File removed.
12261 * io/access.c: File removed.
12262 * io/chown.c: File removed.
12263 * time/tzset.c: File removed.
12264 * time/timelocal.c: File removed.
12265 * time/syms-time.c: File removed.
12266 * time/settod.c: File removed.
12267 * time/setitmr.c: File removed.
12268 * time/gettod.c: File removed.
12269 * time/getitmr.c: File removed.
12270 * time/adjtime.c: File removed.
12271 * termios/tcgetattr.c: File removed.
12272 * string/stpncpy.c: File removed.
12273 * string/rindex.c: File removed.
12274 * string/memccpy.c: File removed.
12275 * string/index.c: File removed.
12276 * string/bcmp.c: File removed.
12277 * stdlib/srand.c: File removed.
12278 * stdlib/random.c: File removed.
12279 * stdio/vsscanf.c: File removed.
12280 * stdio/vfscanf.c: File removed.
12281 * stdio/syms-stdio.c: File removed.
12282 * stdio/remove.c: File removed.
12283 * stdio/getline.c: File removed.
12284 * stdio/getdelim.c: File removed.
12285 * signal/ssignal.c: File removed.
12286 * signal/sigvec.c: File removed.
12287 * signal/sigsetmask.c: File removed.
12288 * signal/sigret.c: File removed.
12289 * signal/sigproc.c: File removed.
12290 * signal/sigpause.c: File removed.
12291 * signal/sigblock.c: File removed.
12292 * signal/sigaction.c: File removed.
12293 * signal/kill.c: File removed.
12294 * signal/gsignal.c: File removed.
12295 * setjmp/siglongjmp.c: File removed.
12296 * setjmp/_longjmp.c: File removed.
12297 * resource/getrusage.c: File removed.
12298 * posix/waitpid.c: File removed.
12299 * posix/wait4.c: File removed.
12300 * posix/wait3.c: File removed.
12301 * posix/wait.c: File removed.
12302 * posix/times.c: File removed.
12303 * posix/sysconf.c: File removed.
12304 * posix/setuid.c: File removed.
12305 * posix/setsid.c: File removed.
12306 * posix/setpgrp.c: File removed.
12307 * posix/setpgid.c: File removed.
12308 * posix/setgid.c: File removed.
12309 * posix/pathconf.c: File removed.
12310 * posix/getuid.c: File removed.
12311 * posix/getppid.c: File removed.
12312 * posix/getpid.c: File removed.
12313 * posix/getgrps.c: File removed.
12314 * posix/getgid.c: File removed.
12315 * posix/geteuid.c: File removed.
12316 * posix/getegid.c: File removed.
12317 * posix/fpathcon.c: File removed.
12318 * posix/fork.c: File removed.
12319 * posix/execve.c: File removed.
12320 * posix/environ.c: File removed.
12321 * misc/utimes.c: File removed.
12322 * misc/setreuid.c: File removed.
12323 * misc/setregid.c: File removed.
12324 * misc/select.c: File removed.
12325 * misc/sbrk.c: File removed.
12326 * misc/mknod.c: File removed.
12327 * misc/ioctl.c: File removed.
12328 * misc/getpgsz.c: File removed.
12329 * misc/gethstnm.c: File removed.
12330 * misc/getdtsz.c: File removed.
12331 * misc/data_start.c: File removed.
12332 * misc/brk.c: File removed.
12333 * math/scalb.c: File removed.
12334 * math/rint.c: File removed.
12335 * math/logb.c: File removed.
12336 * math/isnan.c: File removed.
12337 * math/isinf.c: File removed.
12338 * math/infnan.c: File removed.
12339 * math/finite.c: File removed.
12340 * math/expm1.c: File removed.
12341 * math/drem.c: File removed.
12342 * math/copysign.c: File removed.
12343 * math/__scalb.c: File removed.
12344 * dirent/getdents.c: File removed.
12346 Fri Jan 20 16:11:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12348 * sysdeps/generic/morecore.c (__default_morecore): Use
12349 __malloc_ptrdiff_t; don't cast arg to int.
12351 * resolv/getnetnamadr.c: Include "conf/portability.h".
12353 Thu Jan 19 02:20:04 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12355 * stdlib/strtol.c: Include errno.h.
12356 [QUAD] (ULONG_MAX): Define to a static variable initialized to
12357 ULONG_LONG_MAX. This is to work around a GCC bug in using the
12358 constant in arithmetic.
12360 * posix/unistd.h (daemon): Declare it.
12362 * malloc/mcheck-init.c: Remove GNU ld hacks.
12363 (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
12364 * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
12365 (initialize): Call the hook if set.
12366 * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
12367 (__malloc_initialize_hook): Declare new hook variable.
12369 Wed Jan 18 01:43:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12371 * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
12372 * hurd/hurdpid.c: Likewise.
12373 * hurd/hurdauth.c: Likewise.
12375 Tue Jan 17 03:16:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12377 * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
12378 if any are successful.
12380 * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
12381 (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
12382 _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
12384 (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
12386 * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
12387 * hurd/hurd-raise.c: Likewise.
12388 * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
12390 * sysdeps/mach/hurd/ptrace.c: New file.
12392 * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
12393 interface, which has normal EINTR semantics. Instead of waiting
12394 for io_select_done notification messages, send io_select messages
12395 with short reply timeout and then wait for io_select_reply
12398 * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
12399 EXEC_INHERITED) to file_exec.
12401 * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
12402 use sig_post_untraced_reply. All callers changed.
12403 (abort_thread, abort_rpcs): Take same new arg and pass it through.
12404 All callers changed.
12405 (_hurd_internal_post_signal): Take new arg UNTRACED.
12406 If zero and process is traced, stop with SIGNO as stop signal. If
12407 nonzero, resume process before delivering signal (unless
12408 ACT==stop). Expand local fn sigwakeup into block at end taken iff
12410 (signal_allowed): New function, broken out of _S_sig_post.
12411 (_S_sig_post): Call it. Pass UNTRACED arg of false to
12412 _hurd_internal_post_signal.
12413 (_S_sig_post_untraced): New function. Just like _S_sig_post, but
12414 pass true for UNTRACED.
12415 * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
12417 * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
12418 to _hurd_internal_post_signal (value zero).
12420 Mon Jan 16 16:40:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12422 * hurd/hurdinit.c (_hurd_exec_flags): New variable.
12423 (_hurd_init): Initialize it from FLAGS arg.
12424 (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
12425 raise a SIGTRAP signal (with a sigcode of zero).
12426 * hurd/hurd.h (_hurd_exec_flags): Declare it.
12430 Mon Jan 16 16:16:55 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
12432 * malloc/malloc.c (malloc): Fix 1-off in previous change.
12434 Mon Jan 16 15:49:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12436 * posix/glob/Makefile.in: Remove config.h and config.log.
12438 Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12440 * posix/glob/configure.in: Add AC_CONST check.
12442 * conf/portability.h: #undef sun.
12443 * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
12444 * resolv/getnetnamadr.c: Likewise.
12446 * socket/Makefile (headers): Add sockaddrcom.h.
12447 * inet/netinet/in.h: Include <sockaddrcom.h>.
12448 (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
12449 * socket/sys/un.h (struct sockaddr_in): Likewise.
12450 * socket/sys/socket.h (struct sockaddr): Likewise.
12451 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
12452 * sysdeps/generic/sockaddrcom.h: New file.
12454 * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
12455 * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
12456 F_FREESP): New macros.
12457 * sysdeps/posix/truncate.c: New file.
12459 * malloc/malloc.c (malloc): Fix typos in RMS's change.
12461 * malloc/Makefile (dist-routines): Add malloc-find.
12462 * malloc/malloc.h (malloc_find_object_address): Declare it.
12463 * malloc/malloc-find.c: New file.
12465 * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
12467 (malloc_info): Use that type for member `busy.info.size'.
12469 * stdlib/strtol.c: Change uses of `long' keyword throughout to use
12471 [! QUAD] (LONG): Define as long.
12472 [QUAD] (LONG): Define as long long.
12473 [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
12475 [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
12476 * stdlib/Makefile (routines): Add strtoq and strtouq.
12477 * stdlib/strtoq.c, stdlib/strtouq.c: New files.
12478 * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
12481 * stdio/vfprintf.c: If there was a precision specified, ignore the
12482 0 flag and always pad with spaces.
12484 * stdio/vfprintf.c: Don't use strchr to skip text until next %.
12485 Use a loop and also stop on first !isascii char.
12487 Wed Jan 11 00:07:10 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
12489 * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
12491 * malloc/malloc.c (malloc): For a multi-block object, store a
12492 negative number into the busy.info.size of all but the first block.
12494 Tue Jan 10 13:45:20 1995 Brendan Kehoe <brendan@zen.org>
12496 * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
12497 instead of t0, t1, and t2.
12499 Tue Jan 10 05:53:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12501 * malloc/memalign.c (__memalign_hook): New variable.
12502 (memalign): Call it if set.
12503 * malloc/malloc.h (__memalign_hook): Declare new variable.
12505 Wed Dec 28 03:27:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12507 * conf/portability.h: Include string.h and stdlib.h.
12508 * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
12509 * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
12510 resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
12511 resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
12512 resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
12514 * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro. Replace
12515 all uses of `extern __inline' with `__m81_inline'.
12517 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
12518 * sysdeps/unix/__fork.S: Swap args in subl.
12520 * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
12523 Tue Dec 20 13:33:20 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
12525 * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
12527 * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
12528 * mach/spin-solid.c (__spin_lock_solid): Likewise.
12530 Thu Dec 15 12:01:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12532 * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
12534 (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
12536 * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
12538 Wed Dec 14 18:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12540 * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
12541 in `bis' insn; immediate must be second.
12543 * sysdeps/unix/__fork.S: Use subl instead of decl.
12544 * sysdeps/unix/i386/__fork.S: New file.
12546 * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
12547 Remove A macro; just use `asm volatile' with proper quotes in each
12549 * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
12550 jmp target register.
12552 * time/africa, time/asia, time/australasia, time/emkdir.c,
12553 time/europe, time/ialloc.c, time/northamerica, time/private.h,
12554 time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
12555 and data from ADO 94h distribution.
12557 * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
12558 __sigjmp_save in %g1 and jmp there. jmp cannot contain a complete
12559 absolute pointer. Put second store in jmp delay slot.
12561 Tue Dec 13 15:47:52 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12563 * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
12564 __sigsetjmp in %g1 and jmp there. jmp cannot contain a complete
12566 * sysdeps/sparc/bsd-setjmp.S: Likewise.
12568 * configure.in: Use ; before } in { ... } exprs.
12572 See ChangeLog.4 for earlier changes.