Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / ChangeLog
blob770d06e208726848118353f34f075b09d0cde8ce
1 Fri Jul 26 00:36:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3         * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
4         <kkojima@info.kanagawa-u.ac.jp>.
6 Fri Jul 26 04:41:28 1996  Ulrich Drepper  <drepper@cygnus.com>
8         * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
9         defined, not __OPTIMIZED.
10         (_nl_msg_cat_cntr): Move declaration outside macro definition
11         to prevent "nested extern" warning.
12         (dcgettext): Rename local variable `result' to `__result'.
14 Thu Jul 25 22:46:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
16         * locale/programs/localedef.c (__progname): Remove decl.
17         (main): Use program_invocation_short_name instead of __progname.
18         (usage): Use program_invocation_name instead of __progname.
20 Fri Jul 26 03:46:08 1996  Ulrich Drepper  <drepper@cygnus.com>
22         * catgets/gencat.c: Use "libc" instead of PACKAGE.
23         * locale/localedef.c: Ditto.
24         * locale/locale.c: Ditto.
26         * locale/findlocale.c (_nl_find_locale): Little optimization.
27         Use new function `strndup'.
29         * locale/loadlocale.c: Little optimization.  Use constant value
30         from `_nl_category_num_items' instead of byte-order dependend
31         value from file.
33         * locale/programs/ld-time.c (time_add): Correct string constant.
35         * locale/programs/locale-spec.c: New file.
36         * locale/programs/locale.c: Call `locale_special' function if
37         no other field matches.
39         * locale/programs/localedef.c: No need to define `program_name'.
40         Use global variable `__progname'.
42         * locale/programs/locfile.c (write_locale_data): Always write
43         LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file.  This is
44         necessary since message catalogs are also installed in the
45         LC_MESSAGES/ directory.
47         * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
48         function instead of writing single bytes.
49         (encode_char): Also handle little endian.
51         * locale/setlocale.c (new_composite_name): Little optimization.
52         Use return value of `memcpy'.
54         * misc/ttyent.h: Pretty print prototypes, add missing parameter
55         names, prepend parameter names with __  and use `__const' instead
56         of `const'.
57         * posix/unistd.h: Ditto.
58         * stdlib/stdlib.h: Ditto.
59         * string/string.h: Ditto.
61         * posix/getconf.c: De-ASNI-fy.  Recognize POSIX.2 constant names.
62         Use `error' function instead of doing it by hand.
63         * sysdeps/posix/sysconf.c: De-ANSI-fy.
64         Handle _SC_COLL_WEIGHTS_MAX.
65         * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
66         _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
67         since these do depend on the platform.
68         Add POSIX.4 symbols.
70         * posix/posix2_lim.h: Add missing definition of
71         _POSIX2_COLL_WEIGHTS_MAX.
72         Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
73         to high values since we have no fixed limit.
75         * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
76         _SC_PAGESIZE for buggy systems (= HP UX) out there.
78         * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
79         * wcsmbs/mbsnrtowcs.c: New file.  Non-standard implementation.
80         * wcsmbs/wcsnrtombs.c: Ditto.
81         * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
82         wcsnrtombs.
84 Thu Jul 25 00:25:54  Richard Henderson  <rth@tamu.edu>
86         * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
87         course.
88         * nss/getXXent_r.c: Likewise.
89         * nss/nsswitch.c: Likewise.
90         * nss/nss_files/files-XXX.c: Likewise.
91         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
92         * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
93         * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
95 Thu Jul 25 00:53:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
97         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
98         macro, now put the needed Linux version just once, here; update to
99         needing linux-2.0.3 headers.
100         (libc_cv_linuxVER): New macro derived from that.
101         (kernel header check): Use those macros and some m4 magic to replace
102         hard-coded `201' and `2.0.1' in several places.
104         * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
106 Wed Jul 24 17:02:30 1996  Ulrich Drepper  <drepper@cygnus.com>
108         * time/localtime.c: Move lock variable declaration to end of
109         variable declarations since if is a dummy macro the ; at the
110         end terminates the variable section of the function.
112         * time/tzset.c: Undefine `tzset' before function declaration.
113         Use `weak_function' macro instead of `weak_symbol'.
115 Wed Jul 24 18:57:33 1996  Ulrich Drepper  <drepper@cygnus.com>
117         * stdlib/strtouq.c: Additional weak alias is `strtoull', not
118         `strotull'.
120 Wed Jul 24 18:26:23 1996  Ulrich Drepper  <drepper@cygnus.com>
122         * locale/C-ctype.c: Increment number of fields after change
123         from Wed Jun 19 03:24:58 1996.
125 Tue Jul 23 18:13:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
127         * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
128         ($(common-objpfx)libc.so): Move deps into that, use it.
129         [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
130         $(rpcuserlibs:.so=_pic.a).
131         * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
132         use $(LDLIBS-c.so).
134 Thu Jul 18 21:41:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
136         * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
137         n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
139 Tue Jul 23 02:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
141         * locale/iso-4217.def: Add India to comment for symbol "INR ".
142         Reported by Raja R Harinath  <harinath@cs.umn.edu>.
144 Sat Jul 20 14:03:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
146         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
147         #undef RESOLVE.
149 Sun Jul 21 06:48:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
151         * time/tzset.c: Include <libc-lock.h>.
152         (__tzset_lock): New lock variable.
153         (tzset): New function (weak defn), no longer weak alias for __tzset.
154         Call __tzset while holding __tzset_lock.
155         * time/localtime.c: Include <libc-lock.h>.
156         (__localtime_r): Hold __tzset_lock while doing the work.
158         * sysdeps/generic/setenv.c (__environ): Change conditional for #define
159         from [!HAVE_GNU_LD] to [!_LIBC].
160         [_LIBC]: Include <libc-lock.h> and define a lock.
161         (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
162         (setenv, unsetenv): Use them.
164 Sun Jul 21 01:44:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>
166         * locale/programs/locfile.c (write_locale_data): Deal with missing
167         UIO_MAXIOV.
169         * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
170         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
172 Sat Jul 20 21:55:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
174         Win32 hacks from <Rob_Tulloh@tivoli.com>.
175         * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
176         use void * for my_realloc; include <malloc.h> for alloca.
177         (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
178         * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
179         * posix/glob.h: Likewise.
181 Sat Jul 20 13:28:52 1996  Miles Bader  <miles@gnu.ai.mit.edu>
183         * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
184         call __io_select unless there's only a single descriptor, as each
185         descriptor now has its own reply port.
186         If there is only a single descriptor, just use its reply port for
187         everything and don't bother creating the port set.
189         * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
190         <unistd.h>: New include.
192         * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
193         continuation line.
195 Sat Jul 20 07:15:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
197         * crypt/Makefile, crypt/nocrypt.c: Removed.  It is illegal to export
198         from the USA any software that even makes it easy to drop in an
199         encryption module of foreign origin.
200         * Makerules (cryptobjdir): Variable removed.
201         ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
202         * Makefile (subdirs): Remove crypt.
204 Fri Jul 19 15:45:20 1996  Ulrich Drepper  <drepper@cygnus.com>
206         * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
207         operator to yesexpr and noexpr string.
209 Fri Jul 19 15:10:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
211         * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
212         old code would have failed on a big-endian 64-bit architecture).
213         * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
215         * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
216         (xdr_u_long): Use switch instead of chain of if-statements.
217         Remove gratitous parentheses around return expressions.
218         (xdr_enum): Open code case where INT_MAX<LONG_MAX.
220         * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
222         * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
223         not int.
225 Fri Jul 19 16:56:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
227         * dlfcn.h, db.h: New wrapper headers.
229         * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
230         for `struct stat;' forward decl.
232 Fri Jul 19 22:25:19 1996  Ulrich Drepper  <drepper@cygnus.com>
234         * locale/iso-4217.def: Add some more standardized currency
235         symbols.
237 Fri Jul 19 13:18:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
239         * hurd/report-wait.c (describe_number): Use unsigned long int for J.
241 Thu Jul 18 12:33:57 1996  Roland McGrath  <roland@baalperazim.frob.com>
243         * Rules (dummy.o, empty.o): Targets removed.
244         (dummy.c, empty.c): New targets replace them.
246 Thu Jul 18 11:42:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
248         * crypt/Makefile (lib-noranlib): Depend on
249         $(objpfx)libcrypt.so$(libcrypt.so-version).
250         (subdir): Fix name.
252 Thu Jul 18 04:33:21 1996  Roland McGrath  <roland@baalperazim.frob.com>
254         * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
255         check.  mib's clueless hacking broke it.
257 Thu Jul 18 04:27:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
259         * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
261 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
263         * misc/sys/ustat.h: New file.
264         * misc/ustat.h: Ditto.
265         * sysdeps/generic/ustatbits.h: Ditto.
266         * sysdeps/stub/ustat.c: Ditto.
267         * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
268         * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
269         ustatbits.h.
270         (routines): Mention ustat.
272         * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
273         * sysdeps/alpha/elf/start.S: here.
275         * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
276         alphabetically correct place.  Mention ustat.
278         * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
279         common symbol (makes errno accessible from gdb).
281         * login/pututline_r.c (pututline_r): Test ut_id in repositioning
282         test, not ut_type.
284         * login/logwtmp.c (logwtmp): Reimplemented.  Must ensure that a
285         record always gets appended at end of file (wtmp is a log file,
286         after all).  Set ut_type to DEAD_PROCESS if name is empty.
288         * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
289         separate loop from search for UT_ID.  Fix code so it is in
290         sync with Unix man page.
292         * login/getutline_r.c (getutline_r): Stop searching only if
293         ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
295 Tue Jul 16 15:06:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
297         * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
298         avoid duplicate declarations.
300 Sun Jul 14 19:08:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
302         * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
303         and alpha-gnu-linuxecoff targets.
305 Fri Jul 12 16:58:44 1996  David Mosberger-Tang  <davidm@azstarnet.com>
307         * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
309 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
311         * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
312         of int.
314         * resolv/res_comp.c (res_hnok): Use empty statement in place
315         of NULL (which generates a "useless expression" warning in
316         gcc).
318 Wed Jul 17 23:56:35 1996  Roland McGrath  <roland@baalperazim.frob.com>
320         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
321         with $(..) in output.
323 Wed Jul 17 21:53:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
325         * elf/Makefile (dl-routines): Add dl-cache.
326         * elf/dl-cache.c: New file.
327         * elf/dl-load.c (_dl_map_object): Check cache before default path.
329 Wed Jul 17 20:41:30 1996  Ulrich Drepper  <drepper@cygnus.com>
331         * stdio-common/vfscanf.c: Major change.  Now read character
332         from stream only if needed.  Before it was read after the
333         previous character was used.
334         Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
336         * stdio-common/tstscanf.c: Change test program so that return
337         value is != 0 if one test failed.
339 Wed Jul 17 17:08:48 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
341         * sysdeps/m68k/Makefile (crypt): Variable removed.
342         * sysdeps/sparc/Makefile: Likewise.
344         * version.h (VERSION): Update to 1.93.
346         * Makerules ($(libdir)/libc.so): Depend on
347         $(common-objpfx)libcrypt.so$(libcrypt.so-version).
349         * crypt/nocrypt.c: New file.
350         * Makefile (subdirs): Add crypt.
351         * crypt/Makefile: New file.
353         * Makerules (soversions.mk): Move this target, include of it, and
354         include of version.mk to ...
355         * Makeconfig: ... here.
356         (soversions.mk): Depend on Makeconfig instead of Makerules.
358         * shlib-versions (*-*-*): Set libcrypt=0.
360 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
362         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
363         word extends right up to rmargin.
365         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
366         output the wrap margin, set point_col to wmargin.
367         Use negative point_col to deal with a wmargin of 0.
368         (line_wrap_point): Return 0 for a negative point_col.
369         (line_wrap_stream): Make wmargin ssize_t.
370         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
371         point_col ssize_t.
372         (line_wrap_stream): Make wmargin ssize_t.
373         (line_wrap_point): Return 0 for a negative point_col.
375 Wed Jul 17 02:43:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
377         * shlib-versions (*-*-gnu*): Set libc=0.0
379 Tue Jul 16 01:52:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
381         * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
382         sysdeps/i386/dl-machine.h.
384 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
386         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
387         to fiddle __put_limit in conjunction with __linebuf_active.
389 Tue Jul 16 00:14:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
391         * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
392         to the strong name, not the file name.
394 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
396         * csu/initfini.c: More magic.  Detect if .end is produced and put it
397         in the output iff the compiler does.
399         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
400         because that is broken on alpha.
402         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
403         call as in first.
405         * Makerules (make-link): Install the new link with atomic mv -f in
406         case ln itself requires the library being installed.
408 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
410         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
411         i386/dl-machine.h of 960713.
413         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
414         (_dl_sysdep_read_whole_file): Fix result variable declaration.
416 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
418         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
419         `nodename' member.
421 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
423         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
424         with pointer to local variable instead of NULL.
426 1996-07-15  Paul Eggert  <eggert@twinsun.com>
428         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
430 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
432         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
433         that are already added by other means.
435         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
436         caller column to get those syscalls added automagically.
438 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
440         * login/logout.c (logout): Initialize DATA to a state that will
441         make setutent_r happy.
443 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
445         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
446         instead of setting the DT_DEBUG pointer.
448         * csu/initfini.c (_init, _fini): Generate .end directives after
449         standalone prologues and filter them out from epilogues.
451         * Makeconfig (rtld-installed-name): Set to ld.so.1.
452         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
453         removed.
455         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
457         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
459         * MakeTAGS (extract): Pass --add-comments=TRANS.
460         * sysdeps/gnu/errlist.awk: Write comments into the output with the
461         descriptive paragraphs from the manual preceded by TRANS.
463         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
464         (_dl_start): Move RESOLVE defn inside this function and #include
465         "dynamic-link.h" a second time there.
466         [RTLD_START]: Move use of this after _dl_start function.
468         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
470         * elf/rtld.c: Include <string.h>.
472         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
473         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
474         Conditionalize defns on [RESOLVE].
475         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
476         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
477         Instead use RESOLVE macro with same args.
478         (elf_machine_rel): Conditionalize defn on [RESOLVE].
479         * elf/dl-reloc.c (RESOLVE): New macro, define before including
480         "dynamic-link.h".  It replaces `resolve' local function.
481         * elf/dl-runtime.c: Likewise.
482         * elf/rtld.c: Likewise.
484         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
486         * elf/dl-open.c (_dl_open): Force an indirect call for
487         _dl_relocate_object so there is no chance a PLT fixup will be done
488         and clobber _dl_global_scope before our call happens.
490         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
491         to =t; must operate on top of fp reg stack, not second from top.
492         Correct input constraint to 0 from t; must be explicit when input and
493         output are the same register.
494         (floor): Use __volatile instead of volatile.
495         (ceil): Likewise.
497         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
498         other targets.
500 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
502         * manual/Makefile (lib): New phony target.  Depend on stamp files.
503         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
505 1996-07-13  Paul Eggert  <eggert@twinsun.com>
507         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
508         to match Emacs format-time-string specification.
509         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
511 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
513         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
514         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
515         between MAP and its deps.
516         * elf/link.h: Fix decl.
517         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
518         colon-separated list of names, map those and pass vector of ptrs as
519         PRELOADS list to _dl_map_object_deps.
520         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
521         _dl_map_object_deps with empty preload list.
522         * elf/dl-open.c (_dl_open): Likewise.
524         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
525         removed.
526         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
527         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
528         Conditionalize defn on [! MAP_ANON].
529         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
530         on [! MAP_ANON].
531         * elf/rtld.c (dl_main): Likewise.
532         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
533         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
535         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
537 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
539         * stdlib/random.c (__random): Declare as int32_t to be in sync
540         with declaration.
542         * socket/Makefile (headers): Add socketbits.h.
544         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
545         it that way.
547         * grp/initgroups.c (initgroups): Add groups that user is a member
548         of, not the ones he is _not_ a member of.
550         * nss/nsswitch.c (known_compare): Make known_compare() a static
551         instead of a local function.  The latter are difficult to debug
552         and slow to execute on certain platforms.
554         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
555         place of sizeof (dev).  The size of a literal string includes the
556         NUL byte.
558         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
560 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
562         * misc/mntent.c (addmntent): Seek to end of file before writing
563         entry.  Return 1 on error, not -1.
565 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
567         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
568         syscall.
570 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
572         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
573         shift amount for Jensen must be 5 not 4.
575 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
577         * socket/sys/socket.h (struct osockaddr): New type.
579 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
581         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
582         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
583         and `long double' versions can be generated.
584         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
585         so that included efgcvt{,_r}.c file generate `long double'
586         versions.
587         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
588         functions.
590         * manual/startup.texi: Document new getsubopt function.
591         * manual/examples/subopt.c: New example program for documenting
592         getsubopt function.
594 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
596         * stdlib/Makefile (routines): Add getsubopt.
597         * stdlib/stdlib.h: Add prototype for getsubopt.
598         * stdlib/getsubopt.c: New file.  Implement getsubopt function
599         to handle suboption parsing.
601 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
603         * inet/getnetent_r.c: Define NEED_H_ERRNO.
604         * inet/getnetbynm_r.c: Likewise.
605         * inet/getnetent.c: Likewise.
606         * inet/getnetbyad_r.c: Likewise.
607         * inet/getnetbyad.c: Likewise.
608         * inet/getnetbynm.c: Likewise.
610         * sysdeps/generic/pselect.c: Include <sys/time.h>.
612         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
613         `struct timespec'.
615         * math/Makefile (calls): Add s_frexp, s_ldexp.
616         (routines): Remove them and &f from here.
618         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
620         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
621         and check it.
623         * nss/nss_files/files-XXX.c: Comment fix.
625 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
627         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
628         of reentrant function.
629         (setup): Pass additional argument with function name we are
630         looking for.
631         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
632         new argument {SET,END,GET}FUNC_NAME_STRING.
634         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
635         we return a pointer.
637 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
639         * nss/nss_files/files-parse.c: Add comment about things to #define.
641         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
643         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
644         terminator char as an error.
646         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
648 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
650         * catgets/gencat.c (write_out): Move code to determine new
651         best size out of inner loop.
653 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
655         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
656         implementation of frexp() function.
657         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
658         implementation of ldexp() function.
660         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
661         out before or'ing.
663 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
665         * misc/mntent.c: Include <sys/types.h>.
666         (endmntent): Return 1 one success, 0 on failure.
667         (getmntent): Chop newline and ignore empty lines.
669 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
671         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
672         differently based on [RTLD_BOOTSTRAP].
673         (elf_machine_rela): Use it instead of the fn ptr arg directly.
675 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
677         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
678         __glob_closedir_hook): Remove decls.
680         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
682         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
683         for send and connect syscalls.
685         * socket/sys/socket.h: New file, taken from non-sysdep parts of
686         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
687         Declare __ names for send and connect.
688         * sysdeps/generic/socketbits.h: New file.
689         * sysdeps/unix/sysv/linux/socketbits.h: New file.
690         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
691         * sysdeps/generic/sys/socket.h: File removed.
693         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
694         * sysdeps/mach/hurd/send.c: Likewise.
696         * sysdeps/mach/libc-lock.h: New file.
697         * sysdeps/unix/readdir.c: Do locking.
698         * sysdeps/unix/seekdir.c: Likewise.
699         * sysdeps/unix/rewinddir.c:  Likewise.
700         * sysdeps/unix/closedir.c: Likewise.
701         * sysdeps/unix/bsd/telldir.c: Likewise.
702         * sysdeps/mach/hurd/seekdir.c: Likewise.
703         * sysdeps/mach/hurd/readdir.c: Likewise.
704         * sysdeps/mach/hurd/closedir.c: Likewise.
705         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
706         * sysdeps/unix/opendir.c: Likewise.
707         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
708         (struct __dirstream): Add lock member using __libc_lock_define.
709         * sysdeps/unix/dirstream.h: Likewise.
711         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
713         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
715         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
717 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
719         * locale/programs/stringtrans.c: Fix typo in copyright.
721         * stdio-common/printf-prs.c: Add casts to prevent
722         signed<->unsigned warnings.
724         * stdio-common/printf-parse.h: Initialize state variable before
725         calling mbrlen.
726         * stdio-common/printf-prs.c: Don't initialize state variable here.
727         * stdio-common/vfprintf.c: Don't initialize state variable.
728         (vfprintf): While determining length of multibyte string don't
729         try to be clever in determining characters to use for first
730         call.
732         Add real implementation of multibyte<->wide char conversion
733         functions.  The functions always convert between the fixed wide
734         char format (ISO 10646 in UCS4) and the UTF8 representation of
735         this character set.  Conversion between the currently used
736         8bit character set and ISO 10646 will not take place.  This is
737         what iconv() is for.
738         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
739         dummy definition.
740         Add optimized version of `mbrlen' function.
741         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
742         to 0...0x7f.
743         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
744         to 0..0x7f.
745         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
746         This is needed in the wchar.h header.
747         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
748         encoded character to UCS4.
749         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
750         element of `mbstate_t' for initial state.
751         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
752         encoded string to UCS4 string.
753         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
754         character to UTF8 encoded form.
755         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
756         encoded string to UTF8 encoded form.
758 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
760         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
761         variable name, so new a libc with new requirements won't fail to
762         notice an insufficient Linux version.
764         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
766         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
767         instead of 2.0 headers.
769         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
771         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
772         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
774         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
775         before using it in lhs of weak_alias.
777         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
778         Call __nss_lookup when not setting STARTP.
779         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
780         function-calling loop.
782 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
784         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
785         PENDIN, NOFLSH): Undefine these at start if they are already
786         defined to avoid collision with termbits.h.
787         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
788         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
790 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
792         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
793         already defined to float, long double.  Use those macros for _Mdouble_
794         defns when including mathcalls.h.
795         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
796         -D_Mlong_double_=double.
798         Add more -lm functions to -lc because ldexp uses them.
799         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
800         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
801         ldexp have both f and l code, and those have f though not l code.
803 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
805         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
806         error is 0.  The "placeholder" entries recently added to
807         errno.texi convert to zero since `???/' is at the front of them.
808         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
810         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
811         __const to conform with unistd.h.
813         * stdlib/stdlib.h (random): Declare return type to be int32_t.
815         * string/argz-delete.c (argz_delete): Use memmove instead of
816         memcpy for possibly overlapping strings.
818 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
820         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
821         storage class.  GCC gives an error for non-extern data defns with the
822         alias attribute.
824 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
826         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
827         memmove instead of memcpy for possible overlapping strings.
829 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
831         * libc-symbols.h (weak_function): New macro.
832         For GCC 2.7+ define as __attribute__ ((weak)).
833         * elf/dl-minimal.c: Use weak_function as keyword in function defns
834         instead of weak_symbol (NAME) after the defn.
835         * stdlib/strtol.c: Likewise.
836         * stdlib/strtod.c: Likewise.
837         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
839         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
840         If this is defined, don't declare _dl_rtld_map as weak, and
841         don't check for MAP pointing to it.  RESOLVE is always null in this
842         case, so test with #ifdef instead of if.
844         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
845         weak_symbol.
846         * csu/initfini.c (_init): Likewise.
847         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
848         * misc/efgcvt_r.c: Likewise.
849         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
850         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
852         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
853         It was not used in any assembler code.
854         (weak_symbol_asm): Renamed to weak_extern_asm.
855         (weak_extern): New macro replaces weak_symbol for weak extern refs;
856         define to weak_extern_asm for [!ASSEMBLER].
858 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
860         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
861         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
862         define those now as aliases.
863         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
864         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
865         after GCC weak attribute decl.
867         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
868         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
869         (element printer): Check for elt in ALIAS, instead of special case
870         for EWOULDBLOCK.
872         * io/Makefile (headers): Add sys/vfs.h.
873         * io/sys/vfs.h: New file.
875         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
876         critical section lock before unlinking dying active resources.
877         The unlock just before return is right (i.e. old code unlocked twice).
879 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
881         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
882         Use memmove instead of memcpy where overlap is possible (not
883         necessary using current implementation of memcpy, but...).
884         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
886 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
888         * stdio/linewrap.c (lwupdate): New function, mostly was
889         __line_wrap_update.  Use POINT_COL field instead of POINT.
890         (__line_wrap_output): Use lwupdate.
891         (__line_wrap_update): New function.
892         (ensure_unwrapped, ensure_wrapped): New functions.
893         (line_wrap_set_lmargin, line_wrap_set_rmargin,
894         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
896         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
897         POINT_COL. Add POINT_OFFS field.
898         (__line_wrap_update): New decl.
899         (line_wrap_set_lmargin, line_wrap_set_rmargin,
900         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
902 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
904         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
906         * login/pututline_r.c (pututline_r): Since we assign RESULT from
907         lseek now, check that it's >= 0, not == 0.
909 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
911         * login/login.c (login): Make a copy of *UT, fill in various
912         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
913         in place of UT.
915         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
916         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
918 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
920         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
921         signal during critical section doing interruptible RPC, if
922         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
923         before thread_resume.  If in critical section, pass 0 for SIGNO to
924         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
926         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
928         * sysdeps/unix/sysv/linux/sys/user.h: New file.
929         * sysdeps/unix/sysv/linux/Dist: Add it.
930         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
932         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
933         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
934         itself, no need to skip past a NUL.
936         * nss/nsswitch.h (known_function): Comment fix.
937         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
938         directly.  Do the lookup and insertion with a single call, and fill in
939         the tree node afterwards if new.
940         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
942         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
943         (struct timeval): Add bodiless decl for scope.
945         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
946         Move struct timespec defn outside [_TIME_H] so it can be got with
947         #define __need_timespec.
949         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
950         for `struct timespec' member names.
951         (TIMESPEC_TO_TIMEVAL): Likewise.
953         * nss/Makefile (extra-libs-others): New variable.
955         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
956         $(lib) in $(extra-libs-others).
957         * sunrpc/Makefile (extra-libs-others): New variable.
958         (librpcsvc-no-lib-dep): Variable removed.
960         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
961         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
962         _dl_rtld_map.
963         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
964         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
965         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
966         _dl_rtld_map weak only here.
968         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
970 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
972         * login/utmp.h: Fix typos.
974         * misc/syslog.c (vsyslog): Use __send instead of send and
975         __connect instead of connect to avoid name-space collisions (e.g.,
976         with psgetty).
978 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
980         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
982         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
984         * malloc/malloc-size.c (malloc_usable_size): Renamed from
985         malloc_object_allocation_size.
986         * malloc/malloc.h: Fix decl.
988         * sys/select.h: New file, wrapper header.
990         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
991         fd_set, associated macros, and select decl.
993         * sysdeps/posix/isfdtype.c: New file.
995 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
997         The latest Japanese proposal for POSIX locales renames the
998         CHARMAP keyword in locale definition files to CHARCONV.
999         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
1000         function ctype_is_charmap to ctype_is_charconv.
1001         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
1002         charconv.
1003         * locale/programs/locfile-token.h: Add definition of token
1004         charconv.
1005         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
1006         lables according to this.
1008         * locale/weight.h (get_weight): Cast constants to prevent
1009         warnings.
1011         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
1012         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
1013         warnings.
1015         New stuff described in P1003.1g.
1016         * misc/Makefile (headers): Add sys/select.h.
1017         (routines): Add pselect.
1018         * misc/sys/select.h: New file.  Declare select functions and
1019         needed data types and macros.
1020         * sysdeps/generic/pselect.c: New file.  Add generic implementation
1021         of pselect() function which uses select().
1023         * posix/getconf.c: Recognize new variables from P1003.1g.
1024         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
1025         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
1026         * posix/unistd.h: Add description of the P1003.1g variables.
1027         * sysdeps/generic/confname.h: Define _SC_* values for new
1028         variables.
1029         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
1030         _PC_SOCK_MAXBUF.
1031         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
1032         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
1033         P1003.1g variables.
1034         * sysdeps/stub/sysconf.c (sysconf): Ditto.
1035         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
1036         _POSIX_SELECT since Linux has this.
1038         * socket/Makefile (routines): Add isfdtype.
1039         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
1040         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
1041         isfdtype.
1043         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
1045 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1047         * elf/Makefile (LDFLAGS-dl.so): New variable.
1048         (libdl.so): Depend on eval.so.
1049         (distribute): Add eval.c.
1050         * elf/eval.c: New file.
1052         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
1053         in case it wrote fewer than MAXDIGITS chars.
1055         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
1056         newline from flushing full buffer in loop, fix test so no fflush is
1057         done when last byte written exactly fills the buffer.
1059         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
1061         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
1062         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
1064         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
1065         extracting _dl_rtld_map.l_addr.
1067         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
1068         weak.
1069         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1071         * shlib-versions (*-*-*): Set libnss_db=1.
1073 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1075         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
1077         * rpm/template (%build): Use @prefix@ instead of always /usr.
1078         Set up configparms only if @prefix@ is in fact /usr.
1079         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
1081         * elf/Makefile: Add missing endif.
1083         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
1085         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
1086         (DATABASE): Define this instead of DATAFILE.
1087         * nss/nss_files/files-hosts.c: Likewise.
1088         (hostbyname): Use LOOKUP_NAME macro.
1090         * nss/nss_db/db-XXX.c: New file.
1091         * nss/Makefile (services): Add db.
1092         (libnss_db-inhibit-o): New variable.
1093         (libnss_db-routines): New variable.
1094         (distribute): Append db-XXX.c.
1095         (libnss_db.so): Depend on libdb.so and libnss_files.so.
1096         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
1098         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
1099         args, ignored.
1100         (DATAFILE): New macro.
1101         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
1102         "files-XXX.c".
1103         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
1104         Pass db key args to DB_LOOKUP.
1105         (DATAFILE): Macro removed.
1106         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
1107         * nss/nss_files/files-service.c: Likewise.
1108         * nss/nss_files/files-pwd.c: Likewise.
1109         * nss/nss_files/files-proto.c: Likewise.
1110         * nss/nss_files/files-grp.c: Likewise.
1111         * nss/nss_files/files-ethers.c: Likewise.
1113         * elf/linux-compat.c: File removed.
1114         * elf/Makefile (distribute): Remove linux-compat.c.
1115         (ld-linux.so.1): Remove target and associated variables.
1117         * sunrpc/xdr.c: Remove malloc decl.
1118         * sunrpc/portmap.c: Likewise.
1120         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
1121         casting abort to fn returning bool_t.
1123         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
1124         the parser function.
1125         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
1126         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
1127         * nss/nss_files/files-grp.c: Likewise.
1129         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
1131         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
1133         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
1134         of ld.so so lookups for that soname find it.
1136         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
1137         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
1139         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
1140         define parse_line function.
1141         (parse_line): #define to _nss_files_parse_pwent and
1142         add extern decl for that.
1144         * nss/nss_files/files-XXX.c (internal_getent): Return
1145         NSS_STATUS_TRYAGAIN for ERANGE error.
1147         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
1148         of null, so next round returns null again instead of bombing.  Fix
1149         from drepper.
1151         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
1152         Remove ; after `ENTDATA_DECL (data)'.
1153         Truncate line at strpbrk (line, EOLSET "\n").
1154         (ENTDATA_DECL): Put ; at end.
1155         (MIDLINE_COMMENTS): Macro removed.
1156         * nss/nss_files/files-ethers.c: Pass new argument.
1157         * nss/nss_files/files-hosts.c: Likewise.
1158         * nss/nss_files/files-network.c: Likewise.
1159         * nss/nss_files/files-parse.c: Likewise.
1160         * nss/nss_files/files-proto.c: Likewise.
1161         * nss/nss_files/files-rpc.c: Likewise.
1162         * nss/nss_files/files-service.c: Likewise.
1163         * grp/fgetgrent.c: Likewise.
1164         * pwd/fgetpwent.c: Likewise.
1165         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
1166         fgetpwent.c already defines it.
1167         * nss/nss_files/files-grp.c: Likewise.
1169         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
1170         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
1171         string table properly.
1173         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
1174         invoked directly, and l_libname from that if PT_INTERP missing.
1175         Set l_name from l_libname only if not set from argv.
1177         * time/europe, time/northamerica: Updated from ADO 96i.
1179 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1181         * stdio-common/tst-ungetc.c: Include unistd.h.
1183         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
1185 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1187         * hurd/report-wait.c (describe_number): Make I unsigned long.
1189         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
1190         actually found any entry.
1192         * login/pututline_r.c (pututline_r): If not located after any
1193         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
1194         Lock the file before stating.
1196 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1198         * nss/Makefile (databases): Change host to hosts.
1199         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
1201         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
1203         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
1205         * string/string.h (strndupa): Pass missing arg to strnlen.
1207         * inet/getnetbypt_r.c: Renamed to ...
1208         * inet/getnetbyad_r.c: this; fixed function name.
1209         * inet/getnetbypt.c: Renamed to ...
1210         * inet/getnetbyad.c: this; fixed function name.
1212 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1214         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
1215         struct passwd.
1217 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1219         * login/login.c (login): Initialize DATA so that setutent_r will
1220         actually do something.
1222 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1224         * resolv/res_hconf.c (strndup): Remove function.
1226         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
1227         using ElfW() instead of Elf32_*.
1229         * sysdeps/unix/sysv/linux/alpha/init-first.h,
1230         sysdeps/unix/sysv/linux/m68k/init-first.h,
1231         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
1232         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
1233         init-first.h to make abstract machine dependent parts of
1234         initialization.
1236         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
1237         error handling.  It's safer that way.
1239         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
1240         Fix by Richard Henderson.
1242         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1243         typo/extraneous whitespace.
1245         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1246         determine what integer sizes we're dealing with.
1248 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
1250         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1251         check for signal zero, repair logical sense of test by
1252         parenthesizing correctly.
1254         * hurd/hurdsig.c (_hurd_internal_post_signal): In
1255         check-for-pending signals code, release _hurd_siglock before
1256         jumping to deliver_pending.
1258 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1260         * configure.in (config_machine): Make ELF the default even for
1261         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1262         is specified.
1264 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1266         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1267         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1268         member only #ifdef ENTDATA.
1269         (ENTDATA_DECL): New macro.
1270         (LINE_PARSER): Use it for entdata decl.
1271         (parse_list): Find the space for LIST from DATA->linebuffer instead of
1272         from the input LINE, which might not be writable buffer space.
1273         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1274         [ENTDATA] (parser_stclass): #define to `static inline'.
1275         [!ENDATA] (parser_stclass): #define to empty.
1276         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1277         function is exported to -lnss_files users.
1279         * string/strndup.c: Add missing arg.
1281         * string/string.h (strndupa): Likewise.
1282         * string/strndup.c (strndup): Always terminate the string.
1284 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1286         * stdio/Makefile (routines): Add vscanf.
1287         * stdio-common/Makefile (routines): Remove vscanf.
1288         * stdio-common/vscanf.c: Move to ...
1289         * stdio/vscanf.c: here.
1291         * rpm/Makefile (headers, install-lib, install-lib.so,
1292         versioned, install-bin, install-sbin, install-data,
1293         install-others): Add $(-VARIABLE).
1295 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1297         * nss/Makefile (databases): New variable.
1298         (routines, libnss_files-routines): Use it.
1299         (subdir-dirs): Compute from $(services).
1301         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1302         init_module, klogctl): Use EXTRA in the "caller" column so these get
1303         added to unix-extra-syscalls and thus compiled in misc.
1305         * string/Makefile (routines): Add strndup.
1306         * string/strndup.c: New file.
1307         * string/string.h: Declare strndup.
1308         (strndupa): New macro.
1310         * string/string.h: Declare __strdup.
1311         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
1313         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1315 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
1317         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1319         * grp/initgroups.c (initgroups): De-ansi-fy.
1320         Move declaration of NGROUPS and GROUPS outside #if so that
1321         the code compiles for NGROUPS_MAX != 0.
1323         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1324         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1325         ether_ntoa, ether_ntoa_r, and ether_ntoh.
1326         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1327         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1328         inet/ether_ntoh.c: New files.  Implementation of functions to
1329         handle Ethernet address to host mapping.
1330         * inet/netinet/ether.h: New file.  Declare ether_* functions.
1331         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1332         compilation.
1333         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
1334         * nss/Makefile (routines): Add ethers-lookup.
1335         (libnss_files-routines): Add files-ethers.
1337         * nss/getXXent_r.c: Don't define set*ent and end*ent function
1338         with _r suffix.
1340         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1341         KEEP_STREAM every time called.
1342         (_nss_files_end): Reset KEEP_STREAM here instead.
1343         (internal_getent): If STREAM == NULL try to open instead of
1344         signalling error.
1345         Use cast to prevent warning.
1346         Terminate read line in case the buffer is too small.
1348         * nss/nss_files/files-ethers.c: New file.  Implementation of
1349         Ethernet adress<->hostname lookup through files interface.
1351         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1352         * stdlib/mbtowc.c: Define based on mbrtowc().
1353         * stdlib/wcstombs.c: Define based on wcsrtombs().
1354         * stdlib/wctomb.c: Define based on wcrtomb().
1356         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1357         unexpected_sizes_in_xdr_u_int.
1359         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
1360         of `struct ether_addr'.
1361         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
1362         declaration of `struct ether_addr'.
1364         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1365         * wcsmbs/mbsrtowcs.c: Ditto.
1366         * wcsmbs/wcrtomb.c: Ditto.
1367         * wcsmbs/wcsrtombs.c: Ditto.
1369         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1371 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1373         * hurd/get-host.c <fcntl.h>: New include.
1374         * hurd/set-host.c <fcntl.h>: New include.
1375         (_hurd_set_host_config): Include NEW in args to dir_link.
1376         Return NWROTE, not NREAD.
1378         * sysdeps/mach/hurd/getcwd.c
1379         (_hurd_canonicalize_directory_name_internal): Don't deallocate
1380         DOTID & DOTDEVID until we're finished with them (we need to keep
1381         them at least until we've fetched the next level of id ports, so
1382         that mach will be able to use the same name if they're the same).
1383         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1384         jumps to errlose, for those places where such cleanup is needed.
1386 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1388         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1390         Move DB code into separate -ldb library.
1391         * db/Makefile (extra-libs): New variable, list libdb.
1392         (routines): Renamed to libdb-routines.
1393         * shlib-versions: Add libdb=2.
1395         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1396         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1398         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1399         of strncasecmp.  Extend syntax to grok [!foo=bar].
1401         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1402         weak alias.
1403         * string/string.h: Declare __strncasecmp.
1405         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1406         (service_alias): Variable removed.
1407         (nss_parse_service_list): New function, broken out of nss_getline.
1408         Remove alias conversion; we will just use symlinks.
1409         (__nss_database_lookup): Take new string arg DEFCONFIG.
1410         If no entry exists, make one with service list parsed from that.
1411         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1412         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1413         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1415         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
1416         list size.
1418         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1420 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
1422         * locale/programs/locale.c (long_options): Short form of
1423         --version option is `-V'.
1424         (main): Recognize `-V' as option, not `-v'.
1425         Call `usage' instead of printing error message for illegal
1426         option.
1427         (usage): Document `-V'.
1429 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1431         * sysdeps/mach/hurd/getcwd.c
1432         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1433         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1435 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1437         * inet/getrpcent.c: Fix macros.
1438         * inet/getrpcent_r.c: Fix macros.
1440         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1442         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1444 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
1446         * catgets/gencat.c (write_out): Use %Zu to print variables of type
1447         size_t.
1448         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1449         cast it to (unsigned long) to make it work both on 32 and 64
1450         bit architectures.
1452 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1454         * locale/Makefile (distribute): Add `programs/' prefix to all
1455         files in that directory.
1457         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1458         subdir' works.
1460         * MakeTAGS (sources, headers): Make them simply expanded variables
1461         so that all-dist is expanded before it is changed.
1463 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1465         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
1466         * Makefile (subdirs): Remove crypt.
1467         * crypt: Directory removed.  It will be made an independent library
1468         distribution.
1470         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1472         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1474         * inet/getrpcbynumber.c (BUFLEN): New macro.
1476         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1478         * Makefile (headers): Add libc-lock.h.
1479         * sysdeps/stub/libc-lock.h: New file.
1481         * inet/getrpcbynumber.c: Remove _r typo.
1483         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1485         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1486         after the first!
1488         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1489         or doesn't mention DATABASE, use an internal default equivalent to
1490         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1491         (nss_lookup_function): Call nss_new_service as needed.
1492         (nss_parse_file): Don't bother calling nss_new_service here.
1494         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1495         * pwd/fgetpwent.c: Likewise.
1497         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1498         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1499         * malloc/malloc-size.c: New file.
1500         * malloc/malloc-walk.c: New file.
1502         * malloc/malloc-find.c (malloc_find_object_address): Return null if
1503         PTR is outside the heap.
1505         * elf/dl-load.c (_dl_map_object): If the requested name matches the
1506         soname of a loaded object, use that object.
1508 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1510         * Makefile (subdirs): Add nss.
1512         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1513         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1514         * inet/getrpcbynumber_r.c: New file.
1515         * inet/getrpcbynumber.c: New file.
1516         * inet/getrpcbyname.c: New file.
1517         * inet/getrpcbyname_r.c: New file.
1518         * inet/getrpcent_r.c: New file.
1519         * inet/getrpcent.c: New file.
1520         * nss/rpc-lookup.c: New file.
1521         * nss/nss_files/files-rpc.c: New file.
1522         * nss/Makefile (routines): Add rpc-lookup.
1523         (libnss_files-routines): Add files-rpc.
1524         * sunrpc/Makefile (routines): Remove getrpcent.
1525         * sunrpc/getrpcent.c: File removed.
1527         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1528         non-null on entry.
1530         * Makeconfig (rpath-link): Add $(nssobjdir).
1531         (nssobjdir): New variable.
1533         * Makerules: Move shared library building before objects rules, so
1534         versions are known before extra-lib.mk gets included.
1535         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1537         * pwd/getpwuid.c: Rewritten using nss.
1538         * pwd/getpwnam.c: Likewise.
1539         * pwd/getpwent.c: Likewise.
1540         * grp/getgrnam.c: Likewise.
1541         * grp/getgrgid.c: Likewise.
1542         * grp/getgrent.c: Likewise.
1543         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1544         * pwd/getpwent_r.c: New file.
1545         * pwd/getpwnam_r.c: New file.
1546         * pwd/getpwuid_r.c: New file.
1547         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1548         * grp/getgrnam_r.c: New file.
1549         * grp/getgrgid_r.c: New file.
1550         * grp/getgrent_r.c: New file.
1551         * grp/Makefile (routines): Remove grpopen, grpread.
1552         * pwd/Makefile (routines): Remove pwdopen, pwdread.
1553         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1555         * pwd/fgetpwent.c: Rewritten using files-parse.c.
1556         * grp/fgetgrent.c: Likewise.
1558         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1559         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1560         * nss/nss_files/files-grp.c: New file.
1561         * nss/nss_files/files-pwd.c: New file.
1563         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1565         * nss/nss_files/files-parse.c: New file.
1566         * nss/nss_files/files-XXX.c: New file.
1567         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1568         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1569         Rewritten using them.
1571         * nss/Makefile (libnss_files-routines): Remove files-host.
1572         Add files-hosts, files-grp, files-pwd.
1574         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1576 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
1578         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1579         A .plt entry now loads the .rela.plt offset directly rather
1580         than making us calculate it.
1582 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1584         * time/Makefile ($(installed-localtime-file) rule): Do
1585         $(make-target-directory) first.
1587         * resolv.h: Fix wrapper for resolv/resolv.h.
1589         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1590         Compile dummy file and pass -nostdlib -nostartfiles so as not to
1591         require installed libraries.
1593         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1594         libnss_dns=1.
1596 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
1598         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1599         and mapv4v6hostent.h.
1600         (routines): Move res* and gethnamaddr into libresolv-routines.
1601         (libresolv-routines): New variable, put them there.
1602         (extra-libs): New variable, list libresolv.
1603         (CPPFLAGS): Add -D for get*by* to res_get*by*.
1605         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1607         * inet/herrno.c: New file.
1609         * resolv/res_init.c: Remove res_hconf calls.
1611         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1612         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1613         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1614         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1615         nss/service-lookup.c: New files.  Implementation of name
1616         service switch, following the approach in Solaris.
1617         Interface specification and general structure inspired by Peter
1618         Eriksson <pen@lysator.liu.se>.
1619         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1620         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1621         Implementation of libnss_files.so module for file based databases
1622         in NSS service.
1623         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1624         if libnss_dns.so module for DNS name lookup in NSS service.
1626         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1627         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1628         Changed to serve as interface to NSS.
1629         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1630         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1631         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1632         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1633         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1634         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1635         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
1636         interfaces to NSS, including reentrant functions.
1638         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1639         resolv/sethostent.c: Removed:  Obsoleted by NSS.
1641         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1642         gethnamaddr.c.  These private functions are now used in more
1643         than one file.
1645         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1647 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1649         * rpm/Makefile ($(config)): Make sure the word list in the for
1650         loop is syntactically non-empty.
1652 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1654         * Version 1.92 test release.
1656 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1658         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1659         to klogctl to match prototype in sys/klog.h.
1661         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1662         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1664         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1665         Remove.  Code is now part of __getcwd again.  The old function
1666         never really worked for anything but THISDIR==".".
1668         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1669         only when building ELF version of library.
1671         * libio/libioP.h (_IO_vscanf): Add prototype.
1673         * posix/unistd.h (syscall): Change sysno arg and return value
1674         to int long.
1676 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1678         * version.h (VERSION): Updated to 1.92.
1680         * misc/Makefile (headers): Add ar.h.
1681         * misc/ar.h: New file.
1683         * config.make.in (BUILD_CC): New variable.
1684         * configure.in: Check for BUILD_CC if $host != $build.
1686         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1688         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1689         (stamp$o files): New targets, create them empty, no deps.
1691         * rpm/template (Source): New field.
1692         (%prep, %build, %install): New sections.
1693         (%files): Add %doc FAQ NEWS NOTES README.
1694         * rpm/rpmrc (builddir): Removed.
1696 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1698         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1699         guessing to not assume p_vaddr of first load cmd is zero.
1701         * sysdeps/sparc/elf/start.S: New file.
1702         * sysdeps/sparc/dl-machine.h: New file.
1704         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1705         only for ?s, not for *s.  Fix from Chet Ramey.
1707         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1708         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1709         Use __{BEGIN,END}_DECLS.
1710         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1711         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1712         New macros, moved here from sysdeps/gnu/utmpbits.h.
1713         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1714         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1715         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1716         Use sizeof instead of UT_*SIZE.
1717         * login/logwtmp.c: Likewise.
1719         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1721         * version.c (banner): Add trailing newline.
1723         * login/utmp.h: Declare login_tty.
1725 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
1727         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1728         Changed to a 12-byte PLT entry to remove dependency on $gp.
1729         Take a new got_addr parameter.
1730         (elf_machine_rela): Pass the new parameter.
1731         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1732         (RTLD_START): Do normal linkage with program entry.
1734 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1736         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1738         * hurd/getuids.c (getuids): New weak link to __getuids.
1740 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1742         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
1743         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1744         argument.
1745         Rename nested function lookup to lookup_op.
1746         (__file_name_lookup, __file_name_lookup_under):
1747         Pass 0 for lookup arg to __hurd_file_name_lookup.
1748         (__file_name_split): Likewise for __hurd_file_name_split.
1749         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1750         Rename nested function lookup to scan_lookup.
1751         (file_name_path_lookup): Pass 0 for lookup arg to
1752         hurd_file_name_path_lookup.
1753         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
1754         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
1755         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1756         Add LOOKUP argument.
1757         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1758         __hurd_file_name_lookup.
1760 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1762         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1763         up a huge list just to discard most of it.
1765         * configure.in (sysnames): Avoid fgrep by using the case shell
1766         builtin.
1768         * Makeconfig (config.status): Fix dependency on Implies files.
1770 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1772         * math/Makefile (distribute): Add ieee-math.c.
1774 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1776         * locale/codeset_name.c: New file.  Provide function for information
1777         about currently used character set.
1778         * locale/Makefile (routines): Add codeset_name.
1779         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1780         * locale/localeinfo.h: Change magic number because of incompatible
1781         change.
1782         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1783         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1785         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1786         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
1788         * locale/setlocale.c (setlocale): Initialize local variables to
1789         prevent warnings.
1791 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1793         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1795         * locale/programs/locale.c: Include string.h.
1797         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1798         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1799         appropriate sign-extension is performed on machines with
1800         sizeof(long) > 4.
1802         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1803         sizeof(int)<sizeof(long), we need to go through a temporary
1804         variable.
1806         * locale/programs/ld-numeric.c: Include <alloca.h>
1808         * libio/stdio.h (__libc_fatal): Add prototype.
1810         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1811         in efect.
1813         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1814         volatile to avoid "might get clobbered by longjmp" warning.
1816         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1817         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1818         probability is a sure loser).
1819         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1821         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1822         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1824         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1825         to be Linux FSSTND compliant.
1827 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1829         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1831         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1832         sysdeps/unix/sysv/linux/alpha/brk.S,
1833         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1834         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1835         sysdeps/unix/sysv/linux/alpha/llseek.S,
1836         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1837         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1838         __syscall_error to avoid intruding application name space.
1840         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1841         to SYS_get?id so that syscall stubs in sysdeps/unix define
1842         these syscalls in terms of getxpid/getxuid/getxgid.
1844         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1845         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1846         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1847         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1849         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1850         (PSEUDO_END): Rename END() to PSEUDO_END().
1852         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1853         to PSEUDO_END to improve branch-prediction.  Include .frame
1854         directive to make syscalls debugabble.
1855         (PSEUDO_END): New macro.
1857         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1858         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1859         latter is illegal under DEC Unix.
1861         * sysdeps/unix/alpha/sysdep.S: Renamed from
1862         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
1863         as well.
1864         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1865         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1866         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1868         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1869         address register in the .frame directive.
1871         * sysdeps/alpha/copysign.c: Remove.
1873         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1874         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1876         * errno.h: Move __END_DECLS to correct place to make file
1877         compilable under c++.
1879         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
1880         d_ino only if <direntry.h> hasn't defined d_fileno.
1882         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1883         arguments to weakext to make .weakext detection work on ECOFF systems.
1885         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
1886         that _validuser() has been replaced by __ivaliduser().
1888 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1890         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1891         as unsigned long, not as int (to avoid incorrect int->long
1892         promotion).
1896 See ChangeLog.5 for earlier changes.