1 Fri Jul 26 20:39:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3 * ctype/test_ctype.c: Test EOF too.
5 Fri Jul 26 16:10:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
7 * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
9 * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
12 Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
14 * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
15 <kkojima@info.kanagawa-u.ac.jp>.
17 Fri Jul 26 04:41:28 1996 Ulrich Drepper <drepper@cygnus.com>
19 * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
20 defined, not __OPTIMIZED.
21 (_nl_msg_cat_cntr): Move declaration outside macro definition
22 to prevent "nested extern" warning.
23 (dcgettext): Rename local variable `result' to `__result'.
25 Thu Jul 25 22:46:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
27 * locale/programs/localedef.c (__progname): Remove decl.
28 (main): Use program_invocation_short_name instead of __progname.
29 (usage): Use program_invocation_name instead of __progname.
31 Fri Jul 26 03:46:08 1996 Ulrich Drepper <drepper@cygnus.com>
33 * catgets/gencat.c: Use "libc" instead of PACKAGE.
34 * locale/localedef.c: Ditto.
35 * locale/locale.c: Ditto.
37 * locale/findlocale.c (_nl_find_locale): Little optimization.
38 Use new function `strndup'.
40 * locale/loadlocale.c: Little optimization. Use constant value
41 from `_nl_category_num_items' instead of byte-order dependend
44 * locale/programs/ld-time.c (time_add): Correct string constant.
46 * locale/programs/locale-spec.c: New file.
47 * locale/programs/locale.c: Call `locale_special' function if
48 no other field matches.
50 * locale/programs/localedef.c: No need to define `program_name'.
51 Use global variable `__progname'.
53 * locale/programs/locfile.c (write_locale_data): Always write
54 LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file. This is
55 necessary since message catalogs are also installed in the
56 LC_MESSAGES/ directory.
58 * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
59 function instead of writing single bytes.
60 (encode_char): Also handle little endian.
62 * locale/setlocale.c (new_composite_name): Little optimization.
63 Use return value of `memcpy'.
65 * misc/ttyent.h: Pretty print prototypes, add missing parameter
66 names, prepend parameter names with __ and use `__const' instead
68 * posix/unistd.h: Ditto.
69 * stdlib/stdlib.h: Ditto.
70 * string/string.h: Ditto.
72 * posix/getconf.c: De-ASNI-fy. Recognize POSIX.2 constant names.
73 Use `error' function instead of doing it by hand.
74 * sysdeps/posix/sysconf.c: De-ANSI-fy.
75 Handle _SC_COLL_WEIGHTS_MAX.
76 * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
77 _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
78 since these do depend on the platform.
81 * posix/posix2_lim.h: Add missing definition of
82 _POSIX2_COLL_WEIGHTS_MAX.
83 Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
84 to high values since we have no fixed limit.
86 * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
87 _SC_PAGESIZE for buggy systems (= HP UX) out there.
89 * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
90 * wcsmbs/mbsnrtowcs.c: New file. Non-standard implementation.
91 * wcsmbs/wcsnrtombs.c: Ditto.
92 * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
95 Thu Jul 25 00:25:54 Richard Henderson <rth@tamu.edu>
97 * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
99 * nss/getXXent_r.c: Likewise.
100 * nss/nsswitch.c: Likewise.
101 * nss/nss_files/files-XXX.c: Likewise.
102 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
103 * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
104 * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
106 Thu Jul 25 00:53:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
108 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
109 macro, now put the needed Linux version just once, here; update to
110 needing linux-2.0.3 headers.
111 (libc_cv_linuxVER): New macro derived from that.
112 (kernel header check): Use those macros and some m4 magic to replace
113 hard-coded `201' and `2.0.1' in several places.
115 * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
117 Wed Jul 24 17:02:30 1996 Ulrich Drepper <drepper@cygnus.com>
119 * time/localtime.c: Move lock variable declaration to end of
120 variable declarations since if is a dummy macro the ; at the
121 end terminates the variable section of the function.
123 * time/tzset.c: Undefine `tzset' before function declaration.
124 Use `weak_function' macro instead of `weak_symbol'.
126 Wed Jul 24 18:57:33 1996 Ulrich Drepper <drepper@cygnus.com>
128 * stdlib/strtouq.c: Additional weak alias is `strtoull', not
131 Wed Jul 24 18:26:23 1996 Ulrich Drepper <drepper@cygnus.com>
133 * locale/C-ctype.c: Increment number of fields after change
134 from Wed Jun 19 03:24:58 1996.
136 Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
138 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
139 ($(common-objpfx)libc.so): Move deps into that, use it.
140 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
141 $(rpcuserlibs:.so=_pic.a).
142 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
145 Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
147 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
148 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
150 Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
152 * locale/iso-4217.def: Add India to comment for symbol "INR ".
153 Reported by Raja R Harinath <harinath@cs.umn.edu>.
155 Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
157 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
160 Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
162 * time/tzset.c: Include <libc-lock.h>.
163 (__tzset_lock): New lock variable.
164 (tzset): New function (weak defn), no longer weak alias for __tzset.
165 Call __tzset while holding __tzset_lock.
166 * time/localtime.c: Include <libc-lock.h>.
167 (__localtime_r): Hold __tzset_lock while doing the work.
169 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
170 from [!HAVE_GNU_LD] to [!_LIBC].
171 [_LIBC]: Include <libc-lock.h> and define a lock.
172 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
173 (setenv, unsetenv): Use them.
175 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
177 * locale/programs/locfile.c (write_locale_data): Deal with missing
180 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
181 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
183 Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
185 Win32 hacks from <Rob_Tulloh@tivoli.com>.
186 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
187 use void * for my_realloc; include <malloc.h> for alloca.
188 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
189 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
190 * posix/glob.h: Likewise.
192 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
194 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
195 call __io_select unless there's only a single descriptor, as each
196 descriptor now has its own reply port.
197 If there is only a single descriptor, just use its reply port for
198 everything and don't bother creating the port set.
200 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
201 <unistd.h>: New include.
203 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
206 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
208 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
209 from the USA any software that even makes it easy to drop in an
210 encryption module of foreign origin.
211 * Makerules (cryptobjdir): Variable removed.
212 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
213 * Makefile (subdirs): Remove crypt.
215 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
217 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
218 operator to yesexpr and noexpr string.
220 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
222 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
223 old code would have failed on a big-endian 64-bit architecture).
224 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
226 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
227 (xdr_u_long): Use switch instead of chain of if-statements.
228 Remove gratitous parentheses around return expressions.
229 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
231 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
233 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
236 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
238 * dlfcn.h, db.h: New wrapper headers.
240 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
241 for `struct stat;' forward decl.
243 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
245 * locale/iso-4217.def: Add some more standardized currency
248 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
250 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
252 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
254 * Rules (dummy.o, empty.o): Targets removed.
255 (dummy.c, empty.c): New targets replace them.
257 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
259 * crypt/Makefile (lib-noranlib): Depend on
260 $(objpfx)libcrypt.so$(libcrypt.so-version).
263 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
265 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
266 check. mib's clueless hacking broke it.
268 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
270 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
272 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
274 * misc/sys/ustat.h: New file.
275 * misc/ustat.h: Ditto.
276 * sysdeps/generic/ustatbits.h: Ditto.
277 * sysdeps/stub/ustat.c: Ditto.
278 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
279 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
281 (routines): Mention ustat.
283 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
284 * sysdeps/alpha/elf/start.S: here.
286 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
287 alphabetically correct place. Mention ustat.
289 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
290 common symbol (makes errno accessible from gdb).
292 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
295 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
296 record always gets appended at end of file (wtmp is a log file,
297 after all). Set ut_type to DEAD_PROCESS if name is empty.
299 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
300 separate loop from search for UT_ID. Fix code so it is in
301 sync with Unix man page.
303 * login/getutline_r.c (getutline_r): Stop searching only if
304 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
306 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
308 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
309 avoid duplicate declarations.
311 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
313 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
314 and alpha-gnu-linuxecoff targets.
316 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
318 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
320 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
322 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
325 * resolv/res_comp.c (res_hnok): Use empty statement in place
326 of NULL (which generates a "useless expression" warning in
329 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
331 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
332 with $(..) in output.
334 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
336 * elf/Makefile (dl-routines): Add dl-cache.
337 * elf/dl-cache.c: New file.
338 * elf/dl-load.c (_dl_map_object): Check cache before default path.
340 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
342 * stdio-common/vfscanf.c: Major change. Now read character
343 from stream only if needed. Before it was read after the
344 previous character was used.
345 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
347 * stdio-common/tstscanf.c: Change test program so that return
348 value is != 0 if one test failed.
350 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
352 * sysdeps/m68k/Makefile (crypt): Variable removed.
353 * sysdeps/sparc/Makefile: Likewise.
355 * version.h (VERSION): Update to 1.93.
357 * Makerules ($(libdir)/libc.so): Depend on
358 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
360 * crypt/nocrypt.c: New file.
361 * Makefile (subdirs): Add crypt.
362 * crypt/Makefile: New file.
364 * Makerules (soversions.mk): Move this target, include of it, and
365 include of version.mk to ...
366 * Makeconfig: ... here.
367 (soversions.mk): Depend on Makeconfig instead of Makerules.
369 * shlib-versions (*-*-*): Set libcrypt=0.
371 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
373 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
374 word extends right up to rmargin.
376 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
377 output the wrap margin, set point_col to wmargin.
378 Use negative point_col to deal with a wmargin of 0.
379 (line_wrap_point): Return 0 for a negative point_col.
380 (line_wrap_stream): Make wmargin ssize_t.
381 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
383 (line_wrap_stream): Make wmargin ssize_t.
384 (line_wrap_point): Return 0 for a negative point_col.
386 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
388 * shlib-versions (*-*-gnu*): Set libc=0.0
390 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
392 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
393 sysdeps/i386/dl-machine.h.
395 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
397 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
398 to fiddle __put_limit in conjunction with __linebuf_active.
400 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
402 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
403 to the strong name, not the file name.
405 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
407 * csu/initfini.c: More magic. Detect if .end is produced and put it
408 in the output iff the compiler does.
410 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
411 because that is broken on alpha.
413 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
416 * Makerules (make-link): Install the new link with atomic mv -f in
417 case ln itself requires the library being installed.
419 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
421 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
422 i386/dl-machine.h of 960713.
424 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
425 (_dl_sysdep_read_whole_file): Fix result variable declaration.
427 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
429 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
432 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
434 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
435 with pointer to local variable instead of NULL.
437 1996-07-15 Paul Eggert <eggert@twinsun.com>
439 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
441 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
443 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
444 that are already added by other means.
446 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
447 caller column to get those syscalls added automagically.
449 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
451 * login/logout.c (logout): Initialize DATA to a state that will
452 make setutent_r happy.
454 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
456 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
457 instead of setting the DT_DEBUG pointer.
459 * csu/initfini.c (_init, _fini): Generate .end directives after
460 standalone prologues and filter them out from epilogues.
462 * Makeconfig (rtld-installed-name): Set to ld.so.1.
463 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
466 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
468 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
470 * MakeTAGS (extract): Pass --add-comments=TRANS.
471 * sysdeps/gnu/errlist.awk: Write comments into the output with the
472 descriptive paragraphs from the manual preceded by TRANS.
474 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
475 (_dl_start): Move RESOLVE defn inside this function and #include
476 "dynamic-link.h" a second time there.
477 [RTLD_START]: Move use of this after _dl_start function.
479 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
481 * elf/rtld.c: Include <string.h>.
483 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
484 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
485 Conditionalize defns on [RESOLVE].
486 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
487 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
488 Instead use RESOLVE macro with same args.
489 (elf_machine_rel): Conditionalize defn on [RESOLVE].
490 * elf/dl-reloc.c (RESOLVE): New macro, define before including
491 "dynamic-link.h". It replaces `resolve' local function.
492 * elf/dl-runtime.c: Likewise.
493 * elf/rtld.c: Likewise.
495 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
497 * elf/dl-open.c (_dl_open): Force an indirect call for
498 _dl_relocate_object so there is no chance a PLT fixup will be done
499 and clobber _dl_global_scope before our call happens.
501 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
502 to =t; must operate on top of fp reg stack, not second from top.
503 Correct input constraint to 0 from t; must be explicit when input and
504 output are the same register.
505 (floor): Use __volatile instead of volatile.
508 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
511 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
513 * manual/Makefile (lib): New phony target. Depend on stamp files.
514 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
516 1996-07-13 Paul Eggert <eggert@twinsun.com>
518 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
519 to match Emacs format-time-string specification.
520 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
522 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
524 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
525 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
526 between MAP and its deps.
527 * elf/link.h: Fix decl.
528 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
529 colon-separated list of names, map those and pass vector of ptrs as
530 PRELOADS list to _dl_map_object_deps.
531 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
532 _dl_map_object_deps with empty preload list.
533 * elf/dl-open.c (_dl_open): Likewise.
535 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
537 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
538 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
539 Conditionalize defn on [! MAP_ANON].
540 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
542 * elf/rtld.c (dl_main): Likewise.
543 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
544 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
546 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
548 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
550 * stdlib/random.c (__random): Declare as int32_t to be in sync
553 * socket/Makefile (headers): Add socketbits.h.
555 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
558 * grp/initgroups.c (initgroups): Add groups that user is a member
559 of, not the ones he is _not_ a member of.
561 * nss/nsswitch.c (known_compare): Make known_compare() a static
562 instead of a local function. The latter are difficult to debug
563 and slow to execute on certain platforms.
565 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
566 place of sizeof (dev). The size of a literal string includes the
569 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
571 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
573 * misc/mntent.c (addmntent): Seek to end of file before writing
574 entry. Return 1 on error, not -1.
576 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
578 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
581 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
583 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
584 shift amount for Jensen must be 5 not 4.
586 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
588 * socket/sys/socket.h (struct osockaddr): New type.
590 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
592 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
593 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
594 and `long double' versions can be generated.
595 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
596 so that included efgcvt{,_r}.c file generate `long double'
598 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
601 * manual/startup.texi: Document new getsubopt function.
602 * manual/examples/subopt.c: New example program for documenting
605 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
607 * stdlib/Makefile (routines): Add getsubopt.
608 * stdlib/stdlib.h: Add prototype for getsubopt.
609 * stdlib/getsubopt.c: New file. Implement getsubopt function
610 to handle suboption parsing.
612 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
614 * inet/getnetent_r.c: Define NEED_H_ERRNO.
615 * inet/getnetbynm_r.c: Likewise.
616 * inet/getnetent.c: Likewise.
617 * inet/getnetbyad_r.c: Likewise.
618 * inet/getnetbyad.c: Likewise.
619 * inet/getnetbynm.c: Likewise.
621 * sysdeps/generic/pselect.c: Include <sys/time.h>.
623 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
626 * math/Makefile (calls): Add s_frexp, s_ldexp.
627 (routines): Remove them and &f from here.
629 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
631 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
634 * nss/nss_files/files-XXX.c: Comment fix.
636 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
638 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
639 of reentrant function.
640 (setup): Pass additional argument with function name we are
642 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
643 new argument {SET,END,GET}FUNC_NAME_STRING.
645 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
648 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
650 * nss/nss_files/files-parse.c: Add comment about things to #define.
652 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
654 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
655 terminator char as an error.
657 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
659 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
661 * catgets/gencat.c (write_out): Move code to determine new
662 best size out of inner loop.
664 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
666 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
667 implementation of frexp() function.
668 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
669 implementation of ldexp() function.
671 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
674 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
676 * misc/mntent.c: Include <sys/types.h>.
677 (endmntent): Return 1 one success, 0 on failure.
678 (getmntent): Chop newline and ignore empty lines.
680 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
682 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
683 differently based on [RTLD_BOOTSTRAP].
684 (elf_machine_rela): Use it instead of the fn ptr arg directly.
686 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
688 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
689 __glob_closedir_hook): Remove decls.
691 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
693 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
694 for send and connect syscalls.
696 * socket/sys/socket.h: New file, taken from non-sysdep parts of
697 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
698 Declare __ names for send and connect.
699 * sysdeps/generic/socketbits.h: New file.
700 * sysdeps/unix/sysv/linux/socketbits.h: New file.
701 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
702 * sysdeps/generic/sys/socket.h: File removed.
704 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
705 * sysdeps/mach/hurd/send.c: Likewise.
707 * sysdeps/mach/libc-lock.h: New file.
708 * sysdeps/unix/readdir.c: Do locking.
709 * sysdeps/unix/seekdir.c: Likewise.
710 * sysdeps/unix/rewinddir.c: Likewise.
711 * sysdeps/unix/closedir.c: Likewise.
712 * sysdeps/unix/bsd/telldir.c: Likewise.
713 * sysdeps/mach/hurd/seekdir.c: Likewise.
714 * sysdeps/mach/hurd/readdir.c: Likewise.
715 * sysdeps/mach/hurd/closedir.c: Likewise.
716 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
717 * sysdeps/unix/opendir.c: Likewise.
718 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
719 (struct __dirstream): Add lock member using __libc_lock_define.
720 * sysdeps/unix/dirstream.h: Likewise.
722 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
724 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
726 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
728 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
730 * locale/programs/stringtrans.c: Fix typo in copyright.
732 * stdio-common/printf-prs.c: Add casts to prevent
733 signed<->unsigned warnings.
735 * stdio-common/printf-parse.h: Initialize state variable before
737 * stdio-common/printf-prs.c: Don't initialize state variable here.
738 * stdio-common/vfprintf.c: Don't initialize state variable.
739 (vfprintf): While determining length of multibyte string don't
740 try to be clever in determining characters to use for first
743 Add real implementation of multibyte<->wide char conversion
744 functions. The functions always convert between the fixed wide
745 char format (ISO 10646 in UCS4) and the UTF8 representation of
746 this character set. Conversion between the currently used
747 8bit character set and ISO 10646 will not take place. This is
749 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
751 Add optimized version of `mbrlen' function.
752 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
754 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
756 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
757 This is needed in the wchar.h header.
758 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
759 encoded character to UCS4.
760 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
761 element of `mbstate_t' for initial state.
762 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
763 encoded string to UCS4 string.
764 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
765 character to UTF8 encoded form.
766 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
767 encoded string to UTF8 encoded form.
769 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
771 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
772 variable name, so new a libc with new requirements won't fail to
773 notice an insufficient Linux version.
775 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
777 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
778 instead of 2.0 headers.
780 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
782 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
783 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
785 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
786 before using it in lhs of weak_alias.
788 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
789 Call __nss_lookup when not setting STARTP.
790 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
791 function-calling loop.
793 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
795 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
796 PENDIN, NOFLSH): Undefine these at start if they are already
797 defined to avoid collision with termbits.h.
798 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
799 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
801 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
803 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
804 already defined to float, long double. Use those macros for _Mdouble_
805 defns when including mathcalls.h.
806 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
807 -D_Mlong_double_=double.
809 Add more -lm functions to -lc because ldexp uses them.
810 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
811 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
812 ldexp have both f and l code, and those have f though not l code.
814 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
816 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
817 error is 0. The "placeholder" entries recently added to
818 errno.texi convert to zero since `???/' is at the front of them.
819 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
821 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
822 __const to conform with unistd.h.
824 * stdlib/stdlib.h (random): Declare return type to be int32_t.
826 * string/argz-delete.c (argz_delete): Use memmove instead of
827 memcpy for possibly overlapping strings.
829 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
831 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
832 storage class. GCC gives an error for non-extern data defns with the
835 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
837 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
838 memmove instead of memcpy for possible overlapping strings.
840 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
842 * libc-symbols.h (weak_function): New macro.
843 For GCC 2.7+ define as __attribute__ ((weak)).
844 * elf/dl-minimal.c: Use weak_function as keyword in function defns
845 instead of weak_symbol (NAME) after the defn.
846 * stdlib/strtol.c: Likewise.
847 * stdlib/strtod.c: Likewise.
848 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
850 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
851 If this is defined, don't declare _dl_rtld_map as weak, and
852 don't check for MAP pointing to it. RESOLVE is always null in this
853 case, so test with #ifdef instead of if.
855 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
857 * csu/initfini.c (_init): Likewise.
858 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
859 * misc/efgcvt_r.c: Likewise.
860 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
861 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
863 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
864 It was not used in any assembler code.
865 (weak_symbol_asm): Renamed to weak_extern_asm.
866 (weak_extern): New macro replaces weak_symbol for weak extern refs;
867 define to weak_extern_asm for [!ASSEMBLER].
869 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
871 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
872 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
873 define those now as aliases.
874 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
875 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
876 after GCC weak attribute decl.
878 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
879 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
880 (element printer): Check for elt in ALIAS, instead of special case
883 * io/Makefile (headers): Add sys/vfs.h.
884 * io/sys/vfs.h: New file.
886 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
887 critical section lock before unlinking dying active resources.
888 The unlock just before return is right (i.e. old code unlocked twice).
890 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
892 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
893 Use memmove instead of memcpy where overlap is possible (not
894 necessary using current implementation of memcpy, but...).
895 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
897 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
899 * stdio/linewrap.c (lwupdate): New function, mostly was
900 __line_wrap_update. Use POINT_COL field instead of POINT.
901 (__line_wrap_output): Use lwupdate.
902 (__line_wrap_update): New function.
903 (ensure_unwrapped, ensure_wrapped): New functions.
904 (line_wrap_set_lmargin, line_wrap_set_rmargin,
905 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
907 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
908 POINT_COL. Add POINT_OFFS field.
909 (__line_wrap_update): New decl.
910 (line_wrap_set_lmargin, line_wrap_set_rmargin,
911 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
913 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
915 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
917 * login/pututline_r.c (pututline_r): Since we assign RESULT from
918 lseek now, check that it's >= 0, not == 0.
920 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
922 * login/login.c (login): Make a copy of *UT, fill in various
923 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
926 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
927 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
929 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
931 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
932 signal during critical section doing interruptible RPC, if
933 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
934 before thread_resume. If in critical section, pass 0 for SIGNO to
935 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
937 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
939 * sysdeps/unix/sysv/linux/sys/user.h: New file.
940 * sysdeps/unix/sysv/linux/Dist: Add it.
941 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
943 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
944 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
945 itself, no need to skip past a NUL.
947 * nss/nsswitch.h (known_function): Comment fix.
948 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
949 directly. Do the lookup and insertion with a single call, and fill in
950 the tree node afterwards if new.
951 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
953 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
954 (struct timeval): Add bodiless decl for scope.
956 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
957 Move struct timespec defn outside [_TIME_H] so it can be got with
958 #define __need_timespec.
960 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
961 for `struct timespec' member names.
962 (TIMESPEC_TO_TIMEVAL): Likewise.
964 * nss/Makefile (extra-libs-others): New variable.
966 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
967 $(lib) in $(extra-libs-others).
968 * sunrpc/Makefile (extra-libs-others): New variable.
969 (librpcsvc-no-lib-dep): Variable removed.
971 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
972 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
974 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
975 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
976 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
977 _dl_rtld_map weak only here.
979 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
981 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
983 * login/utmp.h: Fix typos.
985 * misc/syslog.c (vsyslog): Use __send instead of send and
986 __connect instead of connect to avoid name-space collisions (e.g.,
989 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
991 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
993 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
995 * malloc/malloc-size.c (malloc_usable_size): Renamed from
996 malloc_object_allocation_size.
997 * malloc/malloc.h: Fix decl.
999 * sys/select.h: New file, wrapper header.
1001 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
1002 fd_set, associated macros, and select decl.
1004 * sysdeps/posix/isfdtype.c: New file.
1006 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
1008 The latest Japanese proposal for POSIX locales renames the
1009 CHARMAP keyword in locale definition files to CHARCONV.
1010 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
1011 function ctype_is_charmap to ctype_is_charconv.
1012 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
1014 * locale/programs/locfile-token.h: Add definition of token
1016 * locale/programs/locfile.c: Recognize charconv keyword. Rename
1017 lables according to this.
1019 * locale/weight.h (get_weight): Cast constants to prevent
1022 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
1023 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
1026 New stuff described in P1003.1g.
1027 * misc/Makefile (headers): Add sys/select.h.
1028 (routines): Add pselect.
1029 * misc/sys/select.h: New file. Declare select functions and
1030 needed data types and macros.
1031 * sysdeps/generic/pselect.c: New file. Add generic implementation
1032 of pselect() function which uses select().
1034 * posix/getconf.c: Recognize new variables from P1003.1g.
1035 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
1036 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
1037 * posix/unistd.h: Add description of the P1003.1g variables.
1038 * sysdeps/generic/confname.h: Define _SC_* values for new
1040 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
1042 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
1043 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
1045 * sysdeps/stub/sysconf.c (sysconf): Ditto.
1046 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
1047 _POSIX_SELECT since Linux has this.
1049 * socket/Makefile (routines): Add isfdtype.
1050 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
1051 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
1054 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
1056 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1058 * elf/Makefile (LDFLAGS-dl.so): New variable.
1059 (libdl.so): Depend on eval.so.
1060 (distribute): Add eval.c.
1061 * elf/eval.c: New file.
1063 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
1064 in case it wrote fewer than MAXDIGITS chars.
1066 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
1067 newline from flushing full buffer in loop, fix test so no fflush is
1068 done when last byte written exactly fills the buffer.
1070 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
1072 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
1073 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
1075 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
1076 extracting _dl_rtld_map.l_addr.
1078 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
1080 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1082 * shlib-versions (*-*-*): Set libnss_db=1.
1084 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1086 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
1088 * rpm/template (%build): Use @prefix@ instead of always /usr.
1089 Set up configparms only if @prefix@ is in fact /usr.
1090 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
1092 * elf/Makefile: Add missing endif.
1094 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
1096 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
1097 (DATABASE): Define this instead of DATAFILE.
1098 * nss/nss_files/files-hosts.c: Likewise.
1099 (hostbyname): Use LOOKUP_NAME macro.
1101 * nss/nss_db/db-XXX.c: New file.
1102 * nss/Makefile (services): Add db.
1103 (libnss_db-inhibit-o): New variable.
1104 (libnss_db-routines): New variable.
1105 (distribute): Append db-XXX.c.
1106 (libnss_db.so): Depend on libdb.so and libnss_files.so.
1107 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
1109 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
1111 (DATAFILE): New macro.
1112 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
1114 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
1115 Pass db key args to DB_LOOKUP.
1116 (DATAFILE): Macro removed.
1117 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
1118 * nss/nss_files/files-service.c: Likewise.
1119 * nss/nss_files/files-pwd.c: Likewise.
1120 * nss/nss_files/files-proto.c: Likewise.
1121 * nss/nss_files/files-grp.c: Likewise.
1122 * nss/nss_files/files-ethers.c: Likewise.
1124 * elf/linux-compat.c: File removed.
1125 * elf/Makefile (distribute): Remove linux-compat.c.
1126 (ld-linux.so.1): Remove target and associated variables.
1128 * sunrpc/xdr.c: Remove malloc decl.
1129 * sunrpc/portmap.c: Likewise.
1131 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
1132 casting abort to fn returning bool_t.
1134 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
1135 the parser function.
1136 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
1137 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
1138 * nss/nss_files/files-grp.c: Likewise.
1140 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
1142 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
1144 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
1145 of ld.so so lookups for that soname find it.
1147 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
1148 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
1150 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
1151 define parse_line function.
1152 (parse_line): #define to _nss_files_parse_pwent and
1153 add extern decl for that.
1155 * nss/nss_files/files-XXX.c (internal_getent): Return
1156 NSS_STATUS_TRYAGAIN for ERANGE error.
1158 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
1159 of null, so next round returns null again instead of bombing. Fix
1162 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
1163 Remove ; after `ENTDATA_DECL (data)'.
1164 Truncate line at strpbrk (line, EOLSET "\n").
1165 (ENTDATA_DECL): Put ; at end.
1166 (MIDLINE_COMMENTS): Macro removed.
1167 * nss/nss_files/files-ethers.c: Pass new argument.
1168 * nss/nss_files/files-hosts.c: Likewise.
1169 * nss/nss_files/files-network.c: Likewise.
1170 * nss/nss_files/files-parse.c: Likewise.
1171 * nss/nss_files/files-proto.c: Likewise.
1172 * nss/nss_files/files-rpc.c: Likewise.
1173 * nss/nss_files/files-service.c: Likewise.
1174 * grp/fgetgrent.c: Likewise.
1175 * pwd/fgetpwent.c: Likewise.
1176 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
1177 fgetpwent.c already defines it.
1178 * nss/nss_files/files-grp.c: Likewise.
1180 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
1181 as well as any matching with l_libname. Fix DT_SONAME lookup to use
1182 string table properly.
1184 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
1185 invoked directly, and l_libname from that if PT_INTERP missing.
1186 Set l_name from l_libname only if not set from argv.
1188 * time/europe, time/northamerica: Updated from ADO 96i.
1190 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1192 * stdio-common/tst-ungetc.c: Include unistd.h.
1194 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
1196 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
1198 * hurd/report-wait.c (describe_number): Make I unsigned long.
1200 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
1201 actually found any entry.
1203 * login/pututline_r.c (pututline_r): If not located after any
1204 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
1205 Lock the file before stating.
1207 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1209 * nss/Makefile (databases): Change host to hosts.
1210 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
1212 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
1214 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
1216 * string/string.h (strndupa): Pass missing arg to strnlen.
1218 * inet/getnetbypt_r.c: Renamed to ...
1219 * inet/getnetbyad_r.c: this; fixed function name.
1220 * inet/getnetbypt.c: Renamed to ...
1221 * inet/getnetbyad.c: this; fixed function name.
1223 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1225 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
1228 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1230 * login/login.c (login): Initialize DATA so that setutent_r will
1231 actually do something.
1233 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
1235 * resolv/res_hconf.c (strndup): Remove function.
1237 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
1238 using ElfW() instead of Elf32_*.
1240 * sysdeps/unix/sysv/linux/alpha/init-first.h,
1241 sysdeps/unix/sysv/linux/m68k/init-first.h,
1242 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
1243 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
1244 init-first.h to make abstract machine dependent parts of
1247 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
1248 error handling. It's safer that way.
1250 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
1251 Fix by Richard Henderson.
1253 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1254 typo/extraneous whitespace.
1256 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1257 determine what integer sizes we're dealing with.
1259 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1261 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1262 check for signal zero, repair logical sense of test by
1263 parenthesizing correctly.
1265 * hurd/hurdsig.c (_hurd_internal_post_signal): In
1266 check-for-pending signals code, release _hurd_siglock before
1267 jumping to deliver_pending.
1269 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1271 * configure.in (config_machine): Make ELF the default even for
1272 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1275 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1277 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1278 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1279 member only #ifdef ENTDATA.
1280 (ENTDATA_DECL): New macro.
1281 (LINE_PARSER): Use it for entdata decl.
1282 (parse_list): Find the space for LIST from DATA->linebuffer instead of
1283 from the input LINE, which might not be writable buffer space.
1284 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1285 [ENTDATA] (parser_stclass): #define to `static inline'.
1286 [!ENDATA] (parser_stclass): #define to empty.
1287 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1288 function is exported to -lnss_files users.
1290 * string/strndup.c: Add missing arg.
1292 * string/string.h (strndupa): Likewise.
1293 * string/strndup.c (strndup): Always terminate the string.
1295 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1297 * stdio/Makefile (routines): Add vscanf.
1298 * stdio-common/Makefile (routines): Remove vscanf.
1299 * stdio-common/vscanf.c: Move to ...
1300 * stdio/vscanf.c: here.
1302 * rpm/Makefile (headers, install-lib, install-lib.so,
1303 versioned, install-bin, install-sbin, install-data,
1304 install-others): Add $(-VARIABLE).
1306 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1308 * nss/Makefile (databases): New variable.
1309 (routines, libnss_files-routines): Use it.
1310 (subdir-dirs): Compute from $(services).
1312 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1313 init_module, klogctl): Use EXTRA in the "caller" column so these get
1314 added to unix-extra-syscalls and thus compiled in misc.
1316 * string/Makefile (routines): Add strndup.
1317 * string/strndup.c: New file.
1318 * string/string.h: Declare strndup.
1319 (strndupa): New macro.
1321 * string/string.h: Declare __strdup.
1322 * string/strdup.c: Deansideclized. Define __ name and weak alias.
1324 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1326 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
1328 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1330 * grp/initgroups.c (initgroups): De-ansi-fy.
1331 Move declaration of NGROUPS and GROUPS outside #if so that
1332 the code compiles for NGROUPS_MAX != 0.
1334 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1335 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1336 ether_ntoa, ether_ntoa_r, and ether_ntoh.
1337 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1338 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1339 inet/ether_ntoh.c: New files. Implementation of functions to
1340 handle Ethernet address to host mapping.
1341 * inet/netinet/ether.h: New file. Declare ether_* functions.
1342 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1344 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1345 * nss/Makefile (routines): Add ethers-lookup.
1346 (libnss_files-routines): Add files-ethers.
1348 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1351 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1352 KEEP_STREAM every time called.
1353 (_nss_files_end): Reset KEEP_STREAM here instead.
1354 (internal_getent): If STREAM == NULL try to open instead of
1356 Use cast to prevent warning.
1357 Terminate read line in case the buffer is too small.
1359 * nss/nss_files/files-ethers.c: New file. Implementation of
1360 Ethernet adress<->hostname lookup through files interface.
1362 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1363 * stdlib/mbtowc.c: Define based on mbrtowc().
1364 * stdlib/wcstombs.c: Define based on wcsrtombs().
1365 * stdlib/wctomb.c: Define based on wcrtomb().
1367 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1368 unexpected_sizes_in_xdr_u_int.
1370 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1371 of `struct ether_addr'.
1372 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1373 declaration of `struct ether_addr'.
1375 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1376 * wcsmbs/mbsrtowcs.c: Ditto.
1377 * wcsmbs/wcrtomb.c: Ditto.
1378 * wcsmbs/wcsrtombs.c: Ditto.
1380 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1382 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1384 * hurd/get-host.c <fcntl.h>: New include.
1385 * hurd/set-host.c <fcntl.h>: New include.
1386 (_hurd_set_host_config): Include NEW in args to dir_link.
1387 Return NWROTE, not NREAD.
1389 * sysdeps/mach/hurd/getcwd.c
1390 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1391 DOTID & DOTDEVID until we're finished with them (we need to keep
1392 them at least until we've fetched the next level of id ports, so
1393 that mach will be able to use the same name if they're the same).
1394 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1395 jumps to errlose, for those places where such cleanup is needed.
1397 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1399 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1401 Move DB code into separate -ldb library.
1402 * db/Makefile (extra-libs): New variable, list libdb.
1403 (routines): Renamed to libdb-routines.
1404 * shlib-versions: Add libdb=2.
1406 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1407 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1409 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1410 of strncasecmp. Extend syntax to grok [!foo=bar].
1412 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1414 * string/string.h: Declare __strncasecmp.
1416 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1417 (service_alias): Variable removed.
1418 (nss_parse_service_list): New function, broken out of nss_getline.
1419 Remove alias conversion; we will just use symlinks.
1420 (__nss_database_lookup): Take new string arg DEFCONFIG.
1421 If no entry exists, make one with service list parsed from that.
1422 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1423 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1424 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1426 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
1429 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1431 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
1433 * locale/programs/locale.c (long_options): Short form of
1434 --version option is `-V'.
1435 (main): Recognize `-V' as option, not `-v'.
1436 Call `usage' instead of printing error message for illegal
1438 (usage): Document `-V'.
1440 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
1442 * sysdeps/mach/hurd/getcwd.c
1443 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1444 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1446 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1448 * inet/getrpcent.c: Fix macros.
1449 * inet/getrpcent_r.c: Fix macros.
1451 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1453 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1455 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1457 * catgets/gencat.c (write_out): Use %Zu to print variables of type
1459 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1460 cast it to (unsigned long) to make it work both on 32 and 64
1463 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1465 * locale/Makefile (distribute): Add `programs/' prefix to all
1466 files in that directory.
1468 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1471 * MakeTAGS (sources, headers): Make them simply expanded variables
1472 so that all-dist is expanded before it is changed.
1474 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1476 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
1477 * Makefile (subdirs): Remove crypt.
1478 * crypt: Directory removed. It will be made an independent library
1481 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1483 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1485 * inet/getrpcbynumber.c (BUFLEN): New macro.
1487 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1489 * Makefile (headers): Add libc-lock.h.
1490 * sysdeps/stub/libc-lock.h: New file.
1492 * inet/getrpcbynumber.c: Remove _r typo.
1494 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1496 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1499 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1500 or doesn't mention DATABASE, use an internal default equivalent to
1501 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1502 (nss_lookup_function): Call nss_new_service as needed.
1503 (nss_parse_file): Don't bother calling nss_new_service here.
1505 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1506 * pwd/fgetpwent.c: Likewise.
1508 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1509 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1510 * malloc/malloc-size.c: New file.
1511 * malloc/malloc-walk.c: New file.
1513 * malloc/malloc-find.c (malloc_find_object_address): Return null if
1514 PTR is outside the heap.
1516 * elf/dl-load.c (_dl_map_object): If the requested name matches the
1517 soname of a loaded object, use that object.
1519 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1521 * Makefile (subdirs): Add nss.
1523 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1524 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1525 * inet/getrpcbynumber_r.c: New file.
1526 * inet/getrpcbynumber.c: New file.
1527 * inet/getrpcbyname.c: New file.
1528 * inet/getrpcbyname_r.c: New file.
1529 * inet/getrpcent_r.c: New file.
1530 * inet/getrpcent.c: New file.
1531 * nss/rpc-lookup.c: New file.
1532 * nss/nss_files/files-rpc.c: New file.
1533 * nss/Makefile (routines): Add rpc-lookup.
1534 (libnss_files-routines): Add files-rpc.
1535 * sunrpc/Makefile (routines): Remove getrpcent.
1536 * sunrpc/getrpcent.c: File removed.
1538 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1541 * Makeconfig (rpath-link): Add $(nssobjdir).
1542 (nssobjdir): New variable.
1544 * Makerules: Move shared library building before objects rules, so
1545 versions are known before extra-lib.mk gets included.
1546 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1548 * pwd/getpwuid.c: Rewritten using nss.
1549 * pwd/getpwnam.c: Likewise.
1550 * pwd/getpwent.c: Likewise.
1551 * grp/getgrnam.c: Likewise.
1552 * grp/getgrgid.c: Likewise.
1553 * grp/getgrent.c: Likewise.
1554 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1555 * pwd/getpwent_r.c: New file.
1556 * pwd/getpwnam_r.c: New file.
1557 * pwd/getpwuid_r.c: New file.
1558 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1559 * grp/getgrnam_r.c: New file.
1560 * grp/getgrgid_r.c: New file.
1561 * grp/getgrent_r.c: New file.
1562 * grp/Makefile (routines): Remove grpopen, grpread.
1563 * pwd/Makefile (routines): Remove pwdopen, pwdread.
1564 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1566 * pwd/fgetpwent.c: Rewritten using files-parse.c.
1567 * grp/fgetgrent.c: Likewise.
1569 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1570 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1571 * nss/nss_files/files-grp.c: New file.
1572 * nss/nss_files/files-pwd.c: New file.
1574 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1576 * nss/nss_files/files-parse.c: New file.
1577 * nss/nss_files/files-XXX.c: New file.
1578 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1579 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1580 Rewritten using them.
1582 * nss/Makefile (libnss_files-routines): Remove files-host.
1583 Add files-hosts, files-grp, files-pwd.
1585 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1587 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
1589 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1590 A .plt entry now loads the .rela.plt offset directly rather
1591 than making us calculate it.
1593 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1595 * time/Makefile ($(installed-localtime-file) rule): Do
1596 $(make-target-directory) first.
1598 * resolv.h: Fix wrapper for resolv/resolv.h.
1600 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1601 Compile dummy file and pass -nostdlib -nostartfiles so as not to
1602 require installed libraries.
1604 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1607 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
1609 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1610 and mapv4v6hostent.h.
1611 (routines): Move res* and gethnamaddr into libresolv-routines.
1612 (libresolv-routines): New variable, put them there.
1613 (extra-libs): New variable, list libresolv.
1614 (CPPFLAGS): Add -D for get*by* to res_get*by*.
1616 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1618 * inet/herrno.c: New file.
1620 * resolv/res_init.c: Remove res_hconf calls.
1622 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1623 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1624 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1625 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1626 nss/service-lookup.c: New files. Implementation of name
1627 service switch, following the approach in Solaris.
1628 Interface specification and general structure inspired by Peter
1629 Eriksson <pen@lysator.liu.se>.
1630 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1631 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1632 Implementation of libnss_files.so module for file based databases
1634 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1635 if libnss_dns.so module for DNS name lookup in NSS service.
1637 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1638 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1639 Changed to serve as interface to NSS.
1640 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1641 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1642 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1643 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1644 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1645 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1646 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
1647 interfaces to NSS, including reentrant functions.
1649 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1650 resolv/sethostent.c: Removed: Obsoleted by NSS.
1652 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1653 gethnamaddr.c. These private functions are now used in more
1656 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1658 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1660 * rpm/Makefile ($(config)): Make sure the word list in the for
1661 loop is syntactically non-empty.
1663 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1665 * Version 1.92 test release.
1667 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1669 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1670 to klogctl to match prototype in sys/klog.h.
1672 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1673 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1675 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1676 Remove. Code is now part of __getcwd again. The old function
1677 never really worked for anything but THISDIR==".".
1679 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1680 only when building ELF version of library.
1682 * libio/libioP.h (_IO_vscanf): Add prototype.
1684 * posix/unistd.h (syscall): Change sysno arg and return value
1687 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1689 * version.h (VERSION): Updated to 1.92.
1691 * misc/Makefile (headers): Add ar.h.
1692 * misc/ar.h: New file.
1694 * config.make.in (BUILD_CC): New variable.
1695 * configure.in: Check for BUILD_CC if $host != $build.
1697 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1699 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1700 (stamp$o files): New targets, create them empty, no deps.
1702 * rpm/template (Source): New field.
1703 (%prep, %build, %install): New sections.
1704 (%files): Add %doc FAQ NEWS NOTES README.
1705 * rpm/rpmrc (builddir): Removed.
1707 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1709 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1710 guessing to not assume p_vaddr of first load cmd is zero.
1712 * sysdeps/sparc/elf/start.S: New file.
1713 * sysdeps/sparc/dl-machine.h: New file.
1715 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1716 only for ?s, not for *s. Fix from Chet Ramey.
1718 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1719 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1720 Use __{BEGIN,END}_DECLS.
1721 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1722 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1723 New macros, moved here from sysdeps/gnu/utmpbits.h.
1724 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1725 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1726 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1727 Use sizeof instead of UT_*SIZE.
1728 * login/logwtmp.c: Likewise.
1730 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1732 * version.c (banner): Add trailing newline.
1734 * login/utmp.h: Declare login_tty.
1736 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
1738 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1739 Changed to a 12-byte PLT entry to remove dependency on $gp.
1740 Take a new got_addr parameter.
1741 (elf_machine_rela): Pass the new parameter.
1742 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1743 (RTLD_START): Do normal linkage with program entry.
1745 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
1747 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1749 * hurd/getuids.c (getuids): New weak link to __getuids.
1751 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
1753 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
1754 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1756 Rename nested function lookup to lookup_op.
1757 (__file_name_lookup, __file_name_lookup_under):
1758 Pass 0 for lookup arg to __hurd_file_name_lookup.
1759 (__file_name_split): Likewise for __hurd_file_name_split.
1760 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1761 Rename nested function lookup to scan_lookup.
1762 (file_name_path_lookup): Pass 0 for lookup arg to
1763 hurd_file_name_path_lookup.
1764 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
1765 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
1766 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1767 Add LOOKUP argument.
1768 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1769 __hurd_file_name_lookup.
1771 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1773 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1774 up a huge list just to discard most of it.
1776 * configure.in (sysnames): Avoid fgrep by using the case shell
1779 * Makeconfig (config.status): Fix dependency on Implies files.
1781 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1783 * math/Makefile (distribute): Add ieee-math.c.
1785 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
1787 * locale/codeset_name.c: New file. Provide function for information
1788 about currently used character set.
1789 * locale/Makefile (routines): Add codeset_name.
1790 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1791 * locale/localeinfo.h: Change magic number because of incompatible
1793 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1794 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1796 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1797 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
1799 * locale/setlocale.c (setlocale): Initialize local variables to
1802 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
1804 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1806 * locale/programs/locale.c: Include string.h.
1808 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1809 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1810 appropriate sign-extension is performed on machines with
1813 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1814 sizeof(int)<sizeof(long), we need to go through a temporary
1817 * locale/programs/ld-numeric.c: Include <alloca.h>
1819 * libio/stdio.h (__libc_fatal): Add prototype.
1821 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1824 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1825 volatile to avoid "might get clobbered by longjmp" warning.
1827 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1828 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1829 probability is a sure loser).
1830 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1832 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1833 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1835 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1836 to be Linux FSSTND compliant.
1838 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
1840 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1842 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1843 sysdeps/unix/sysv/linux/alpha/brk.S,
1844 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1845 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1846 sysdeps/unix/sysv/linux/alpha/llseek.S,
1847 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1848 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1849 __syscall_error to avoid intruding application name space.
1851 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1852 to SYS_get?id so that syscall stubs in sysdeps/unix define
1853 these syscalls in terms of getxpid/getxuid/getxgid.
1855 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1856 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1857 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1858 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1860 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1861 (PSEUDO_END): Rename END() to PSEUDO_END().
1863 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1864 to PSEUDO_END to improve branch-prediction. Include .frame
1865 directive to make syscalls debugabble.
1866 (PSEUDO_END): New macro.
1868 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1869 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1870 latter is illegal under DEC Unix.
1872 * sysdeps/unix/alpha/sysdep.S: Renamed from
1873 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
1875 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1876 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1877 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1879 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1880 address register in the .frame directive.
1882 * sysdeps/alpha/copysign.c: Remove.
1884 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1885 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1887 * errno.h: Move __END_DECLS to correct place to make file
1888 compilable under c++.
1890 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
1891 d_ino only if <direntry.h> hasn't defined d_fileno.
1893 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1894 arguments to weakext to make .weakext detection work on ECOFF systems.
1896 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
1897 that _validuser() has been replaced by __ivaliduser().
1899 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
1901 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1902 as unsigned long, not as int (to avoid incorrect int->long
1907 See ChangeLog.5 for earlier changes.