1 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
3 * locale/programs/locfile.c (write_locale_data): Deal with missing
6 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
7 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
9 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
11 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
12 call __io_select unless there's only a single descriptor, as each
13 descriptor now has its own reply port.
14 If there is only a single descriptor, just use its reply port for
15 everything and don't bother creating the port set.
17 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
18 <unistd.h>: New include.
20 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
23 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
25 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
26 from the USA any software that even makes it easy to drop in an
27 encryption module of foreign origin.
28 * Makerules (cryptobjdir): Variable removed.
29 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
30 * Makefile (subdirs): Remove crypt.
32 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
34 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
35 operator to yesexpr and noexpr string.
37 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
39 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
40 old code would have failed on a big-endian 64-bit architecture).
41 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
43 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
44 (xdr_u_long): Use switch instead of chain of if-statements.
45 Remove gratitous parentheses around return expressions.
46 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
48 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
50 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
53 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
55 * dlfcn.h, db.h: New wrapper headers.
57 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
58 for `struct stat;' forward decl.
60 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
62 * locale/iso-4217.def: Add some more standardized currency
65 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
67 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
69 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
71 * Rules (dummy.o, empty.o): Targets removed.
72 (dummy.c, empty.c): New targets replace them.
74 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
76 * crypt/Makefile (lib-noranlib): Depend on
77 $(objpfx)libcrypt.so$(libcrypt.so-version).
80 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
82 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
83 check. mib's clueless hacking broke it.
85 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
87 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
89 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
91 * misc/sys/ustat.h: New file.
92 * misc/ustat.h: Ditto.
93 * sysdeps/generic/ustatbits.h: Ditto.
94 * sysdeps/stub/ustat.c: Ditto.
95 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
96 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
98 (routines): Mention ustat.
100 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
101 * sysdeps/alpha/elf/start.S: here.
103 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
104 alphabetically correct place. Mention ustat.
106 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
107 common symbol (makes errno accessible from gdb).
109 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
112 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
113 record always gets appended at end of file (wtmp is a log file,
114 after all). Set ut_type to DEAD_PROCESS if name is empty.
116 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
117 separate loop from search for UT_ID. Fix code so it is in
118 sync with Unix man page.
120 * login/getutline_r.c (getutline_r): Stop searching only if
121 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
123 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
125 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
126 avoid duplicate declarations.
128 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
130 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
131 and alpha-gnu-linuxecoff targets.
133 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
135 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
137 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
139 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
142 * resolv/res_comp.c (res_hnok): Use empty statement in place
143 of NULL (which generates a "useless expression" warning in
146 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
148 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
149 with $(..) in output.
151 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
153 * elf/Makefile (dl-routines): Add dl-cache.
154 * elf/dl-cache.c: New file.
155 * elf/dl-load.c (_dl_map_object): Check cache before default path.
157 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
159 * stdio-common/vfscanf.c: Major change. Now read character
160 from stream only if needed. Before it was read after the
161 previous character was used.
162 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
164 * stdio-common/tstscanf.c: Change test program so that return
165 value is != 0 if one test failed.
167 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
169 * sysdeps/m68k/Makefile (crypt): Variable removed.
170 * sysdeps/sparc/Makefile: Likewise.
172 * version.h (VERSION): Update to 1.93.
174 * Makerules ($(libdir)/libc.so): Depend on
175 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
177 * crypt/nocrypt.c: New file.
178 * Makefile (subdirs): Add crypt.
179 * crypt/Makefile: New file.
181 * Makerules (soversions.mk): Move this target, include of it, and
182 include of version.mk to ...
183 * Makeconfig: ... here.
184 (soversions.mk): Depend on Makeconfig instead of Makerules.
186 * shlib-versions (*-*-*): Set libcrypt=0.
188 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
190 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
191 word extends right up to rmargin.
193 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
194 output the wrap margin, set point_col to wmargin.
195 Use negative point_col to deal with a wmargin of 0.
196 (line_wrap_point): Return 0 for a negative point_col.
197 (line_wrap_stream): Make wmargin ssize_t.
198 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
200 (line_wrap_stream): Make wmargin ssize_t.
201 (line_wrap_point): Return 0 for a negative point_col.
203 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
205 * shlib-versions (*-*-gnu*): Set libc=0.0
207 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
209 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
210 sysdeps/i386/dl-machine.h.
212 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
214 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
215 to fiddle __put_limit in conjunction with __linebuf_active.
217 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
219 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
220 to the strong name, not the file name.
222 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
224 * csu/initfini.c: More magic. Detect if .end is produced and put it
225 in the output iff the compiler does.
227 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
228 because that is broken on alpha.
230 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
233 * Makerules (make-link): Install the new link with atomic mv -f in
234 case ln itself requires the library being installed.
236 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
238 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
239 i386/dl-machine.h of 960713.
241 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
242 (_dl_sysdep_read_whole_file): Fix result variable declaration.
244 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
246 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
249 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
251 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
252 with pointer to local variable instead of NULL.
254 1996-07-15 Paul Eggert <eggert@twinsun.com>
256 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
258 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
260 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
261 that are already added by other means.
263 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
264 caller column to get those syscalls added automagically.
266 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
268 * login/logout.c (logout): Initialize DATA to a state that will
269 make setutent_r happy.
271 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
273 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
274 instead of setting the DT_DEBUG pointer.
276 * csu/initfini.c (_init, _fini): Generate .end directives after
277 standalone prologues and filter them out from epilogues.
279 * Makeconfig (rtld-installed-name): Set to ld.so.1.
280 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
283 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
285 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
287 * MakeTAGS (extract): Pass --add-comments=TRANS.
288 * sysdeps/gnu/errlist.awk: Write comments into the output with the
289 descriptive paragraphs from the manual preceded by TRANS.
291 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
292 (_dl_start): Move RESOLVE defn inside this function and #include
293 "dynamic-link.h" a second time there.
294 [RTLD_START]: Move use of this after _dl_start function.
296 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
298 * elf/rtld.c: Include <string.h>.
300 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
301 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
302 Conditionalize defns on [RESOLVE].
303 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
304 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
305 Instead use RESOLVE macro with same args.
306 (elf_machine_rel): Conditionalize defn on [RESOLVE].
307 * elf/dl-reloc.c (RESOLVE): New macro, define before including
308 "dynamic-link.h". It replaces `resolve' local function.
309 * elf/dl-runtime.c: Likewise.
310 * elf/rtld.c: Likewise.
312 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
314 * elf/dl-open.c (_dl_open): Force an indirect call for
315 _dl_relocate_object so there is no chance a PLT fixup will be done
316 and clobber _dl_global_scope before our call happens.
318 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
319 to =t; must operate on top of fp reg stack, not second from top.
320 Correct input constraint to 0 from t; must be explicit when input and
321 output are the same register.
322 (floor): Use __volatile instead of volatile.
325 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
328 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
330 * manual/Makefile (lib): New phony target. Depend on stamp files.
331 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
333 1996-07-13 Paul Eggert <eggert@twinsun.com>
335 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
336 to match Emacs format-time-string specification.
337 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
339 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
341 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
342 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
343 between MAP and its deps.
344 * elf/link.h: Fix decl.
345 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
346 colon-separated list of names, map those and pass vector of ptrs as
347 PRELOADS list to _dl_map_object_deps.
348 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
349 _dl_map_object_deps with empty preload list.
350 * elf/dl-open.c (_dl_open): Likewise.
352 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
354 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
355 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
356 Conditionalize defn on [! MAP_ANON].
357 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
359 * elf/rtld.c (dl_main): Likewise.
360 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
361 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
363 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
365 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
367 * stdlib/random.c (__random): Declare as int32_t to be in sync
370 * socket/Makefile (headers): Add socketbits.h.
372 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
375 * grp/initgroups.c (initgroups): Add groups that user is a member
376 of, not the ones he is _not_ a member of.
378 * nss/nsswitch.c (known_compare): Make known_compare() a static
379 instead of a local function. The latter are difficult to debug
380 and slow to execute on certain platforms.
382 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
383 place of sizeof (dev). The size of a literal string includes the
386 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
388 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
390 * misc/mntent.c (addmntent): Seek to end of file before writing
391 entry. Return 1 on error, not -1.
393 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
395 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
398 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
400 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
401 shift amount for Jensen must be 5 not 4.
403 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
405 * socket/sys/socket.h (struct osockaddr): New type.
407 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
409 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
410 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
411 and `long double' versions can be generated.
412 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
413 so that included efgcvt{,_r}.c file generate `long double'
415 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
418 * manual/startup.texi: Document new getsubopt function.
419 * manual/examples/subopt.c: New example program for documenting
422 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
424 * stdlib/Makefile (routines): Add getsubopt.
425 * stdlib/stdlib.h: Add prototype for getsubopt.
426 * stdlib/getsubopt.c: New file. Implement getsubopt function
427 to handle suboption parsing.
429 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
431 * inet/getnetent_r.c: Define NEED_H_ERRNO.
432 * inet/getnetbynm_r.c: Likewise.
433 * inet/getnetent.c: Likewise.
434 * inet/getnetbyad_r.c: Likewise.
435 * inet/getnetbyad.c: Likewise.
436 * inet/getnetbynm.c: Likewise.
438 * sysdeps/generic/pselect.c: Include <sys/time.h>.
440 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
443 * math/Makefile (calls): Add s_frexp, s_ldexp.
444 (routines): Remove them and &f from here.
446 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
448 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
451 * nss/nss_files/files-XXX.c: Comment fix.
453 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
455 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
456 of reentrant function.
457 (setup): Pass additional argument with function name we are
459 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
460 new argument {SET,END,GET}FUNC_NAME_STRING.
462 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
465 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
467 * nss/nss_files/files-parse.c: Add comment about things to #define.
469 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
471 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
472 terminator char as an error.
474 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
476 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
478 * catgets/gencat.c (write_out): Move code to determine new
479 best size out of inner loop.
481 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
483 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
484 implementation of frexp() function.
485 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
486 implementation of ldexp() function.
488 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
491 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
493 * misc/mntent.c: Include <sys/types.h>.
494 (endmntent): Return 1 one success, 0 on failure.
495 (getmntent): Chop newline and ignore empty lines.
497 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
499 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
500 differently based on [RTLD_BOOTSTRAP].
501 (elf_machine_rela): Use it instead of the fn ptr arg directly.
503 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
505 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
506 __glob_closedir_hook): Remove decls.
508 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
510 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
511 for send and connect syscalls.
513 * socket/sys/socket.h: New file, taken from non-sysdep parts of
514 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
515 Declare __ names for send and connect.
516 * sysdeps/generic/socketbits.h: New file.
517 * sysdeps/unix/sysv/linux/socketbits.h: New file.
518 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
519 * sysdeps/generic/sys/socket.h: File removed.
521 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
522 * sysdeps/mach/hurd/send.c: Likewise.
524 * sysdeps/mach/libc-lock.h: New file.
525 * sysdeps/unix/readdir.c: Do locking.
526 * sysdeps/unix/seekdir.c: Likewise.
527 * sysdeps/unix/rewinddir.c: Likewise.
528 * sysdeps/unix/closedir.c: Likewise.
529 * sysdeps/unix/bsd/telldir.c: Likewise.
530 * sysdeps/mach/hurd/seekdir.c: Likewise.
531 * sysdeps/mach/hurd/readdir.c: Likewise.
532 * sysdeps/mach/hurd/closedir.c: Likewise.
533 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
534 * sysdeps/unix/opendir.c: Likewise.
535 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
536 (struct __dirstream): Add lock member using __libc_lock_define.
537 * sysdeps/unix/dirstream.h: Likewise.
539 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
541 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
543 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
545 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
547 * locale/programs/stringtrans.c: Fix typo in copyright.
549 * stdio-common/printf-prs.c: Add casts to prevent
550 signed<->unsigned warnings.
552 * stdio-common/printf-parse.h: Initialize state variable before
554 * stdio-common/printf-prs.c: Don't initialize state variable here.
555 * stdio-common/vfprintf.c: Don't initialize state variable.
556 (vfprintf): While determining length of multibyte string don't
557 try to be clever in determining characters to use for first
560 Add real implementation of multibyte<->wide char conversion
561 functions. The functions always convert between the fixed wide
562 char format (ISO 10646 in UCS4) and the UTF8 representation of
563 this character set. Conversion between the currently used
564 8bit character set and ISO 10646 will not take place. This is
566 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
568 Add optimized version of `mbrlen' function.
569 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
571 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
573 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
574 This is needed in the wchar.h header.
575 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
576 encoded character to UCS4.
577 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
578 element of `mbstate_t' for initial state.
579 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
580 encoded string to UCS4 string.
581 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
582 character to UTF8 encoded form.
583 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
584 encoded string to UTF8 encoded form.
586 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
588 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
589 variable name, so new a libc with new requirements won't fail to
590 notice an insufficient Linux version.
592 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
594 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
595 instead of 2.0 headers.
597 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
599 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
600 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
602 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
603 before using it in lhs of weak_alias.
605 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
606 Call __nss_lookup when not setting STARTP.
607 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
608 function-calling loop.
610 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
612 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
613 PENDIN, NOFLSH): Undefine these at start if they are already
614 defined to avoid collision with termbits.h.
615 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
616 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
618 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
620 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
621 already defined to float, long double. Use those macros for _Mdouble_
622 defns when including mathcalls.h.
623 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
624 -D_Mlong_double_=double.
626 Add more -lm functions to -lc because ldexp uses them.
627 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
628 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
629 ldexp have both f and l code, and those have f though not l code.
631 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
633 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
634 error is 0. The "placeholder" entries recently added to
635 errno.texi convert to zero since `???/' is at the front of them.
636 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
638 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
639 __const to conform with unistd.h.
641 * stdlib/stdlib.h (random): Declare return type to be int32_t.
643 * string/argz-delete.c (argz_delete): Use memmove instead of
644 memcpy for possibly overlapping strings.
646 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
648 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
649 storage class. GCC gives an error for non-extern data defns with the
652 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
654 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
655 memmove instead of memcpy for possible overlapping strings.
657 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
659 * libc-symbols.h (weak_function): New macro.
660 For GCC 2.7+ define as __attribute__ ((weak)).
661 * elf/dl-minimal.c: Use weak_function as keyword in function defns
662 instead of weak_symbol (NAME) after the defn.
663 * stdlib/strtol.c: Likewise.
664 * stdlib/strtod.c: Likewise.
665 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
667 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
668 If this is defined, don't declare _dl_rtld_map as weak, and
669 don't check for MAP pointing to it. RESOLVE is always null in this
670 case, so test with #ifdef instead of if.
672 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
674 * csu/initfini.c (_init): Likewise.
675 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
676 * misc/efgcvt_r.c: Likewise.
677 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
678 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
680 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
681 It was not used in any assembler code.
682 (weak_symbol_asm): Renamed to weak_extern_asm.
683 (weak_extern): New macro replaces weak_symbol for weak extern refs;
684 define to weak_extern_asm for [!ASSEMBLER].
686 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
688 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
689 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
690 define those now as aliases.
691 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
692 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
693 after GCC weak attribute decl.
695 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
696 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
697 (element printer): Check for elt in ALIAS, instead of special case
700 * io/Makefile (headers): Add sys/vfs.h.
701 * io/sys/vfs.h: New file.
703 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
704 critical section lock before unlinking dying active resources.
705 The unlock just before return is right (i.e. old code unlocked twice).
707 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
709 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
710 Use memmove instead of memcpy where overlap is possible (not
711 necessary using current implementation of memcpy, but...).
712 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
714 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
716 * stdio/linewrap.c (lwupdate): New function, mostly was
717 __line_wrap_update. Use POINT_COL field instead of POINT.
718 (__line_wrap_output): Use lwupdate.
719 (__line_wrap_update): New function.
720 (ensure_unwrapped, ensure_wrapped): New functions.
721 (line_wrap_set_lmargin, line_wrap_set_rmargin,
722 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
724 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
725 POINT_COL. Add POINT_OFFS field.
726 (__line_wrap_update): New decl.
727 (line_wrap_set_lmargin, line_wrap_set_rmargin,
728 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
730 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
732 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
734 * login/pututline_r.c (pututline_r): Since we assign RESULT from
735 lseek now, check that it's >= 0, not == 0.
737 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
739 * login/login.c (login): Make a copy of *UT, fill in various
740 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
743 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
744 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
746 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
748 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
749 signal during critical section doing interruptible RPC, if
750 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
751 before thread_resume. If in critical section, pass 0 for SIGNO to
752 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
754 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
756 * sysdeps/unix/sysv/linux/sys/user.h: New file.
757 * sysdeps/unix/sysv/linux/Dist: Add it.
758 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
760 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
761 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
762 itself, no need to skip past a NUL.
764 * nss/nsswitch.h (known_function): Comment fix.
765 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
766 directly. Do the lookup and insertion with a single call, and fill in
767 the tree node afterwards if new.
768 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
770 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
771 (struct timeval): Add bodiless decl for scope.
773 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
774 Move struct timespec defn outside [_TIME_H] so it can be got with
775 #define __need_timespec.
777 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
778 for `struct timespec' member names.
779 (TIMESPEC_TO_TIMEVAL): Likewise.
781 * nss/Makefile (extra-libs-others): New variable.
783 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
784 $(lib) in $(extra-libs-others).
785 * sunrpc/Makefile (extra-libs-others): New variable.
786 (librpcsvc-no-lib-dep): Variable removed.
788 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
789 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
791 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
792 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
793 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
794 _dl_rtld_map weak only here.
796 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
798 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
800 * login/utmp.h: Fix typos.
802 * misc/syslog.c (vsyslog): Use __send instead of send and
803 __connect instead of connect to avoid name-space collisions (e.g.,
806 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
808 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
810 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
812 * malloc/malloc-size.c (malloc_usable_size): Renamed from
813 malloc_object_allocation_size.
814 * malloc/malloc.h: Fix decl.
816 * sys/select.h: New file, wrapper header.
818 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
819 fd_set, associated macros, and select decl.
821 * sysdeps/posix/isfdtype.c: New file.
823 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
825 The latest Japanese proposal for POSIX locales renames the
826 CHARMAP keyword in locale definition files to CHARCONV.
827 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
828 function ctype_is_charmap to ctype_is_charconv.
829 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
831 * locale/programs/locfile-token.h: Add definition of token
833 * locale/programs/locfile.c: Recognize charconv keyword. Rename
834 lables according to this.
836 * locale/weight.h (get_weight): Cast constants to prevent
839 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
840 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
843 New stuff described in P1003.1g.
844 * misc/Makefile (headers): Add sys/select.h.
845 (routines): Add pselect.
846 * misc/sys/select.h: New file. Declare select functions and
847 needed data types and macros.
848 * sysdeps/generic/pselect.c: New file. Add generic implementation
849 of pselect() function which uses select().
851 * posix/getconf.c: Recognize new variables from P1003.1g.
852 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
853 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
854 * posix/unistd.h: Add description of the P1003.1g variables.
855 * sysdeps/generic/confname.h: Define _SC_* values for new
857 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
859 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
860 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
862 * sysdeps/stub/sysconf.c (sysconf): Ditto.
863 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
864 _POSIX_SELECT since Linux has this.
866 * socket/Makefile (routines): Add isfdtype.
867 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
868 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
871 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
873 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
875 * elf/Makefile (LDFLAGS-dl.so): New variable.
876 (libdl.so): Depend on eval.so.
877 (distribute): Add eval.c.
878 * elf/eval.c: New file.
880 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
881 in case it wrote fewer than MAXDIGITS chars.
883 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
884 newline from flushing full buffer in loop, fix test so no fflush is
885 done when last byte written exactly fills the buffer.
887 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
889 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
890 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
892 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
893 extracting _dl_rtld_map.l_addr.
895 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
897 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
899 * shlib-versions (*-*-*): Set libnss_db=1.
901 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
903 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
905 * rpm/template (%build): Use @prefix@ instead of always /usr.
906 Set up configparms only if @prefix@ is in fact /usr.
907 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
909 * elf/Makefile: Add missing endif.
911 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
913 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
914 (DATABASE): Define this instead of DATAFILE.
915 * nss/nss_files/files-hosts.c: Likewise.
916 (hostbyname): Use LOOKUP_NAME macro.
918 * nss/nss_db/db-XXX.c: New file.
919 * nss/Makefile (services): Add db.
920 (libnss_db-inhibit-o): New variable.
921 (libnss_db-routines): New variable.
922 (distribute): Append db-XXX.c.
923 (libnss_db.so): Depend on libdb.so and libnss_files.so.
924 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
926 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
928 (DATAFILE): New macro.
929 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
931 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
932 Pass db key args to DB_LOOKUP.
933 (DATAFILE): Macro removed.
934 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
935 * nss/nss_files/files-service.c: Likewise.
936 * nss/nss_files/files-pwd.c: Likewise.
937 * nss/nss_files/files-proto.c: Likewise.
938 * nss/nss_files/files-grp.c: Likewise.
939 * nss/nss_files/files-ethers.c: Likewise.
941 * elf/linux-compat.c: File removed.
942 * elf/Makefile (distribute): Remove linux-compat.c.
943 (ld-linux.so.1): Remove target and associated variables.
945 * sunrpc/xdr.c: Remove malloc decl.
946 * sunrpc/portmap.c: Likewise.
948 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
949 casting abort to fn returning bool_t.
951 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
953 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
954 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
955 * nss/nss_files/files-grp.c: Likewise.
957 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
959 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
961 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
962 of ld.so so lookups for that soname find it.
964 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
965 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
967 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
968 define parse_line function.
969 (parse_line): #define to _nss_files_parse_pwent and
970 add extern decl for that.
972 * nss/nss_files/files-XXX.c (internal_getent): Return
973 NSS_STATUS_TRYAGAIN for ERANGE error.
975 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
976 of null, so next round returns null again instead of bombing. Fix
979 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
980 Remove ; after `ENTDATA_DECL (data)'.
981 Truncate line at strpbrk (line, EOLSET "\n").
982 (ENTDATA_DECL): Put ; at end.
983 (MIDLINE_COMMENTS): Macro removed.
984 * nss/nss_files/files-ethers.c: Pass new argument.
985 * nss/nss_files/files-hosts.c: Likewise.
986 * nss/nss_files/files-network.c: Likewise.
987 * nss/nss_files/files-parse.c: Likewise.
988 * nss/nss_files/files-proto.c: Likewise.
989 * nss/nss_files/files-rpc.c: Likewise.
990 * nss/nss_files/files-service.c: Likewise.
991 * grp/fgetgrent.c: Likewise.
992 * pwd/fgetpwent.c: Likewise.
993 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
994 fgetpwent.c already defines it.
995 * nss/nss_files/files-grp.c: Likewise.
997 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
998 as well as any matching with l_libname. Fix DT_SONAME lookup to use
999 string table properly.
1001 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
1002 invoked directly, and l_libname from that if PT_INTERP missing.
1003 Set l_name from l_libname only if not set from argv.
1005 * time/europe, time/northamerica: Updated from ADO 96i.
1007 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1009 * stdio-common/tst-ungetc.c: Include unistd.h.
1011 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
1013 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
1015 * hurd/report-wait.c (describe_number): Make I unsigned long.
1017 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
1018 actually found any entry.
1020 * login/pututline_r.c (pututline_r): If not located after any
1021 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
1022 Lock the file before stating.
1024 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1026 * nss/Makefile (databases): Change host to hosts.
1027 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
1029 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
1031 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
1033 * string/string.h (strndupa): Pass missing arg to strnlen.
1035 * inet/getnetbypt_r.c: Renamed to ...
1036 * inet/getnetbyad_r.c: this; fixed function name.
1037 * inet/getnetbypt.c: Renamed to ...
1038 * inet/getnetbyad.c: this; fixed function name.
1040 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1042 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
1045 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1047 * login/login.c (login): Initialize DATA so that setutent_r will
1048 actually do something.
1050 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
1052 * resolv/res_hconf.c (strndup): Remove function.
1054 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
1055 using ElfW() instead of Elf32_*.
1057 * sysdeps/unix/sysv/linux/alpha/init-first.h,
1058 sysdeps/unix/sysv/linux/m68k/init-first.h,
1059 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
1060 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
1061 init-first.h to make abstract machine dependent parts of
1064 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
1065 error handling. It's safer that way.
1067 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
1068 Fix by Richard Henderson.
1070 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1071 typo/extraneous whitespace.
1073 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1074 determine what integer sizes we're dealing with.
1076 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1078 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1079 check for signal zero, repair logical sense of test by
1080 parenthesizing correctly.
1082 * hurd/hurdsig.c (_hurd_internal_post_signal): In
1083 check-for-pending signals code, release _hurd_siglock before
1084 jumping to deliver_pending.
1086 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1088 * configure.in (config_machine): Make ELF the default even for
1089 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1092 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1094 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1095 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1096 member only #ifdef ENTDATA.
1097 (ENTDATA_DECL): New macro.
1098 (LINE_PARSER): Use it for entdata decl.
1099 (parse_list): Find the space for LIST from DATA->linebuffer instead of
1100 from the input LINE, which might not be writable buffer space.
1101 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1102 [ENTDATA] (parser_stclass): #define to `static inline'.
1103 [!ENDATA] (parser_stclass): #define to empty.
1104 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1105 function is exported to -lnss_files users.
1107 * string/strndup.c: Add missing arg.
1109 * string/string.h (strndupa): Likewise.
1110 * string/strndup.c (strndup): Always terminate the string.
1112 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1114 * stdio/Makefile (routines): Add vscanf.
1115 * stdio-common/Makefile (routines): Remove vscanf.
1116 * stdio-common/vscanf.c: Move to ...
1117 * stdio/vscanf.c: here.
1119 * rpm/Makefile (headers, install-lib, install-lib.so,
1120 versioned, install-bin, install-sbin, install-data,
1121 install-others): Add $(-VARIABLE).
1123 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1125 * nss/Makefile (databases): New variable.
1126 (routines, libnss_files-routines): Use it.
1127 (subdir-dirs): Compute from $(services).
1129 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1130 init_module, klogctl): Use EXTRA in the "caller" column so these get
1131 added to unix-extra-syscalls and thus compiled in misc.
1133 * string/Makefile (routines): Add strndup.
1134 * string/strndup.c: New file.
1135 * string/string.h: Declare strndup.
1136 (strndupa): New macro.
1138 * string/string.h: Declare __strdup.
1139 * string/strdup.c: Deansideclized. Define __ name and weak alias.
1141 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1143 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
1145 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1147 * grp/initgroups.c (initgroups): De-ansi-fy.
1148 Move declaration of NGROUPS and GROUPS outside #if so that
1149 the code compiles for NGROUPS_MAX != 0.
1151 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1152 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1153 ether_ntoa, ether_ntoa_r, and ether_ntoh.
1154 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1155 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1156 inet/ether_ntoh.c: New files. Implementation of functions to
1157 handle Ethernet address to host mapping.
1158 * inet/netinet/ether.h: New file. Declare ether_* functions.
1159 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1161 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1162 * nss/Makefile (routines): Add ethers-lookup.
1163 (libnss_files-routines): Add files-ethers.
1165 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1168 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1169 KEEP_STREAM every time called.
1170 (_nss_files_end): Reset KEEP_STREAM here instead.
1171 (internal_getent): If STREAM == NULL try to open instead of
1173 Use cast to prevent warning.
1174 Terminate read line in case the buffer is too small.
1176 * nss/nss_files/files-ethers.c: New file. Implementation of
1177 Ethernet adress<->hostname lookup through files interface.
1179 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1180 * stdlib/mbtowc.c: Define based on mbrtowc().
1181 * stdlib/wcstombs.c: Define based on wcsrtombs().
1182 * stdlib/wctomb.c: Define based on wcrtomb().
1184 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1185 unexpected_sizes_in_xdr_u_int.
1187 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1188 of `struct ether_addr'.
1189 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1190 declaration of `struct ether_addr'.
1192 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1193 * wcsmbs/mbsrtowcs.c: Ditto.
1194 * wcsmbs/wcrtomb.c: Ditto.
1195 * wcsmbs/wcsrtombs.c: Ditto.
1197 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1199 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1201 * hurd/get-host.c <fcntl.h>: New include.
1202 * hurd/set-host.c <fcntl.h>: New include.
1203 (_hurd_set_host_config): Include NEW in args to dir_link.
1204 Return NWROTE, not NREAD.
1206 * sysdeps/mach/hurd/getcwd.c
1207 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1208 DOTID & DOTDEVID until we're finished with them (we need to keep
1209 them at least until we've fetched the next level of id ports, so
1210 that mach will be able to use the same name if they're the same).
1211 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1212 jumps to errlose, for those places where such cleanup is needed.
1214 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1216 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1218 Move DB code into separate -ldb library.
1219 * db/Makefile (extra-libs): New variable, list libdb.
1220 (routines): Renamed to libdb-routines.
1221 * shlib-versions: Add libdb=2.
1223 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1224 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1226 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1227 of strncasecmp. Extend syntax to grok [!foo=bar].
1229 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1231 * string/string.h: Declare __strncasecmp.
1233 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1234 (service_alias): Variable removed.
1235 (nss_parse_service_list): New function, broken out of nss_getline.
1236 Remove alias conversion; we will just use symlinks.
1237 (__nss_database_lookup): Take new string arg DEFCONFIG.
1238 If no entry exists, make one with service list parsed from that.
1239 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1240 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1241 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1243 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
1246 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1248 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
1250 * locale/programs/locale.c (long_options): Short form of
1251 --version option is `-V'.
1252 (main): Recognize `-V' as option, not `-v'.
1253 Call `usage' instead of printing error message for illegal
1255 (usage): Document `-V'.
1257 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
1259 * sysdeps/mach/hurd/getcwd.c
1260 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1261 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1263 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1265 * inet/getrpcent.c: Fix macros.
1266 * inet/getrpcent_r.c: Fix macros.
1268 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1270 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1272 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1274 * catgets/gencat.c (write_out): Use %Zu to print variables of type
1276 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1277 cast it to (unsigned long) to make it work both on 32 and 64
1280 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1282 * locale/Makefile (distribute): Add `programs/' prefix to all
1283 files in that directory.
1285 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1288 * MakeTAGS (sources, headers): Make them simply expanded variables
1289 so that all-dist is expanded before it is changed.
1291 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1293 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
1294 * Makefile (subdirs): Remove crypt.
1295 * crypt: Directory removed. It will be made an independent library
1298 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1300 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1302 * inet/getrpcbynumber.c (BUFLEN): New macro.
1304 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1306 * Makefile (headers): Add libc-lock.h.
1307 * sysdeps/stub/libc-lock.h: New file.
1309 * inet/getrpcbynumber.c: Remove _r typo.
1311 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1313 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1316 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1317 or doesn't mention DATABASE, use an internal default equivalent to
1318 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1319 (nss_lookup_function): Call nss_new_service as needed.
1320 (nss_parse_file): Don't bother calling nss_new_service here.
1322 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1323 * pwd/fgetpwent.c: Likewise.
1325 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1326 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1327 * malloc/malloc-size.c: New file.
1328 * malloc/malloc-walk.c: New file.
1330 * malloc/malloc-find.c (malloc_find_object_address): Return null if
1331 PTR is outside the heap.
1333 * elf/dl-load.c (_dl_map_object): If the requested name matches the
1334 soname of a loaded object, use that object.
1336 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1338 * Makefile (subdirs): Add nss.
1340 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1341 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1342 * inet/getrpcbynumber_r.c: New file.
1343 * inet/getrpcbynumber.c: New file.
1344 * inet/getrpcbyname.c: New file.
1345 * inet/getrpcbyname_r.c: New file.
1346 * inet/getrpcent_r.c: New file.
1347 * inet/getrpcent.c: New file.
1348 * nss/rpc-lookup.c: New file.
1349 * nss/nss_files/files-rpc.c: New file.
1350 * nss/Makefile (routines): Add rpc-lookup.
1351 (libnss_files-routines): Add files-rpc.
1352 * sunrpc/Makefile (routines): Remove getrpcent.
1353 * sunrpc/getrpcent.c: File removed.
1355 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1358 * Makeconfig (rpath-link): Add $(nssobjdir).
1359 (nssobjdir): New variable.
1361 * Makerules: Move shared library building before objects rules, so
1362 versions are known before extra-lib.mk gets included.
1363 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1365 * pwd/getpwuid.c: Rewritten using nss.
1366 * pwd/getpwnam.c: Likewise.
1367 * pwd/getpwent.c: Likewise.
1368 * grp/getgrnam.c: Likewise.
1369 * grp/getgrgid.c: Likewise.
1370 * grp/getgrent.c: Likewise.
1371 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1372 * pwd/getpwent_r.c: New file.
1373 * pwd/getpwnam_r.c: New file.
1374 * pwd/getpwuid_r.c: New file.
1375 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1376 * grp/getgrnam_r.c: New file.
1377 * grp/getgrgid_r.c: New file.
1378 * grp/getgrent_r.c: New file.
1379 * grp/Makefile (routines): Remove grpopen, grpread.
1380 * pwd/Makefile (routines): Remove pwdopen, pwdread.
1381 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1383 * pwd/fgetpwent.c: Rewritten using files-parse.c.
1384 * grp/fgetgrent.c: Likewise.
1386 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1387 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1388 * nss/nss_files/files-grp.c: New file.
1389 * nss/nss_files/files-pwd.c: New file.
1391 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1393 * nss/nss_files/files-parse.c: New file.
1394 * nss/nss_files/files-XXX.c: New file.
1395 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1396 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1397 Rewritten using them.
1399 * nss/Makefile (libnss_files-routines): Remove files-host.
1400 Add files-hosts, files-grp, files-pwd.
1402 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1404 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
1406 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1407 A .plt entry now loads the .rela.plt offset directly rather
1408 than making us calculate it.
1410 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1412 * time/Makefile ($(installed-localtime-file) rule): Do
1413 $(make-target-directory) first.
1415 * resolv.h: Fix wrapper for resolv/resolv.h.
1417 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1418 Compile dummy file and pass -nostdlib -nostartfiles so as not to
1419 require installed libraries.
1421 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1424 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
1426 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1427 and mapv4v6hostent.h.
1428 (routines): Move res* and gethnamaddr into libresolv-routines.
1429 (libresolv-routines): New variable, put them there.
1430 (extra-libs): New variable, list libresolv.
1431 (CPPFLAGS): Add -D for get*by* to res_get*by*.
1433 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1435 * inet/herrno.c: New file.
1437 * resolv/res_init.c: Remove res_hconf calls.
1439 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1440 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1441 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1442 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1443 nss/service-lookup.c: New files. Implementation of name
1444 service switch, following the approach in Solaris.
1445 Interface specification and general structure inspired by Peter
1446 Eriksson <pen@lysator.liu.se>.
1447 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1448 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1449 Implementation of libnss_files.so module for file based databases
1451 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1452 if libnss_dns.so module for DNS name lookup in NSS service.
1454 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1455 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1456 Changed to serve as interface to NSS.
1457 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1458 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1459 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1460 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1461 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1462 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1463 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
1464 interfaces to NSS, including reentrant functions.
1466 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1467 resolv/sethostent.c: Removed: Obsoleted by NSS.
1469 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1470 gethnamaddr.c. These private functions are now used in more
1473 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1475 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1477 * rpm/Makefile ($(config)): Make sure the word list in the for
1478 loop is syntactically non-empty.
1480 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1482 * Version 1.92 test release.
1484 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1486 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1487 to klogctl to match prototype in sys/klog.h.
1489 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1490 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1492 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1493 Remove. Code is now part of __getcwd again. The old function
1494 never really worked for anything but THISDIR==".".
1496 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1497 only when building ELF version of library.
1499 * libio/libioP.h (_IO_vscanf): Add prototype.
1501 * posix/unistd.h (syscall): Change sysno arg and return value
1504 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1506 * version.h (VERSION): Updated to 1.92.
1508 * misc/Makefile (headers): Add ar.h.
1509 * misc/ar.h: New file.
1511 * config.make.in (BUILD_CC): New variable.
1512 * configure.in: Check for BUILD_CC if $host != $build.
1514 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1516 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1517 (stamp$o files): New targets, create them empty, no deps.
1519 * rpm/template (Source): New field.
1520 (%prep, %build, %install): New sections.
1521 (%files): Add %doc FAQ NEWS NOTES README.
1522 * rpm/rpmrc (builddir): Removed.
1524 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1526 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1527 guessing to not assume p_vaddr of first load cmd is zero.
1529 * sysdeps/sparc/elf/start.S: New file.
1530 * sysdeps/sparc/dl-machine.h: New file.
1532 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1533 only for ?s, not for *s. Fix from Chet Ramey.
1535 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1536 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1537 Use __{BEGIN,END}_DECLS.
1538 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1539 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1540 New macros, moved here from sysdeps/gnu/utmpbits.h.
1541 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1542 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1543 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1544 Use sizeof instead of UT_*SIZE.
1545 * login/logwtmp.c: Likewise.
1547 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1549 * version.c (banner): Add trailing newline.
1551 * login/utmp.h: Declare login_tty.
1553 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
1555 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1556 Changed to a 12-byte PLT entry to remove dependency on $gp.
1557 Take a new got_addr parameter.
1558 (elf_machine_rela): Pass the new parameter.
1559 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1560 (RTLD_START): Do normal linkage with program entry.
1562 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
1564 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1566 * hurd/getuids.c (getuids): New weak link to __getuids.
1568 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
1570 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
1571 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1573 Rename nested function lookup to lookup_op.
1574 (__file_name_lookup, __file_name_lookup_under):
1575 Pass 0 for lookup arg to __hurd_file_name_lookup.
1576 (__file_name_split): Likewise for __hurd_file_name_split.
1577 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1578 Rename nested function lookup to scan_lookup.
1579 (file_name_path_lookup): Pass 0 for lookup arg to
1580 hurd_file_name_path_lookup.
1581 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
1582 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
1583 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1584 Add LOOKUP argument.
1585 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1586 __hurd_file_name_lookup.
1588 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1590 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1591 up a huge list just to discard most of it.
1593 * configure.in (sysnames): Avoid fgrep by using the case shell
1596 * Makeconfig (config.status): Fix dependency on Implies files.
1598 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1600 * math/Makefile (distribute): Add ieee-math.c.
1602 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
1604 * locale/codeset_name.c: New file. Provide function for information
1605 about currently used character set.
1606 * locale/Makefile (routines): Add codeset_name.
1607 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1608 * locale/localeinfo.h: Change magic number because of incompatible
1610 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1611 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1613 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1614 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
1616 * locale/setlocale.c (setlocale): Initialize local variables to
1619 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
1621 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1623 * locale/programs/locale.c: Include string.h.
1625 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1626 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1627 appropriate sign-extension is performed on machines with
1630 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1631 sizeof(int)<sizeof(long), we need to go through a temporary
1634 * locale/programs/ld-numeric.c: Include <alloca.h>
1636 * libio/stdio.h (__libc_fatal): Add prototype.
1638 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1641 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1642 volatile to avoid "might get clobbered by longjmp" warning.
1644 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1645 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1646 probability is a sure loser).
1647 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1649 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1650 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1652 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1653 to be Linux FSSTND compliant.
1655 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
1657 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1659 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1660 sysdeps/unix/sysv/linux/alpha/brk.S,
1661 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1662 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1663 sysdeps/unix/sysv/linux/alpha/llseek.S,
1664 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1665 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1666 __syscall_error to avoid intruding application name space.
1668 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1669 to SYS_get?id so that syscall stubs in sysdeps/unix define
1670 these syscalls in terms of getxpid/getxuid/getxgid.
1672 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1673 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1674 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1675 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1677 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1678 (PSEUDO_END): Rename END() to PSEUDO_END().
1680 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1681 to PSEUDO_END to improve branch-prediction. Include .frame
1682 directive to make syscalls debugabble.
1683 (PSEUDO_END): New macro.
1685 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1686 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1687 latter is illegal under DEC Unix.
1689 * sysdeps/unix/alpha/sysdep.S: Renamed from
1690 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
1692 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1693 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1694 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1696 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1697 address register in the .frame directive.
1699 * sysdeps/alpha/copysign.c: Remove.
1701 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1702 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1704 * errno.h: Move __END_DECLS to correct place to make file
1705 compilable under c++.
1707 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
1708 d_ino only if <direntry.h> hasn't defined d_fileno.
1710 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1711 arguments to weakext to make .weakext detection work on ECOFF systems.
1713 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
1714 that _validuser() has been replaced by __ivaliduser().
1716 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
1718 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1719 as unsigned long, not as int (to avoid incorrect int->long
1724 See ChangeLog.5 for earlier changes.