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