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