Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / ChangeLog
blob206f074057128c917e7bbb70f372bc884ecb595e
1 Sun Jul 21 06:48:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3         * sysdeps/generic/setenv.c (__environ): Change conditional for #define
4         from [!HAVE_GNU_LD] to [!_LIBC].
5         [_LIBC]: Include <libc-lock.h> and define a lock.
6         (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
7         (setenv, unsetenv): Use them.
9 Sun Jul 21 01:44:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>
11         * locale/programs/locfile.c (write_locale_data): Deal with missing
12         UIO_MAXIOV.
14         * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
15         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
17 Sat Jul 20 21:55:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
19         Win32 hacks from <Rob_Tulloh@tivoli.com>.
20         * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
21         use void * for my_realloc; include <malloc.h> for alloca.
22         (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
23         * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
24         * posix/glob.h: Likewise.
26 Sat Jul 20 13:28:52 1996  Miles Bader  <miles@gnu.ai.mit.edu>
28         * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
29         call __io_select unless there's only a single descriptor, as each
30         descriptor now has its own reply port.
31         If there is only a single descriptor, just use its reply port for
32         everything and don't bother creating the port set.
34         * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
35         <unistd.h>: New include.
37         * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
38         continuation line.
40 Sat Jul 20 07:15:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
42         * crypt/Makefile, crypt/nocrypt.c: Removed.  It is illegal to export
43         from the USA any software that even makes it easy to drop in an
44         encryption module of foreign origin.
45         * Makerules (cryptobjdir): Variable removed.
46         ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
47         * Makefile (subdirs): Remove crypt.
49 Fri Jul 19 15:45:20 1996  Ulrich Drepper  <drepper@cygnus.com>
51         * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
52         operator to yesexpr and noexpr string.
54 Fri Jul 19 15:10:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
56         * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
57         old code would have failed on a big-endian 64-bit architecture).
58         * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
60         * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
61         (xdr_u_long): Use switch instead of chain of if-statements.
62         Remove gratitous parentheses around return expressions.
63         (xdr_enum): Open code case where INT_MAX<LONG_MAX.
65         * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
67         * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
68         not int.
70 Fri Jul 19 16:56:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
72         * dlfcn.h, db.h: New wrapper headers.
74         * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
75         for `struct stat;' forward decl.
77 Fri Jul 19 22:25:19 1996  Ulrich Drepper  <drepper@cygnus.com>
79         * locale/iso-4217.def: Add some more standardized currency
80         symbols.
82 Fri Jul 19 13:18:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
84         * hurd/report-wait.c (describe_number): Use unsigned long int for J.
86 Thu Jul 18 12:33:57 1996  Roland McGrath  <roland@baalperazim.frob.com>
88         * Rules (dummy.o, empty.o): Targets removed.
89         (dummy.c, empty.c): New targets replace them.
91 Thu Jul 18 11:42:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
93         * crypt/Makefile (lib-noranlib): Depend on
94         $(objpfx)libcrypt.so$(libcrypt.so-version).
95         (subdir): Fix name.
97 Thu Jul 18 04:33:21 1996  Roland McGrath  <roland@baalperazim.frob.com>
99         * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
100         check.  mib's clueless hacking broke it.
102 Thu Jul 18 04:27:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
104         * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
106 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
108         * misc/sys/ustat.h: New file.
109         * misc/ustat.h: Ditto.
110         * sysdeps/generic/ustatbits.h: Ditto.
111         * sysdeps/stub/ustat.c: Ditto.
112         * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
113         * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
114         ustatbits.h.
115         (routines): Mention ustat.
117         * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
118         * sysdeps/alpha/elf/start.S: here.
120         * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
121         alphabetically correct place.  Mention ustat.
123         * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
124         common symbol (makes errno accessible from gdb).
126         * login/pututline_r.c (pututline_r): Test ut_id in repositioning
127         test, not ut_type.
129         * login/logwtmp.c (logwtmp): Reimplemented.  Must ensure that a
130         record always gets appended at end of file (wtmp is a log file,
131         after all).  Set ut_type to DEAD_PROCESS if name is empty.
133         * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
134         separate loop from search for UT_ID.  Fix code so it is in
135         sync with Unix man page.
137         * login/getutline_r.c (getutline_r): Stop searching only if
138         ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
140 Tue Jul 16 15:06:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
142         * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
143         avoid duplicate declarations.
145 Sun Jul 14 19:08:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
147         * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
148         and alpha-gnu-linuxecoff targets.
150 Fri Jul 12 16:58:44 1996  David Mosberger-Tang  <davidm@azstarnet.com>
152         * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
154 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
156         * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
157         of int.
159         * resolv/res_comp.c (res_hnok): Use empty statement in place
160         of NULL (which generates a "useless expression" warning in
161         gcc).
163 Wed Jul 17 23:56:35 1996  Roland McGrath  <roland@baalperazim.frob.com>
165         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
166         with $(..) in output.
168 Wed Jul 17 21:53:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
170         * elf/Makefile (dl-routines): Add dl-cache.
171         * elf/dl-cache.c: New file.
172         * elf/dl-load.c (_dl_map_object): Check cache before default path.
174 Wed Jul 17 20:41:30 1996  Ulrich Drepper  <drepper@cygnus.com>
176         * stdio-common/vfscanf.c: Major change.  Now read character
177         from stream only if needed.  Before it was read after the
178         previous character was used.
179         Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
181         * stdio-common/tstscanf.c: Change test program so that return
182         value is != 0 if one test failed.
184 Wed Jul 17 17:08:48 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
186         * sysdeps/m68k/Makefile (crypt): Variable removed.
187         * sysdeps/sparc/Makefile: Likewise.
189         * version.h (VERSION): Update to 1.93.
191         * Makerules ($(libdir)/libc.so): Depend on
192         $(common-objpfx)libcrypt.so$(libcrypt.so-version).
194         * crypt/nocrypt.c: New file.
195         * Makefile (subdirs): Add crypt.
196         * crypt/Makefile: New file.
198         * Makerules (soversions.mk): Move this target, include of it, and
199         include of version.mk to ...
200         * Makeconfig: ... here.
201         (soversions.mk): Depend on Makeconfig instead of Makerules.
203         * shlib-versions (*-*-*): Set libcrypt=0.
205 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
207         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
208         word extends right up to rmargin.
210         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
211         output the wrap margin, set point_col to wmargin.
212         Use negative point_col to deal with a wmargin of 0.
213         (line_wrap_point): Return 0 for a negative point_col.
214         (line_wrap_stream): Make wmargin ssize_t.
215         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
216         point_col ssize_t.
217         (line_wrap_stream): Make wmargin ssize_t.
218         (line_wrap_point): Return 0 for a negative point_col.
220 Wed Jul 17 02:43:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
222         * shlib-versions (*-*-gnu*): Set libc=0.0
224 Tue Jul 16 01:52:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
226         * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
227         sysdeps/i386/dl-machine.h.
229 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
231         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
232         to fiddle __put_limit in conjunction with __linebuf_active.
234 Tue Jul 16 00:14:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
236         * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
237         to the strong name, not the file name.
239 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
241         * csu/initfini.c: More magic.  Detect if .end is produced and put it
242         in the output iff the compiler does.
244         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
245         because that is broken on alpha.
247         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
248         call as in first.
250         * Makerules (make-link): Install the new link with atomic mv -f in
251         case ln itself requires the library being installed.
253 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
255         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
256         i386/dl-machine.h of 960713.
258         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
259         (_dl_sysdep_read_whole_file): Fix result variable declaration.
261 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
263         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
264         `nodename' member.
266 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
268         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
269         with pointer to local variable instead of NULL.
271 1996-07-15  Paul Eggert  <eggert@twinsun.com>
273         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
275 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
277         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
278         that are already added by other means.
280         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
281         caller column to get those syscalls added automagically.
283 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
285         * login/logout.c (logout): Initialize DATA to a state that will
286         make setutent_r happy.
288 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
290         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
291         instead of setting the DT_DEBUG pointer.
293         * csu/initfini.c (_init, _fini): Generate .end directives after
294         standalone prologues and filter them out from epilogues.
296         * Makeconfig (rtld-installed-name): Set to ld.so.1.
297         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
298         removed.
300         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
302         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
304         * MakeTAGS (extract): Pass --add-comments=TRANS.
305         * sysdeps/gnu/errlist.awk: Write comments into the output with the
306         descriptive paragraphs from the manual preceded by TRANS.
308         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
309         (_dl_start): Move RESOLVE defn inside this function and #include
310         "dynamic-link.h" a second time there.
311         [RTLD_START]: Move use of this after _dl_start function.
313         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
315         * elf/rtld.c: Include <string.h>.
317         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
318         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
319         Conditionalize defns on [RESOLVE].
320         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
321         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
322         Instead use RESOLVE macro with same args.
323         (elf_machine_rel): Conditionalize defn on [RESOLVE].
324         * elf/dl-reloc.c (RESOLVE): New macro, define before including
325         "dynamic-link.h".  It replaces `resolve' local function.
326         * elf/dl-runtime.c: Likewise.
327         * elf/rtld.c: Likewise.
329         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
331         * elf/dl-open.c (_dl_open): Force an indirect call for
332         _dl_relocate_object so there is no chance a PLT fixup will be done
333         and clobber _dl_global_scope before our call happens.
335         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
336         to =t; must operate on top of fp reg stack, not second from top.
337         Correct input constraint to 0 from t; must be explicit when input and
338         output are the same register.
339         (floor): Use __volatile instead of volatile.
340         (ceil): Likewise.
342         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
343         other targets.
345 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
347         * manual/Makefile (lib): New phony target.  Depend on stamp files.
348         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
350 1996-07-13  Paul Eggert  <eggert@twinsun.com>
352         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
353         to match Emacs format-time-string specification.
354         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
356 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
358         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
359         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
360         between MAP and its deps.
361         * elf/link.h: Fix decl.
362         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
363         colon-separated list of names, map those and pass vector of ptrs as
364         PRELOADS list to _dl_map_object_deps.
365         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
366         _dl_map_object_deps with empty preload list.
367         * elf/dl-open.c (_dl_open): Likewise.
369         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
370         removed.
371         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
372         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
373         Conditionalize defn on [! MAP_ANON].
374         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
375         on [! MAP_ANON].
376         * elf/rtld.c (dl_main): Likewise.
377         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
378         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
380         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
382 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
384         * stdlib/random.c (__random): Declare as int32_t to be in sync
385         with declaration.
387         * socket/Makefile (headers): Add socketbits.h.
389         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
390         it that way.
392         * grp/initgroups.c (initgroups): Add groups that user is a member
393         of, not the ones he is _not_ a member of.
395         * nss/nsswitch.c (known_compare): Make known_compare() a static
396         instead of a local function.  The latter are difficult to debug
397         and slow to execute on certain platforms.
399         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
400         place of sizeof (dev).  The size of a literal string includes the
401         NUL byte.
403         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
405 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
407         * misc/mntent.c (addmntent): Seek to end of file before writing
408         entry.  Return 1 on error, not -1.
410 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
412         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
413         syscall.
415 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
417         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
418         shift amount for Jensen must be 5 not 4.
420 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
422         * socket/sys/socket.h (struct osockaddr): New type.
424 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
426         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
427         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
428         and `long double' versions can be generated.
429         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
430         so that included efgcvt{,_r}.c file generate `long double'
431         versions.
432         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
433         functions.
435         * manual/startup.texi: Document new getsubopt function.
436         * manual/examples/subopt.c: New example program for documenting
437         getsubopt function.
439 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
441         * stdlib/Makefile (routines): Add getsubopt.
442         * stdlib/stdlib.h: Add prototype for getsubopt.
443         * stdlib/getsubopt.c: New file.  Implement getsubopt function
444         to handle suboption parsing.
446 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
448         * inet/getnetent_r.c: Define NEED_H_ERRNO.
449         * inet/getnetbynm_r.c: Likewise.
450         * inet/getnetent.c: Likewise.
451         * inet/getnetbyad_r.c: Likewise.
452         * inet/getnetbyad.c: Likewise.
453         * inet/getnetbynm.c: Likewise.
455         * sysdeps/generic/pselect.c: Include <sys/time.h>.
457         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
458         `struct timespec'.
460         * math/Makefile (calls): Add s_frexp, s_ldexp.
461         (routines): Remove them and &f from here.
463         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
465         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
466         and check it.
468         * nss/nss_files/files-XXX.c: Comment fix.
470 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
472         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
473         of reentrant function.
474         (setup): Pass additional argument with function name we are
475         looking for.
476         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
477         new argument {SET,END,GET}FUNC_NAME_STRING.
479         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
480         we return a pointer.
482 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
484         * nss/nss_files/files-parse.c: Add comment about things to #define.
486         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
488         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
489         terminator char as an error.
491         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
493 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
495         * catgets/gencat.c (write_out): Move code to determine new
496         best size out of inner loop.
498 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
500         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
501         implementation of frexp() function.
502         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
503         implementation of ldexp() function.
505         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
506         out before or'ing.
508 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
510         * misc/mntent.c: Include <sys/types.h>.
511         (endmntent): Return 1 one success, 0 on failure.
512         (getmntent): Chop newline and ignore empty lines.
514 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
516         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
517         differently based on [RTLD_BOOTSTRAP].
518         (elf_machine_rela): Use it instead of the fn ptr arg directly.
520 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
522         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
523         __glob_closedir_hook): Remove decls.
525         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
527         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
528         for send and connect syscalls.
530         * socket/sys/socket.h: New file, taken from non-sysdep parts of
531         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
532         Declare __ names for send and connect.
533         * sysdeps/generic/socketbits.h: New file.
534         * sysdeps/unix/sysv/linux/socketbits.h: New file.
535         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
536         * sysdeps/generic/sys/socket.h: File removed.
538         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
539         * sysdeps/mach/hurd/send.c: Likewise.
541         * sysdeps/mach/libc-lock.h: New file.
542         * sysdeps/unix/readdir.c: Do locking.
543         * sysdeps/unix/seekdir.c: Likewise.
544         * sysdeps/unix/rewinddir.c:  Likewise.
545         * sysdeps/unix/closedir.c: Likewise.
546         * sysdeps/unix/bsd/telldir.c: Likewise.
547         * sysdeps/mach/hurd/seekdir.c: Likewise.
548         * sysdeps/mach/hurd/readdir.c: Likewise.
549         * sysdeps/mach/hurd/closedir.c: Likewise.
550         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
551         * sysdeps/unix/opendir.c: Likewise.
552         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
553         (struct __dirstream): Add lock member using __libc_lock_define.
554         * sysdeps/unix/dirstream.h: Likewise.
556         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
558         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
560         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
562 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
564         * locale/programs/stringtrans.c: Fix typo in copyright.
566         * stdio-common/printf-prs.c: Add casts to prevent
567         signed<->unsigned warnings.
569         * stdio-common/printf-parse.h: Initialize state variable before
570         calling mbrlen.
571         * stdio-common/printf-prs.c: Don't initialize state variable here.
572         * stdio-common/vfprintf.c: Don't initialize state variable.
573         (vfprintf): While determining length of multibyte string don't
574         try to be clever in determining characters to use for first
575         call.
577         Add real implementation of multibyte<->wide char conversion
578         functions.  The functions always convert between the fixed wide
579         char format (ISO 10646 in UCS4) and the UTF8 representation of
580         this character set.  Conversion between the currently used
581         8bit character set and ISO 10646 will not take place.  This is
582         what iconv() is for.
583         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
584         dummy definition.
585         Add optimized version of `mbrlen' function.
586         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
587         to 0...0x7f.
588         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
589         to 0..0x7f.
590         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
591         This is needed in the wchar.h header.
592         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
593         encoded character to UCS4.
594         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
595         element of `mbstate_t' for initial state.
596         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
597         encoded string to UCS4 string.
598         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
599         character to UTF8 encoded form.
600         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
601         encoded string to UTF8 encoded form.
603 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
605         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
606         variable name, so new a libc with new requirements won't fail to
607         notice an insufficient Linux version.
609         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
611         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
612         instead of 2.0 headers.
614         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
616         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
617         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
619         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
620         before using it in lhs of weak_alias.
622         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
623         Call __nss_lookup when not setting STARTP.
624         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
625         function-calling loop.
627 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
629         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
630         PENDIN, NOFLSH): Undefine these at start if they are already
631         defined to avoid collision with termbits.h.
632         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
633         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
635 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
637         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
638         already defined to float, long double.  Use those macros for _Mdouble_
639         defns when including mathcalls.h.
640         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
641         -D_Mlong_double_=double.
643         Add more -lm functions to -lc because ldexp uses them.
644         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
645         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
646         ldexp have both f and l code, and those have f though not l code.
648 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
650         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
651         error is 0.  The "placeholder" entries recently added to
652         errno.texi convert to zero since `???/' is at the front of them.
653         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
655         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
656         __const to conform with unistd.h.
658         * stdlib/stdlib.h (random): Declare return type to be int32_t.
660         * string/argz-delete.c (argz_delete): Use memmove instead of
661         memcpy for possibly overlapping strings.
663 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
665         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
666         storage class.  GCC gives an error for non-extern data defns with the
667         alias attribute.
669 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
671         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
672         memmove instead of memcpy for possible overlapping strings.
674 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
676         * libc-symbols.h (weak_function): New macro.
677         For GCC 2.7+ define as __attribute__ ((weak)).
678         * elf/dl-minimal.c: Use weak_function as keyword in function defns
679         instead of weak_symbol (NAME) after the defn.
680         * stdlib/strtol.c: Likewise.
681         * stdlib/strtod.c: Likewise.
682         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
684         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
685         If this is defined, don't declare _dl_rtld_map as weak, and
686         don't check for MAP pointing to it.  RESOLVE is always null in this
687         case, so test with #ifdef instead of if.
689         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
690         weak_symbol.
691         * csu/initfini.c (_init): Likewise.
692         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
693         * misc/efgcvt_r.c: Likewise.
694         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
695         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
697         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
698         It was not used in any assembler code.
699         (weak_symbol_asm): Renamed to weak_extern_asm.
700         (weak_extern): New macro replaces weak_symbol for weak extern refs;
701         define to weak_extern_asm for [!ASSEMBLER].
703 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
705         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
706         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
707         define those now as aliases.
708         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
709         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
710         after GCC weak attribute decl.
712         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
713         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
714         (element printer): Check for elt in ALIAS, instead of special case
715         for EWOULDBLOCK.
717         * io/Makefile (headers): Add sys/vfs.h.
718         * io/sys/vfs.h: New file.
720         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
721         critical section lock before unlinking dying active resources.
722         The unlock just before return is right (i.e. old code unlocked twice).
724 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
726         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
727         Use memmove instead of memcpy where overlap is possible (not
728         necessary using current implementation of memcpy, but...).
729         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
731 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
733         * stdio/linewrap.c (lwupdate): New function, mostly was
734         __line_wrap_update.  Use POINT_COL field instead of POINT.
735         (__line_wrap_output): Use lwupdate.
736         (__line_wrap_update): New function.
737         (ensure_unwrapped, ensure_wrapped): New functions.
738         (line_wrap_set_lmargin, line_wrap_set_rmargin,
739         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
741         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
742         POINT_COL. Add POINT_OFFS field.
743         (__line_wrap_update): New decl.
744         (line_wrap_set_lmargin, line_wrap_set_rmargin,
745         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
747 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
749         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
751         * login/pututline_r.c (pututline_r): Since we assign RESULT from
752         lseek now, check that it's >= 0, not == 0.
754 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
756         * login/login.c (login): Make a copy of *UT, fill in various
757         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
758         in place of UT.
760         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
761         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
763 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
765         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
766         signal during critical section doing interruptible RPC, if
767         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
768         before thread_resume.  If in critical section, pass 0 for SIGNO to
769         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
771         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
773         * sysdeps/unix/sysv/linux/sys/user.h: New file.
774         * sysdeps/unix/sysv/linux/Dist: Add it.
775         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
777         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
778         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
779         itself, no need to skip past a NUL.
781         * nss/nsswitch.h (known_function): Comment fix.
782         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
783         directly.  Do the lookup and insertion with a single call, and fill in
784         the tree node afterwards if new.
785         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
787         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
788         (struct timeval): Add bodiless decl for scope.
790         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
791         Move struct timespec defn outside [_TIME_H] so it can be got with
792         #define __need_timespec.
794         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
795         for `struct timespec' member names.
796         (TIMESPEC_TO_TIMEVAL): Likewise.
798         * nss/Makefile (extra-libs-others): New variable.
800         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
801         $(lib) in $(extra-libs-others).
802         * sunrpc/Makefile (extra-libs-others): New variable.
803         (librpcsvc-no-lib-dep): Variable removed.
805         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
806         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
807         _dl_rtld_map.
808         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
809         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
810         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
811         _dl_rtld_map weak only here.
813         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
815 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
817         * login/utmp.h: Fix typos.
819         * misc/syslog.c (vsyslog): Use __send instead of send and
820         __connect instead of connect to avoid name-space collisions (e.g.,
821         with psgetty).
823 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
825         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
827         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
829         * malloc/malloc-size.c (malloc_usable_size): Renamed from
830         malloc_object_allocation_size.
831         * malloc/malloc.h: Fix decl.
833         * sys/select.h: New file, wrapper header.
835         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
836         fd_set, associated macros, and select decl.
838         * sysdeps/posix/isfdtype.c: New file.
840 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
842         The latest Japanese proposal for POSIX locales renames the
843         CHARMAP keyword in locale definition files to CHARCONV.
844         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
845         function ctype_is_charmap to ctype_is_charconv.
846         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
847         charconv.
848         * locale/programs/locfile-token.h: Add definition of token
849         charconv.
850         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
851         lables according to this.
853         * locale/weight.h (get_weight): Cast constants to prevent
854         warnings.
856         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
857         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
858         warnings.
860         New stuff described in P1003.1g.
861         * misc/Makefile (headers): Add sys/select.h.
862         (routines): Add pselect.
863         * misc/sys/select.h: New file.  Declare select functions and
864         needed data types and macros.
865         * sysdeps/generic/pselect.c: New file.  Add generic implementation
866         of pselect() function which uses select().
868         * posix/getconf.c: Recognize new variables from P1003.1g.
869         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
870         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
871         * posix/unistd.h: Add description of the P1003.1g variables.
872         * sysdeps/generic/confname.h: Define _SC_* values for new
873         variables.
874         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
875         _PC_SOCK_MAXBUF.
876         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
877         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
878         P1003.1g variables.
879         * sysdeps/stub/sysconf.c (sysconf): Ditto.
880         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
881         _POSIX_SELECT since Linux has this.
883         * socket/Makefile (routines): Add isfdtype.
884         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
885         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
886         isfdtype.
888         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
890 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
892         * elf/Makefile (LDFLAGS-dl.so): New variable.
893         (libdl.so): Depend on eval.so.
894         (distribute): Add eval.c.
895         * elf/eval.c: New file.
897         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
898         in case it wrote fewer than MAXDIGITS chars.
900         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
901         newline from flushing full buffer in loop, fix test so no fflush is
902         done when last byte written exactly fills the buffer.
904         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
906         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
907         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
909         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
910         extracting _dl_rtld_map.l_addr.
912         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
913         weak.
914         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
916         * shlib-versions (*-*-*): Set libnss_db=1.
918 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
920         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
922         * rpm/template (%build): Use @prefix@ instead of always /usr.
923         Set up configparms only if @prefix@ is in fact /usr.
924         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
926         * elf/Makefile: Add missing endif.
928         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
930         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
931         (DATABASE): Define this instead of DATAFILE.
932         * nss/nss_files/files-hosts.c: Likewise.
933         (hostbyname): Use LOOKUP_NAME macro.
935         * nss/nss_db/db-XXX.c: New file.
936         * nss/Makefile (services): Add db.
937         (libnss_db-inhibit-o): New variable.
938         (libnss_db-routines): New variable.
939         (distribute): Append db-XXX.c.
940         (libnss_db.so): Depend on libdb.so and libnss_files.so.
941         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
943         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
944         args, ignored.
945         (DATAFILE): New macro.
946         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
947         "files-XXX.c".
948         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
949         Pass db key args to DB_LOOKUP.
950         (DATAFILE): Macro removed.
951         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
952         * nss/nss_files/files-service.c: Likewise.
953         * nss/nss_files/files-pwd.c: Likewise.
954         * nss/nss_files/files-proto.c: Likewise.
955         * nss/nss_files/files-grp.c: Likewise.
956         * nss/nss_files/files-ethers.c: Likewise.
958         * elf/linux-compat.c: File removed.
959         * elf/Makefile (distribute): Remove linux-compat.c.
960         (ld-linux.so.1): Remove target and associated variables.
962         * sunrpc/xdr.c: Remove malloc decl.
963         * sunrpc/portmap.c: Likewise.
965         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
966         casting abort to fn returning bool_t.
968         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
969         the parser function.
970         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
971         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
972         * nss/nss_files/files-grp.c: Likewise.
974         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
976         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
978         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
979         of ld.so so lookups for that soname find it.
981         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
982         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
984         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
985         define parse_line function.
986         (parse_line): #define to _nss_files_parse_pwent and
987         add extern decl for that.
989         * nss/nss_files/files-XXX.c (internal_getent): Return
990         NSS_STATUS_TRYAGAIN for ERANGE error.
992         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
993         of null, so next round returns null again instead of bombing.  Fix
994         from drepper.
996         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
997         Remove ; after `ENTDATA_DECL (data)'.
998         Truncate line at strpbrk (line, EOLSET "\n").
999         (ENTDATA_DECL): Put ; at end.
1000         (MIDLINE_COMMENTS): Macro removed.
1001         * nss/nss_files/files-ethers.c: Pass new argument.
1002         * nss/nss_files/files-hosts.c: Likewise.
1003         * nss/nss_files/files-network.c: Likewise.
1004         * nss/nss_files/files-parse.c: Likewise.
1005         * nss/nss_files/files-proto.c: Likewise.
1006         * nss/nss_files/files-rpc.c: Likewise.
1007         * nss/nss_files/files-service.c: Likewise.
1008         * grp/fgetgrent.c: Likewise.
1009         * pwd/fgetpwent.c: Likewise.
1010         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
1011         fgetpwent.c already defines it.
1012         * nss/nss_files/files-grp.c: Likewise.
1014         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
1015         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
1016         string table properly.
1018         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
1019         invoked directly, and l_libname from that if PT_INTERP missing.
1020         Set l_name from l_libname only if not set from argv.
1022         * time/europe, time/northamerica: Updated from ADO 96i.
1024 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1026         * stdio-common/tst-ungetc.c: Include unistd.h.
1028         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
1030 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1032         * hurd/report-wait.c (describe_number): Make I unsigned long.
1034         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
1035         actually found any entry.
1037         * login/pututline_r.c (pututline_r): If not located after any
1038         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
1039         Lock the file before stating.
1041 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1043         * nss/Makefile (databases): Change host to hosts.
1044         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
1046         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
1048         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
1050         * string/string.h (strndupa): Pass missing arg to strnlen.
1052         * inet/getnetbypt_r.c: Renamed to ...
1053         * inet/getnetbyad_r.c: this; fixed function name.
1054         * inet/getnetbypt.c: Renamed to ...
1055         * inet/getnetbyad.c: this; fixed function name.
1057 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1059         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
1060         struct passwd.
1062 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1064         * login/login.c (login): Initialize DATA so that setutent_r will
1065         actually do something.
1067 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1069         * resolv/res_hconf.c (strndup): Remove function.
1071         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
1072         using ElfW() instead of Elf32_*.
1074         * sysdeps/unix/sysv/linux/alpha/init-first.h,
1075         sysdeps/unix/sysv/linux/m68k/init-first.h,
1076         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
1077         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
1078         init-first.h to make abstract machine dependent parts of
1079         initialization.
1081         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
1082         error handling.  It's safer that way.
1084         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
1085         Fix by Richard Henderson.
1087         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1088         typo/extraneous whitespace.
1090         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1091         determine what integer sizes we're dealing with.
1093 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
1095         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1096         check for signal zero, repair logical sense of test by
1097         parenthesizing correctly.
1099         * hurd/hurdsig.c (_hurd_internal_post_signal): In
1100         check-for-pending signals code, release _hurd_siglock before
1101         jumping to deliver_pending.
1103 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1105         * configure.in (config_machine): Make ELF the default even for
1106         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1107         is specified.
1109 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1111         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1112         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1113         member only #ifdef ENTDATA.
1114         (ENTDATA_DECL): New macro.
1115         (LINE_PARSER): Use it for entdata decl.
1116         (parse_list): Find the space for LIST from DATA->linebuffer instead of
1117         from the input LINE, which might not be writable buffer space.
1118         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1119         [ENTDATA] (parser_stclass): #define to `static inline'.
1120         [!ENDATA] (parser_stclass): #define to empty.
1121         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1122         function is exported to -lnss_files users.
1124         * string/strndup.c: Add missing arg.
1126         * string/string.h (strndupa): Likewise.
1127         * string/strndup.c (strndup): Always terminate the string.
1129 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1131         * stdio/Makefile (routines): Add vscanf.
1132         * stdio-common/Makefile (routines): Remove vscanf.
1133         * stdio-common/vscanf.c: Move to ...
1134         * stdio/vscanf.c: here.
1136         * rpm/Makefile (headers, install-lib, install-lib.so,
1137         versioned, install-bin, install-sbin, install-data,
1138         install-others): Add $(-VARIABLE).
1140 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1142         * nss/Makefile (databases): New variable.
1143         (routines, libnss_files-routines): Use it.
1144         (subdir-dirs): Compute from $(services).
1146         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1147         init_module, klogctl): Use EXTRA in the "caller" column so these get
1148         added to unix-extra-syscalls and thus compiled in misc.
1150         * string/Makefile (routines): Add strndup.
1151         * string/strndup.c: New file.
1152         * string/string.h: Declare strndup.
1153         (strndupa): New macro.
1155         * string/string.h: Declare __strdup.
1156         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
1158         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1160 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
1162         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1164         * grp/initgroups.c (initgroups): De-ansi-fy.
1165         Move declaration of NGROUPS and GROUPS outside #if so that
1166         the code compiles for NGROUPS_MAX != 0.
1168         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1169         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1170         ether_ntoa, ether_ntoa_r, and ether_ntoh.
1171         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1172         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1173         inet/ether_ntoh.c: New files.  Implementation of functions to
1174         handle Ethernet address to host mapping.
1175         * inet/netinet/ether.h: New file.  Declare ether_* functions.
1176         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1177         compilation.
1178         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
1179         * nss/Makefile (routines): Add ethers-lookup.
1180         (libnss_files-routines): Add files-ethers.
1182         * nss/getXXent_r.c: Don't define set*ent and end*ent function
1183         with _r suffix.
1185         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1186         KEEP_STREAM every time called.
1187         (_nss_files_end): Reset KEEP_STREAM here instead.
1188         (internal_getent): If STREAM == NULL try to open instead of
1189         signalling error.
1190         Use cast to prevent warning.
1191         Terminate read line in case the buffer is too small.
1193         * nss/nss_files/files-ethers.c: New file.  Implementation of
1194         Ethernet adress<->hostname lookup through files interface.
1196         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1197         * stdlib/mbtowc.c: Define based on mbrtowc().
1198         * stdlib/wcstombs.c: Define based on wcsrtombs().
1199         * stdlib/wctomb.c: Define based on wcrtomb().
1201         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1202         unexpected_sizes_in_xdr_u_int.
1204         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
1205         of `struct ether_addr'.
1206         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
1207         declaration of `struct ether_addr'.
1209         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1210         * wcsmbs/mbsrtowcs.c: Ditto.
1211         * wcsmbs/wcrtomb.c: Ditto.
1212         * wcsmbs/wcsrtombs.c: Ditto.
1214         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1216 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1218         * hurd/get-host.c <fcntl.h>: New include.
1219         * hurd/set-host.c <fcntl.h>: New include.
1220         (_hurd_set_host_config): Include NEW in args to dir_link.
1221         Return NWROTE, not NREAD.
1223         * sysdeps/mach/hurd/getcwd.c
1224         (_hurd_canonicalize_directory_name_internal): Don't deallocate
1225         DOTID & DOTDEVID until we're finished with them (we need to keep
1226         them at least until we've fetched the next level of id ports, so
1227         that mach will be able to use the same name if they're the same).
1228         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1229         jumps to errlose, for those places where such cleanup is needed.
1231 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1233         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1235         Move DB code into separate -ldb library.
1236         * db/Makefile (extra-libs): New variable, list libdb.
1237         (routines): Renamed to libdb-routines.
1238         * shlib-versions: Add libdb=2.
1240         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1241         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1243         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1244         of strncasecmp.  Extend syntax to grok [!foo=bar].
1246         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1247         weak alias.
1248         * string/string.h: Declare __strncasecmp.
1250         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1251         (service_alias): Variable removed.
1252         (nss_parse_service_list): New function, broken out of nss_getline.
1253         Remove alias conversion; we will just use symlinks.
1254         (__nss_database_lookup): Take new string arg DEFCONFIG.
1255         If no entry exists, make one with service list parsed from that.
1256         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1257         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1258         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1260         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
1261         list size.
1263         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1265 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
1267         * locale/programs/locale.c (long_options): Short form of
1268         --version option is `-V'.
1269         (main): Recognize `-V' as option, not `-v'.
1270         Call `usage' instead of printing error message for illegal
1271         option.
1272         (usage): Document `-V'.
1274 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1276         * sysdeps/mach/hurd/getcwd.c
1277         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1278         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1280 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1282         * inet/getrpcent.c: Fix macros.
1283         * inet/getrpcent_r.c: Fix macros.
1285         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1287         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1289 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
1291         * catgets/gencat.c (write_out): Use %Zu to print variables of type
1292         size_t.
1293         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1294         cast it to (unsigned long) to make it work both on 32 and 64
1295         bit architectures.
1297 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1299         * locale/Makefile (distribute): Add `programs/' prefix to all
1300         files in that directory.
1302         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1303         subdir' works.
1305         * MakeTAGS (sources, headers): Make them simply expanded variables
1306         so that all-dist is expanded before it is changed.
1308 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1310         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
1311         * Makefile (subdirs): Remove crypt.
1312         * crypt: Directory removed.  It will be made an independent library
1313         distribution.
1315         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1317         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1319         * inet/getrpcbynumber.c (BUFLEN): New macro.
1321         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1323         * Makefile (headers): Add libc-lock.h.
1324         * sysdeps/stub/libc-lock.h: New file.
1326         * inet/getrpcbynumber.c: Remove _r typo.
1328         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1330         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1331         after the first!
1333         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1334         or doesn't mention DATABASE, use an internal default equivalent to
1335         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1336         (nss_lookup_function): Call nss_new_service as needed.
1337         (nss_parse_file): Don't bother calling nss_new_service here.
1339         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1340         * pwd/fgetpwent.c: Likewise.
1342         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1343         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1344         * malloc/malloc-size.c: New file.
1345         * malloc/malloc-walk.c: New file.
1347         * malloc/malloc-find.c (malloc_find_object_address): Return null if
1348         PTR is outside the heap.
1350         * elf/dl-load.c (_dl_map_object): If the requested name matches the
1351         soname of a loaded object, use that object.
1353 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1355         * Makefile (subdirs): Add nss.
1357         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1358         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1359         * inet/getrpcbynumber_r.c: New file.
1360         * inet/getrpcbynumber.c: New file.
1361         * inet/getrpcbyname.c: New file.
1362         * inet/getrpcbyname_r.c: New file.
1363         * inet/getrpcent_r.c: New file.
1364         * inet/getrpcent.c: New file.
1365         * nss/rpc-lookup.c: New file.
1366         * nss/nss_files/files-rpc.c: New file.
1367         * nss/Makefile (routines): Add rpc-lookup.
1368         (libnss_files-routines): Add files-rpc.
1369         * sunrpc/Makefile (routines): Remove getrpcent.
1370         * sunrpc/getrpcent.c: File removed.
1372         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1373         non-null on entry.
1375         * Makeconfig (rpath-link): Add $(nssobjdir).
1376         (nssobjdir): New variable.
1378         * Makerules: Move shared library building before objects rules, so
1379         versions are known before extra-lib.mk gets included.
1380         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1382         * pwd/getpwuid.c: Rewritten using nss.
1383         * pwd/getpwnam.c: Likewise.
1384         * pwd/getpwent.c: Likewise.
1385         * grp/getgrnam.c: Likewise.
1386         * grp/getgrgid.c: Likewise.
1387         * grp/getgrent.c: Likewise.
1388         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1389         * pwd/getpwent_r.c: New file.
1390         * pwd/getpwnam_r.c: New file.
1391         * pwd/getpwuid_r.c: New file.
1392         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1393         * grp/getgrnam_r.c: New file.
1394         * grp/getgrgid_r.c: New file.
1395         * grp/getgrent_r.c: New file.
1396         * grp/Makefile (routines): Remove grpopen, grpread.
1397         * pwd/Makefile (routines): Remove pwdopen, pwdread.
1398         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1400         * pwd/fgetpwent.c: Rewritten using files-parse.c.
1401         * grp/fgetgrent.c: Likewise.
1403         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1404         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1405         * nss/nss_files/files-grp.c: New file.
1406         * nss/nss_files/files-pwd.c: New file.
1408         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1410         * nss/nss_files/files-parse.c: New file.
1411         * nss/nss_files/files-XXX.c: New file.
1412         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1413         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1414         Rewritten using them.
1416         * nss/Makefile (libnss_files-routines): Remove files-host.
1417         Add files-hosts, files-grp, files-pwd.
1419         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1421 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
1423         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1424         A .plt entry now loads the .rela.plt offset directly rather
1425         than making us calculate it.
1427 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1429         * time/Makefile ($(installed-localtime-file) rule): Do
1430         $(make-target-directory) first.
1432         * resolv.h: Fix wrapper for resolv/resolv.h.
1434         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1435         Compile dummy file and pass -nostdlib -nostartfiles so as not to
1436         require installed libraries.
1438         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1439         libnss_dns=1.
1441 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
1443         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1444         and mapv4v6hostent.h.
1445         (routines): Move res* and gethnamaddr into libresolv-routines.
1446         (libresolv-routines): New variable, put them there.
1447         (extra-libs): New variable, list libresolv.
1448         (CPPFLAGS): Add -D for get*by* to res_get*by*.
1450         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1452         * inet/herrno.c: New file.
1454         * resolv/res_init.c: Remove res_hconf calls.
1456         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1457         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1458         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1459         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1460         nss/service-lookup.c: New files.  Implementation of name
1461         service switch, following the approach in Solaris.
1462         Interface specification and general structure inspired by Peter
1463         Eriksson <pen@lysator.liu.se>.
1464         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1465         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1466         Implementation of libnss_files.so module for file based databases
1467         in NSS service.
1468         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1469         if libnss_dns.so module for DNS name lookup in NSS service.
1471         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1472         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1473         Changed to serve as interface to NSS.
1474         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1475         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1476         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1477         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1478         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1479         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1480         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
1481         interfaces to NSS, including reentrant functions.
1483         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1484         resolv/sethostent.c: Removed:  Obsoleted by NSS.
1486         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1487         gethnamaddr.c.  These private functions are now used in more
1488         than one file.
1490         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1492 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1494         * rpm/Makefile ($(config)): Make sure the word list in the for
1495         loop is syntactically non-empty.
1497 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1499         * Version 1.92 test release.
1501 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1503         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1504         to klogctl to match prototype in sys/klog.h.
1506         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1507         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1509         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1510         Remove.  Code is now part of __getcwd again.  The old function
1511         never really worked for anything but THISDIR==".".
1513         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1514         only when building ELF version of library.
1516         * libio/libioP.h (_IO_vscanf): Add prototype.
1518         * posix/unistd.h (syscall): Change sysno arg and return value
1519         to int long.
1521 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1523         * version.h (VERSION): Updated to 1.92.
1525         * misc/Makefile (headers): Add ar.h.
1526         * misc/ar.h: New file.
1528         * config.make.in (BUILD_CC): New variable.
1529         * configure.in: Check for BUILD_CC if $host != $build.
1531         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1533         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1534         (stamp$o files): New targets, create them empty, no deps.
1536         * rpm/template (Source): New field.
1537         (%prep, %build, %install): New sections.
1538         (%files): Add %doc FAQ NEWS NOTES README.
1539         * rpm/rpmrc (builddir): Removed.
1541 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1543         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1544         guessing to not assume p_vaddr of first load cmd is zero.
1546         * sysdeps/sparc/elf/start.S: New file.
1547         * sysdeps/sparc/dl-machine.h: New file.
1549         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1550         only for ?s, not for *s.  Fix from Chet Ramey.
1552         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1553         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1554         Use __{BEGIN,END}_DECLS.
1555         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1556         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1557         New macros, moved here from sysdeps/gnu/utmpbits.h.
1558         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1559         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1560         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1561         Use sizeof instead of UT_*SIZE.
1562         * login/logwtmp.c: Likewise.
1564         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1566         * version.c (banner): Add trailing newline.
1568         * login/utmp.h: Declare login_tty.
1570 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
1572         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1573         Changed to a 12-byte PLT entry to remove dependency on $gp.
1574         Take a new got_addr parameter.
1575         (elf_machine_rela): Pass the new parameter.
1576         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1577         (RTLD_START): Do normal linkage with program entry.
1579 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1581         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1583         * hurd/getuids.c (getuids): New weak link to __getuids.
1585 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1587         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
1588         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1589         argument.
1590         Rename nested function lookup to lookup_op.
1591         (__file_name_lookup, __file_name_lookup_under):
1592         Pass 0 for lookup arg to __hurd_file_name_lookup.
1593         (__file_name_split): Likewise for __hurd_file_name_split.
1594         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1595         Rename nested function lookup to scan_lookup.
1596         (file_name_path_lookup): Pass 0 for lookup arg to
1597         hurd_file_name_path_lookup.
1598         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
1599         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
1600         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1601         Add LOOKUP argument.
1602         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1603         __hurd_file_name_lookup.
1605 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1607         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1608         up a huge list just to discard most of it.
1610         * configure.in (sysnames): Avoid fgrep by using the case shell
1611         builtin.
1613         * Makeconfig (config.status): Fix dependency on Implies files.
1615 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1617         * math/Makefile (distribute): Add ieee-math.c.
1619 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1621         * locale/codeset_name.c: New file.  Provide function for information
1622         about currently used character set.
1623         * locale/Makefile (routines): Add codeset_name.
1624         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1625         * locale/localeinfo.h: Change magic number because of incompatible
1626         change.
1627         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1628         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1630         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1631         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
1633         * locale/setlocale.c (setlocale): Initialize local variables to
1634         prevent warnings.
1636 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1638         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1640         * locale/programs/locale.c: Include string.h.
1642         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1643         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1644         appropriate sign-extension is performed on machines with
1645         sizeof(long) > 4.
1647         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1648         sizeof(int)<sizeof(long), we need to go through a temporary
1649         variable.
1651         * locale/programs/ld-numeric.c: Include <alloca.h>
1653         * libio/stdio.h (__libc_fatal): Add prototype.
1655         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1656         in efect.
1658         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1659         volatile to avoid "might get clobbered by longjmp" warning.
1661         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1662         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1663         probability is a sure loser).
1664         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1666         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1667         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1669         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1670         to be Linux FSSTND compliant.
1672 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1674         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1676         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1677         sysdeps/unix/sysv/linux/alpha/brk.S,
1678         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1679         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1680         sysdeps/unix/sysv/linux/alpha/llseek.S,
1681         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1682         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1683         __syscall_error to avoid intruding application name space.
1685         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1686         to SYS_get?id so that syscall stubs in sysdeps/unix define
1687         these syscalls in terms of getxpid/getxuid/getxgid.
1689         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1690         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1691         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1692         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1694         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1695         (PSEUDO_END): Rename END() to PSEUDO_END().
1697         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1698         to PSEUDO_END to improve branch-prediction.  Include .frame
1699         directive to make syscalls debugabble.
1700         (PSEUDO_END): New macro.
1702         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1703         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1704         latter is illegal under DEC Unix.
1706         * sysdeps/unix/alpha/sysdep.S: Renamed from
1707         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
1708         as well.
1709         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1710         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1711         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1713         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1714         address register in the .frame directive.
1716         * sysdeps/alpha/copysign.c: Remove.
1718         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1719         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1721         * errno.h: Move __END_DECLS to correct place to make file
1722         compilable under c++.
1724         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
1725         d_ino only if <direntry.h> hasn't defined d_fileno.
1727         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1728         arguments to weakext to make .weakext detection work on ECOFF systems.
1730         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
1731         that _validuser() has been replaced by __ivaliduser().
1733 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1735         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1736         as unsigned long, not as int (to avoid incorrect int->long
1737         promotion).
1741 See ChangeLog.5 for earlier changes.