]> sourceware.org Git - glibc.git/blob - ChangeLog
Mon Dec 2 15:32:15 1996 Ulrich Drepper <drepper@cygnus.com>
[glibc.git] / ChangeLog
1 Mon Dec 2 15:32:15 1996 Ulrich Drepper <drepper@cygnus.com>
2
3 * elf/dl-lookup.c (_dl_lookup_symbol_skip): Remove unused variable
4 `found_entry'.
5
6 * misc/ttyslot.c: Use ttyname_r instead of ttyname.
7
8 * assert/assert-perr.c: Use __strerror_r instead of strerror.
9 * assert/assert.c: De-ANSIdecl-fy. Update copyright.
10 * string/string.h: Declare __strerror_r.
11 * string/strerror_r.c: Make strerror_r a weak alias of __strerror_r.
12 * stdio-common/vfprintf.c: Save current errno value on entry so
13 that %m format finds the correct value.
14 * io/getwd.c: Use __strerror_r instead of strerror.
15 * misc/err.c (vwarn): Use %m printf format instead of explicitly
16 calling strerror.
17 * inet/rcmd.c: Likewise.
18 * misc/error.c (error, error_at_line): Use __strerror_r instead
19 of strerror when this function is available.
20
21 * stdlib/rand.c: Update copyright and de-ANSI-declfy.
22 * stdlib/random_r.c: Don't make srand_r weak alais of __srandom_r.
23 * stdlib/stdlib.h: Define prototype for rand_r.
24
25 * string/strfry.c: Update copyright. Use reentrant random functions.
26
27 * dirent/scandir.c: Use __readdir_r instead of readdir.
28 * posix/glob.c: Likewise.
29 * sysdeps/posix/ttyname.c: Likewise.
30 * sysdeps/posix/ttyname_r.c: Likewise.
31 * io/ftw.c: Likewise.
32 * io/fts.c: Likewise.
33 * sysdeps/posix/getcwd.c: Likewise.
34 * dirent/dirent.h: Add prototype for __readdir_r.
35 * sysdeps/unix/readdir_r: Update copyright.
36
37 * time/ctime.c: Use __localtime_r and __asctime_r instead of
38 non reentrant versions.
39 * time/ctime_r.c: Update copyright.
40
41 * intl/l10nflist.c (_nl_make_l10nflist): Pretty print.
42
43 * locale/Makefile (localepath): Correct value.
44
45 * nss/nss_files/files-XXX.c: Include <netdb.h> to define
46 NETDB_INTERNAL.
47 Fix typo in using H_ERRNO_SET macro.
48
49 Fri Nov 29 23:22:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
50
51 * Makerules (elfobjdir): Definition removed.
52 * Makeconfig (elfobjdir): Define it here instead, so that
53 expanding $(rpath-link) gets the right value.
54
55 * misc/a.out.h: Moved to...
56 * sysdeps/generic/a.out.h: ...here.
57 * sysdeps/unix/sysv/linux/a.out.h: New file. Wrapper around
58 kernel header.
59
60 Mon Dec 2 03:59:38 1996 Ulrich Drepper <drepper@cygnus.com>
61
62 * grp/initgroups.c: Update and reformat copyright.
63 Use __getgrent_r instead of getgrent.
64
65 * inet/rcmd.c: Update and reformat copyright.
66 Use __gethostbyname_r instead of gethostbyname.
67 * inet/rexec.c: Likewise.
68
69 * intl/finddomain.c: Correct comment about CEN sponsor and revision.
70 * locale/findlocale.c: Likewise.
71 * intl/l10nflist.c: Correct handling of CEN sponsor and revision.
72 * locale/Makefile (CPPFLAGS): Add definition of LOCALEDIR.
73 * locale/setlocale.c (setlocale): Correctly split value of
74 LOCALE_PATH.
75 * locale/programs/localedef.c: Use LOCALEDIR not LOCALE_PATH to
76 find output directory.
77
78 * nss/getXXbyYY.c [NEED_H_ERRNO]: Before enlarging buffer test
79 h_errno_tmp variable.
80 Save error value from being changed during `free' call.
81 * nss/getXXent.c: Likewise.
82
83 * nss/nss_files/files-XXX.c: Set h_errno variable to NETDB_INTERNAL
84 before returning ERANGE error.
85
86 * posix/glob.c: Use getlogin_r and getpwnam_r function when available
87 or in GNU libc.
88
89 * pwd/getpw.c: Use getpwuid_r instead of getpwuid.
90
91 * sunrpc/clnt_gen.c: Use gethostbyname_r and getprotobyname_r.
92 * sunrpc/clnt_simp.c: Likewise.
93 * sunrpc/getrpcport.c: Likewise.
94 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
95
96 * posix/getconf.c: Treat _SC_UNIT_MAX and _SC_ULONG_MAX separately
97 since the value might be outsode the range of the `long int'.
98 Print string `undefined' when a value is undefined.
99
100 * stdlib/l64a.c: Return correct pointer.
101 Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
102
103 * string/Makefile (routines): Add argz-addsep.
104 * string/argz-addsep.c: New file.
105 * string/argz.h: Add prototypes for argz_add_sep.
106
107 * string/argz-ctsep.c: Prevent memory leak.
108
109 * string/strcoll.c: Correct typo in comment.
110
111 Sat Nov 30 02:53:59 1996 Ulrich Drepper <drepper@cygnus.com>
112
113 * sysdeps/unix/sysv/linux/sys/serial.h: Removed again. The file is
114 not general enough to be part of the libc.
115 * sysdeps/unix/sysv/linux/Dist: Remove sys/serial.h.
116 * sysdeps/unix/sysv/linux/Makefile: Don't install sys/serial.h.
117
118 Thu Nov 28 20:04:41 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
119
120 * login/Makefile: Fix typo.
121
122 * nss/Makefile (generated): Filter out db-alias.c.
123
124 Thu Nov 28 14:44:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
125
126 * time/Makefile (echo-zonenames): Don't depend on non-existing
127 target `zonenames'.
128
129 Thu Nov 28 12:34:05 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
130
131 * link.h: New file.
132 * nss/nsswitch.c: Use it.
133
134 * printf.h: Fix file name.
135 * stdlib/strfmon.c: Use it.
136
137 Thu Nov 28 23:03:32 1996 Ulrich Drepper <drepper@cygnus.com>
138
139 * sysdeps/unix/sysv/linux/netinet/in_systm.h: New file.
140 * sysdeps/unix/sysv/linux/Dist: Add netinet/in_systm.h.
141 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
142 Add netinet/in_systm.h.
143 Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
144
145 Thu Nov 28 03:11:11 1996 Ulrich Drepper <drepper@cygnus.com>
146
147 * libio/fileops.c: Update from latest libg++.
148
149 * sysdeps/unix/sysv/linux/init-first.c: Reformat copyright.
150
151 * sysdeps/stub/libc-lock.h: Add __libc_lock_init_recursive.
152 * libio/genops.c (_IO_init): Use __libc_lock_init_recursive
153 instead of __libc_lock_init for streams.
154 Reported by a sun <asun@zoology.washington.edu>.
155
156 * sysdeps/unix/sysv/linux/i386/brk.c: Reformat copyright.
157
158 * sysdeps/generic/errno-loc.c: New file. Generic definition of
159 __errno_location function.
160 * sysdeps/unix/sysv/linux/i386/sysdep.S: Remove definition of
161 __errno_location.
162 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
163 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=csu]: Add errno-loc
164 to sysdep-routines.
165
166 * sysdeps/unix/sysv/linux/configure: Add test for linuxthreads
167 and crypt add-on and warn if not available.
168
169 Wed Nov 27 23:09:37 1996 Ulrich Drepper <drepper@cygnus.com>
170
171 * po/ko.po: Update from Bang Jun-Young <bangjy@nownuri.nowcom.co.kr>.
172
173 * sysdeps/unix/sysv/linux/syscalls.list: Remove _llseek.
174 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=misc] (routines): Add
175 llseek.
176 * sysdeps/unix/sysv/linux/llseek.c: New file. Uses syscall.
177 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add __sys_llseek.
178 * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add __sys_llseek.
179 Reported by HJ Lu <hjl@gnu.ai.mit.edu>.
180 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add llseek.
181 * sysdeps/unix/sysv/linux/alpha/llseek.S: Remove. Generic syscall
182 is enough.
183 Patch by Richard Henderson <rth@tamu.edu>.
184
185 * sysdeps/unix/sysv/linux/alpha/sys/io.h: Add prototypes for
186 pciconfig_read and pciconfig_write.
187 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add new syscalls
188 pciconfig_read and pciconfig_write.
189
190 * login/getutent_r.c: Fix several bugs in last change.
191
192 Wed Nov 27 06:10:10 1996 Ulrich Drepper <drepper@cygnus.com>
193
194 * Makefile: Fix typo.
195
196 * configure: Require autoconf-2.11.
197
198 * elf/dl-deps.c: Terminate duplicate list.
199
200 * libio/libio.h: Add prototypes for _IO_seekoff and _IO_seekpos.
201 * libio/strfile.h: Update from current libg++.
202 * libio/strops.c: Likewise.
203
204 * login/Makefile (routines): Update after correction of reentrant
205 interface.
206 * login/endutent.c: Removed.
207 * login/endutent_r.c: Likewise.
208 * login/pututline.c: Likewise.
209 * login/pututline_r.c: Likewise.
210 * login/setutent.c: Likewise.
211 * login/setutent_r.c: Likewise.
212 * login/getutent.c: Update for new interface.
213 * login/getutent_r.c: Likewise.
214 * login/getutid.c: Likewise.
215 * login/getutid_r.c: Likewise.
216 * login/getutline.c: Likewise.
217 * login/getutline_r.c: Likewise.
218 * login/login.c: Likewise.
219 * login/logout.c: Likewise.
220 * login/logwtmp.c: Likewise.
221 * login/utmp.h: Likewise.
222 * sysdeps/unix/getlogin.c: Likewise.
223 * sysdeps/unix/getlogin_r.c: Likewise.
224 * login/utmp-private.h: New private header.
225 * login/utmp_db.c: Stub DB backend for utmp handler.
226 * login/utmp_file.c: File backend for utmp handler.
227 * sysdeps/gnu/utmpbits.h (struct utmp): Add some more fields.
228 (enum utlogin): List of record types.
229 (struct exit_status): Record to align with other implementations.
230
231 * sysdeps/generic/paths.h: Add _PATH_UTMP_DB.
232 * sysdeps/unix/sysv/linux/paths.h: Likewise.
233
234 * sysdeps/generic/pty.c: Use getgrnam_r instead of getgrnam.
235
236 * sysdeps/stub/getlogin.c: Update copyright.
237 * sysdeps/stub/getlogin_r.c: Likewise.
238
239 * nss/getXXbyYY_r.c: Use -1l for error-pointer value instead of -1.
240 * nss/getXXent_r.c: Likewise.
241 * nss/nsswitch.c: Likewise.
242
243 * posix/Makefile (headers): Add wait.h.
244 * posix/wait.h: New file.
245
246 * posix/sys/types.h: Always define intN_t types.
247
248 * stdio-common/Makefile: Update copyright.
249 Use -Wno-format flag for scanf4.c and scanf7.c.
250
251 * stdlib/stdlib.h: Reformat.
252
253 Fri Nov 22 19:34:12 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
254
255 * sysdeps/posix/getcwd.c (__getcwd): After resizing the buffer
256 move the current contents to the end and relocate file name
257 pointer to upper half of the buffer.
258
259 Sun Nov 24 04:56:19 1996 Ulrich Drepper <drepper@cygnus.com>
260
261 * time/africa: Update from ADO tzdata1996m.
262 * time/antarctica: Likewise.
263 * time/asia: Likewise.
264 * time/australia: Likewise.
265 * time/etcetera: Likewise.
266 * time/europe: Likewise.
267 * time/nothamerica: Likewise.
268 * time/southameria: Likewise.
269 * time/zone.tab: Likewise.
270
271 * sysdeps/unix/sysv/linux/sys/serial.h: New file.
272 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=misc] (sysdep_headers):
273 Add sys/serial.h.
274 * sysdeps/unix/sysv/linux/Dist: Add sys/serial.h.
275
276 * posix/wait.h: New file.
277 * posix/Makefile (headers): Add wait.h.
278
279 Sat Nov 23 17:27:52 1996 Roland McGrath <roland@gnu.ai.mit.edu>
280
281 * Makeconfig ($(common-objpfx)soversions.mk): Use regular
282 expression instead of shell pattern matching.
283 * shlib-versions: Change to regular expressions.
284
285 Sat Nov 23 13:24:55 1996 Ulrich Drepper <drepper@cygnus.com>
286
287 * io/stat.c: Add section from libgcc to copyright comment
288 to allow this file to be statically linked in applications.
289 * io/fstat.c: Likewise.
290 * io/lstat.c: Likewise.
291 * io/mknod.c: Likewise.
292
293 Fri Nov 22 15:14:23 1996 Ulrich Drepper <drepper@cygnus.com>
294
295 * csu/initfini.c: Add section from libgcc to copyright comment
296 to allow this file to be statically linked in applications.
297
298 * malloc/obstack.h [!_LIBC && !HAVE_STRING_H]: Define memcpy if
299 not already defined.
300 (obstack_grow, obstack_grow0): Correct placement of braces.
301
302 * gnu-versions.h (_GNU_OBSTACK_INTERFACE_VERSION): Define to 2.
303 * malloc/obstack.c (OBSTACK_INTERFACE_VERSION): Define to 2.
304
305 Thu Nov 21 19:54:51 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
306
307 * Makerules (make-link): Simplify by changing directory only if
308 not using rellns-sh; check whether we really have symbolic links.
309
310 * rellns-sh: Fix the case of $(dirname $2) being a prefix of
311 $(dirname $1); use status of ln for exit code; make more robust
312 against multiple slashes in a row.
313
314 Thu Nov 21 13:05:21 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
315
316 * configure.in (after AC_CANONICAL_HOST): mutate *-*-gnu* names
317 into *-*-gnu-gnu*.
318 * shlib-versions (gnu versions): Recognize *-*-gnu-gnu* instead of
319 the three-part name, to distinguish correctly from *-*-linux-gnu*.
320
321 * sysdeps/mach/hurd/Makefile ($(libdir)/libc.so): Depend on
322 $(rpcuserlibs).
323
324 * sysdeps/mach/hurd/Makefile (install-others): Add
325 $(libdir)/libc_p.a.
326 ($(libdir)/libc_p.a): New rule.
327 * sysdeps/mach/hurd/libc_p-ldscript: New file.
328 * sysdeps/mach/hurd/Dist: Add libc_p-ldscript.
329
330 Wed Nov 20 20:28:21 1996 Richard Henderson <rth@tamu.edu>
331
332 * Makerules (make-link): Use $(shell) to find rellns-sh before we cd.
333 * time/Makefile: Likewise.
334
335 * sysdeps/alpha/elf/Makefile: New file. Build crtbegin.o & crtend.o.
336 * sysdeps/alpha/elf/Dist: New file.
337 * sysdeps/alpha/elf/crtbegin.S, sysdeps/alpha/elf/crtend.S: New files.
338 The bits currently distributed with GCC fail in two ways -- they don't
339 understand multiple .got subsections and the extents of the lists are
340 dynamicly bound meaning that the application's lists get executed
341 multiple times and the library's lists never get executed.
342
343 Wed Nov 20 00:42:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
344
345 * stdlib/strtod.c: Fix previous change.
346
347 Wed Nov 20 22:07:58 1996 Andreas Jaeger <aj@arthur.pfalz.de>
348
349 * time/Makefile ($(installed-localtime-file)): Use $(..) to find
350 rellns-sh script.
351
352 Wed Nov 20 12:50:54 1996 Ulrich Drepper <drepper@cygnus.com>
353
354 * stdio-common/Makefile: Add CFLAGS-scanf7.c to prevent warning.
355 Likesie for scanf4.c
356
357 Wed Nov 20 02:04:11 1996 Ulrich Drepper <drepper@cygnus.com>
358
359 * sysdeps/unix/sysv/linux/sigsuspend.c: Make sigsuspend a weak
360 alias of __sigsuspend.
361
362 * grp/grp.h: Correct comment about POSIX compliance.
363 * pwd/pwd.h: Likewise.
364
365 * login/utmp.h: Update copyright and pretty-print prototypes.
366 * sysdeps/generic/paths.h: Add _PATH_LASTLOG, _PATH_UTMP and
367 _PATH_WTMP from utmpbits.h.
368 * sysdeps/unix/sysv/linux/paths.h: Likewise.
369 * sysdeps/generic/utmpbits.h: Remove here.
370 * sysdeps/gnu/utmpbits.h: Likewise.
371
372 * misc/sys/uio.h: Place __BEGIN_DECLS correctly.
373 Pretty-print prototypes.
374
375 * sysdeps/unix/sysv/linux/sparc/clone.S: New file. Taken from
376 LinuxThreads-0.5.
377
378 Tue Nov 19 13:43:07 1996 Richard Henderson <rth@tamu.edu>
379
380 * inet/ether_hton.c: Include <string.h>.
381 * inet/ether_ntoh.c: Likewise.
382 * inet/rexec.c: Get errno, index, getpass, getlogin from headers.
383 * misc/search.h: Fix hcreate_r argument type (unsigned -> size_t).
384
385 * misc/sys/cdefs.h: Change __long_double_t definition from typedef
386 to define. Jim Nance reports problems building XEmacs otherwise.
387
388 * resolv/gethnamaddr.c: Protect h_errno redefinition.
389 * resolv/getnetnamadr.c: Likewise.
390 * resolv/herror.c: Likewise.
391
392 * sysdeps/generic/sigset.h (__SIGSETFN): Operator ## doesn't work
393 with -traditional. Reported by Eric Youngdale. While we're at this,
394 don't do error checking in the __ functions. This is consistent
395 with the sysv4 definitions and seems Right.
396 * signal/signal.h: Don't __OPTIMIZE__ sigops to __ versions. Add
397 prototype for __sigsuspend.
398 * sysdeps/posix/sigblock.c: Optimize sigmask <-> sigset_t conversions
399 for sigset_t == unsigned long. De-ansidecl-ify. Reformat copyright.
400 * sysdeps/posix/sigpause.c: Likewise.
401 * sysdeps/posix/sigsetmask.c: Likewise.
402 * sysdeps/posix/sigvec.c: Likewise.
403 * sysdeps/posix/sigintr.c: Reformat copyright.
404 * sysdeps/posix/signal.c: Check signal number out of range since
405 __sigismember doesn't anymore. Reformat copyright.
406 * sysdeps/posix/sigwait.c: Use __ versions of sigfillset, sigismember,
407 sigdelset, sigaction, and sigsuspend.
408
409 * stdlib/drand48-iter.c (__drand48_iterate): Cast state fragments
410 to the wider type before shifting.
411
412 * sysdeps/alpha/bsd-_setjmp.S: Silence assembler warning "$at used
413 without .set noat" in profiling hook.
414 * sysdeps/alpha/bsd-setjmp.S: Likewise.
415 * sysdeps/alpha/htonl.S: Likewise.
416 * sysdeps/alpha/htons.S: Likewise.
417 * sysdeps/alpha/s_copysign.S: Likewise.
418 * sysdeps/alpha/setjmp.S: Likewise.
419 * sysdeps/alpha/stpcpy.S: Likewise.
420 * sysdeps/alpha/strcat.S: Likewise.
421 * sysdeps/alpha/strcpy.S: Likewise.
422 * sysdeps/alpha/strncat.S: Likewise.
423 * sysdeps/unix/sysv/linux/alpha/brk.S: Likewise.
424 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
425 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
426 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
427 * sysdeps/unix/sysv/linux/alpha/llseek.S: Likewise.
428 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise. Rename
429 function to __sigsuspend and add weak alias.
430 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise. Add missing END.
431
432 * sysdeps/alpha/w_sqrt.S: Define _ERRNO_H so <errnos.h> defines EDOM.
433
434 * sysdeps/unix/execve.S: Match PSEUDO_END symbol with the symbol
435 SYSCALL__ actually generated.
436
437 * sysdeps/unix/sysv/linux/errnos.h [_LIBC_REENTRANT]: Reflexively
438 #define __set_errno, as several imported subsystems (eg. BIND) check
439 that the symbol is defined.
440
441 * sysdeps/unix/sysv/linux/getsysstats.c: Include <alloca.h>.
442
443 * sysdeps/alpha/memcpy.S: Temporarily remove until I can find a bug
444 that manifests in GCC.
445
446 Tue Nov 19 11:10:05 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
447
448 * sysdeps/posix/writev.c (writev): COUNT parm is now int.
449 * sysdeps/posix/readv.c (readv): Likewise.
450
451 Tue Nov 19 15:28:29 1996 Ulrich Drepper <drepper@cygnus.com>
452
453 * nss/nss_dns/dns-network.c: Change return type of all functions
454 to enum nss_status.
455 Reported by NIIBE Yutaka.
456 * nss/nss_dns/dns-host.c: Update copyright.
457
458 Fri Nov 15 20:16:38 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
459
460 * config.make.in: Remove definition of top_absdir.
461 * configure.in: Likewise. Use $(..) instead.
462 * Makerules (make-link): Use $(..) to find rellns-sh script.
463
464 Sat Nov 16 15:52:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
465
466 * manual/nss.texi (Name Service Switch): Fix reference to
467 `frobnicate'.
468
469 Fri Nov 15 22:08:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
470
471 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
472 sys/mtio.h.
473
474 Mon Nov 18 05:51:13 1996 Ulrich Drepper <drepper@cygnus.com>
475
476 * sysdeps/generic/waitstatus.h (__WIFSIGNALED): Rename local
477 variable from __stat to __status to prevent shadowing.
478 * sunrpc/rpc/clnt.h (clntudp_create, clntudp_bufcreate): Likewise
479 for parameter __wait.
480 Reported by NIIBE Yutaka.
481
482 Mon Nov 18 02:05:38 1996 Ulrich Drepper <drepper@cygnus.com>
483
484 * misc/regexp.c: New file. Implementation of obsolete interface
485 to regular expression matcher (required in XPG4.2).
486 * misc/regexp.h: New file. Header for above.
487 * misc/Makefile (headers): Add regexp.h.
488 (routines): Add regexp.c.
489 Update copyright.
490
491 Sun Nov 17 21:50:24 1996 Andreas Jaeger <aj@arthur.pfalz.de>
492
493 * stdlib/tst-strtod.c (main): Add arguments for main.
494 * stdlib/tst-strtol.c (main): Likewise.
495
496 Sun Nov 17 21:15:05 1996 Ulrich Drepper <drepper@cygnus.com>
497
498 * configure.in: Substitute libc_cv_slibdir and libc_cv_sysconfdir
499 in output files.
500 * sysdepes/unix/sysv/linux/configure: Define libc_cv_slibdir to /lib
501 and sysconfdir to /etc if $prefix is /usr.
502 * config.make.in: Add slibdir, sysconfdir and BASH to be replaced.
503
504 * elf/Makefile ($(objpfx)ldd): Install ldd.bash.in if
505 $(have-bash2) is yes.
506 * elf/ldd.bash.in: Add copyright and various cleanups.
507 * elf/ldd.sh.in: Likewise.
508
509 Implement RTLD_NEXT.
510 * elf/dlfcn.h: Define RTLD_NEXT.
511 * elf/dl-deps.c: Build second searchlist which contains duplicates.
512 * elf/dl-lookup.c (_dl_lookup_symbol_skip): New function. Used
513 for RTLD_NEXT lookup.
514 Rewrite _dl_lookup_symbol to put common parts for both lookup
515 functions in a separate function.
516 * elf/dlsym.c: Handle RTLD_NEXT by calling _dl_lookup_symbol_skip.
517 * elf/link.h (struct link_map): Add l_dupsearchlist and
518 l_ndupsearchlist.
519 Add prototype for _dl_lookup_symbol_skip.
520
521 * sunrpc/Makefile (rpcsvc): Add rusers.
522 * sunrpc/rpcsvc/rnusers.x: Remove. Obsolteted by rusers.x.
523 * sunrpc/rpcsvc/rusers.x: New file.
524
525 Sun Nov 17 04:24:35 1996 Ulrich Drepper <drepper@cygnus.com>
526
527 * stdio-common/vfprintf.c [USE_IN_LIBIO] (buffered_vfprintf): Call
528 __libc_lock_init for local lock.
529 Reported by a sun <asun@zoology.washington.edu>.
530 [!USE_IN_LIBIO] (PAD): Optimize a bit.
531
532 Sun Nov 17 03:13:57 1996 Ulrich Drepper <drepper@cygnus.com>
533
534 * db/makedb.c: Update and reformat copyright.
535 * elf/Makefile: Likewise.
536 * elf/dl-close.c: Likewise.
537 * elf/dl-debug.c: Likewise.
538 * elf/dl-deps.c: Likewise.
539 * elf/dl-error.c: Likewise.
540 * elf/dl-fini.c: Likewise.
541 * elf/dl-init.c: Likewise.
542 * elf/dl-load.c: Likewise.
543 * elf/dl-lookup.c: Likewise.
544 * elf/dl-minimal.c: Likewise.
545 * elf/dl-object.c: Likewise.
546 * elf/dl-open.c: Likewise.
547 * elf/dl-reloc.c: Likewise.
548 * elf/dl-runtime.c: Likewise.
549 * elf/dl-support.c: Likewise.
550 * elf/dl-symbol.c: Likewise.
551 * elf/dladdr.c: Likewise.
552 * elf/dlclose.c: Likewise.
553 * elf/dlerror.c: Likewise.
554 * elf/dlopen.c: Likewise.
555 * elf/dlsym.c: Likewise.
556 * elf/do-rel.h: Likewise.
557 * elf/dynamic-link.h: Likewise.
558 * elf/eval.c: Likewise.
559 * elf/rtld.c: Likewise.
560 * inet/ether_hton.c: Likewise.
561 * inet/ether_ntoh.c: Likewise.
562 * inet/ether_line.c: Likewise.
563 * inet/getnetgrent_r.c: Likewise.
564
565 * inet/Makefile (+gccwarn): Remove definition.
566 Instead set CFLAGS-rcmd.c, CFLAGS-rexec.c, and CFLAGS-ruserpass.c
567 to `-w'.
568 * inet/aliases.h: Add C++ protection.
569 * inet/ether_hton.c: Add prototype for __nss_ethers_lookup.
570 (ether_hostton): Remove unused variable result.
571 * inet/ether_ntoh.c: Likewise.
572 * inet/ether_line.c: Include <ctype.h> and <string.h>.
573 * inet/getnetgrent_r.c: Include <stdlib.h>.
574 Use casts to prevent warnings.
575 (innetgr): Initialize `known' and `needed'.
576 * inet/inet_net.c: Make local variable `i' of type u_int32_t.
577 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)) [NEED__RES]: Don't
578 return NULL. Instead set *RESULT to NULL and return -1.
579 * nss/getXXent_r.c (INTERNAL (REENTRANT_GETNAME)): Likewise.
580 (SETFUNC_NAME, ENDFUNC_NAME) [NEED__RES]: Don't return anything.
581
582 * nss/nss_files/files-alias.c: Debug function. I didn't worked at
583 all before.
584
585 Sat Nov 16 15:25:34 1996 Ulrich Drepper <drepper@cygnus.com>
586
587 * sysdeps/posix/readv.c: Don't use PTR anymore.
588 * sysdeps/posix/writev.c: Likewise.
589
590 * version.h (VERSION): Bump to 1.98.
591
592 * nss/db-Makefile: Generate lines for getXXXent iteration.
593
594 * sysdeps/alpha/Dist: Don't distribute removed files divlu.S,
595 divqu.S, remlu.S, and remqu.S.
596
597 Fri Nov 15 08:55:54 1996 Andreas Jaeger <aj@arthur.pfalz.de>
598
599 * posix/unistd.h: Correct typo in documentation.
600
601 Thu Nov 14 18:08:14 1996 a sun <asun@zoology.washington.edu>
602
603 * inet/netinet/tcp.h: Use __ protected versions instead of
604 BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN directly.
605
606 Sat Nov 16 13:44:55 1996 Ulrich Drepper <drepper@cygnus.com>
607
608 * intl/loadmsgcat.c (_nl_msg_cat_cntr): Initialize so that
609 references in libc.so are not anymore undefined.
610
611 Sat Nov 16 18:17:36 1996 NIIBE Yutaka <gniibe@mri.co.jp>
612
613 * io/utime.h: Rename second parameter for utime to prevent warning
614 for -Wshadow.
615 * dirent/dirent.h: Same here for scandir prototype.
616 * math/mathcalls.h: Likewise for frexp and ldexp.
617 * sysdeps/unix/sysv/linux/netinet/in.h: Likewise for bindresvport.
618
619 Sat Nov 16 03:49:27 1996 Ulrich Drepper <drepper@cygnus.com>
620
621 * stdlib/tst-strtod.c: Add test for error case below.
622
623 Sat Nov 16 03:48:39 1996 Wolfram Gloger <Wolfram.Gloger@dent.med.uni-muenchen.de>
624
625 * stdlib/strtod.c: Recognize numbers like 0e-19.
626
627 Fri Nov 15 08:38:43 1996 Andreas Jaeger <aj@arthur.pfalz.de>
628
629 * time/Makefile ($(installed-localtime-file)): Fix path to
630 rellns-sh.
631
632 * Makefile: Don't generate and install gnu/lib-names.h if
633 $(build-shared) is not `yes'.
634
635 Thu Nov 14 09:23:58 1996 H.J. Lu (hjl@gnu.ai.mit.edu)
636
637 * sysdeps/posix/Makefile ($(common-objpfx)mk-stdiolim): Depend
638 on $(..)posix/posix1_lim.h, not ../posix/posix1_lim.h.
639
640 * Makerules (REAL_MAKE_VERSION): New, use it instead of
641 MAKE_VERSION.
642
643 Thu Nov 14 22:10:43 1996 Ulrich Drepper <drepper@cygnus.com>
644
645 * nss/nss_files/files-XXX.x (_nss_files_get,ENTNAME_r): Fix typo.
646 * nss/getXXent_r.c: Fix typo. Set correct return value when
647 no further service is available.
648
649 Thu Nov 14 17:48:13 1996 Ulrich Drepper <drepper@cygnus.com>
650
651 * db/recno/rec_put.c: Add cast to avoid warning.
652 * db/recno/rec_close.c: Likewise.
653 * db/mpool/mpool.c: Likewise.
654 * db/hash/hash_bigkey.h: Likewise.
655 * db/hash/hash.c: Likewise.
656 * db/btree/bt_split.c: Likewise.
657 * db/btree/bt_put.c: Likewise.
658
659 Thu Nov 14 14:11:44 1996 Ulrich Drepper <drepper@cygnus.com>
660
661 * dirent/dirent.h: Update copyright.
662 * elf/elf.h: Likewise.
663 * elf/link.h: Likewise.
664 * gmon/sys/gmon_out.h: Likewise.
665 * gnu-versions.h: Likewise.
666 * intl/libintl.h: Likewise.
667 * io/fcntl.h: Likewise.
668 * io/ftw.h: Likewise.
669 * io/sys/statfs.h: Likewise.
670 * io/utime.h: Likewise.
671 * locale/langinfo.h: Likewise.
672 * malloc/malloc.h: Likewise.
673 * malloc/obstack.h: Likewise.
674 * misc/ar.h: Likewise.
675 * misc/error.h: Likewise.
676 * misc/mntent.h: Likewise.
677 * misc/sgtty.h: Likewise.
678 * misc/sys/cdefs.h: Likewise.
679 * misc/sys/dir.h: Likewise.
680 * misc/sys/file.h: Likewise.
681 * misc/sys/ioctl.h: Likewise.
682 * misc/sys/ustat.h: Likewise.
683 * posix/fnmatch.h: Likewise.
684 * posix/getopt.h: Likewise.
685 * posix/glob.h: Likewise.
686 * posix/posix2_lim.h: Likewise.
687 * posix/regex.h: Likewise.
688 * posix/sys/times.h: Likewise.
689 * posix/sys/types.h: Likewise.
690 * posix/sys/utsname.h: Likewise.
691 * posix/tar.h: Likewise.
692 * posix/wordexp.h: Likewise.
693 * resource/sys/resource.h: Likewise.
694 * resource/sys/vlimit.h: Likewise.
695 * resource/sys/vtimes.h: Likewise.
696 * socket/sys/socket.h: Likewise.
697 * socket/sys/un.h: Likewise.
698 * stdio-common/printf.h: Likewise.
699 * stdlib/alloca.h: Likewise.
700 * string/argz.h: Likewise.
701 * string/endian.h: Likewise.
702 * string/envz.h: Likewise.
703 * string/memory.h: Likewise.
704 * string/strings.h: Likewise.
705 * sysdeps/generic/crypt.h: Likewise.
706 * sysdeps/generic/direntry.h: Likewise.
707 * sysdeps/generic/gnu/types.h: Likewise.
708 * sysdeps/generic/ioctl-types.h: Likewise.
709 * sysdeps/generic/netinet/in.h: Likewise.
710 * sysdeps/generic/resourcebits.h: Likewise.
711 * sysdeps/generic/sigset.h: Likewise.
712 * sysdeps/generic/sockaddrcom.h: Likewise.
713 * sysdeps/generic/sys/mman.h: Likewise.
714 * sysdeps/generic/sys/ptrace.h: Likewise.
715 * sysdeps/generic/termbits.h: Likewise.
716 * sysdeps/generic/waitstatus.h: Likewise.
717 * sysdeps/ieee754/huge_val.h: Likewise.
718 * sysdeps/ieee754/nan.h: Likewise.
719 * sysdeps/mach/hurd/local_lim.h: Likewise.
720 * sysdeps/mach/hurd/statbuf.h: Likewise.
721 * sysdeps/stub/huge_val.h: Likewise.
722 * sysdeps/stub/libc-lock.h: Likewise.
723 * sysdeps/stub/signum.h: Likewise.
724 * sysdeps/stub/statbuf.h: Likewise.
725 * sysdeps/stub/waitflags.h: Likewise.
726 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: Likewise.
727 * sysdeps/unix/bsd/osf/alpha/statbuf.h: Likewise.
728 * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
729 * sysdeps/unix/bsd/signum.h: Likewise.
730 * sysdeps/unix/bsd/statbuf.h: Likewise.
731 * sysdeps/unix/bsd/sun/signum.h: Likewise.
732 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Likewise.
733 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
734 * sysdeps/unix/bsd/sun/sunos4/termbits.h: Likewise.
735 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
736 * sysdeps/unix/bsd/waitflags.h: Likewise.
737 * sysdeps/unix/sysv/irix4/signum.h: Likewise.
738 * sysdeps/unix/sysv/irix4/statbuf.h: Likewise.
739 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
740 * sysdeps/unix/sysv/linux/alpha/statbuf.h: Likewise.
741 * sysdeps/unix/sysv/linux/alpha/sys/io.h: Likewise.
742 * sysdeps/unix/sysv/linux/direntry.h: Likewise.
743 * sysdeps/unix/sysv/linux/gnu/types.h: Likewise.
744 * sysdeps/unix/sysv/linux/ioctl-types.h: Likewise.
745 * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
746 * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
747 * sysdeps/unix/sysv/linux/resourcebits.h: Likewise.
748 * sysdeps/unix/sysv/linux/signum.h: Likewise.
749 * sysdeps/unix/sysv/linux/statbuf.h: Likewise.
750 * sysdeps/unix/sysv/linux/sys/io.h: Likewise.
751 * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
752 * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
753 * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
754 * sysdeps/unix/sysv/linux/syscall.h: Likewise.
755 * sysdeps/unix/sysv/linux/termbits.h: Likewise.
756 * sysdeps/unix/sysv/local_lim.h: Likewise.
757 * sysdeps/unix/sysv/sco3.2.4/syscall.h: Likewise.
758 * sysdeps/unix/sysv/sco3.2/local_lim.h: Likewise.
759 * sysdeps/unix/sysv/signum.h: Likewise.
760 * sysdeps/unix/sysv/sysv4/i386/statbuf.h: Likewise.
761 * sysdeps/unix/sysv/sysv4/signum.h: Likewise.
762 * sysdeps/unix/sysv/sysv4/sigset.h: Likewise.
763 * sysdeps/unix/sysv/sysv4/solaris2/signum.h: Likewise.
764 * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h: Likewise.
765 * sysdeps/unix/sysv/sysv4/waitflags.h: Likewise.
766 * sysdeps/vax/huge_val.h: Likewise.
767 * values.h: Likewise.
768
769 Thu Nov 14 04:22:41 1996 Ulrich Drepper <drepper@cygnus.com>
770
771 * malloc/obstack.h: Use memcpy instead of bcopy and define a macro
772 `memcpy' using bcopy if memcpy is not available.
773
774 * manual/stdio.texi: Correct description of printf customization.
775 The argument info function is not optional anymore and the
776 interface for `printf_function' also changed.
777 * manual/examples/rprintf.c: Define and use argument info function.
778
779 * stdio-common/printf.h (struct printf_info): Change type for field
780 `pad' to wchar_t.
781 Correct comment for `register_printf_function'.
782
783 * nss/getXXbyYY.c [NEED_H_ERRNO]: Don't pass pointer to h_errno
784 to reentrant function. Instead use temporary variable and set
785 h_errno if an error occured.
786 Reported by NIIBE Yutaka.
787
788 Fri Nov 15 12:27:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
789
790 * sysdeps/mach/hurd/statbuf.h (S_IPTRANS, S_IATRANS, S_IROOT,
791 S_ITRANS): New macros.
792 (S_ISPARE): Update to include new macros and S_IUSEUNK.
793
794 * sysdeps/mach/hurd/select.c (__select): Construct arg to
795 mach_msg_destroy more nicely.
796
797 * sysdeps/mach/hurd/ioctl.c: Include <mach/mig-support.h>.
798
799 * stdio/fopen.c (__getmode): Declare with prototype.
800 * stdio/memstream.c (enlarge_buffer, seek, free_info): Likewise.
801 * stdio/internals.c (__stdio_check_funcs, init_stream,
802 seek_to_target, flushbuf, fillbuf): Likewise.
803
804 * stdio-common/vfscanf.c (encode_error) [! USE_IN_LIBIO]: Call
805 funlockfile, not _IO_funlockfile.
806
807 * sysdeps/posix/readv.c (readv): Change return type to ssize_t.
808 Deansideclized.
809 * sysdeps/posix/writev.c (writev): Likewise.
810
811 * sysdeps/mach/hurd/lchown.c: Include <fcntl.h> and fix typo.
812
813 Thu Nov 14 12:53:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
814
815 * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Make this a
816 prototyped definition.
817
818 * sysdeps/mach/hurd/select.c (__select): Deal properly when there
819 are no bits set in the masks. Reported by baldazzi@csr.unibo.it.
820
821 Thu Nov 14 02:00:33 1996 Ulrich Drepper <drepper@cygnus.com>
822
823 * inet/Makefile (headers): Add aliases.h.
824 (routines): Add getaliasent_r, getaliasent, getaliasname, and
825 getaliasname_r.
826 * aliases.h: New file.
827 * inet/aliases.h: New file.
828 * inet/getaliasent.c: New file.
829 * inet/getaliasent_r.c: New file.
830 * inet/getaliasname.c: New file.
831 * inet/getaliasname_r.c: New file.
832 * nss/Makefile (databases): Add alias.
833 * nss/alias-lookup.c: New file.
834 * nss/databases.def: Add aliases and publickey.
835 * nss/nss_db/db-alias.c: New file.
836 * nss/nss_files/files-alias.c: New file.
837
838 * inet/getnetgrent_r.c (__internal_getnetgrent): Buffer length
839 argument to lookup function is of type size_t.
840 (innetgr): Likewise.
841 * nss/getXXbyYY_r.c: Likewise.
842 * nss/getXXent_r.c: Likewise.
843 * nss/nss_db/db-XXX.c: Likewise.
844
845 * nss/getXXbyYY.c: Don't provide static buffer. Resize if call
846 failed because buffer was too small.
847 * nss/getXXent.c: Likewise.
848
849 * nss/nss_files/files-XXX.c: Correct handling of shared file. The
850 getXXent_r function now uses f[gs]etpos to get to the correct
851 position.
852
853 * nss/nss_files/files-parse.c: Indent lines for better readability.
854
855 * malloc/obstack.c: Add new variable obstack_alloc_failed_handler
856 and new function print_and_abort. Remove all references to
857 alloc_failed field.
858 Add new function _obstack_memory_used.
859 * malloc/obstack.h (struct obstack): Remove field alloc_field.
860 Remove all references to alloc_failed field.
861 Add prototype for _obstack_memory_used.
862
863 * posix/unistd.h: Correct typo.
864
865 Wed Nov 13 03:09:16 1996 Ulrich Drepper <drepper@cygnus.com>
866
867 * configure.in: Require at least autoconf-2.10.2.
868
869 Tue Nov 12 16:58:41 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
870
871 * mach/mach.h (__mach_msg_destroy, mach_msg_destroy, __mach_msg):
872 Provide prototypes.
873
874 * mach/msg-destroy.c (mach_msg_destroy_port,
875 mach_msg_destroy_memory): Use prototype syntax.
876 * hurd/hurdmalloc.c (more_memory, malloc_fork_prepare,
877 malloc_fork_parent, malloc_fork_child): Likewise.
878
879 * stdio/stdio.h: Repair broken cpp syntax.
880
881 * sysdeps/mach/hurd/lchown.c: New file. Guts from chown.c, except
882 we pass O_NOLINK on the open.
883
884 * manual/errno.texi (EBADMSG, EIDRM, EMULTIHOP, ENODATA, ENOLINK,
885 ENOMSG, ENOSR, ENOSTR, EOVERFLOW, EPROTO, ETIME): Redesignate as
886 an XOPEN error code, move to before the "Linux only" section, and
887 give it a new number for the Hurd.
888
889 Tue Nov 12 03:35:01 1996 Christian von Roques <roques@pond.sub.org>
890
891 * malloc/obstack.h: Add new macro `obstack_make_room'.
892 * malloc/obstack.c: Add function implementation for
893 `obstack_make_room'.
894
895 Mon Nov 11 13:54:04 1996 Ulrich Drepper <drepper@cygnus.com>
896
897 Update to BIND-4.9.5-REL.
898 * resolv/Banner: Set to 4.9.5-REL.
899 * resolv/inet_net_pton.c: Was doing bad things to subnets and b'casts.
900 * resolv/res_debug.c (__fp_nquery): Could read past end of buffer.
901 (fix from BIND 8.1)
902
903 * config.make.in: Add definition for top_absdir.
904 * Makerules (make-link): Fix path to rellns-sh script.
905
906 Sat Nov 9 02:15:24 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
907
908 * posix/unistd.h: Fix comment.
909
910 * manual/arith.texi: Fix misspellings. Use `zero', not `null',
911 when talking about numbers.
912 * manual/users.texi: Likewise.
913 * manual/creature.texi: Likewise. Use @defvarx for a secondary
914 description header.
915
916 Sat Nov 9 19:25:11 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
917
918 * sysdeps/posix/Makefile ($(common-objpfx)mk-stdiolim): Depend on
919 the real posix1_lim.h file so that it works in all subdirs, not
920 only in posix.
921
922 Sat Nov 9 02:08:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
923
924 * Makefile ($(includedir)/gnu/lib-names.h): Quote arguments of tr.
925
926 Sat Nov 9 02:06:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
927
928 * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Don't depend
929 on $(before-compile) which hasn't been properly setup yet at this
930 point.
931
932 Sat Nov 9 02:02:48 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
933
934 * sysdeps/generic/sigset.h: Don't use implicit int which will
935 probably require a diagnostic in the next revision of the C
936 standard.
937 * sysdeps/stub/lockfile.c: Likewise.
938
939 Sat Nov 9 01:57:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
940
941 * sysdeps/unix/sysv/linux/m68k/syscall.S: Correct last change.
942 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
943
944 Mon Nov 11 02:53:14 1996 Ulrich Drepper <drepper@cygnus.com>
945
946 * time/strftime.c: Update copyright. Small cosmetic changes.
947
948 Sun Nov 10 23:28:16 1996 Ulrich Drepper <drepper@cygnus.com>
949
950 * inet/getprtname_r.c: Reformat copyright.
951
952 * nss/Makefile (databases): Add key.
953 (libnss_files-routines): Exclude key database.
954 (libnss_db-routines): Likewise.
955 * nss/key-lookup.c: New file.
956
957 * nss/getXXent_r.c (last_nip): Remember last service used since
958 last setXXent call.
959 (SETFUNC): Don't force to work through whole list of services in
960 call to __nss_next.
961 Update last_nip if necessary.
962 (ENDFUNC): Only process endXXent function up to currently used
963 last service.
964 (GETFUNC): Update last_nip if necessary.
965
966 * nss/nss_files/files-netgrp.c (_nss_netgroup_parseline): Don't
967 make static.
968
969 * rpc/auth_des.h: New file.
970 * sunrpc/Makefile (headers): Add auth_des.h.
971 (routines): Add publickey.
972 * sunrpc/publickey.c: New file. Interface to public key handling.
973 * sunrpc/rpc/auth_des.h: New file.
974 * sunrpc/rpc/netdb.h: Really include <rpc/auth_des.h>.
975
976 Sun Nov 10 02:37:15 1996 Ulrich Drepper <drepper@cygnus.com>
977
978 * inet/gethstent_r.c: Update copyright.
979 * nss/getXXbyYY_r.c: Likewise.
980 * nss/nsswitch.c: Likewise.
981 * nss/getXXent_r.c: Likewise.
982 * nss/nss_files/files-XXX.c: Likewise.
983 * nss/nss_files/files-netgroup.c: Likewise.
984 * nss/nss_files/files-parse.c: Likewise.
985
986 * nss/getXXent_r.c: Change implementation. It's not necessary to
987 call all setXXent functions. Just find first available and
988 when necessary let getXXent_r call the others.
989
990 * nss/nss_files/files-XXX.c: Make really reentrant. Now calls
991 of getXXent and getXXbyYY can be mixed. The cursor for traversing
992 the database with getXXent will be remembered.
993
994 * stdlib/test-canon.c (cwd): Change size to PATH_MAX.
995
996 Sat Nov 9 15:34:48 1996 Ulrich Drepper <drepper@cygnus.com>
997
998 * sysdeps/unix/sysv/linux/Dist: Add sys/mtio.h.
999 * sysdeps/unix/sysv/linux/sys/mtio.h: New file.
1000
1001 * signal/signal.h [__USE_BSD]: Add prototype for siggetmask.
1002
1003 Fri Nov 8 13:29:30 1996 Ulrich Drepper <drepper@cygnus.com>
1004
1005 * ctype/ctype.h (__isascii): Don't test for seventh bit not to be
1006 set. Instead for none beside the first seven bits to be set.
1007 X/Open allows the argument to be an `int' value.
1008 Reported by Alain Williams <addw@phcomp.co.uk>.
1009 (toascii, isascii): Define macro also when __USE_XOPEN.
1010
1011 * sysdeps/posix/fpathconf.c: Use fstatfs to compute NAME_MAX, not
1012 PATH_MAX.
1013
1014 Thu Nov 7 03:04:29 1996 Ulrich Drepper <drepper@cygnus.com>
1015
1016 * nss/getXXXent_r.c (SETFUNC_NAME): Reset `nip' after loop to
1017 NULL so that GETFUNC will see first entry.
1018 (ENDFUNC_NAME): Likewise.
1019
1020 Rewrite Netgroups implementation to avoid global data.
1021 * inet/netgroup.h: Add definition of name_list and struct
1022 __netgrent.
1023 Add prototypes for internal netgroup functions.
1024 * nss/nss_files/files-netgroup.c (_nss_files_setnetgrent): Take
1025 extra argument and use the included data instead of global vars.
1026 (_nss_files_endnetgrent): Likewise.
1027 (_nss_netgroup_parseline): Change to be static and use data
1028 included in the RESULT structure.
1029 * inet/getnetgrent_r.c (startp): Move into setup function.
1030 (known_groups, needed_groups): new part of the __netgrent sruct.
1031 (freememory): Take extra argument and use included data.
1032 (__internal_endnetgrent): Likewise.
1033 (internal_setnetgrent): Renamed to __internal_setnetgrent_reuse
1034 and take extra argument.
1035 (__internal_setnetgrent): New function. Call
1036 __internal_setnetgrent_reuse after calling free_memory.
1037 (setnetgrent): Only call __internal_setnetgrent.
1038 (__getnetgrent_r): Split into two functions. __getnetgrent_r
1039 calls __internal_getnetgrent after locking.
1040 (innetgr): Use dynamic data only. I.e., innetgr now is fully
1041 reentrant.
1042
1043 Thu Nov 7 00:15:14 1996 Ulrich Drepper <drepper@cygnus.com>
1044
1045 * sysdeps/stub/setenv.c: Correct typo: unseenv -> unsetenv.
1046 Reported by Joshua Cowan <jcowan@jcowan.reslife.okstate.edu>.
1047
1048 Wed Nov 6 13:13:37 1996 Ulrich Drepper <drepper@cygnus.com>
1049
1050 * manual/creature.texi: Document that _GNU_SOURCE is no longer the
1051 default when no *_SOURCE macro is given.
1052 Reported by Karsten Weiss <karsten@addx.au.s.shuttle.de>.
1053 * NOTES: remade from manual/creature.texi.
1054 * manual/libc.texinfo: Add back line about GPL translation which
1055 somehow got lost.
1056
1057 * Make-dist (dist.tar): Depend on README being updated.
1058
1059 * rellns-sh: Correct thinko in removing leading /.
1060 Reported by Andreas Jaeger <aj@arthur.pfalz.de>.
1061
1062 * pwd/fgetpwent_r.c: Recognize lines containing only names starting
1063 with `+' or `-' in parser.
1064 * grp/fgetgrent_r.c: Likewise.
1065 * shadow/sgetspent_r.c: Likewise.
1066 * nss/nss_files/files-spwd.c: Don't accept entries starting with
1067 `+' or `-'.
1068
1069 Wed Nov 6 04:30:26 1996 Ulrich Drepper <drepper@cygnus.com>
1070
1071 * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias llseek for
1072 _llseek syscall. Reported by Andy Sewell <puck@pookhill.demon.co.uk>.
1073
1074 * string/argz.h: Don't protect by __USE_GNU.
1075
1076 Tue Nov 5 23:38:28 1996 Ulrich Drepper <drepper@cygnus.com>
1077
1078 * Lots of files: Update and reformat copyright.
1079
1080 * Makefile (headers): Add xopen_lim.h.
1081
1082 * catgets/nl_types.h: Move __BEGIN_DECLS before definition of nl_catd.
1083
1084 * grp/grp.h: Define setgrent, getgrent, endgrent, and getgrent_r
1085 if __USE_XOPEN_EXTENDED is defined.
1086 * pwd/pwd.h: Define setpwent, getpwent, endpwent, and getpwent_r
1087 if __USE_XOPEN_EXTENDED is defined.
1088
1089 * io/Makefile (routines): Add lchown.
1090 * sysdeps/stub/lchown.c: New file.
1091
1092 * io/sys/poll.h: Add definition of POLLWRNORM.
1093
1094 * io/sys/stat.h: Declare lstat, fchmod, mknod when
1095 __USE_XOPEN_EXTENDED is defined.
1096
1097 * libio/Makefile (routines): Add obprintf.
1098 * libio/obprintf.c: New file.
1099 * libio/iolibio.h: Add prototypes for _IO_obstack_vprintf and
1100 _IO_obstack_printf.
1101 * libio/libio.h: Fix typo.
1102 * libio/stdio.h: Declare tempnam if __USE_XOPEN_EXTENDED is defined.
1103 Add prototypes for obstack_vprintf and obstack_printf.
1104
1105 * manual/creature.texi: Describe _XOPEN_SOURCE macro.
1106 * manual/intro.texi: Add reference to NSS chapter.
1107 * manual/libc.texinfo: Update UPDATED.
1108 Comment out `@printindex cp'. It works again.
1109 * manual/memory.texi: Add description for obstack_ptr_grow,
1110 obstack_int_grow, obstack_ptr_grow_fast, and obstack_int_grow_fast.
1111 * manual/nss.texi: Add a few @cindex entries and change NSS_STATUS_*
1112 index entries to @vindex.
1113 * manual/users.texi: Correct @cindex entry for Netgroup.
1114
1115 * math/mathcalls.h: Use __USE_XOPEN and __USE_XOPEN_EXTENDED to
1116 make declarations visible for X/Open sources.
1117
1118 * misc/search.h: Declare insque/remque only is __USE_SVID or
1119 __USE_XOPEN_EXTENDED is defined.
1120
1121 * misc/sys/uio.h (readv, writev): Change return value from int to
1122 ssize_t.
1123
1124 * posix/Makefile (headers): Add re_comp.h.
1125 * posix/re_comp.h: New file. XPG interface to regex functions.
1126
1127 * posix/getconf.c: Add all names from XPG4.2.
1128 * posix/posix1_lim.h: Increase minimum values for _POSIX_CHILD_MAX
1129 and _POSIX_OPEN_MAX to minimums from XPG4.2.
1130 * sysdeps/generic/confname.h: Add all _SC_* names from XPG4.2.
1131 * sysdeps/posix/sysconf.c: Handle new _SC_* values.
1132 * sysdeps/stub/sysconf.c: Likewise.
1133
1134 * posix/unistd.h: Add declaration of ualarm and lchown. Declare
1135 usleep, fchown, fchdir, nice, getpgid, setsid, getsid, setreuid,
1136 setregid, vfork, ttyslot, symlink, readlink, gethostid, truncate,
1137 ftruncate, getdtablesize, brk, sbrk, lockf when
1138 __USE_XOPEN_EXTENDED is defined.
1139
1140 * posix/sys/wait.h: Declare wait3 if __USE_XOPEN_EXTENDED is defined.
1141
1142 * shadow/shadow.h: Define SHADOW using _PATH_SHADOW.
1143 * sysdeps/generic/paths.h: Define _PATH_SHADOW.
1144 * sysdeps/unix/sysv/linux/paths.h: Likewise.
1145
1146 * signal/signal.h: Declare killpg, sigstack and sigaltstack when
1147 __USE_XOPEN_EXTENDED is defined.
1148
1149 * stdio/stdio.h: Declare tempnam when __USE_XOPEN is defined.
1150
1151 * stdlib/stdlib.h: Make rand48 functions available when __USE_XOPEN
1152 is defined.
1153 Likewise for valloc, putenv, realpath, [efg]cvt*, and getsubopt
1154 functions.
1155
1156 * string/string.h: Make memccpy, strdup, bcmp, bcopy, bzero, index,
1157 and rindex available when __USE_XOPEN_EXTENDED is defined.
1158
1159 * sysdeps/mach/getpagesize.c: De-ANSI-fy. Change return type to int.
1160 * sysdeps/posix/getpagesize.c: Likewise.
1161 * sysdeps/stub/getpagesize.c: Likewise.
1162 * sysdeps/unix/getpagesize.c: Likewise.
1163
1164 * time/africa: Update from tzdata1996l.
1165 * time/asia: Likewise.
1166 * time/australia: Likewise.
1167 * time/europe: Likewise.
1168 * time/northamerica: Likewise.
1169 * time/pacificnew: Likewise.
1170 * time/southamerica: Likewise.
1171 * time/tzfile.h: Update from tzcode1996m.
1172
1173 * time/time.h: Declare strptime if __USE_XOPEN.
1174 Declare daylight and timezone also if __USE_XOPEN.
1175
1176 * time/sys/time.h: Remove declaration of ualarm.
1177
1178 * wctype/wctype.h: Just reference ISO C standard.
1179
1180 Tue Nov 5 01:26:32 1996 Richard Henderson <rth@tamu.edu>
1181
1182 * crypt/Makefile: Add crypt routines to libc as well iff
1183 $(crypt-in-libc) is set. Do this for temporary binary compatibility
1184 on existing Linux/Alpha installations.
1185
1186 * stdlib/div.c, sysdeps/generic/div.c: Move file to .../generic/.
1187 * stdlib/ldiv.c, sysdeps/generic/ldiv.c: Likewise.
1188 * stdlib/lldiv.c, sysdeps/generic/lldiv.c: Likewise.
1189 * sysdeps/alpha/Makefile (divrem): Add divlu, dviqu, remlu, and
1190 remqu.
1191 * sysdeps/alpha/div.S: New file.
1192 * sysdeps/alpha/ldiv.S: New file.
1193 * sysdeps/alpha/lldiv.S: New file.
1194 * sysdeps/alpha/divrem.h: Merge signed and unsigned division.
1195 Take pointers from Linus and tighten the inner loops a bit.
1196 * sysdeps/alpha/divl.S: Change defines for merged routines.
1197 * sysdeps/alpha/divq.S: Likewise.
1198 * sysdeps/alpha/reml.S: Likewise.
1199 * sysdeps/alpha/remq.S: Likewise.
1200 * sysdeps/alpha/divlu.S: Remove file.
1201 * sysdeps/alpha/divqu.S: Likewise.
1202 * sysdeps/alpha/remlu.S: Likewise.
1203 * sysdeps/alpha/remqu.S: Likewise.
1204
1205 * sysdeps/alpha/bsd-_setjmp.S: If PROF, call _mcount.
1206 * sysdeps/alpha/bsd-setjmp.S: Likewise.
1207 * sysdeps/alpha/bzero.S: Likewise.
1208 * sysdeps/alpha/ffs.S: Likewise.
1209 * sysdeps/alpha/htonl.S: Likewise.
1210 * sysdeps/alpha/htons.S: Likewise.
1211 * sysdeps/alpha/memchr.S: Likewise.
1212 * sysdeps/alpha/memset.S: Likewise.
1213 * sysdeps/alpha/s_copysign.S: Likewise.
1214 * sysdeps/alpha/s_fabs.S: Likewise.
1215 * sysdeps/alpha/setjmp.S: Likewise.
1216 * sysdeps/alpha/stpcpy.S: Likewise.
1217 * sysdeps/alpha/stpncpy.S: Likewise.
1218 * sysdeps/alpha/strcat.S: Likewise.
1219 * sysdeps/alpha/strchr.S: Likewise.
1220 * sysdeps/alpha/strcpy.S: Likewise.
1221 * sysdeps/alpha/strlen.S: Likewise.
1222 * sysdeps/alpha/strncat.S: Likewise.
1223 * sysdeps/alpha/strncpy.S: Likewise.
1224 * sysdeps/alpha/strrchr.S: Likewise.
1225 * sysdeps/alpha/udiv_qrnnd.S: Likewise. Fix private labels.
1226 Convert two small jumps to use conditional moves.
1227 * sysdeps/unix/alpha/sysdep.h: Compress all __STDC__ nastiness.
1228 (PSEUDO): If PROF, call _mcount.
1229 * sysdeps/unix/sysv/linux/alpha/brk.S: If PROF, call _mcount.
1230 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1231 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
1232 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1233 * sysdeps/unix/sysv/linux/alpha/llseek.S: Likewise.
1234 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
1235 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
1236
1237 * sysdeps/alpha/memcpy.S: New file. Odd layout because it should
1238 eventually contain memmove as well.
1239 * sysdeps/alpha/strcmp.S: New file.
1240 * sysdeps/alpha/strncmp.S: New file.
1241 * sysdeps/alpha/w_sqrt.S: New file.
1242
1243 Tue Nov 5 18:06:06 1996 Ulrich Drepper <drepper@cygnus.com>
1244
1245 * sysdeps/mach/hurd/ttyname_r.c: Use `size_t' for len variable.
1246
1247 Tue Nov 5 12:09:29 1996 Ulrich Drepper <drepper@cygnus.com>
1248
1249 * sysdeps/generic/sysdep.h: Define END only if not yet defined.
1250 * sysdeps/unix/sysdep.h: Define PSEUDO_END only if not yet defined.
1251 Reported by Thomas Bushnell, n/BSG.
1252
1253 Mon Nov 4 22:46:53 1996 Ulrich Drepper <drepper@cygnus.com>
1254
1255 * manual/users.texi (Netgroup Data): Remove { } around @cindex.
1256
1257 Mon Nov 4 19:07:05 1996 Ulrich Drepper <drepper@cygnus.com>
1258
1259 * malloc/calloc.c: Check for overflow before trying to allocate
1260 memory. Proposed by Neil Matthews <nm@adv.sbc.sony.co.jp>.
1261
1262 Fri Nov 1 18:18:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1263
1264 * manual/llio.texi (Operating Modes): Add missing arguments to
1265 @deftypevr in O_NONBLOCK description.
1266
1267 * manual/time.texi (Time Zone Functions): Enclose type name in
1268 braces in description of tzname. FIXME: this does not yet work
1269 correctly in info.
1270
1271 Sun Nov 3 17:29:06 1996 Ulrich Drepper <drepper@cygnus.com>
1272
1273 * features.h: Add X/Open macros.
1274 * posix/unistd.h: Define X/Open macros.
1275 * sysdeps/generic/confname.h: Add _SC_XOPEN_XCU_VERSION,
1276 _SC_XOPEN_UNIX, _SC_XOPEN_CRYPT, _SC_XOPEN_ENH_I18N,
1277 _SC_XOPEN_SHM, _SC_2_CHAR_TERM, _SC_2_C_VERSION, and _SC_2_UPE.
1278 * sysdeps/posix/sysconf.c: Handle new constants.
1279 * sysdeps/stub/sysconf.c: Likewise.
1280 * sysdeps/unix/sysv/linux/posix_opt.h: Add definition of _XOPEN_SHM.
1281
1282 * catgets/catgets.c (catopen): Set errno to ENOMEM when
1283 we run out of memory.
1284 (catgets): Set errno to EBADF when catalog handle is invalid.
1285 Set errno to ENOMSG when translation is not available.
1286 (catclose): Set errno to EBADF when catalog handle is invalid.
1287
1288 * ctype/ctype.h: Declare isascii and toascii when __USE_XOPEN.
1289 Likewise for _toupper and _tolower.
1290
1291 * manual/arith.texi: Document strtoq, strtoll, strtouq, strtoull,
1292 strtof, and strtold.
1293 * manual/math.texi: Document HUGE_VALf and HUGE_VALl.
1294 * manual/stdio.h: Document ' flag for numeric formats of scanf.
1295 * manual/users.texi: Document that cuserid shouldn't be used.
1296
1297 * misc/Makefile (routines): Add dirname.
1298 (headers): Add libgen.h.
1299 (tests): Add tst-dirname.
1300 * misc/dirname.c: New file.
1301 * misc/libgen.h: New file.
1302 * misc/tst-dirname.c: New file.
1303
1304 * misc/search.h: Parameter of hcreate must be of type size_t.
1305 * misc/hsearch.c: Likewise.
1306 * misc/hsearch_r.c: Likewise for hcreate_r.
1307 * misc/search.h: Parameters of insque and remque must be `void *'.
1308 * misc/insremque.c: Likewise.
1309
1310 * posix/unistd.h: Move declarations of mktemp and mkstemp to...
1311 * stdlib/stdlib.h: ...here.
1312 * posix/unistd.h [__USE_XOPEN]: Add prototypes for crypt, setkey,
1313 encrypt, and swab.
1314
1315 * stdio-common/printf-parse.h (struct printf_spec): Add pa_wchar
1316 and pa_wstring.
1317 (parse_one_spec): Remove Linux compatibility code.
1318 Recognize %C and %S formats.
1319 * stdio-common/printf.h: Add PA_WCHAR and PA_WSTRING.
1320 * stdio-common/vfprintf.c: Add implementation of %C and %S format.
1321 * stdio-common/vfscanf.c: Likewise for scanf.
1322
1323 * stdlib/l64a.c: Return value for 0 must be the empty string.
1324 * stdlib/stdlib.h: Declare reentrant function from rand49 family
1325 only if __USE_REENTRANT.
1326 Declare rand48 functions also if __USE_XOPEN.
1327
1328 * stdlib/strtol.c: Return 0 and set errno to EINVAL when BASE is
1329 not a legal value.
1330 Return 0 and set errno to EINVAL when strou* sees negativ number.
1331 * stdlib/tst-strtol.c: De-ANSI-fy.
1332 Change expected results for test of unsigned function and negative
1333 input.
1334
1335 * string/stratcliff.c: Prevent warnings.
1336 * string.h: Move declaration of swab to <unistd.h>.
1337 * string/swab.c: De-ANSI-fy.
1338
1339 * sysdeps/posix/cuserid.c: Implement using getpwuid_r.
1340 * sysdeps/posix/mkstemp.c: Include <stdlib.h> for prototype.
1341 * sysdeps/posix/mktemp.c: Likewise.
1342 * sysdeps/stub/mkstemp.c: Likewise.
1343 * sysdeps/stub/mktemp.c: Likewise.
1344
1345 * sysvipc/sys/ipc.h: Prototypes of ftok have to be of types `const
1346 char *' and `int'.
1347 * sysvipc/ftok.c: Likewise. Make sure only lower 8 bits of
1348 PROJ_ID are used.
1349
1350 Sun Nov 3 03:21:28 1996 Heiko Schroeder <Heiko.Schroeder@post.rwth-aachen.de>
1351
1352 * locale/programs/ld-numeric.c (numeric_output): Compute idx[0]
1353 correctly.
1354
1355 Sat Nov 2 17:44:32 1996 Ulrich Drepper <drepper@cygnus.com>
1356
1357 * sysdeps/posix/cuserid.c: Use reentrant functions.
1358 * manual/users.texi: Tell that cuserid is marked to be withdrawn in
1359 XPG4.2.
1360
1361 Sat Nov 2 14:26:37 1996 Ulrich Drepper <drepper@cygnus.com>
1362
1363 Linus said he will make sure no system call will return a value
1364 in -1 ... -4095 as a valid result.
1365 * sysdeps/unix/sysv/linux/i386/sysdep.h: Correct test for error.
1366 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1367 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
1368 * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
1369
1370 Sat Nov 2 16:54:49 1996 NIIBE Yutaka <gniibe@mri.co.jp>
1371
1372 * sysdeps/stub/lockfile.c [!USE_IN_LIBIO]: Define weak alias for
1373 __funlockfile, not a circular alias.
1374 Define __IO_ftrylockfile if USE_IN_LIBIO and __ftrylockfile if not,
1375 not vice versa.
1376
1377 * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location): Make
1378 it a weak symbol.
1379 * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location): Likewise.
1380
1381 Tue Nov 5 00:04:48 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1382
1383 * stdio-common/vfprintf.c: Include <libc-lock.h>.
1384
1385 Mon Nov 4 16:57:42 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1386
1387 * sysdeps/mach/hurd/ttyname_r.c (ttyname_r): Change prototype to
1388 match POSIX.1c.
1389
1390 * sysdeps/stub/lockfile.c [! USE_IN_LIBIO]: Second definition of
1391 __internal_funlockfile (in terms of itself) should actually be a
1392 definition of __funlockfile.
1393
1394 * pwd/pwd.h: Get `size_t' from <stddef.h>.
1395 * grp/grp.h: Likewise.
1396 * shadow/shadow.h: Likewise.
1397
1398 * stdlib/atexit.c (__new_exitfn): Add missing semicolons after
1399 calls to __libc_lock_lock and __libc_lock_unlock.
1400 * stdlib/random.c (__srandom, __initstate, __setstate, __random):
1401 Likewise.
1402
1403 * hurd/hurdsig.c (write_corefile): Fix typo.
1404
1405 * sysdeps/mach/hurd/sigwait.c: New file.
1406
1407 Sat Nov 2 01:48:47 1996 Ulrich Drepper <drepper@cygnus.com>
1408
1409 * sysdeps/unix/sysv/linux/errnos.h: Move declaration of errno
1410 and __errno_location to correct position.
1411
1412 Thu Oct 31 22:51:25 1996 Ulrich Drepper <drepper@cygnus.com>
1413
1414 * Makefile (distribute): Add rellns-sh.
1415 * rellns-sh: New file.
1416 * Makerules (make-link): Use rellns-sh.
1417 * time/Makefile ($(installed-localtime-file)): Likewise.
1418
1419 Thu Oct 31 11:33:01 1996 Ulrich Drepper <drepper@cygnus.com>
1420
1421 * elf/Makefile ($objpfx)ldd) Substitute $(version) for @VERSION@.
1422 (distribute): Add ldd.bash.in.
1423 * elf/ldd.sh.in: Process --help and --version parameter.
1424 Correct comments.
1425 * elf/ldd.bash.in: New file.
1426
1427 * stdlib/stdlib.h: Add prototype for clearenv.
1428 * sysdeps/generic/setenv.c: Add implementation of clearenv.
1429 (setenv): Handle __environ == NULL correctly.
1430 * sysdeps/stub/setenv.c: Add stub definition for unsetenv and
1431 clearenv.
1432
1433 * sysdeps/generic/putenv.c: Correct layout to fit in libit.
1434 * sysdeps/generic/setenv.c: Likewise.
1435 * stdlib/strtol.h: Likewise.
1436
1437 * time/sys/time.h: Define __need_timeval and include <timebits.h>.
1438 Remove definition of struct timeval.
1439 * sysdeps/stub/timebits.h [__need_timeval]: Define struct timeval
1440 using `time_t' for members.
1441 * sysdeps/unix/sysv/linux/timebits.h [__need_timeval]: Likewise.
1442 * sysdeps/unix/sysv/linux/alpha/timebits.h: New file. Same
1443 as old Linux specific version.
1444
1445 Thu Oct 31 00:01:39 1996 Ulrich Drepper <drepper@cygnus.com>
1446
1447 * signal/Makefile (routines): Add sigwait.
1448 * signal/signal.h: Add prototype for sigwait.
1449 * sysdeps/posix/sigwait.c: New file. Implementation of sigwait
1450 function from POSIX.1c.
1451 * sysdeps/stub/sigwait.c: New file. Stub version of sigwait.
1452
1453 Wed Oct 30 02:01:17 1996 Richard Henderson <rth@tamu.edu>
1454
1455 * sunrpc/xdr_float.c (xdr_float): Handle sizeof(float)!=sizeof(long),
1456 but don't bother going farther than sizeof(float)==sizeof(int).
1457 (xdr_double): Handle little-endian machines! Handle sizeof(double)
1458 != 2*sizeof(long), though again don't bother with more than int.
1459
1460 Thu Oct 29 16:09:42 1996 Craig Metz <cmetz@inner.net>
1461
1462 * sysdeps/posix/getaddrinfo.c: Use buffer limits for inet_ntop
1463 function.
1464
1465 Tue Oct 29 12:37:22 1996 Ulrich Drepper <drepper@cygnus.com>
1466
1467 * Makerules: Create symbolic links for linking in $(libdir).
1468 (make-link): Use absolute path for destination if this is not in
1469 the same directory.
1470
1471 * elf/rtld.c (dl_main): When verifying don't check the name of
1472 the dynamic linker.
1473
1474 * shlib-versions: Change entries for Hurd specific libs from
1475 *-*-gnu* to *-*-gnu?* so that i586-pc-linux-gnu does not match
1476 these entries.
1477
1478 * assert/assert.h: Reformat copyright.
1479 Change reference to ANSI into reference to ISO C.
1480 * ctype/ctype.h: Likewise.
1481 * errno.h: Likewise.
1482 * limits.h: Likewise.
1483 * math/math.h: Likewise.
1484 * setjmp/setjmp.h: Likewise.
1485 * stdio/stdio.h: Likewise.
1486 * libio/stdio.h: Likewise.
1487 * stdlib/stdlib.h: Likewise.
1488 * string/string.h: Likewise.
1489 * time/time.h: Likewise.
1490
1491 * string/argz.h: Use __const in definitions.
1492
1493 * elf/dlfcn.h: Use __const and __P. Reformat copyright.
1494 * misc/err.h: Likewise.
1495
1496 * wctype/wctype.h (wctrans_t): Use __const instead of const.
1497
1498 * Makeconfig ($(common-objpfx)soversions.mk): Generate list of
1499 sonames for versioned libraries.
1500 * Makefile: Remove code to generate libc-version.h.
1501 Generate gnu/lib-names.h with info from soversions.mk.
1502 * features.h: Define __GLIBC__ and __GLIBC_MINOR__.
1503
1504 * dirent/tst-seekdir.c: Initialize save3.
1505 * grp/testgrp.c: Initialize my_group.
1506
1507 * grp/fgetgrent_r.c: Change interface to follow POSIX.1c.
1508 * grp/grp.h: Likewise.
1509 * nss/getXXbyYY.c: Likewise.
1510 * nss/getXXbyYY_r.c: Likewise.
1511 * nss/getXXent.c: Likewise.
1512 * nss/getXXent_r.c: Likewise.
1513 * pwd/fgetpwent_r.c: Likewise.
1514 * pwd/pwd.h: Likewise.
1515 * shadow/fgetspent_r.c: Likewise.
1516 * shadow/sgetspent.c: Likewise.
1517 * shadow/sgetspent_r.c: Likewise.
1518 * grp/fgetgrent.c: Adapt for change in interface of fgetgrent_r.
1519 * pwd/fgetpwent.c: Likewise, for fgetpwent_r.c.
1520 * shadow/fgetspent.c: Likewise, for fgetpwent_r.c.
1521 * resolv/netdb.h: Adapt prototypes for reentrant functions to
1522 follow POSIX.1c.
1523 * sunrpc/rpc/netdb.h: Likewise,
1524 * shadow/shadow.h: Likewise.
1525
1526 * inet/getnetgrent_r.c: Follow change in pwd/grp function interface.
1527
1528 * sysdeps/unix/getlogin_r.c: Return ERANGE when buffer is too small.
1529
1530 * inet/herrno.c: Don't define __h_errno, only h_errno otherwise the
1531 ELF aliasing creates strange situations.
1532 * sysdeps/unix/sysv/linux/errnos.H: Define __set_errno as inline
1533 function.
1534 * sysdeps/unix/sysv/linux/i386/sysdep.S: Don't define __errno.
1535 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1536
1537 * libio/libio.h: Don't declare _IO_flockfile and _IO_funlockfile
1538 weak.
1539
1540 * locale/programs/charmap.c: Add casts to prevent warnings.
1541 * locale/programs/linereader.h: Likewise.
1542 * locale/programs/ld-collate.c: Likewise.
1543 * locale/programs/stringtrans.c: Likewise.
1544 Change types for various variables to prevent warnings.
1545 * locale/programs/ld-ctype.c: Likewise.
1546 * locale/programs/linereader.h (lr_ungetc): Likewise.
1547 * locale/programs/charset.h (struct charset): Use `unsigned int'
1548 as type for width_default.
1549 * posix/regex.c: Change type of `this_reg' variables.
1550 * stdio-common/Makefile: Use -Wno-format for tstdiomisc.c.
1551 * stdio-common/bug5.c: De-ANSI-fy. Use correct types for
1552 variables.
1553 * stdio-common/printf_fp.c: Initialize to_shift.
1554 * stdio-common/test_rdwr.c: Add cast.
1555 * stdio-common/vfprintf.c: Add casts and use correct types to
1556 prevent warnings.
1557 * stdio-common/vfscanf.c: Initialize str and strptr.
1558 * sysdeps/libm-ieee754/e_jnf.c: Use correct types to prevent warnings.
1559 * sysdeps/libm-ieee754/e_pow.c: Likewise.
1560 * sysdeps/libm-ieee754/e_powf.c: Likewise.
1561 * sysdeps/libm-ieee754/e_rem_pio2f.c: Likewise.
1562 * time/test-tz.c: Likewise.
1563
1564 * manual/creature.texi: Document _REENTRANT and _THREAD_SAFE.
1565 * manual/libc.texinfo: Prevent makeinfo failure by avoiding
1566 libc.cp index. This must be fixed.
1567 * manual/nss.texi: Adapt for correct POSIX.1c interface of
1568 reentrant functions.
1569 * manual/users.texi: Document netgroup functions.
1570
1571 * po/es.po: Updated.
1572 * po/fr.po: Updated.
1573
1574 * posix/fnmatch.c: Change to match libit version.
1575
1576 * posix/unistd.h: Change prototype for ttyname_r to match POSIX.1c.
1577 * sysdep/posix/ttyname_r.c: Likewise.
1578
1579 * stdlib/atexit.h (__new_exitfn): Add internal locking.
1580 * stdlib/exit.c: De-ANSI-fy. Handle new ef_us value for flavor.
1581 * stdlib/exit.h: De-ANSI-fy. Define new ef_us value for flavor.
1582 * stdlib/random.c (__srandom): Add internal locking.
1583 (__initstate): Likewise.
1584 (__setstate): Likewise.
1585 (__random): Likewise.
1586
1587 Mon Oct 28 22:28:37 1996 NIIBE Yutaka <gniibe@mri.co.jp>
1588
1589 * sysdeps/generic/crypt-entry.c (crypt_r): Use __set_errno.
1590 (crypt): Likewise.
1591 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
1592 * sysdeps/generic/uname.c: Likewise.
1593 * sysdeps/posix/rename.c: Likewise.
1594 * sysdeps/stub/setrlimit.c: Likewise.
1595
1596 * nss/nss_db/db-netgrp.c (_nss_db_setnetgrent): Fix typo.
1597
1598 Sun Oct 27 11:12:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1599
1600 * locale/programs/ld-collate.c (collate_order_elem): Fix format
1601 string.
1602 (collate_element_to): Cast field width argument to `int' for
1603 format string.
1604 (collate_symbol): Likewise.
1605 (collate_order_elem): Likewise.
1606 (collate_weight_bsymbol): Likewise.
1607 (collate_simple_weight): Likewise.
1608
1609 * locale/programs/ld-time.c (STRARR_ELEM): Fix format string.
1610
1611 * locale/programs/ld-ctype.c (ctype_class_newP): Add missing
1612 argument for format string.
1613 (ctype_map_newP): Likewise.
1614 (set_class_defaults): Fix format string.
1615
1616 * locale/programs/localedef.c (construct_output_path): Putting an
1617 explicit \0 into the format string does not work, use %c.
1618
1619 Sat Oct 26 20:38:36 1996 Richard Henderson <rth@tamu.edu>
1620
1621 * Makerules: Install all shared libraries in $(slibdir).
1622
1623 * login/Makefile: Build libutil.so in others pass after
1624 libc.so is created.
1625
1626 * misc/mntent.h: Include <paths.h> for _PATH_MNTTAB & _PATH_MOUNTED.
1627
1628 * string/stratcliff.c: Allocate 3 pages instead of one, then use
1629 mprotect so that we know that the adjacent pages are inaccessible.
1630
1631 * resource/sys/resource.h: Move all structures and enums to ...
1632 * sysdeps/generic/resourcebits.h: ... here ...
1633 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: ... and here.
1634 * sysdeps/unix/sysv/linux/alpha/resourcebits.h: Remove.
1635 * sysdeps/unix/sysv/linux/i386/resourcebits.h: Remove.
1636 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Remove.
1637 * sysdeps/unix/sysv/linux/mips/resourcebits.h: Remove.
1638 * sysdeps/unix/sysv/linux/resourcebits.h: New file. Use kernel
1639 header for RLIMIT_* definitions. The members of struct rlimit
1640 are longs.
1641
1642
1643 Thu Oct 24 17:43:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1644
1645 * MakeTAGS (sysdep-dirs): Fix typo.
1646
1647 Thu Oct 24 17:32:57 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1648
1649 * hurd/hurdsig.c (write_corefile): If we can't create the core
1650 file, still call crash_dump_task with a null FILE arg. Maybe it
1651 won't actually need the file.
1652
1653 Wed Oct 23 03:45:22 1996 Ulrich Drepper <drepper@cygnus.com>
1654
1655 * Makefile (headers): Don't mention libc-version.h.
1656 (install-others): ...but here.
1657
1658 Tue Oct 22 21:38:21 1996 Ulrich Drepper <drepper@cygnus.com>
1659
1660 * version.h: Bump version number to 1.97.
1661
1662 * features.h: Undo change of Sun Oct 20 22:19:58 1996.
1663 Include libc-version.h.
1664 * features.h.in: Removed.
1665 * Makefile: Change rules to generate libc-version.h instead of
1666 features.h.
1667
1668 * malloc/free.c: Add cast to prevent warning.
1669 * malloc/malloc-walk.c: Likewise.
1670 * malloc/ralloc.c: Likewise.
1671 * malloc/realloc.c: Likewise.
1672
1673 * grp/fgetgrent_r.c: Accept empty numeric field if name start with +
1674 or -.
1675 * pwd/fgetpwent_r.c: Likewise.
1676 * nss/nss_files/files-grp.c: Don't accept entries with names starting
1677 with + or - in lookup functions.
1678 * nss/nss_files/files-pwd.c: Likewise.
1679
1680 * Makerules: Call autolock.sh using $(SHELL).
1681
1682 Mon Oct 21 22:52:16 1996 NIIBE Yutaka <gniibe@mri.co.jp>
1683
1684 * elf/dl-minimal.c: Don't define `dgettext' replacement but
1685 `dcgettext'. When optimizing the macros in <libintl.h> define
1686 `dgettext' as a macro and so this function will never be called.
1687
1688 Mon Oct 21 15:41:59 1996 Ulrich Drepper <drepper@cygnus.com>
1689
1690 * sysdeps/i386/sysdep.h: Define END to use .size when available.
1691 (PSEUDO_END): Use END.
1692 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_END to
1693 define SYSCALL_ERROR_HANDLER before using END.
1694 (SYSCALL_ERROR_HANDLER): Don't use .size directive.
1695 * sysdeps/unix/sysv/linux/clone.S: Don't use SYSCALL_ERROR_HANDLER
1696 and .size directive but PSEUDO_END.
1697 * sysdeps/unix/sysv/linux/mmap.S: Likewise.
1698 * sysdeps/unix/sysv/linux/socket.S: Likewise.
1699 * sysdeps/unix/sysv/linux/syscall.S: Likewise.
1700 * sysdeps/unix/sysv/linux/sysdep.S (__errno_location): Use END.
1701 * sysdeps/unix/i386/sysdep.S (__syscall_error): Likewise.
1702 * sysdeps/i386/__longjmp.S: Use END instead of PSEUDO_END.
1703 * sysdeps/i386/bsd-_setjmp.S: Likewise.
1704 * sysdeps/i386/bsd-setjmp.S: Likewise.
1705 * sysdeps/i386/memchr.S: Likewise.
1706 * sysdeps/i386/memcmp.S: Likewise.
1707 * sysdeps/i386/setjmp.S: Likewise.
1708 * sysdeps/i386/stpcpy.S: Likewise.
1709 * sysdeps/i386/stpncpy.S: Likewise.
1710 * sysdeps/i386/strchr.S: Likewise.
1711 * sysdeps/i386/strcspn.S: Likewise.
1712 * sysdeps/i386/strpbrk.S: Likewise.
1713 * sysdeps/i386/strrchr.S: Likewise.
1714 * sysdeps/i386/strspn.S: Likewise.
1715 * sysdeps/i386/strtok.S: Likewise.
1716 * sysdeps/i386/i486/strcat.S: Likewise.
1717 * sysdeps/i386/i486/strlen.S: Likewise.
1718 * sysdeps/i386/i586/memset.S: Likewise.
1719 * sysdeps/i386/i586/strchr.S: Likewise.
1720 * sysdeps/i386/i586/strlen.S: Likewise.
1721
1722 * sysdeps/i386/strlen.c: De-ANSI-fy.
1723
1724 * sysdeps/generic/_strerror.c: Undo change of Mon Oct 21 01:32:36 1996.
1725 Define dgettext if not defined to use dcgettext.
1726 * sysdeps/mach/_strerror.c: Likewise.
1727
1728 * sysdeps/unix/sysv/i386/time.S: Add PSEUDO_END to get
1729 __syscall_error defined.
1730
1731 Sat Oct 19 12:27:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1732
1733 * sysdeps/unix/sysv/linux/m68k/mmap.S: Fix braino: CALL_MCOUNT is
1734 already included in the ENTRY macro. Remove SYSCALL_ERROR_HANDLER
1735 now provided by PSEUDO_END.
1736 * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
1737 * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
1738 * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
1739 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1740 * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise. Use JUMPTARGET.
1741
1742 * sysdeps/generic/sysdep.h (END): Provide default empty
1743 definition.
1744 * sysdeps/unix/sysv/linux/m68k/sysdep.h (END): Redefine to use
1745 size directive.
1746 (PSEUDO): Don't include SYSCALL_ERROR_HANDLER.
1747 (PSEUDO_END): Include it here instead.
1748 (SYSCALL_ERROR_HANDLER): Remove type directive.
1749 * sysdeps/m68k/bsd-_setjmp.S: Use END, not PSEUDO_END.
1750 * sysdeps/m68k/bsd-setjmp.S: Likewise.
1751 * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
1752 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1753 (__syscall_error): Can't use ENTRY macro.
1754
1755 Sat Oct 19 12:13:24 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1756
1757 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, setresuid):
1758 Set caller to EXTRA.
1759
1760 Mon Oct 21 01:32:36 1996 Ulrich Drepper <drepper@cygnus.com>
1761
1762 * elf/rtld.c (dl_main): Move initialization of `_dl_starting_up'
1763 to beginning of function. So libc functions can use this flag.
1764 * sysdeps/generic/_strerror.c: Don't use dgettext for message
1765 translation while `_dl_starting_up' is nonzero.
1766
1767 * elf/dl-deps.c (_dl_map_object_deps): Add new parameter
1768 TRACE_MODE.
1769 Pass parameter value to _dl_map_object.
1770 * elf/dl-load (_dl_map_object): Add new parameter TRACE_MODE.
1771 If TRACE_MODE is nonzero don#t signal error when shared lib
1772 is not found. Instead create fake entry for link map.
1773 * dl-open.c (dl-open): Pass 0 for new argument to _dl_map_object.
1774 * dl-runtime.c (_dl_object_relocation_scope): Pass 0 for new
1775 argument to _dl_map_object_deps.
1776 * elf/link.h: Add new parameter TRACE_MODE for prototypes of
1777 _dl_map_object and _dl_map_object_deps.
1778 * elf/rtld.c (dl_main): Pass 0 for new argument to _dl_map_object
1779 and _dl_map_object_deps.
1780 When mode == trace test for l_opencount == 0 before printing
1781 link information since this means the lib is not found.
1782
1783 Sun Oct 20 22:19:58 1996 Ulrich Drepper <drepper@cygnus.com>
1784
1785 * rpm/template: Add INSTALL to %doc line to follow copyright
1786 restrictions which demand the distribution of the copyright
1787 messages in INSTALL even for binary distributions.
1788
1789 * features.h: Rename to...
1790 * features.h.in: ...this. Change value of __GNU_LIBRARY__ to 2
1791 (for major version numberof package) and add __GNU_LIBRARY_MINOR__
1792 and __GNU_LIBRARY_INTERFACE__.
1793 * Makefile ($(objpfx)features.h): New rule to generate features.h
1794 from template features.h.in.
1795
1796 * sysdeps/unix/sysv/linux/getsysstats.c: Include <paths.h>.
1797
1798 Sun Oct 20 00:00:13 1996 Richard Henderson <rth@tamu.edu>
1799
1800 * locale/programs/linereader.c (lr_open): Cast away const before free.
1801 (lr_close): Likewise.
1802
1803 * misc/mntent.h: Move _PATH_MNTTAB & _PATH_MOUNTED to paths.h.
1804 * misc/paths.h: Move to ...
1805 * sysdeps/generic/paths.h: ... here.
1806 * paths.h: Remove.
1807 * sysdeps/unix/sysv/linux/paths.h: New file. Correct _PATH_STDPATH,
1808 _PATH_MAILDIR, _PATH_MOUNTED, _PATH_UNIX to comply with the fsstd.
1809
1810 * nss/nss_db/db-netgrp.h: Include <string.h>.
1811
1812 * stdio-common/psignal.c: De-ansidecl-ify. Allow NULL entries in
1813 _sys_siglist, which result in the "Unknown signal" message.
1814 * string/strsignal.c: Likewise.
1815 * sysdeps/generic/Makefile [stdio-common]: If $(inhibit-siglist),
1816 don't auto-generate siglist.c.
1817 * sysdeps/unix/sysv/linux/Makefile [stdio-common]: Set inhibit-siglist.
1818 * sysdeps/unix/sysv/linux/siglist.c: New file. Not needing to
1819 autogenerate makes bootstrapping and cross-compiling much easier.
1820 * sysdeps/unix/sysv/linux/siglist.h: New file.
1821
1822 * stdlib/longlong.h: Prototype __udiv_qrnnd.
1823
1824 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_headers): Remove
1825 sys/io.h. It is already added in .../linux/Makefile.
1826
1827 * sysdeps/unix/sysv/linux/alpha/sigaction.h: New file.
1828 * sysdeps/unix/sysv/linux/alpha/signum.h: New file.
1829 * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
1830
1831 Sun Oct 20 17:17:12 1996 Ulrich Drepper <drepper@cygnus.com>
1832
1833 Add implementation of POSIX.1g function getaddrinfo.
1834 * posix/Makefile (routines): Add getaddrinfo.
1835 * sysdeps/posix/getaddrinfo.c.: New file. Add implementation by
1836 Craig Metz.
1837 * sysdeps/stub/getaddrinfo.c: New file. Stub implementation.
1838 * resolv/netdb.h [__USE_POSIX]: Add getaddrinfo prototypes and
1839 related constants and structures.
1840
1841 Sun Oct 20 13:02:34 1996 Ulrich Drepper <drepper@cygnus.com>
1842
1843 * sysdeps/stub/lockfile.c: Rename functions to __internal_*.
1844 Make all old names weak alises so that they can be replaced
1845 by libpthread.
1846
1847 * stdio-common/vfprintf.c: Only declare __flockfile and __funlockfile
1848 for !USE_IN_LIBIO.
1849 [USE_IN_LIBIO]: Call _IO_flockfile and _IO_funlockfile instead of
1850 __flockfile and __funlockfile.
1851 Reported by NIIBE Yutaka.
1852
1853 * crypt/md5.c: Change form of copyright message according to GNITS
1854 rules.
1855 Add warning for requirement on RESBUF parameter for `md5_finish_ctx'
1856 and `md5_read_ctx' function.
1857 * crypt/md5.h: Likewise.
1858
1859 * grp/testgrp.c: Don't use perror for error cases since getgr* and
1860 getpw* functions do not return usable error codes.
1861
1862 Sun Oct 19 23:05:32 1996 Jim Meyering <meyering@asic.sc.ti.com>
1863
1864 * crypt/md5.c (md5_process_bytes): Used casting for pointer
1865 arithmetic.
1866
1867 Sun Oct 20 03:53:23 1996 Ulrich Drepper <drepper@cygnus.com>
1868
1869 * sunrpc/Makefile (others): Remove portmap here, too.
1870
1871 Sat Oct 19 17:42:24 1996 Ulrich Drepper <drepper@cygnus.com>
1872
1873 * intl/locale.alias: Language for entry `czech' is `cs'.
1874
1875 Fri Oct 17 13:20:35 1996 Thorsten Kukuk <kukuk@weber.uni-paderborn.de>
1876
1877 * sunrpc/etc.rpc: Update from ti-rpcsvc 2.3.
1878
1879 Fri Oct 18 22:56:45 1996 Ulrich Drepper <drepper@cygnus.com>
1880
1881 * sunrpc/Makefile (install-sbin): Remove portmap. This version is
1882 buggy and more competent people work on a usable version which is
1883 distributed separately.
1884 * sunrpc/portmap.c: Removed.
1885 Suggested by Thorsten Kukuk.
1886
1887 Fri Oct 18 12:17:09 1996 Enrique Melero <justine@iprolink.ch>
1888
1889 * sysdeps/libm-ieee754/s_finitel.c: Change function name to
1890 `finitel'.
1891
1892 Fri Oct 18 00:01:10 1996 Ulrich Drepper <drepper@cygnus.com>
1893
1894 * string/Makefile (tests): Add stratcliff.
1895 * string/stratcliff.c: New file. Test for string function at
1896 the edge of the usable memory.
1897
1898 Thu Oct 17 22:10:19 1996 Ulrich Drepper <drepper@cygnus.com>
1899
1900 * Makerules ($(libdir)/libc.so): Fix typo.
1901
1902 * elf/ldd.sh.in: Test whether given file really exist and give
1903 better message if it is not available.
1904
1905 Thu Oct 17 04:25:38 1996 Ulrich Drepper <drepper@cygnus.com>
1906
1907 * sysdeps/unix/sysv/linux/sys/shm_buf.h: Add definition for
1908 SHM_R and SHM_W.
1909
1910 Thu Oct 17 01:55:34 1996 Ulrich Drepper <drepper@cygnus.com>
1911
1912 * sunrpc/Makefile ($(objpfx)rpcsvc/%.h, $(objpfx)x%.c): Write
1913 output to $@T and move to $@ later since the new rpcgen will not
1914 overwrite existing files.
1915
1916 * po/Makefile (libc.pot): Fix typo.
1917
1918 Sun Oct 13 20:52:07 1996 Thorsten Kukuk <kukuk@weber.uni-paderborn.de>
1919
1920 Update rpcgen program to TI-rpc code.
1921 * sunrpc/Makefile (rpcgen-objs): Add rpc_tblout.o and rpc_sample.o.
1922 (distribute): Add proto.h.
1923 * sunrpc/proto.h: New file. Prototypes for all the RPC functions.
1924 * sunrpc/rpc_clntout.c: Change to allow generation of ISO C code.
1925 * sunrpc/rpc_cout.c: Likewise.
1926 * sunrpc/rpc_hout.c: Likewise.
1927 * sunrpc/rpc_main.c: Likewise.
1928 * sunrpc/rpc_parse.c: Likewise.
1929 * sunrpc/rpc_parse.h: Likewise.
1930 * sunrpc/rpc_scan.c: Likewise.
1931 * sunrpc/rpc_scan.h: Likewise.
1932 * sunrpc/rpc_svcout.c: Likewise.
1933 * sunrpc/rpc_util.c: Likewise.
1934 * sunrpc/rpc_util.h: Likewise.
1935
1936 * sunrpc/rpc_tblout.c: New file.
1937 * sunrpc/rpc_sample.c: Likewise.
1938
1939 Thu Oct 17 00:26:20 1996 NIIBE Yutaka <gniibe@mri.co.jp>
1940
1941 * sysdeps/unix/opendir.c: Add semicolon for consistency.
1942
1943 Wed Oct 16 12:26:53 1996 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
1944
1945 * locale/programs/localedef.c (main): Test with -1 to find out
1946 whether read failed.
1947
1948 Wed Oct 16 14:54:59 1996 Ulrich Drepper <drepper@cygnus.com>
1949
1950 * sysdeps/unix/sysv/linux/i386/clone.S: Use JUMPTARGET and
1951 PSEUDO_END macro.
1952
1953 Tue Oct 15 21:27:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1954
1955 * sysdeps/unix/sysv/linux/m68k/sigcontext.h: Removed.
1956
1957 Tue Oct 15 15:52:29 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1958
1959 * sysdeps/unix/sysv/linux/m68k/clone.S: Add CALL_MCOUNT.
1960 * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
1961 * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
1962 * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
1963 * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
1964 Likewise.
1965 * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
1966 Correct generation of system call.
1967
1968 Tue Oct 15 15:13:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1969
1970 * Makerules (sysd-Makefile): Fix command so that it works in the
1971 subdirectories.
1972 (BUILD_CFLAGS): Change back using $(..) instead of
1973 $(common-objpfx), the latter fails in the toplevel directory when
1974 $(objdir) is relative.
1975 (common-objdir-compile): Run compiler in $(objdir).
1976 * sysdeps/posix/Makefile (mk-stdiolim): Likewise.
1977
1978 Tue Oct 15 23:39:48 1996 Ulrich Drepper <drepper@cygnus.com>
1979
1980 * string/string.h [__USE_SVID]: Add prototype for swab.
1981 * time/sys/time.h [__USE_BSD]: Add prototype for ualarm.
1982 Reported by Andreas Jaeger.
1983
1984 The available nlist implementation is not generally usable.
1985 Especially on the currently supported ELF systems the nlist
1986 function comes with the libelf.
1987 * misc/Makefile (headers): Remove nlist.h.
1988 (routines): Remove nlist.
1989
1990 * Makefile ($(objpfx)version-info.h): Include information about
1991 system the libc is built on in version-info.h file.
1992
1993 * po/Makefile (distribute): Add header.pot.
1994
1995 Tue Oct 15 16:34:15 1996 Andreas Jaeger <aj@arthur.pfalz.de>
1996
1997 * sysdeps/unix/sysv/linux/sleep.c: Include file with prototype.
1998 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
1999 * misc/error.c: Likewise.
2000
2001 Tue Oct 15 22:41:27 1996 Ulrich Drepper <drepper@cygnus.com>
2002
2003 * sysdeps/unix/sysv/linux/syscalls.list: Add {get,set}resuid.
2004
2005 Tue Oct 15 08:06:02 1996 Andreas Jaeger <aj@arthur.pfalz.de>
2006
2007 * crypt/Makefile (rpath-link): Extend search path to current directory.
2008
2009 Fri Oct 11 09:18:06 1996 Sven Verdoolaege <skimo@breughel.ufsia.ac.be>
2010
2011 * sysdeps/i386/i586/strlen.S: Correct handling of prolog for
2012 aligning pointer.
2013
2014 Tue Oct 15 02:13:21 1996 Ulrich Drepper <drepper@cygnus.com>
2015
2016 * stdio-common/vfprintf.c: Don't declare __flockfile as weak.
2017
2018 * crypt/md5-crypt.c (md5_crypt_r): Add cast to prevent warning.
2019
2020 Tue Oct 15 14:37:40 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2021
2022 * sysdeps/mach/hurd/fcntlbits.h (O_HURD): Add O_EXLOCK and
2023 O_SHLOCK.
2024
2025 Tue Oct 15 14:37:40 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2026
2027 * sysdeps/mach/hurd/fcntlbits.h (O_HURD): Add O_EXLOCK and
2028 O_SHLOCK.
2029
2030 Sun Oct 13 19:16:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2031
2032 * sysdeps/unix/sysv/linux/m68k/sysdep.h (POUND): Macro removed,
2033 replaced by `&'.
2034 (PSEUDO_END): Provide definition to use .size directive.
2035 (PSEUDO): Don't interpret negative return values less than -128 as
2036 syscall error.
2037 * sysdeps/unix/sysv/linux/m68k/syscall.S (syscall): Likewise.
2038
2039 * sysdeps/m68k/bsd-_setjmp.S: Use PSEUDO_END macro to provide
2040 .size directive.
2041 * sysdeps/m68k/bsd-setjmp.S: Likewise.
2042 * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
2043 * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
2044 * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
2045 * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
2046 * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
2047 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Use PSEUDO_END instead of
2048 explicit .size directive.
2049
2050 Sun Oct 13 22:52:56 1996 Ulrich Drepper <drepper@cygnus.com>
2051
2052 * shlib-versions: Add version number/name for ld.so.
2053 * Makeconfig: Move definition of rtld-installed-name after
2054 inclusion of soversions.mk.
2055 Don't add . before version number from shlib-versions file when
2056 when name does not start with digit. This is needed for ld.so.
2057
2058 Sat Oct 12 20:31:58 1996 Richard Henderson <rth@tamu.edu>
2059
2060 * libio/iogets.c: Warn when gets is used.
2061 * stdio/gets.c: Strengthen the warning.
2062
2063 Sat Oct 12 23:10:43 1996 Ulrich Drepper <drepper@cygnus.com>
2064
2065 * libio/Makefile [_LIBC_REENTRANT] (routines): Add peekc.
2066 * libio/libio.h: Add prototypes for _IO_getc, _IO_putc, _IO_feof,
2067 _IO_ferror, _IO_peekc_locked, and _IO_ftrylockfile.
2068 Remove prototypes for _IO_getc_locked and _IO_putc_locked.
2069 [_IO_MTSAFE_IO]: Add weak aliases for _IO_flockfile and
2070 _IO_funlockfile.
2071 [! _IO_MTSAFE_IO]: Define _IO_ftrylockfile as empty.
2072 Define _IO_getc, _IO_peekc, _IO_putc, _IO_feof, _IO_ferror to
2073 appropriate values according to __USE_REENTRANT.
2074 * libio/stdio.h: Add prototype for ftrylockfile.
2075 [!_LIBC]: Define getc_locked, getchar_locked, putchar_locked,
2076 getc, getchar, putc, and putchar using _IO_* names.
2077 * libio/feof.c: Rename to _IO_feof and make feof weak alias.
2078 * libio/ferror.c: Rename to _IO_ferror and make ferror weak alias.
2079 * libio/getc.c: Rename to _IO_getc and make getc weak alias.
2080 * libio/putc.c: Rename to _IO_putc and make putc weak alias.
2081 * libio/putc_u.c: Don't define alias _IO_putc_unlocked.
2082 * libio/peekc.c: New file.
2083
2084 * stdio-common/vfprintf.c (vfprintf): Unconditionally call
2085 __flockfile.
2086
2087 * sysdeps/stub/locfile.c [USE_IN_LIBIO]: Also define _IO_* names.
2088
2089 * crypt/Makefile (tests): Add md5test and md5c-test.
2090 * crypt/md5-crypt.c: Correct various error. Now md5_process_bytes
2091 is called, the buffer limit is honoured and a loop in a inner
2092 loop is corrected.
2093 * crypt/md5.h (struct md5_ctx): Add new fields.
2094 Add prototypes for new functions.
2095 * crypt/md5.c (md5_init_ctx): Initialize new fields.
2096 (md5_finish_ctx): New function. Like md5_read_ctx but before
2097 perform correct finalization.
2098 (md5_process_bytes): New function. Similar to md5_proces_block,
2099 but does not require input size to be multiple of 64.
2100 (md5_stream): Rewrite using md5_process_bytes and md5_finish_ctx.
2101 (md5_buffer): Likewise.
2102 (md5_process_block): Count number of bytes.
2103 * crypt/md5test.c: New file. Test program for MD5 functions.
2104 * crypt/md5c-test.c: New file: Test program for MD5 crypt
2105 function.
2106
2107 * po/fr.po: Update.
2108
2109 * time/strptime.c: Recognize %s, %u, %g, and %G format.
2110
2111 * posix/getopt.c: Add some more casts and initializations to
2112 prevent warnings.
2113
2114 Sat Oct 12 16:15:29 1996 Ulrich Drepper <drepper@cygnus.com>
2115
2116 * sysdeps/unix/sysv/linux/speed.c (speeds): Removed. We provide
2117 an extra function to provide this functionality.
2118 (cfgetospeed): Simply return masked value.
2119 (cfsetospeed): Don't use speeds array and so we can simply test
2120 the value of SPEED for illegal values.
2121 * termios/cfsetspeed.c: Rewrite. We convert here between the
2122 real values and the B* constants.
2123 Changes suggested by Uwe Ohse <uwe@tirka.gun.de>.
2124
2125 Fri Oct 11 21:45:34 1996 Andreas Jaeger <aj@arthur.pfalz.de>
2126
2127 * locale/programs/xstrdup.c: Define prototypes.
2128 * locale/programs/xmalloc.c: Likewise.
2129
2130 * stdio-common/xbug.c (main): Change definition to avoid warning.
2131
2132 Fri Oct 11 23:36:31 1996 Miles Bader <miles@gnu.ai.mit.edu>
2133
2134 * db/hash/hash.c (__hash_open): Correctly test for a read-write db.
2135
2136 Fri Oct 11 19:13:34 1996 Ulrich Drepper <drepper@cygnus.com>
2137
2138 * locale/Makefile (CPPFLAGS): Set CHARMAP_PATH to
2139 "$(i18ndir)/charmaps".
2140
2141 Fri Oct 11 22:12:41 1996 NIIBE Yutaka <gniibe@mri.co.jp>
2142
2143 * sysdeps/unix/sysv/linux/sys/procfs.h: Include <asm/user.h>
2144 to get definition of FPU description struct.
2145
2146 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (subdir_headers):
2147 Add net/if.h, net/if_ppp.h, net/ppp-comp.h, net/ppp_defs.h,
2148 net/if_arp.h, and net/route.h.
2149 * sysdeps/unix/sysv/linux/net/if_arp.h: New file.
2150 * sysdeps/unix/sysv/linux/net/route.h: New file.
2151
2152 Fri Oct 11 14:49:13 1996 Ulrich Drepper <drepper@cygnus.com>
2153
2154 * sysdeps/stub/readdir_r.c: New file. We need a stub version.
2155 * sysdeps/stub/e_acosl.c: Likewise.
2156 * sysdeps/stub/e_asinl.c: Likewise.
2157 * sysdeps/stub/e_atan2l.c: Likewise.
2158 * sysdeps/stub/e_expl.c: Likewise.
2159 * sysdeps/stub/e_fmodl.c: Likewise.
2160 * sysdeps/stub/e_log10l.c: Likewise.
2161 * sysdeps/stub/e_logl.c: Likewise.
2162 * sysdeps/stub/e_sqrtl.c: Likewise.
2163 * sysdeps/stub/s_atanl.c: Likewise.
2164 * sysdeps/stub/s_log1pl.c: Likewise.
2165
2166 * Makefile (distribute): Add nsswitch.h and netgroup.h.
2167
2168 * nss/Makefile (generated): db-netgrp.c is not generated.
2169
2170 * sysdeps/alpha/Dist: Add stxcpy.S and stxncpy.S.
2171
2172 * Make-dist (+out): Add $(dont_distribute).
2173
2174 Fri Oct 11 00:27:18 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2175
2176 * stdio-common/Makefile (routines): Add tmpnam_r.
2177
2178 Fri Oct 11 05:32:51 1996 Ulrich Drepper <drepper@cygnus.com>
2179
2180 * version.h: Bump version to 1.96.
2181
2182 Fri Oct 11 18:13:47 1996 Andreas Jaeger <aj@arthur.pfalz.de>
2183
2184 * stdio-common/tst-printf.c: Some more cleanups.
2185
2186 Fri Oct 11 02:48:02 1996 Ulrich Drepper <drepper@cygnus.com>
2187
2188 * resolv/arpa/nameser.h: Update from bind-4.9.5-T6B.
2189 * resolv/resolv.h: Likewise.
2190 * resolv/gethnamaddr.c: Likewise.
2191 * resolv/res_comp.c: Likewise.
2192 * resolv/res_debug.c: Likewise.
2193 * resolv/res_init.c: Likewise.
2194 * resolv/res_send.c: Likewise.
2195 * resolv/Banner: Update version number.
2196
2197 * nss/nss_dns/dns-host.c: Update according to change in
2198 resolv/gethnamaddr.c.
2199
2200 Fri Oct 10 20:52:28 1996 Ralph Loader <loader@maths.ox.ac.uk>
2201
2202 * crypt/md5.c (md5_stream): When reading the block in several
2203 pieces append to instead of replace previously read data.
2204
2205 Thu Oct 10 15:53:17 1996 Richard Henderson <rth@tamu.edu>
2206
2207 * sysdeps/alpha/stxcpy.S ($unaligned): In single word copy, correct
2208 last-byte-written bit for source word misalignment.
2209 * sysdeps/alpha/strchr.c: Removed. There is now an assembler
2210 version.
2211
2212 Thu Oct 10 17:17:23 1996 Ulrich Drepper <drepper@cygnus.com>
2213
2214 * sunrpc/Makefile (rpcsvc): Remove yp.x. The corrected version
2215 comes with glibc-nis.
2216 * sunrpc/rpcsvc/yp.x: Removed.
2217
2218 * nss/nss_files/files-netgr.c (_nss_netgroup_parseline): Test
2219 for *CURSOR to be NULL and dump a core if yes.
2220
2221 Thu Oct 9 20:09:53 1996 Matthew Jacob <mjacob@feral.com>
2222
2223 * sysdeps/unix/sysv/linux/alpha/brk.S: Define _ERRNO_H before
2224 including <errnos.h> to get error numbers.
2225
2226 Thu Oct 10 14:00:01 1996 Ulrich Drepper <drepper@cygnus.com>
2227
2228 * sysdeps/unix/sysv/linux/i386/sigcontext.h: Moved file...
2229 * sysdeps/unix/sysv/linux/sigcontext.h: ...to here. So the
2230 Alpha people find a correct file.
2231 * sysdeps/libm-ieee754/w_cabs.c: We cannot make __cabsl simply
2232 an alias of __cabs since the structures have different names.
2233 * sysdeps/libm-ieee754/w_log10.c: Fix typo in weak_alias.
2234 Reported by Matthew Jacob <mjacob@feral.com>.
2235
2236 Thu Oct 10 17:25:55 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2237
2238 * Makerules (sysd-Makefile): Look for sysdep Makefiles using $(..)
2239 so that it still works right if we happen to get called in a
2240 subdir it still works.
2241
2242 * sysdeps/mach/hurd/fcntlbits.h (O_SHLOCK, O_EXLOCK): Redesignate
2243 as file name translation flags.
2244 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Don't pretend
2245 to do anything for O_SHLOCK or O_EXLOCK. Those are now file name
2246 translation flags.
2247
2248 * Makerules ($(libdir)/libc.so): Mention the actual libc.a archive
2249 name (changed according to libc-name) to avoid getting the
2250 Hurd-ish linker script for libc.a when we only want the archive
2251 library.
2252
2253 Wed Oct 9 00:24:52 1996 Jim Meyering <meyering@asic.sc.ti.com>
2254
2255 * time/strftime.c: Allow old K&R compilers compile this file.
2256
2257 Wed Oct 9 12:03:56 1996 Ulrich Drepper <drepper@cygnus.com>
2258
2259 * posix/execlp.c: Add first argument parameter to be compliant
2260 with POSIX. Rearrange body to start vararg counter after
2261 this new argument.
2262
2263 Wed Oct 9 04:34:50 1996 Ulrich Drepper <drepper@cygnus.com>
2264
2265 * sysdeps/unix/sysv/linux/sys/procfs.h: Rewrite. We cannot use
2266 simply a wrapper around the <linux/elfcore.h> file since the
2267 kernel header is not clean enough. We provide the definitions
2268 in this file instead.
2269
2270 Wed Oct 9 01:43:18 1996 Ulrich Drepper <drepper@cygnus.com>
2271
2272 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Avoid
2273 get?id calls by using __libc_enable_secure.
2274
2275 Wed Oct 9 00:30:33 1996 Ulrich Drepper <drepper@cygnus.com>
2276
2277 * inet/getnetgrent_r.c: Correct netgroup implementation. A
2278 specification of a netgroup can also name another netgroup.
2279 * nss/nss_files/files-netgrp.c: Likewise.
2280 * inet/netgroup.h: Add fields to hold additional information.
2281
2282 Tue Oct 8 21:51:14 1996 Arnold D. Robbins <arnold@skeeve.atl.ga.us>
2283
2284 * posix/getopt.c: Implement POSIX -W option handling. When the
2285 option string contains "W;" -W foo is handled like --foo.
2286
2287 Tue Oct 8 12:27:26 1996 Ulrich Drepper <drepper@cygnus.com>
2288
2289 * sysdeps/unix/sysv/linux/i386/clone.S: Define _ERRNO_H before
2290 inclusing <errnos.h> so we really get error symbols defined.
2291 * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
2292 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2293
2294 * sunrpc/auth_unix.c (authunix_create_default): Don't use fixed
2295 size array for getgroups call. Instead get maximal number via
2296 sysconf. But discard list to NGRPS elements before calling XDR
2297 function since Sun's code cannot handle longer lists.
2298 Based on a patch by Thorsten Kukuk <kukuk@weber.uni-paderborn.de>.
2299
2300 * sysdeps/stub/e_j0l.c: Define y0l as well.
2301 * sysdeps/stub/e_j1l.c: Define y1l as well.
2302 * sysdeps/stub/e_jnl.c: Define ynl as well.
2303
2304 * posix/unistd.h: Correct prototype for execlp.
2305
2306 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_NO_TRUNC.
2307
2308 Mon Oct 7 22:18:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2309
2310 * Makeconfig (sysdep-library-path): New variable.
2311 (built-program-cmd): Use it here to properly build a colon
2312 separated library path.
2313
2314 Mon Oct 7 22:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2315
2316 * crypt/md5-crypt.c (md5_crypt_r): Add missing parens around &
2317 within comparison. Fix comments.
2318 (md5_crypt): Fix comment.
2319
2320 Tue Oct 8 05:10:49 1996 Ulrich Drepper <drepper@cygnus.com>
2321
2322 * sysdeps/unix/sysv/linux/errnos.h: Only include <linux/errnos.h>
2323 when _ERRNO_H is defined.
2324 [!_ERRNO_H && __need_Emath]: Define value for EDOM and ERANGE.
2325 Should there ever be a Linux port where the numeric values are
2326 not 33 and 34 this file must change.
2327
2328 Mon Oct 7 13:54:04 1996 Ulrich Drepper <drepper@cygnus.com>
2329
2330 * libio/iofgets.c (_IO_fgets): Use _IO_flockfile instead of
2331 __flockfile.
2332
2333 Mon Oct 7 11:01:45 1996 Andreas Jaeger <aj@arthur.pfalz.de>
2334
2335 * string/tst-strlen.c (main): Provide prototype.
2336 * malloc/mallocbug.c: Likewise.
2337 * io/test-utime.c: Likewise.
2338
2339 * sysdeps/generic/crypt-entry.c: Correct typo.
2340
2341 Mon Oct 7 13:42:20 1996 Ulrich Drepper <drepper@cygnus.com>
2342
2343 * elf/dl-open.c (_dl_open): Check against _dl_sysdep_start to
2344 test for libc.a. Checking _DYNAMIC is of no worth here.
2345 Suggested by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
2346
2347 * nss/nss_files/files-parse.c: Define LOOKUP_NAME even if
2348 EXTERN_PARSER is defined.
2349
2350 Sat Oct 5 17:05:36 1996 Andreas Jaeger <aj@arthur.pfalz.de>
2351
2352 * Rules (dep-dummy-lib): Correct prototype for __dummy__.
2353
2354 * crypt/md5-crypt.c: Fix typos in comments.
2355
2356 * gmon/gmon.c: Provide prototypes.
2357 * db/makedb.c: Likewise.
2358 * locale/programs/xmalloc.c: Likewise.
2359 * stdio-common/bug11.c (main): Likewise.
2360 * stdio-common/bug7.c (main): Likewise.
2361 * stdio-common/bug8.c (main): Likewise.
2362 * stdio-common/bug9.c (main): Likewise.
2363 * stdio-common/scanf1.c (main): Likewise.
2364 * stdio-common/scanf2.c (main): Likewise.
2365 * stdio-common/scanf5.c (main): Likewise.
2366 * stdio-common/scanf6.c (main): Likewise.
2367 * stdio-common/scanf7.c (main): Likewise.
2368 * stdio-common/scanf8.c (main): Likewise.
2369 * stdio-common/temptest.c (main): Likewise.
2370 * stdio-common/test-fwrite.c (main): Likewise.
2371 * stdio-common/tst-printf.c: Likewise.
2372 * stdio-common/tstdiomisc.c: Likewise.
2373 * stdio-common/tstgetln.c (main): Likewise.
2374 * stdlib/testmb.c (main): Likewise.
2375
2376 * stdio-common/scanf4.c (main): Correct prototype, remove unused
2377 variable n.
2378
2379 * stdio-common/scanf3.c (main): Correct prototype, change
2380 declaration of s to reduce warnings.
2381 * stdio-common/bug10.c (main): Likewise.
2382
2383 * stdio-common/tfformat.c: Provide prototype, remove unused
2384 reference to dump_stats, add braces in sprint_doubles.
2385 * stdio-common/tiformat.c: Likewise.
2386
2387 * stdio-common/test_rdwr.c (main): Parameter `where' is long in
2388 printf call.
2389
2390 Mon Oct 7 14:04:26 1996 NIIBE Yutaka <gniibe@mri.co.jp>
2391
2392 * sysdeps/unix/sysv/linux/sys/soundcard.h: Fix typo.
2393
2394 * shadow/putspent.c: Don't write colon after flag field.
2395
2396 * sysdeps/unix/sysv/linux/net/if_ppp.h: New file. Wrapper around
2397 kernel header.
2398 * sysdeps/unix/sysv/linux/net/ppp-comp.h: Likewise.
2399 * sysdeps/unix/sysv/linux/net/ppp_defs.h: Likewise.
2400 * sysdeps/unix/sysv/linux/Dist: Mention new files.
2401
2402 Mon Oct 7 00:58:19 1996 Ulrich Drepper <drepper@cygnus.com>
2403
2404 * sysdeps/i386/i586/strchr.S: Correct handling of first bytes to
2405 get pointer aligned. Reported by Matthias Urlichs <smurf@noris.de>.
2406
2407 * sysdeps/posix/euidaccess.c [_LIBC]: Avoid calling get?id functions
2408 by using __libc_enable_secure variable.
2409
2410 Tue Oct 8 13:58:31 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2411
2412 * hurd/ports-get.c (_hurd_ports_get): If the requested port is
2413 null, don't attempt mach_port_mod_refs.
2414
2415 Mon Oct 7 14:51:52 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2416
2417 * sysdeps/mach/hurd/pipestream.c: New file to avoid use of
2418 sysdeps/unix/pipestream.c.
2419
2420 * sysdeps/mach/hurd/readdir_r.c: New file, guts copied entirely
2421 from sysdeps/mach/hurd/readdir.c.
2422
2423 * stdio/freopen.c: Complete de-ansideclification.
2424 * stdio/fgets.c (fgets): Likewise.
2425 * stdio/getdelim.c (__getdelim): Likewise.
2426 * sysdeps/posix/pipestream.c (readdecl, writedecl, seekdecl,
2427 popen):
2428 Likewise.
2429 * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
2430 * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
2431
2432 * sysdeps/mach/hurd/wait4.c (__wait4): Allow a null value for
2433 STAT_LOC without error.
2434
2435 Sun Oct 6 02:05:52 1996 Ulrich Drepper <drepper@cygnus.com>
2436
2437 * posix/getopt.c: Add casts to prevent warnings.
2438 * posix/regex.c: Likewise.
2439
2440 * math/Makefile (long-m-routines, long-m-yes): Define to correct
2441 values to make `long double' functions available.
2442 (distribute): Add $(long-m-yes:=.c).
2443
2444 * sysdeps/libm-i387/s_copysignl.S: Correct loading of return value.
2445 Use long double instruction.
2446
2447 * sysdeps/libm-ieee754/e_atanhl.c (huge): Correct constant.
2448 * sysdeps/libm-ieee754/e_asinhl.c: Likewise.
2449 * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
2450
2451 * sysdeps/libm-ieee754/e_coshl.c: New file.
2452
2453 * sysdeps/libm-ieee754/s_asinh.c [!NO_LONG_DOUBLE]: Define names
2454 for `long double' version as alias.
2455 * sysdeps/libm-ieee754/s_atan.c: Likewise.
2456 * sysdeps/libm-ieee754/s_cbrt.c: Likewise.
2457 * sysdeps/libm-ieee754/s_ceil.c: Likewise.
2458 * sysdeps/libm-ieee754/s_copysign.c: Likewise.
2459 * sysdeps/libm-ieee754/s_cos.c: Likewise.
2460 * sysdeps/libm-ieee754/s_erf.c: Likewise.
2461 * sysdeps/libm-ieee754/s_expm1.c: Likewise.
2462 * sysdeps/libm-ieee754/s_fabs.c: Likewise.
2463 * sysdeps/libm-ieee754/s_finite.c: Likewise.
2464 * sysdeps/libm-ieee754/s_floor.c: Likewise.
2465 * sysdeps/libm-ieee754/s_frexp.c: Likewise.
2466 * sysdeps/libm-ieee754/s_ilogb.c: Likewise.
2467 * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
2468 * sysdeps/libm-ieee754/s_log1p.c: Likewise.
2469 * sysdeps/libm-ieee754/s_logb.c: Likewise.
2470 * sysdeps/libm-ieee754/s_modf.c: Likewise.
2471 * sysdeps/libm-ieee754/s_nextafter.c: Likewise.
2472 * sysdeps/libm-ieee754/s_rint.c: Likewise.
2473 * sysdeps/libm-ieee754/s_scalbn.c: Likewise.
2474 * sysdeps/libm-ieee754/s_significand.c: Likewise.
2475 * sysdeps/libm-ieee754/s_sin.c: Likewise.
2476 * sysdeps/libm-ieee754/s_tan.c: Likewise.
2477 * sysdeps/libm-ieee754/s_tanh.c: Likewise.
2478 * sysdeps/libm-ieee754/w_acos.c: Likewise.
2479 * sysdeps/libm-ieee754/w_acosh.c: Likewise.
2480 * sysdeps/libm-ieee754/w_sin.c: Likewise.
2481 * sysdeps/libm-ieee754/w_atan2.c: Likewise.
2482 * sysdeps/libm-ieee754/w_atanh.c: Likewise.
2483 * sysdeps/libm-ieee754/w_cabs.c: Likewise.
2484 * sysdeps/libm-ieee754/w_cosh.c: Likewise.
2485 * sysdeps/libm-ieee754/w_drem.c: Likewise.
2486 * sysdeps/libm-ieee754/w_exp.c: Likewise.
2487 * sysdeps/libm-ieee754/w_fmod.c: Likewise.
2488 * sysdeps/libm-ieee754/w_gamma.c: Likewise.
2489 * sysdeps/libm-ieee754/w_gamma_r.c: Likewise.
2490 * sysdeps/libm-ieee754/w_hypot.c: Likewise.
2491 * sysdeps/libm-ieee754/w_j0.c: Likewise.
2492 * sysdeps/libm-ieee754/w_j1.c: Likewise.
2493 * sysdeps/libm-ieee754/w_jn.c: Likewise.
2494 * sysdeps/libm-ieee754/w_lgamma.c: Likewise.
2495 * sysdeps/libm-ieee754/w_lgamma_r.c: Likewise.
2496 * sysdeps/libm-ieee754/w_log.c: Likewise.
2497 * sysdeps/libm-ieee754/w_log10.c: Likewise.
2498 * sysdeps/libm-ieee754/w_pow.c: Likewise.
2499 * sysdeps/libm-ieee754/w_remainder.c: Likewise.
2500 * sysdeps/libm-ieee754/w_scalb.c: Likewise.
2501 * sysdeps/libm-ieee754/w_sinh.c: Likewise.
2502 * sysdeps/libm-ieee754/w_sqrt.c: Likewise.
2503
2504 Stub files for missing long double math functions.
2505 * sysdeps/stub/e_acoshl.c: New file.
2506 * sysdeps/stub/e_hypotl.c: New file.
2507 * sysdeps/stub/e_j0l.c: New file.
2508 * sysdeps/stub/e_j1l.c: New file.
2509 * sysdeps/stub/e_jnl.c: New file.
2510 * sysdeps/stub/e_lgammal_r.c: New file.
2511 * sysdeps/stub/e_powl.c: New file.
2512 * sysdeps/stub/e_rem_pio2l.c: New file.
2513 * sysdeps/stub/e_sinhl.c: New file.
2514 * sysdeps/stub/k_cosl.c: New file.
2515 * sysdeps/stub/k_rem_pio2l.c: New file.
2516 * sysdeps/stub/k_sinl.c: New file.
2517 * sysdeps/stub/k_tanl.c: New file.
2518 * sysdeps/stub/s_erfl.c: New file.
2519 * sysdeps/stub/s_expm1l.c: New file.
2520
2521 * sysdeps/i386/__longjmp.S: Use PSEUDO_END macro to provide
2522 .size directive.
2523 * sysdeps/i386/bsd-_setjmp.S: Likewise.
2524 * sysdeps/i386/bsd-setjmp.S: Likewise.
2525 * sysdeps/i386/memchr.S: Likewise.
2526 * sysdeps/i386/memcmp.S: Likewise.
2527 * sysdeps/i386/setjmp.S: Likewise.
2528 * sysdeps/i386/stpcpy.S: Likewise.
2529 * sysdeps/i386/stpncpy.S: Likewise.
2530 * sysdeps/i386/strchr.S: Likewise.
2531 * sysdeps/i386/strcspn.S: Likewise.
2532 * sysdeps/i386/strpbrk.S: Likewise.
2533 * sysdeps/i386/strrchr.S: Likewise.
2534 * sysdeps/i386/strspn.S: Likewise.
2535 * sysdeps/i386/strtok.S: Likewise.
2536 * sysdeps/i386/i486/strcat.S: Likewise.
2537 * sysdeps/i386/i486/strlen.S: Likewise.
2538 * sysdeps/i386/i586/memset.S: Likewise.
2539 * sysdeps/i386/i586/strchr.S: Likewise.
2540 * sysdeps/i386/i586/strlen.S: Likewise.
2541 * sysdeps/libm-i387/e_acos.S: Likewise.
2542 * sysdeps/libm-i387/e_acosl.S: Likewise.
2543 * sysdeps/libm-i387/e_asin.S: Likewise.
2544 * sysdeps/libm-i387/e_asinl.S: Likewise.
2545 * sysdeps/libm-i387/e_atan2.S: Likewise.
2546 * sysdeps/libm-i387/e_atan2l.S: Likewise.
2547 * sysdeps/libm-i387/e_exp.S: Likewise.
2548 * sysdeps/libm-i387/e_expl.S: Likewise.
2549 * sysdeps/libm-i387/e_fmod.S: Likewise.
2550 * sysdeps/libm-i387/e_fmodl.S: Likewise.
2551 * sysdeps/libm-i387/e_log.S: Likewise.
2552 * sysdeps/libm-i387/e_log10.S: Likewise.
2553 * sysdeps/libm-i387/e_log10l.S: Likewise.
2554 * sysdeps/libm-i387/e_logl.S: Likewise.
2555 * sysdeps/libm-i387/e_remainder.S: Likewise.
2556 * sysdeps/libm-i387/e_remainderf.S: Likewise.
2557 * sysdeps/libm-i387/e_remainderl.S: Likewise.
2558 * sysdeps/libm-i387/e_scalb.S: Likewise.
2559 * sysdeps/libm-i387/e_scalbl.S: Likewise.
2560 * sysdeps/libm-i387/e_sqrt.S: Likewise.
2561 * sysdeps/libm-i387/e_sqrtf.S: Likewise.
2562 * sysdeps/libm-i387/e_sqrtl.S: Likewise.
2563 * sysdeps/libm-i387/s_atan.S: Likewise.
2564 * sysdeps/libm-i387/s_atanf.S: Likewise.
2565 * sysdeps/libm-i387/s_atanl.S: Likewise.
2566 * sysdeps/libm-i387/s_ceil.S: Likewise.
2567 * sysdeps/libm-i387/s_ceilf.S: Likewise.
2568 * sysdeps/libm-i387/s_ceill.S: Likewise.
2569 * sysdeps/libm-i387/s_copysign.S: Likewise.
2570 * sysdeps/libm-i387/s_copysignf.S: Likewise.
2571 * sysdeps/libm-i387/s_copysignl.S: Likewise.
2572 * sysdeps/libm-i387/s_cos.S: Likewise.
2573 * sysdeps/libm-i387/s_cosf.S: Likewise.
2574 * sysdeps/libm-i387/s_cosl.S: Likewise.
2575 * sysdeps/libm-i387/s_finite.S: Likewise.
2576 * sysdeps/libm-i387/s_finitef.S: Likewise.
2577 * sysdeps/libm-i387/s_finitel.S: Likewise.
2578 * sysdeps/libm-i387/s_floor.S: Likewise.
2579 * sysdeps/libm-i387/s_floorf.S: Likewise.
2580 * sysdeps/libm-i387/s_floorl.S: Likewise.
2581 * sysdeps/libm-i387/s_ilogb.S: Likewise.
2582 * sysdeps/libm-i387/s_ilogbf.S: Likewise.
2583 * sysdeps/libm-i387/s_ilogbl.S: Likewise.
2584 * sysdeps/libm-i387/s_log1p.S: Likewise.
2585 * sysdeps/libm-i387/s_log1pf.S: Likewise.
2586 * sysdeps/libm-i387/s_log1pl.S: Likewise.
2587 * sysdeps/libm-i387/s_logb.S: Likewise.
2588 * sysdeps/libm-i387/s_logbf.S: Likewise.
2589 * sysdeps/libm-i387/s_logbl.S: Likewise.
2590 * sysdeps/libm-i387/s_rint.S: Likewise.
2591 * sysdeps/libm-i387/s_rintf.S: Likewise.
2592 * sysdeps/libm-i387/s_rintl.S: Likewise.
2593 * sysdeps/libm-i387/s_scalbn.S: Likewise.
2594 * sysdeps/libm-i387/s_scalbnf.S: Likewise.
2595 * sysdeps/libm-i387/s_scalbnl.S: Likewise.
2596 * sysdeps/libm-i387/s_significand.S: Likewise.
2597 * sysdeps/libm-i387/s_significandf.S: Likewise.
2598 * sysdeps/libm-i387/s_significandl.S: Likewise.
2599 * sysdeps/libm-i387/s_sin.S: Likewise.
2600 * sysdeps/libm-i387/s_sinf.S: Likewise.
2601 * sysdeps/libm-i387/s_sinl.S: Likewise.
2602 * sysdeps/libm-i387/s_tan.S: Likewise.
2603 * sysdeps/libm-i387/s_tanf.S: Likewise.
2604 * sysdeps/libm-i387/s_tanl.S: Likewise.
2605
2606 * sysdeps/unix/sysv/linux/i386/clone.S: Add .size directive.
2607 * sysdeps/unix/sysv/linux/i386/mmap.S. Likewise.
2608 * sysdeps/unix/sysv/linux/i386/socket.S. Likewise.
2609 * sysdeps/unix/sysv/linux/i386/sysdep.S. More compact .size line.
2610
2611 * sysdeps/i386/sysdep.h (ASM_SIZE_DIRECTIVE): New macro. Used
2612 to provide .size directive on ELF systems.
2613
2614 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Include
2615 <sigcontext.h> and rename parameter type to sigcontext.
2616 * sysdeps/unix/sysv/linux/i386/sigcontext.h New file.
2617
2618 * sysdeps/unix/sysv/linux/i386/syscall.S: From Linux 2.1 on
2619 negative values might occur as positive results. Test against
2620 -125 to decide for error or not.
2621 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise for system calls.
2622
2623 Thu Oct 3 21:07:58 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2624
2625 * elf/dl-open.c: Use _DYNAMIC instead of _dl_start to decide
2626 whether this is a statically linked program. The latter is now
2627 always defined.
2628
2629 Fri Oct 4 17:30:22 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2630
2631 * hurd/hurdsig.c (signal_allowed): Add SIGWINCH to the list that
2632 controlling terminals are allowed to send.
2633
2634 * hurd/alloc-fd.c (_hurd_alloc_fd): If SIZE is so big that the
2635 table is larger than the allowable address size, then return
2636 failure.
2637
2638 Fri Oct 4 02:08:10 1996 Bang Jun-Young <bangjy@nownuri.nowcom.co.kr>
2639
2640 * po/ko.po: Update.
2641
2642 Fri Oct 4 02:07:46 1996 Michel Robitaille <robitail@IRO.UMontreal.CA>
2643
2644 * po/fr.po: New file.
2645
2646 Fri Oct 4 05:04:52 1996 Ulrich Drepper <drepper@cygnus.com>
2647
2648 * sysdeps/unix/sysv/linux/i386/sigcontext.h: New file.
2649
2650 Add support for MD5 crypt replacement.
2651 * Makefile (subdirs): Add crypt.
2652 * shlib-versions: Add entry for libcrypt.
2653 * crypt/md5-crypt.c: New file.
2654 * crypt/md5.c: New file.
2655 * crypt/md5.h: New file.
2656 * sysdeps/generic/crypt-entry.c: New file.
2657 * sysdeps/generic/crypt.h: New file.
2658
2659 Thu Oct 3 20:53:23 1996 Andreas Jaeger <aj@arthur.pfalz.de>
2660
2661 * dirent/tst-seekdir.c: Provide correct prototypes.
2662 * io/test-utime.c: Likewise.
2663 * malloc/mallocbug.c: Likewise.
2664 * posix/testfnm.c: Likewise.
2665 * stdio-common/xbug.c: Likewise.
2666 * sysdeps/posix/cuserid.c: Likewise.
2667
2668 Wed Oct 2 13:33:48 1996 Richard Henderson <rth@tamu.edu>
2669
2670 Provide optimized string functions for Alpha processors.
2671 * sysdeps/alpha/bzero.S: New file.
2672 * sysdeps/alpha/memset.S: New file.
2673 * sysdeps/alpha/stpcpy.S: New file.
2674 * sysdeps/alpha/stpncpy.S: New file.
2675 * sysdeps/alpha/strcat.S: New file.
2676 * sysdeps/alpha/strchr.S: New file.
2677 * sysdeps/alpha/strcpy.S: New file.
2678 * sysdeps/alpha/strncat.S: New file.
2679 * sysdeps/alpha/strncpy.S: New file.
2680 * sysdeps/alpha/strrchr.S: New file.
2681 * sysdeps/alpha/stxcpy.S: New file.
2682 * sysdeps/alpha/stxncpy.S: New file.
2683
2684 * sysdeps/alpha/Makefile [$(sudir)==string]: Add stxcpy and
2685 stxncpy to sysdep_routines.
2686 Minor correction.
2687
2688 Thu Oct 3 13:33:31 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2689
2690 * sysdeps/generic/gnu/types.h: Added __loff_t.
2691 Don't declare key_t here.
2692
2693 * hurd/alloc-fd.c (_hurd_alloc_fd): If realloc fails, bother to
2694 set errno (to ENOMEM).
2695
2696 Wed Oct 2 13:41:48 1996 Ulrich Drepper <drepper@cygnus.com>
2697
2698 * sysdeps/generic/strtok.c: Don't set stored pointer to NULL when
2699 nothing is found. This guarantees all subsequent calls behave
2700 the same.
2701 * sysdeps/generic/strtok_r.c: Likewise.
2702
2703 Mon Sep 30 22:27:36 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2704
2705 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Don't declare
2706 `i' as const.
2707
2708 Mon Sep 30 22:38:29 1996 Richard Henderson <rth@tamu.edu>
2709
2710 * sysdeps/generic/strtok.c: When we hit EOS, don't set olds to
2711 NULL immediately; we're going to get called one more time.
2712 * sysdeps/generic/strtok_r.c: Likewise.
2713
2714 Tue Oct 1 09:12:21 1996 Ulrich Drepper <drepper@cygnus.com>
2715
2716 * locale/programs/ld-time.c: Always write some bytes at the end of
2717 the file even if no `era's are specified.
2718
2719 * stdio-common/tmpname.c (tmpbuf): Don't define as array of
2720 pointers.
2721
2722 Tue Oct 1 01:43:11 1996 Ulrich Drepper <drepper@cygnus.com>
2723
2724 * libio/iofclose.c: Move unlocking to right position.
2725
2726 Mon Sep 30 03:08:34 1996 Richard Henderson <rth@tamu.edu>
2727
2728 * misc/Makefile: Kill force-wrapper.
2729 * misc/force-wrapper.c: Delete.
2730
2731 * elf/eval.c: Add <string.h>.
2732
2733 * gmon/sys/gmon_out.h: Nonsense like `char foo[sizeof(char*)]'
2734 followed by `bcopy(&ptr, &foo, sizeof(foo))' helps portability
2735 and binary compatibility not at all. Better to do `char *foo'
2736 followed by `foo = ptr' as it is much cleaner.
2737 (struct gmon_hdr): Fix version.
2738 (struct gmon_hist_hdr): Fix low_pc, high_pc, hist_size, prof_rate.
2739 (struct gmon_cg_arc_record): Fix from_pc, self_pc, count.
2740 * gmon/gmon.c: De-ansidecl-ify.
2741 (write_hist): De-bcopy-fy.
2742 (write_call_graph): Likewise.
2743
2744 * gmon/mcount.c: Assume _MCOUNT_DECL does the entire declaration.
2745 * sysdeps/alpha/machine-gmon.h: Update _MCOUNT_DECL.
2746 * sysdeps/generic/machine-gmon.h: Likewise.
2747
2748 * resolv/netdb.h: Add __set_h_errno to mimic __set_errno.
2749 * nss/getXXent_r.c: Use __set_h_errno to set h_errno in all funcs.
2750 * nss/nss_dns/dns-network.c: Likewise.
2751 * resolv/getunamaddr.c: Likewise. Also use __set_errno where needed.
2752 * resolv/getnetnamadr.c: Likewise.
2753 * resolv/res_debug.c: Likewise.
2754 * resolv/res_mkquery.c: Likewise.
2755 * resolv/res_query.c: Likewise.
2756
2757 * libio/clearerr_u.c: It's not necessary to define __ protected
2758 function so don't do it.
2759 * libio/feof_u.c, libio/ferror_u.c, libio/fputc_u.c,
2760 libio/getc_u.c, libio/getchar_u.c, libio/iofflush_u.c: Likewise.
2761
2762 * libio/fgetc.c: Avoid a warning by casting _IO_funlockfile for
2763 the cleanup registrar.
2764 * libio/fputc.c, libio/freopen.c, libio/fseek.c, libio/getc.c,
2765 libio/getchar.c, libio/iofclose.c, libio/iofflush.c,
2766 libio/iofgetpos.c, libio/iofgets.c, libio/iofputs.c,
2767 libio/iofread.c, libio/iofsetpos.c, libio/ioftell.c,
2768 libio/iofwrite.c, libio/iogetdelim.c, libio/iogets.c,
2769 libio/ioputs.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
2770 libio/ioungetc.c, libio/putc.c, libio/putchar.c, libio/rewind.c:
2771 Likewise.
2772
2773 * locale/programs/ld-ctype.c: Include <alloca.h>.
2774
2775 * login/login_tty.c: Get login_tty prototype from <utmp.h>.
2776
2777 * posix/sys/types.h: Change #defines to typedefs. This is looking
2778 forward to more comprehensive namespace cleanups for C++.
2779 * posix/unistd.h: Likewise for ssize_t.
2780
2781 * pwd/getpw.c: Prototype and rename getpw -> __getpw and add a
2782 weak alias.
2783
2784 * resolv/base64.c: Don't do `for (NULL; ...)' as it causes
2785 `statement with no effect' warnings.
2786 * resolv/inet_neta.c: Include <string.h> for strlen.
2787
2788 * stdio-common/getline.c: Undef ssize_t before libio redefinition.
2789 * stdio-common/tstgetln.c: Same. De-ansidecl-ify.
2790 * stdio-common/vfprintf.c: Same for va_list.
2791 * stdio-common/vfscanf.c: Same.
2792 * stdio-common/reg-printf.c: Prototype the __ function.
2793 * stdio-common/scanf.c [USE_IN_LIBIO]: Include <libioP.h> for
2794 _IO_vscanf declaration.
2795
2796 * string/tester.c: Tsk, tsk. Don't cast pointers to int,
2797 but to unsigned long for the health of 64-bit systems.
2798
2799 * sunrpc/svc_udp.c: Define MAX only if we don't have it yet.
2800 Many system's <sys/param.h> pulls this in.
2801
2802 * sysdeps/generic/dl-cache.c: Kill the bottom half of the
2803 patch doubled file.
2804
2805 * sysdeps/generic/pty.c (forkpty): Get login_tty decl from <utmp.h>
2806 instead of defining it locally.
2807
2808 * sysdeps/posix/sigvec.c: Prototype wrapper_handler and convert_mask.
2809 * sysdeps/stub/chflags.c: Prototype chflags.
2810 * sysdeps/stub/fchflags.c: Prototype fchflags.
2811 * sysdeps/stub/sstk.c: Prototype sstk.
2812
2813 * sysdeps/unix/alpha/sysdep.S: Add strong alias from errno
2814 variable to __errno. Update __syscall_error to store to both
2815 the global and per-thread variables.
2816
2817 * sysdeps/unix/sysv/linux/init-first.c: Change include of
2818 init-first.h from "" to <> as "" does not search the include path.
2819 Prototype _dl_start.
2820
2821 Sun Sep 29 14:41:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2822
2823 * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Make it a
2824 pattern rule to get the right stem.
2825
2826 Sat Sep 28 01:30:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2827
2828 * Makefile ($(objpfx)version-info.h): Fix typo in previous change.
2829
2830 Sat Sep 28 00:44:38 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2831
2832 * sysdeps/posix/euidaccess.c (__set_errno): Fix typo.
2833
2834 Sat Sep 28 00:40:38 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2835
2836 * malloc/free.c (_free_internal): Don't call free recursively, use
2837 the internal functions instead.
2838
2839 Sat Sep 28 00:23:20 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2840
2841 * sysdeps/posix/tempname.c (__stdio_gen_tempname) [USE_IN_LIBIO &&
2842 _IO_MTSAFE_IO]: Allocate and initialize the file lock.
2843
2844 Fri Sep 27 23:58:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2845
2846 * catgets/gencat.c (main): Print version information on stdout,
2847 not stderr.
2848 * db/makedb.c: Likewise.
2849 * locale/programs/locale.c: Likewise.
2850 * locale/programs/localedef.c: Likewise.
2851
2852 Mon Sep 30 00:14:26 1996 Ulrich Drepper <drepper@cygnus.com>
2853
2854 Add implementation of netgroup.
2855 * inet/Makefile (distributes): Add netgroup.h.
2856 (routines): Add getnetgrent.c and getnetgrent_r.c.
2857 * inet/getnetgrent.c: New file.
2858 * inet/getnetgrent_r.c: New file.
2859 * inet/netgroup.h: New file.
2860 * netgroup.h: New file.
2861 * nsswitch.h: New file.
2862 * nss/Makefile (databases): Add getgrp.
2863 * nss/databases.def: Add netgroup.
2864 * nss/db-Makefile: Add rules for netgroup.
2865 * nss/netgrp-lookup.c: New file.
2866 * nss/nss.h: Add new status value NSS_STATUS_RETURN which will
2867 always return without a check of the transition table.
2868 * nss/nsswitch.h (struct service_user): Extend actions array to
2869 five elements.
2870 * nss/nsswitch.c (__nss_next): Allow NSS_STATUS_RETURN as legal
2871 status value.
2872 (nss_parse_service_list): Initialize action for NSS_STATUS_RETURN
2873 to NSS_ACTION_RETURN.
2874 * nss/nss_db/db-netgrp.c: New file.
2875 * nss/nss_files/files-netgrp.c: New file.
2876 * nss/nsswitch.conf: Add entry for netgroup.
2877 * resolv/netdb.h: Add prototypes for netgroup functions.
2878
2879 * nss/nss_db/db-XXX.c: Use `enum nss_status' type when status
2880 value is used.
2881
2882 Sun Sep 29 12:55:58 1996 Ulrich Drepper <drepper@cygnus.com>
2883
2884 * sysdeps/unix/sysv/linux/syscalls.list: Change function name for
2885 _llseek to _llseek (not llseek).
2886 Reported by Matthias Urlichs <smurf@smurf.noris.de>.
2887
2888 Sun Sep 29 05:34:32 1996 Ulrich Drepper <drepper@cygnus.com>
2889
2890 * inet/rcmd.c: Remove definition of MIN.
2891
2892 Sat Sep 28 14:22:51 1996 Ulrich Drepper <drepper@cygnus.com>
2893
2894 * dirent/readdir_r.c: Removed. We indeed need a real implementation.
2895 * sysdeps/unix/readdir_r.c: New file.
2896 * sysdeps/unix/readdir.c: Remove check for correct parameter
2897 values. Let them simply die.
2898 * manual/filesys.texi: Document readdir_r.
2899
2900 * sysdeps/gnu/errlist.awk: Define _sys_errlist as `const char* const'.
2901 Proposed by Per Abrahamsen <abraham@dina.kvl.dk>.
2902
2903 Sat Sep 28 03:02:49 1996 Ulrich Drepper <drepper@cygnus.com>
2904
2905 * dirent/Makefile (routines): Add readdir_r.
2906 * dirent/readdir_r.c: New file. Wrapper around readdir.c.
2907 * dirent/dirent.h: Add prototype for readdir_r.
2908
2909 * misc/hsearch_r.c (ENTRY): Make field `used' of type `unsigned int'
2910 to prevent warnings.
2911
2912 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
2913 Initialize `result'.
2914
2915 Sat Sep 28 01:16:42 1996 Ulrich Drepper <drepper@cygnus.com>
2916
2917 * sysdeps/generic/strsep.c: Rename to __strsep and make strsep
2918 weak alias.
2919 * string/string.h: Add prototype for __strsep.
2920 * misc/mntent_r.c: Use __strsep instead of strsep to keep
2921 namespace clean.
2922
2923 * sysdeps/stub/nanosleep.c: Rename to __libc_nanosleep and make
2924 __nanosleep and nanosleep weak aliases.
2925 * sysdeps/unix/sysv/linux/syscalls.list: Add __nanosleep as weak
2926 alias.
2927 * sysdeps/unix/sysv/linux/sleep.c: Call __nanosleep instead of
2928 nanosleep to keep namespace clean.
2929
2930 * sysdeps/posix/ttyname.c (ttyname): Add cast to prevent warning.
2931 * sysdeps/posix/ttyname_r.c (ttyname_r): Likewise.
2932 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
2933
2934 * sysdeps/unix/nlist.c: Use ISO C definition since we don't always
2935 have prototype.
2936
2937 * login/Makefile (headers): Add pty.h.
2938 * login/pty.h: New file.
2939 * sysdeps/generic/pty.h: Include <pty.h>.
2940 * login/pututline_r.c: Add cast to prevent warning.
2941
2942 * gmon/gmon.c: Add prototype for __profile_frequency.
2943 (monstartup): Add cast to prevent warning.
2944 * sysdeps/generic/prof-freq.c: Change to use ISO C style definition.
2945
2946 * locale/programs/ld-time.c (time_output): Write `era' information
2947 in correct order.
2948
2949 Sat Sep 28 00:11:08 1996 Ulrich Drepper <drepper@cygnus.com>
2950
2951 * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias
2952 `adjtimex'.
2953 Set caller for mlock, mlockall, mremap, munlock, and munlockall
2954 to EXTRA.
2955 Reported by Matthias Urlichs <smurf@smurf.noris.de>.
2956
2957 1996-09-27 Paul Eggert <eggert@twinsun.com>
2958
2959 * strftime.c (strftime): Output incomplete formats like %E
2960 at end of string.
2961
2962 1996-09-27 Paul Eggert <eggert@twinsun.com>
2963
2964 * strftime.c (strftime): Add support for %EC and %Ey.
2965 Fix support for %EY. This uses the new _nl_get_era_entry function.
2966
2967 Fri Sep 27 14:12:27 1996 Ulrich Drepper <drepper@cygnus.com>
2968
2969 Security related patch by Elliot Lee <sopwith@redhat.com> and
2970 David Holland <dholland@eecs.harvard.edu>.
2971
2972 * inet/rexec.c (rexec): Increase size of `num' array from 8 to 32.
2973 * inet/ruserpass.c (ruserpass): Don't allow $HOME envvar to not exist.
2974
2975 * sysdeps/generic/getenv.c (__secure_getenv): New function. Return
2976 NULL when programs runs with SUID or SGID enabled.
2977 * sysdeps/stub/getenv.c: Make __secure_getenv an alias of getenv.
2978 * stdlib/stdlib.h: Add prototype for __secure_getenv.
2979
2980 * locale/setlocale.c: Use __secure_getenv.
2981 * resolv/res_init.c: Likewise.
2982 * resolv/res_query.c: Likewise.
2983 * inet/ruserpass.c: Likewise.
2984 * sysdeps/posix/tempname.c: Likewise.
2985 * malloc/mtrace.c: Likewise.
2986 * catgets/catgets.c: Likewise.
2987
2988 Make temporary file handling functions reentrant.
2989
2990 * stdio-common/tmpnam.c: Rewrite to have own buffer to write
2991 result to. The called __stdio_gen_tempname function must be
2992 thread safe.
2993 * stdio-common/tmpnam_r.c: New file.
2994 * stdio/stdio.h: Add prototype for `tmpnam_r'.
2995 Change prototype for __stdio_gen_tempname.
2996 * stdio/libio.h: Likewise.
2997 * sysdeps/posix/tempname.c: Add new parameters and use them instead
2998 of static buffer.
2999 Don't reset `indeces' when PID changed between calls.
3000 Don't fail for long running programs when index counter once
3001 reached the limit.
3002 * sysdeps/stub/tempname.c: Likewise.
3003 * stdio-common/tempnam.c: Provide local buffer as extra argument
3004 to __stdio_gen_tempname. This makes this function reentrant.
3005 * stdio-common/tmpfile.c: Likewise.
3006 * stdio-common/temptest.c: Provide extra argument to
3007 __stdio_gen_tempname.
3008 * manual/filesys.texi: Describe tmpnam_r and add comments about
3009 reentrancy of the functions.
3010
3011 * inet/rcmd.c: Fixed address length handling.
3012
3013 * sysdeps/posix/mk-stdiolim.c: Count final \0 byte in L_tmpnam value.
3014
3015 * time/strftime.c: Remove unused variables alt_digits and
3016 end_alt_digits.
3017
3018 * sysdeps/unix/sysv/linux/sys/sysinfo.h: Correct prototype names
3019 for get_nprocs and get_nprocs_conf.
3020 * sysdeps/generic/sys/sysinfo.h: Likewise.
3021
3022 * stdlib/test-canon.c: Finally do the right fix.
3023
3024 * misc/Makefile: Only compile force-wrapper when compiling
3025 reentrant libc.
3026
3027 Fri Sep 27 03:49:56 1996 Ulrich Drepper <drepper@cygnus.com>
3028
3029 Add support for cancelable system calls.
3030
3031 * csu/initfini.c: Make in crti.o reference to symbol
3032 __libc_force_cancel_wrapper when compiling reentrant version.
3033 * misc/Makefile (routines): Add force-wrapper.
3034 * misc/force-wrapper.c: New file.
3035
3036 * posix/system.c: Rename function to __libc_system and make system
3037 a weak alias.
3038 * sysdeps/stub/system.c: Likewise.
3039 * posix/wait.c: Rename function to __libc_wait and make __wait a
3040 weak alias. De-ANSI-fy.
3041 * sysdeps/standalone/read.c: Rename function to __libc_read and
3042 make __read a weak alias.
3043 * sysdeps/stub/read.c: Likewise.
3044 * sysdeps/standalone/write.c: Rename function to __libc_write and
3045 make __write a weak alias.
3046 * sysdeps/stub/write.c: Likewise.
3047 * sysdeps/stub/tcdrain.c: Rename function to __libc_tcdrain and
3048 make tcdrain a weak alias.
3049 * sysdeps/unix/bsd/tcdrain.c: Likewise.
3050 * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Likewise.
3051 * sysdeps/unix/sysv/tcdrain.c: Likewise.
3052 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
3053 * sysdeps/unix/bsd/bsd4.4/wait.c: Rename function to __libc_wait
3054 and make __wait a weak alias.
3055 * sysdeps/stub/waitpid.c: Rename function to __libc_waitpid and
3056 make __waitpid a weak alias.
3057 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
3058 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3059 * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
3060 * sysdeps/unix/common/pause.c: Rename function to __libc_pause
3061 and make pause a weak alias. De-ANSI-fy.
3062
3063 * sysdeps/unix/syscalls.list: Change name for close, fcntl, fsync,
3064 lseek, open, read, and write to have __libc_ prefix and make old
3065 names a weak alias.
3066 * sysdeps/unix/mman/syscalls.list: Likewise for msync.
3067 * sysdeps/unix/sysv/linux/syscalls.list: Likewise for nanosleep.
3068
3069 * io/creat.c: De-ANSI-fy.
3070
3071 * sysdeps/unix/sysv/linux/syscalls.list: Add pause.
3072
3073 Thu Sep 26 19:15:55 1996 Ulrich Drepper <drepper@cygnus.com>
3074
3075 * misc/mntent.h: Add MNTTYPE_* and MNTOPT_* macros.
3076 Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
3077
3078 Thu Sep 26 14:40:10 1996 Ulrich Drepper <drepper@cygnus.com>
3079
3080 * sysdeps/posix/pathconf.c: Pass descriptor for just opened file
3081 to fpathconf.
3082 Reported by Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>.
3083
3084 Thu Sep 26 04:02:43 1996 Ulrich Drepper <drepper@cygnus.com>
3085
3086 * locale/programs/locfile.c (write_locale_data): Allocate room
3087 even for file name for LC_MESSAGES locale.
3088 (locafile_read): `tok_era' must be handled as a string list.
3089 * locale/programs/ld-time.c: Finish correction of handling `era'.
3090 * locale/C-time.c (_nl_C_LC_TIME): Add initializer for new fields.
3091 * locale/categories.def: Add postload function for LC_TIME.
3092 * locale/setlocale.c: Make lock global and rename to
3093 __libc_setlocale_lock.
3094 * locale/localeinfo.h (struct era_entry): New type. Used in strftime.
3095 Add prototypes for _nl_get_era_entry and _nl_get_alt_digit.
3096 * locale/lc-time.c (_nl_postload_time): New function. Initialize
3097 lazy intialization.
3098 (_nl_get_era_entry): New function. Return era entry which corresponds
3099 to given year.
3100 (_nl_get_alt_digit): New function. Return string with alternate
3101 digit representation for given number.
3102
3103 * time/strftime.c (strftime): Use _nl_get_alt_digit to get
3104 string representing alternate digit notation.
3105
3106 Wed Sep 25 17:31:55 1996 Ulrich Drepper <drepper@cygnus.com>
3107
3108 * sysdeps/generic/waitstatus.h (union wait): Add w_status field.
3109 Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
3110
3111 * elf/rtld.c (dl_main): Process LD_PRELOAD before loading
3112 ld.so.preload. Suggested by David Engel <david@elo.ods.com>.
3113
3114 Wed Sep 25 13:10:57 1996 Ulrich Drepper <drepper@cygnus.com>
3115
3116 * catgets/gencat.c (main): Change --version again because RMS wants
3117 the package name in parentheses.
3118 * db/makedb.c: Likewise.
3119 * locale/programs/locale.c: Likewise.
3120 * locale/programs/localedef.c: Likewise.
3121
3122 Tue Sep 24 01:28:05 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3123
3124 * Makefile ($(objpfx)sysd-dirs): Depend on Subdirs files, command
3125 rewritten.
3126 ($(objpfx)version-info.h): Depend on Banner files, command
3127 rewritten.
3128
3129 Wed Sep 25 02:44:41 1996 Ulrich Drepper <drepper@cygnus.com>
3130
3131 * sysdeps/unix/sysv/linux/sleep.c: New file. Based on nanosleep.
3132
3133 Tue Sep 24 21:46:02 1996 Ulrich Drepper <drepper@cygnus.com>
3134
3135 * shadow/lckpwdf.c (PWD_LOCKFILE): Change to /etc/lock.pwd to be
3136 on the same device as the password file.
3137 * shadow/shadow.h (struct spwd): Change type of numeric fields
3138 to `long int' since there value are days, not seconds.
3139 * shadow/putspent.c: Change casts from time_t to `long int'.
3140 * shadow/sgetspent_r.c (LINE_READER): Likewise.
3141
3142 Mon Sep 23 23:05:24 1996 Ulrich Drepper <drepper@cygnus.com>
3143
3144 * sysdeps/unix/sysv/linux/errnos.h: Define __set_errno to make
3145 sure the thread specific variable is set as well as the global
3146 variable.
3147 * sysdeps/mach/hurd/errnos.awk: Define macro for source code
3148 compatibility.
3149 * sysdeps/stub/errnos.h: Likewise.
3150 * sysdeps/unix/bsd/bsd4.4/errnos.h: Likewise.
3151
3152 * shadow/putspent.c: Don't include <errno.h>.
3153
3154 * dirent/scandir.c (scandir): Use __set_errno to set errno
3155 variable.
3156 * elf/dl-load.c (open_path): Likewise.
3157 * inet/rcmd.c (rcmd): Likewise.
3158 (rresvport): Likewise.
3159 * intl/dcgettext.c [!__set_errno]: Define __set_errno.
3160 (DCGETTEXT): Use __set_errno to set errno variable.
3161 * io/fts.c (fts_open): Likewise.
3162 (fts_close): Likewise.
3163 (fts_read): Likewise.
3164 (fts_set): Likewise.
3165 (fts_children): Likewise.
3166 (fts_build): Likewise.
3167 (fts_stat): Likewise.
3168 * io/ftw.c (ftw_dir): Likewise.
3169 (ftw): Likewise.
3170 * io/getwd.c (getwd): Likewise.
3171 * io/lockf.c (lockf): Likewise.
3172 * libio/libioP.h [EINVAL]: Use __set_errno to define MAYBE_SET_EINVAL.
3173 * libio/iofdopen.c (_IO_fdopen): Use MAYBE_SET_EINVAL to errno.
3174 * libio/iogetdelim.c (_IO_getdelim): Likewise.
3175 * libio/fileops.c (_IO_file_open): Use __set_errno to set errno
3176 variable.
3177 * libio/iofgetpos.c (_IO_fgetpos): Likewise.
3178 * libio/iofsetpos.c (_IO_fsetpos): Likewise.
3179 * libio/ioftell.c (_IO_ftell): Likewise.
3180 * locale/loadlocale.c (_nl_load_locale): Likewise.
3181 * locale/nl_langinfo.c (nl_langinfo): Likewise.
3182 * locale/setlocale.c (ERROR_RETURN): Likewise.
3183 * login/getutid_r (__getutid_r): Likewise.
3184 * login/getutline_r (__getutline_r): Likewise.
3185 * login/login.c (tty_name): Likewise.
3186 * login/oututline_r.c (__pututline_r): Likewise.
3187 * malloc/malloc.c (morecore): Likewise.
3188 * misc/efgcvt_r.c (fcvt_r): Likewise.
3189 * misc/hsearch_r.c (hcreate_r): Likewise.
3190 (hdestroy_r): Likewise.
3191 (hsearch_r): Likewise.
3192 * nss/nsswitch.c (__nss_configure_lookup): Likewise.
3193 * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Likewise.
3194 (_nss_dns_gethostbyaddr_r): Likewise.
3195 * nss/nss_files/files-XXX.c (internal_getent): Likewise.
3196 * nss/nss_files/files-parse.c (parse_list): Likewise.
3197 * posix/confstr.c (confstr): Likewise. De-ANSI-fy.
3198 * posix/execvp.c (execvp): Likewise.
3199 * posix/glob.c: Define __set_errno.
3200 (glob): Use __set_errno to set errno variable.
3201 (glob_in_dir): Likewise.
3202 * pwd/getpw.c: Likewise. De-ANSI-fy.
3203 * pwd/putpwent.c: Likewise.
3204 * resolv/inet_net_ntop.c: Likewise.
3205 * resolv/inet_net_pton.c: Likewise.
3206 * resolv/inet_neta.c: Likewise.
3207 * resolv/inet_ntop.c: Likewise.
3208 * resolv/inet_pton.c: Likewise.
3209 * resolv/res_query.c (res_search): Likewise.
3210 * resolv/res_send.c (Aerror): Likewise.
3211 (Perror): Likewise.
3212 (res_send): Likewise.
3213 * signal/sigaddset.c: Likewise. De-ANSI-fy.
3214 * signal/sigdelset.c: Likewise.
3215 * signal/sigempty.c: Likewise.
3216 * signal/sigfillset.c: Likewise.
3217 * signal/sigismem.c: Likewise.
3218 * stdio/fclose.c: Likewise.
3219 * stdio/feof.c: Likewise.
3220 * stdio/ferror.c: Likewise.
3221 * stdio/fflush.c: Likewise.
3222 * stdio/fgetc.c: Likewise.
3223 * stdio/fgetpos.c: Likewise.
3224 * stdio/fgets.c: Likewise.
3225 * stdio/fileno.c: Likewise.
3226 * stdio/fmemopen.c: Likewise.
3227 * stdio/fopen.c: Likewise.
3228 * stdio/fputc.c: Likewise.
3229 * stdio/fread.c: Likewise.
3230 * stdio/freopen.c: Likewise.
3231 * stdio/fseek.c: Likewise.
3232 * stdio/fsetpos.c: Likewise.
3233 * stdio/ftell.c: Likewise.
3234 * stdio/fwrite.c: Likewise.
3235 * stdio/getdelim.c: Likewise.
3236 * stdio/gets.c: Likewise.
3237 * stdio/glue.c: Likewise.
3238 * stdio/internals.c: Likewise.
3239 * stdio/memstream.c: Likewise.
3240 * stdio/setvbuf.c: Likewise.
3241 * stdio/ungetc.c: Likewise.
3242 * stdio/vsscanf.c: Likewise.
3243 * stdio-common/reg-printf.c: Likewise.
3244 * stdio-common/vfprintf.c: Likewise.
3245 * stdio-common/vfscanf.c: Likewise.
3246 * stdlib/canonicalize.c: Likewise.
3247 * stdlib/msort.c: Likewise.
3248 * stdlib/random_r.c: Likewise.
3249 * stdlib/strfmon.c: Likewise.
3250 * stdlib/strtod.c: Likewise.
3251 * stdlib/strtol.c: Likewise.
3252 * sunrpc/bindrsvprt.c: Likewise.
3253 * time/asctime.c: Likewise.
3254 * time/localtime.c: Likewise.
3255 * wcsmbs/mbrtowc.c: Likewise.
3256 * wcsmbs/mbsnrtowcs.c: Likewise.
3257 * wcsmbs/mbsrtowcs.c: Likewise.
3258 * wcsmbs/wcrtomb.c: Likewise.
3259 * wcsmbs/wcsnrtombs.c: Likewise.
3260 * wcsmbs/wcsrtombs.c: Likewise.
3261 * wcsmbs/wcstok.c: Likewise.
3262 * sysdeps/generic/ftime.c: Likewise.
3263 * sysdeps/generic/pty.c: Likewise.
3264 * sysdeps/generic/setenv.c: Likewise.
3265 * sysdeps/generic/speed.c: Likewise.
3266 * sysdeps/generic/sysd-stdio.c: Likewise.
3267 * sysdeps/generic/uname.c: Likewise.
3268 * sysdeps/generic/vlimit.c: Likewise.
3269 * sysdeps/libm-ieee754/k_standard.c: Likewise.
3270 * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
3271 * sysdeps/libm-ieee754/s_ldexpf.c: Likewise.
3272 * sysdeps/libm-ieee754/s_ldexpl.c: Likewise.
3273 * sysdeps/libm-ieee754/w_scalb.c: Likewise.
3274 * sysdeps/libm-ieee754/w_scalbf.c: Likewise.
3275 * sysdeps/libm-ieee754/w_scalbl.c: Likewise.
3276 * sysdeps/posix/dup2.c: Likewise.
3277 * sysdeps/posix/euidaccess.c: Likewise.
3278 * sysdeps/posix/fdopen.c: Likewise.
3279 * sysdeps/posix/flock.c: Likewise.
3280 * sysdeps/posix/fpathconf.c: Likewise.
3281 * sysdeps/posix/getcwd.c: Likewise.
3282 * sysdeps/posix/gettimeofday.c: Likewise.
3283 * sysdeps/posix/isatty.c: Likewise.
3284 * sysdeps/posix/isfdtype.c: Likewise.
3285 * sysdeps/posix/killpg.c: Likewise.
3286 * sysdeps/posix/mkstemp.c: Likewise.
3287 * sysdeps/posix/mktemp.c: Likewise.
3288 * sysdeps/posix/pathconf.c: Likewise.
3289 * sysdeps/posix/pipestream.c: Likewise.
3290 * sysdeps/posix/remove.c: Likewise.
3291 * sysdeps/posix/rename.c: Likewise.
3292 * sysdeps/posix/sigintr.c: Likewise.
3293 * sysdeps/posix/signal.c: Likewise.
3294 * sysdeps/posix/sigsuspend.c: Likewise.
3295 * sysdeps/posix/sigvec.c: Likewise.
3296 * sysdeps/posix/sleep.c: Likewise.
3297 * sysdeps/posix/sysconf.c: Likewise.
3298 * sysdeps/posix/system.c: Likewise.
3299 * sysdeps/posix/tempname.c: Likewise.
3300 * sysdeps/posix/truncate.c: Likewise.
3301 * sysdeps/posix/ttyname.c: Likewise.
3302 * sysdeps/posix/ttyname_r.c: Likewise.
3303 * sysdeps/posix/wait3.c: Likewise.
3304 * sysdeps/standalone/close.c: Likewise.
3305 * sysdeps/standalone/open.c: Likewise.
3306 * sysdeps/standalone/read.c: Likewise.
3307 * sysdeps/standalone/write.c: Likewise.
3308 * sysdeps/stub/__longjmp.c: Likewise.
3309 * sysdeps/stub/accept.c: Likewise.
3310 * sysdeps/stub/access.c: Likewise.
3311 * sysdeps/stub/acct.c: Likewise.
3312 * sysdeps/stub/adjtime.c: Likewise.
3313 * sysdeps/stub/alarm.c: Likewise.
3314 * sysdeps/stub/bind.c: Likewise.
3315 * sysdeps/stub/brk.c: Likewise.
3316 * sysdeps/stub/chdir.c: Likewise.
3317 * sysdeps/stub/chflags.c: Likewise.
3318 * sysdeps/stub/chmod.c: Likewise.
3319 * sysdeps/stub/chown.c: Likewise.
3320 * sysdeps/stub/chroot.c: Likewise.
3321 * sysdeps/stub/clock.c: Likewise.
3322 * sysdeps/stub/close.c: Likewise.
3323 * sysdeps/stub/closedir.c: Likewise.
3324 * sysdeps/stub/connect.c: Likewise.
3325 * sysdeps/stub/ctermid.c: Likewise.
3326 * sysdeps/stub/cuserid.c: Likewise.
3327 * sysdeps/stub/dirfd.c: Likewise.
3328 * sysdeps/stub/dup.c: Likewise.
3329 * sysdeps/stub/dup2.c: Likewise.
3330 * sysdeps/stub/euidaccess.c: Likewise.
3331 * sysdeps/stub/execve.c: Likewise.
3332 * sysdeps/stub/fchdir.c: Likewise.
3333 * sysdeps/stub/fchflags.c: Likewise.
3334 * sysdeps/stub/fchmod.c: Likewise.
3335 * sysdeps/stub/fchown.c: Likewise.
3336 * sysdeps/stub/fcntl.c: Likewise.
3337 * sysdeps/stub/fdopen.c: Likewise.
3338 * sysdeps/stub/fexecve.c: Likewise.
3339 * sysdeps/stub/flock.c: Likewise.
3340 * sysdeps/stub/fork.c: Likewise.
3341 * sysdeps/stub/fpathconf.c: Likewise.
3342 * sysdeps/stub/fstatfs.c: Likewise.
3343 * sysdeps/stub/fsync.c: Likewise.
3344 * sysdeps/stub/ftruncate.c: Likewise.
3345 * sysdeps/stub/fxstat.c: Likewise.
3346 * sysdeps/stub/getcwd.c: Likewise.
3347 * sysdeps/stub/getdents.c: Likewise.
3348 * sysdeps/stub/getdomain.c: Likewise.
3349 * sysdeps/stub/getdtsz.c: Likewise.
3350 * sysdeps/stub/getegid.c: Likewise.
3351 * sysdeps/stub/getenv.c: Likewise.
3352 * sysdeps/stub/geteuid.c: Likewise.
3353 * sysdeps/stub/getgid.c: Likewise.
3354 * sysdeps/stub/getgroups.c: Likewise.
3355 * sysdeps/stub/gethostid.c: Likewise.
3356 * sysdeps/stub/gethostname.c: Likewise.
3357 * sysdeps/stub/getitimer.c: Likewise.
3358 * sysdeps/stub/getlogin.c: Likewise.
3359 * sysdeps/stub/getlogin_r.c: Likewise.
3360 * sysdeps/stub/getpagesize.c: Likewise.
3361 * sysdeps/stub/getpeername.c: Likewise.
3362 * sysdeps/stub/getpid.c: Likewise.
3363 * sysdeps/stub/getppid.c: Likewise.
3364 * sysdeps/stub/getpriority.c: Likewise.
3365 * sysdeps/stub/getrlimit.c: Likewise.
3366 * sysdeps/stub/getrusage.c: Likewise.
3367 * sysdeps/stub/getsid.c: Likewise.
3368 * sysdeps/stub/getsockname.c: Likewise.
3369 * sysdeps/stub/getsockopt.c: Likewise.
3370 * sysdeps/stub/getsysstats.c: Likewise.
3371 * sysdeps/stub/gettimeofday.c: Likewise.
3372 * sysdeps/stub/getuid.c: Likewise.
3373 * sysdeps/stub/gtty.c: Likewise.
3374 * sysdeps/stub/ioctl.c: Likewise.
3375 * sysdeps/stub/isatty.c: Likewise.
3376 * sysdeps/stub/isfdtype.c: Likewise.
3377 * sysdeps/stub/kill.c: Likewise.
3378 * sysdeps/stub/killpg.c: Likewise.
3379 * sysdeps/stub/link.c: Likewise.
3380 * sysdeps/stub/listen.c: Likewise.
3381 * sysdeps/stub/lseek.c: Likewise.
3382 * sysdeps/stub/lxstat.c: Likewise.
3383 * sysdeps/stub/madvice.c: Likewise.
3384 * sysdeps/stub/mkdir.c: Likewise.
3385 * sysdeps/stub/mkfifo.c: Likewise.
3386 * sysdeps/stub/mkstemp.c: Likewise.
3387 * sysdeps/stub/mktemp.c: Likewise.
3388 * sysdeps/stub/mmap.c: Likewise.
3389 * sysdeps/stub/morecore.c: Likewise.
3390 * sysdeps/stub/mprotect.c: Likewise.
3391 * sysdeps/stub/msgctl.c: Likewise.
3392 * sysdeps/stub/msgget.c: Likewise.
3393 * sysdeps/stub/msgrcv.c: Likewise.
3394 * sysdeps/stub/msgsnd.c: Likewise.
3395 * sysdeps/stub/msync.c: Likewise.
3396 * sysdeps/stub/munmap.c: Likewise.
3397 * sysdeps/stub/nanosleep.c: Likewise.
3398 * sysdeps/stub/nice.c: Likewise.
3399 * sysdeps/stub/nlist.c: Likewise.
3400 * sysdeps/stub/open.c: Likewise.
3401 * sysdeps/stub/opendir.c: Likewise.
3402 * sysdeps/stub/pathconf.c: Likewise.
3403 * sysdeps/stub/pause.c: Likewise.
3404 * sysdeps/stub/pipe.c: Likewise.
3405 * sysdeps/stub/pipestream.c: Likewise.
3406 * sysdeps/stub/poll.c: Likewise.
3407 * sysdeps/stub/profil.c: Likewise.
3408 * sysdeps/stub/ptrace.c: Likewise.
3409 * sysdeps/stub/putenv.c: Likewise.
3410 * sysdeps/stub/raise.c: Likewise.
3411 * sysdeps/stub/read.c: Likewise.
3412 * sysdeps/stub/readdir.c: Likewise.
3413 * sysdeps/stub/readlink.c: Likewise.
3414 * sysdeps/stub/readv.c: Likewise.
3415 * sysdeps/stub/reboot.c: Likewise.
3416 * sysdeps/stub/recv.c: Likewise.
3417 * sysdeps/stub/recvfrom.c: Likewise.
3418 * sysdeps/stub/recvmsg.c: Likewise.
3419 * sysdeps/stub/remove.c: Likewise.
3420 * sysdeps/stub/rename.c: Likewise.
3421 * sysdeps/stub/revoke.c: Likewise.
3422 * sysdeps/stub/rewinddir.c: Likewise.
3423 * sysdeps/stub/rmdir.c: Likewise.
3424 * sysdeps/stub/sbrk.c: Likewise.
3425 * sysdeps/stub/sched_getp.c: Likewise.
3426 * sysdeps/stub/sched_gets.c: Likewise.
3427 * sysdeps/stub/sched_primax.c: Likewise.
3428 * sysdeps/stub/sched_primin.c: Likewise.
3429 * sysdeps/stub/sched_rr_gi.c: Likewise.
3430 * sysdeps/stub/sched_setp.c: Likewise.
3431 * sysdeps/stub/sched_sets.c: Likewise.
3432 * sysdeps/stub/sched_yield.c: Likewise.
3433 * sysdeps/stub/seekdir.c: Likewise.
3434 * sysdeps/stub/select.c: Likewise.
3435 * sysdeps/stub/semctl.c: Likewise.
3436 * sysdeps/stub/semget.c: Likewise.
3437 * sysdeps/stub/semop.c: Likewise.
3438 * sysdeps/stub/send.c: Likewise.
3439 * sysdeps/stub/sendmsg.c: Likewise.
3440 * sysdeps/stub/sendto.c: Likewise.
3441 * sysdeps/stub/setdomain.c: Likewise.
3442 * sysdeps/stub/setegid.c: Likewise.
3443 * sysdeps/stub/setenv.c: Likewise.
3444 * sysdeps/stub/seteuid.c: Likewise.
3445 * sysdeps/stub/setgid.c: Likewise.
3446 * sysdeps/stub/setgroups.c: Likewise.
3447 * sysdeps/stub/sethostid.c: Likewise.
3448 * sysdeps/stub/sethostname.c: Likewise.
3449 * sysdeps/stub/setitimer.c: Likewise.
3450 * sysdeps/stub/setjmp.c: Likewise.
3451 * sysdeps/stub/setlogin.c: Likewise.
3452 * sysdeps/stub/setpgid.c: Likewise.
3453 * sysdeps/stub/setpriority.c: Likewise.
3454 * sysdeps/stub/setregid.c: Likewise.
3455 * sysdeps/stub/setreuid.c: Likewise.
3456 * sysdeps/stub/setrlimit.c: Likewise.
3457 * sysdeps/stub/setsid.c: Likewise.
3458 * sysdeps/stub/setsockopt.c: Likewise.
3459 * sysdeps/stub/settimeofday.c: Likewise.
3460 * sysdeps/stub/setuid.c: Likewise.
3461 * sysdeps/stub/shmat.c: Likewise.
3462 * sysdeps/stub/shmctl.c: Likewise.
3463 * sysdeps/stub/shmdt.c: Likewise.
3464 * sysdeps/stub/shmget.c: Likewise.
3465 * sysdeps/stub/shutdown.c: Likewise.
3466 * sysdeps/stub/sigaction.c: Likewise.
3467 * sysdeps/stub/sigaltstack.c: Likewise.
3468 * sysdeps/stub/sigblock.c: Likewise.
3469 * sysdeps/stub/sigintr.c: Likewise.
3470 * sysdeps/stub/signal.c: Likewise.
3471 * sysdeps/stub/sigpause.c: Likewise.
3472 * sysdeps/stub/sigpending.c: Likewise.
3473 * sysdeps/stub/sigprocmask.c: Likewise.
3474 * sysdeps/stub/sigreturn.c: Likewise.
3475 * sysdeps/stub/sigsetmask.c: Likewise.
3476 * sysdeps/stub/sigstack.c: Likewise.
3477 * sysdeps/stub/sigsuspend.c: Likewise.
3478 * sysdeps/stub/sigvec.c: Likewise.
3479 * sysdeps/stub/sleep.c: Likewise.
3480 * sysdeps/stub/socket.c: Likewise.
3481 * sysdeps/stub/socketpair.c: Likewise.
3482 * sysdeps/stub/sstk.c: Likewise.
3483 * sysdeps/stub/statfs.c: Likewise.
3484 * sysdeps/stub/stime.c: Likewise.
3485 * sysdeps/stub/stty.c: Likewise.
3486 * sysdeps/stub/swapoff.c: Likewise.
3487 * sysdeps/stub/swapon.c: Likewise.
3488 * sysdeps/stub/symlink.c: Likewise.
3489 * sysdeps/stub/sync.c: Likewise.
3490 * sysdeps/stub/syscall.c: Likewise.
3491 * sysdeps/stub/sysconf.c: Likewise.
3492 * sysdeps/stub/sysd-stdio.c: Likewise.
3493 * sysdeps/stub/system.c: Likewise.
3494 * sysdeps/stub/tcdrain.c: Likewise.
3495 * sysdeps/stub/tcflow.c: Likewise.
3496 * sysdeps/stub/tcflush.c: Likewise.
3497 * sysdeps/stub/tcgetattr.c: Likewise.
3498 * sysdeps/stub/tcgetpgrp.c: Likewise.
3499 * sysdeps/stub/tcsendbrk.c: Likewise.
3500 * sysdeps/stub/tcsetattr.c: Likewise.
3501 * sysdeps/stub/tcsetpgrp.c: Likewise.
3502 * sysdeps/stub/telldir.c: Likewise.
3503 * sysdeps/stub/tempname.c: Likewise.
3504 * sysdeps/stub/time.c: Likewise.
3505 * sysdeps/stub/times.c: Likewise.
3506 * sysdeps/stub/truncate.c: Likewise.
3507 * sysdeps/stub/ttyname.c: Likewise.
3508 * sysdeps/stub/ttyname_r.c: Likewise.
3509 * sysdeps/stub/ualarm.c: Likewise.
3510 * sysdeps/stub/ulimit.c: Likewise.
3511 * sysdeps/stub/umask.c: Likewise.
3512 * sysdeps/stub/unlink.c: Likewise.
3513 * sysdeps/stub/usleep.c: Likewise.
3514 * sysdeps/stub/ustat.c: Likewise.
3515 * sysdeps/stub/utime.c: Likewise.
3516 * sysdeps/stub/utimes.c: Likewise.
3517 * sysdeps/stub/vhangup.c: Likewise.
3518 * sysdeps/stub/wait.c: Likewise.
3519 * sysdeps/stub/wait3.c: Likewise.
3520 * sysdeps/stub/wait4.c: Likewise.
3521 * sysdeps/stub/waitpid.c: Likewise.
3522 * sysdeps/stub/write.c: Likewise.
3523 * sysdeps/stub/writev.c: Likewise.
3524 * sysdeps/stub/xmknod.c: Likewise.
3525 * sysdeps/stub/xstat.c: Likewise.
3526 * sysdeps/unix/closedir.c: Likewise.
3527 * sysdeps/unix/fxstat.c: Likewise.
3528 * sysdeps/unix/getlogin.c: Likewise.
3529 * sysdeps/unix/getlogin_r.c: Likewise.
3530 * sysdeps/unix/mkdir.c: Likewise.
3531 * sysdeps/unix/nice.c: Likewise.
3532 * sysdeps/unix/nlist.c: Likewise.
3533 * sysdeps/unix/opendir.c: Likewise.
3534 * sysdeps/unix/readdir.c: Likewise.
3535 * sysdeps/unix/rmdir.c: Likewise.
3536 * sysdeps/unix/stime.c: Likewise.
3537 * sysdeps/unix/xmknod.c: Likewise.
3538 * sysdeps/unix/xstat.c: Likewise.
3539 * sysdeps/unix/bsd/isatty.c: Likewise.
3540 * sysdeps/unix/bsd/setegid.c: Likewise.
3541 * sysdeps/unix/bsd/seteuid.c: Likewise.
3542 * sysdeps/unix/bsd/setsid.c: Likewise.
3543 * sysdeps/unix/bsd/sigaction.c: Likewise.
3544 * sysdeps/unix/bsd/sigprocmask.c: Likewise.
3545 * sysdeps/unix/bsd/sigsuspend.c: Likewise.
3546 * sysdeps/unix/bsd/tcflow.c: Likewise.
3547 * sysdeps/unix/bsd/tcflush.c: Likewise.
3548 * sysdeps/unix/bsd/tcgetattr.c: Likewise.
3549 * sysdeps/unix/bsd/tcsetattr.c: Likewise.
3550 * sysdeps/unix/bsd/times.c: Likewise.
3551 * sysdeps/unix/bsd/ulimit.c: Likewise.
3552 * sysdeps/unix/common/lxstat.c: Likewise.
3553 * sysdeps/unix/common/tcsendbrk.c: Likewise.
3554 * sysdeps/unix/sysv/setrlimit.c: Likewise.
3555 * sysdeps/unix/sysv/settimeofday.c: Likewise.
3556 * sysdeps/unix/sysv/sigaction.c: Likewise.
3557 * sysdeps/unix/sysv/tcflow.c: Likewise.
3558 * sysdeps/unix/sysv/tcflush.c: Likewise.
3559 * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3560 * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3561 * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3562 * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
3563 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3564 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
3565 * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
3566 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
3567 * sysdeps/unix/sysv/linux/gethostname.c: Likewise.
3568 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3569 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
3570 * sysdeps/unix/sysv/linux/speed.c: Likewise.
3571 * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
3572 * sysdeps/unix/sysv/sysv4/sigaction.c: Likewise.
3573 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3574 * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
3575 * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
3576 * sysdeps/unix/bsd/sun/sunos4/speed.c: Likewise.
3577 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c: Likewise.
3578 * sysdeps/unix/sysv/linux/alpha/ioperm.c: Likewise.
3579 * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
3580 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3581 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
3582
3583 * sunrpc/clnt_tcp.c: Protect declaration of errno by #ifndef.
3584 * sunrpc/clnt_udp.c: Likewise.
3585 * sunrpc/bindrsvprt.c: Likewise.
3586 * sunrpc/pm_getmaps.c: Likewise.
3587 * sunrpc/pmap_rmt.c: Likewise.
3588 * sunrpc/svc.c: Likewise.
3589 * sunrpc/svc_run.c: Likewise.
3590 * sunrpc/svc_tcp.c: Likewise.
3591 * sunrpc/svc_udp.c: Likewise.
3592
3593 * sysdeps/generic/strtok.c: Don't check argument, just crash.
3594 * sysdeps/generic/strtok_r.c: Likewise.
3595
3596 * sysdeps/stub/start.c: Make __errno a strong alias of errno.
3597 * sysdeps/unix/start.c: Likewise. De-ANSI-fy.
3598 * sysdeps/unix/sparc/start.c: Likewise.
3599 * sysdeps/standalone/m68k/m68020/start.S: Likewise.
3600 * sysdeps/unix/sysv/irix4/start.c: Likewise.
3601 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
3602 * sysdeps/unix/sysv/linux/i386/sysdep.S: Likewise.
3603 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3604
3605 Mon Sep 23 17:54:57 1996 Ulrich Drepper <drepper@cygnus.com>
3606
3607 * catgets/gencat.c (main): Put package name in --version message
3608 in parantheses. Reported by Jim Meyering.
3609 * db/makedb.c: Likewise.
3610 * locale/programs/locale.c: Likewise.
3611 * locale/programs/localedef.c: Likewise.
3612
3613 * sysdeps/i386/fpu/__math.h (tan): Make sure gcc knows we use
3614 two registers. Patch by John Bowman.
3615
3616 Sat Sep 21 15:08:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3617
3618 * sysdeps/mach/libc-lock.h: Fix comment.
3619 * sysdeps/stubs/libc-lock.h: Likewise.
3620
3621 Sat Sep 21 13:50:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3622
3623 * libio/genops.c (_IO_init) [_IO_MTSAFE_IO]: Dereference pointer
3624 to lock when passing it to __libc_lock_init macro.
3625 (_IO_default_finish) [_IO_MTSAFE_IO]: Dereference pointer to lock
3626 when passing it to __libc_lock_fini macro.
3627
3628 Sat Sep 21 14:35:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3629
3630 * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYSCALL_ERROR_HANDLER)
3631 [_LIBC_REENTRANT]: Add missing semicolon.
3632
3633 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Move inclusion of
3634 sysdep.h to the top outside of #ifndef PIC. Don't include errnos.h.
3635 Use the ENTRY macro.
3636
3637 Sat Sep 21 14:33:41 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3638
3639 * libio/Makefile: Make `all' the default target.
3640 * po/Makefile: Likewise.
3641
3642 Mon Sep 23 15:49:47 1996 Ulrich Drepper <drepper@cygnus.com>
3643
3644 * stdlib/test-canon.c: Correct patch from Thu Sep 12 23:01:16 1996.
3645 I applied it incorrectly.
3646 * sysdeps/m68k/fpu/s_scalbn.c: Likewise.
3647 * sysdeps/m68k/fpu/s_scalbnf.c: Likewise.
3648 * sysdeps/m68k/fpu/s_scalbnl.c: Likewise.
3649
3650 Mon Sep 23 03:00:10 1996 Ulrich Drepper <drepper@cygnus.com>
3651
3652 * shadow/sgetspent_r.c (LINE_PARSER): Accept empty 9th field.
3653 Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
3654
3655 * shadow/sgetspent_r.c (LINE_PARSER): Don't accept any chars after
3656 9th field.
3657
3658 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
3659 (sysdep_headers): Add sys/debugreg.h, sys/kd.h, sys/soundcard.h,
3660 and sys/vt.h.
3661 * sysdeps/unix/sysv/linux/sys/debugreg.h: New file.
3662 * sysdeps/unix/sysv/linux/sys/kd.h: New file.
3663 * sysdeps/unix/sysv/linux/sys/soundcard.h: New file.
3664 * sysdeps/unix/sysv/linux/sys/vt.h: New file.
3665 Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
3666
3667 Thu Sep 26 13:44:29 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3668
3669 * hurd/Makefile (installed-sunrpc-headers): New variable.
3670 (sunrpc-headers): New variable.
3671 (install-headers-nosubir): Depend on $(installed-sunrpc-headers),
3672 not just <rpc/netdb.h>.
3673 ($(installed-sunrpc-headers)): Provide rule for all of these.
3674
3675 Mon Sep 23 15:31:04 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3676
3677 * hurd/Makefile ($(includedir)/rpc/netdb.h): There is no make
3678 variable `top_srcdir' in libc; use $(..) instead.
3679
3680 * sysdeps/mach/hurd/Makefile (rtld-installed-name): Delete special
3681 definition. It was a *Mistake*. (With a capital M.)
3682
3683 * sysdeps/mach/getsysstats.c (__get_nprocs): Renamed from
3684 __get_nproc.
3685 (__get_nprocs_conf): Renamed from __get_nproc_conf.
3686
3687 Sun Sep 22 15:18:41 1996 Ulrich Drepper <drepper@cygnus.com>
3688
3689 * sysdeps/unix/sysv/linux/init-first.c: Define dummy function
3690 `_dl_start' so that linking fails if this file should ever be used
3691 in ld.so.
3692
3693 * catgets/gencat.c (main): Change --version message according to
3694 RMS' last standard revision.
3695 * db/makedb.c: Likewise.
3696 * locale/programs/locale.c: Likewise.
3697 * locale/programs/localedef.c: Likewise.
3698
3699 Sat Sep 21 23:42:39 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3700
3701 * sysdeps/mach/getsysstats.c: Include <sys/sysinfo.h>.
3702 (__get_nproc_conf): New function.
3703
3704 Sun Sep 22 03:40:52 1996 Ulrich Drepper <drepper@cygnus.com>
3705
3706 * resolv/resolv.h: Update to bind-4.9.5-T4B.
3707 * resolv/base64.c: Likewise.
3708 * resolv/res_debug.c: Likewise.
3709 * resolv/res_query.c: Likewise.
3710 * resolv/gethnamaddr.c: Likewise.
3711 * nss/nss_dns/dns-host.c: Likewise.
3712 * resolv/res_comp.c: Likewise.
3713 * resolv/res_send.c: Likewise.
3714 * resolv/arpa/nameser.h: Likewise. Attention: MAXDNAME is much
3715 higher now.
3716
3717 * resolv/Banner: New file.
3718 * resolv/Makefile (distribute): Add Banner.
3719
3720 Sat Sep 21 19:15:24 1996 Ulrich Drepper <drepper@cygnus.com>
3721
3722 * sysdeps/stub/getsysstats.c: New file.
3723 * sysdeps/unix/sysv/linux/getsysstats.c: New file.
3724
3725 * misc/Makefile (headers): Add sys/sysinfo.h.
3726 (routines): Add getsysstats.
3727 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
3728 (sysdep_headers): Remove sys/sysinfo.h.
3729 * sysdeps/generic/sys/sysinfo.h: New file.
3730 * sysdeps/unix/sysv/linux/sys/sysinfo.h: Add prototype for get_nprocs,
3731 get_phys_pages, and get_avphys_pages.
3732
3733 * misc/Makefile (routines): Add mntent_r.
3734 * misc/mntent_r.c: New file.
3735 * misc/mntent.c: Remove all functions but getmntent and use
3736 __getmntent_r.
3737 * misc/mntent.h: Add prototype for __getmntent_r.
3738 * misc/fstab.c: Use __getmntent_r function instead of getmntent.
3739 This will not clobber the state in getmntent.
3740
3741 * sysdeps/generic/confname.h: Add _SC_PROCESSORS_CONF,
3742 _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES,
3743 _SC_ATEXIT_MAX, and _SC_PASS_MAX.
3744 * sysdeps/stub/sysconf.c: Add handling _SC_PROCESSORS_CONF and
3745 _SC_NPROCESSORS_ONLN by calling __get_nprocs, _SC_PHYS_PAGES by
3746 calling __get_phys_pages, _SY_AVPHYS_PAGES by calling
3747 __get_avphys_pages, _SC_ATEXIT_MAX and _SC_PASS_MAX.
3748 * sysdeps/posix/sysconf.c: Likewise.
3749 * posix/getconf.c (vars): Add _NPROCESSORS_CONF, _NPROCESSORS_ONLN,
3750 _PHYS_PAGES, _AVPHYS_PAGES, ATEXIT_MAX, and PASS_MAX entries.
3751
3752 Sat Sep 21 05:20:36 1996 Ulrich Drepper <drepper@cygnus.com>
3753
3754 * version.h (VERSION): Bump to 1.95.
3755
3756 * Make-dist (+tsrcs): Don't filter out files in subdirs which
3757 match files in the sysdeps hierachy (welcome back,
3758 sys/syscall.h!).
3759
3760 * resolv/Makefile (libresolv-routines): Remove getnetnamad.
3761
3762 Sat Sep 21 03:00:19 1996 Ulrich Drepper <drepper@cygnus.com>
3763
3764 * locale/loadlocale.c (_nl_free_locale): Remove function.
3765 * locale/localeinfo.h: Remove prototype for _nl_free_locale.
3766 * locale/setlocale.c (setlocale): Don't free locale data of
3767 categories which succeeded to load after a wrong or missing data
3768 file was observed.
3769
3770 * locale/setlocale (setlocale): Initialize NEWNAME correctly so
3771 that it works even when the locale data is not used.
3772
3773 * stdlib/random_r.c: Fix typo in comment.
3774 * stdlib/drand48-iter.c: Likewise.
3775 * stdlib/drand48.c: Likewise.
3776 * stdlib/erand48.c: Likewise.
3777 * stdlib/jrand48.c: Likewise.
3778 * stdlib/lcong48.c: Likewise.
3779 * stdlib/lrand48.c: Likewise.
3780 * stdlib/mrand48.c: Likewise.
3781 * stdlib/nrand48.c: Likewise.
3782 * stdlib/random.c: Likewise.
3783 * stdlib/seed48.c: Likewise.
3784 * stdlib/srand48.c: Likewise.
3785 * misc/search.h: Likewise.
3786 * misc/hsearch.c: Likewise.
3787 * misc/hsearch_r.c: Likewise.
3788
3789 Sat Sep 21 14:59:22 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3790
3791 * sysdeps/mach/getsysstats.c: New file.
3792
3793 * shlib-versions (*-*-gnu*): Increment libc to 0.2 for upcoming
3794 binary distribution.
3795
3796 * sysdeps/mach/hurd/Makefile (rtld-installed-name): Provide
3797 definition to override dangerous one in Makeconfig.
3798
3799 * hurd/Makefile (install-headers-nosubdir): Install <rpc/netdb.h>.
3800 ($(includedir)/rpc/netdb.h): New rule.
3801 [ This is XXX until sunrpc can be built; <rpc/netdb.h> is
3802 essential. ]
3803
3804 Fri Sep 20 16:06:06 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3805
3806 * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Add definition,
3807 to guarantee link errors if this is included in ld.so.
3808
3809 Thu Sep 19 23:36:19 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3810
3811 * hurd/hurdinit.c (__libc_argv): Provide common decl.
3812 (_hurd_setproc): Don't declare __libc_argv here.
3813
3814 Tue Sep 17 10:51:58 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3815
3816 * malloc/memalign.c (memalign): Only acquire __libc_malloc_lock
3817 for actual modifications to global state.
3818
3819 Fri Sep 13 01:21:36 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3820
3821 * sysdeps/mach/Makefile (includes): Add -I$(common-objpfx)mach/.
3822 * sysdeps/mach/hurd/Makefile (includes): Add
3823 -I$(common-objpfx)hurd/. Reported by Marcus Daniels.
3824
3825 * sysdeps/generic/schedbits.h (struct sched_param): Renamed from
3826 struct sched_params.
3827 * sysdeps/stub/sched_setp.c (__sched_setparam): struct
3828 sched_params -> struct sched_param.
3829 * sysdeps/stub/sched_getp.c (__sched_getparam): Likewise.
3830 * sysdeps/stub/sched_sets.c (__sched_setscheduler): Likewise.
3831
3832 Thu Sep 12 23:58:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
3833
3834 * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): Fix
3835 syntax error.
3836
3837 * stdio-common/Makefile: Put lockfile in routines
3838 unconditionally.
3839
3840 * stdio-common/vfprintf.c (__flockfile, __funlockfile): Declare
3841 this always, not just if _LIBC_REENTRANT.
3842 (__funlockfile): Don't use weak_extern for this one;
3843 __libc_cleanup_region_end might be defined and the use of
3844 __funlockfile can't be protected the way the use of __flockfile
3845 can be.
3846
3847 Thu Sep 19 21:50:55 1996 Ulrich Drepper <drepper@cygnus.com>
3848
3849 * sysdeps/posix/gettimeofday.c (__gettimeofday): Use localtime_r
3850 instead of localtime.
3851 Reported by Matthias Urlichs.
3852
3853 * shlib-versions: Remove version number for libcrypt.
3854 * features.h: Define __USE_REENTRANT if _REENTRANT or _THREAD_SAFE.
3855 * libc-symbols.h: Define _REENTRANT while compiling libc.
3856
3857 * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location):
3858 Define even if !_LIBC_REENTRANT.
3859 * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
3860 Likewise.
3861
3862 * sysdeps/posix/cuserid.h: Remove prototype for geteuid().
3863 De-ANSI-fy.
3864
3865 * MakeTAGS ($P/libc.pot): Generate correctly formed header.
3866 * po/header.pot: Correct title line.
3867 * po/nl.po: Update.
3868
3869 Thu Sep 19 18:59:55 1996 Ulrich Drepper <drepper@cygnus.com>
3870
3871 * Makeconfig (soversions.mk): Prefer shared lib version numbers
3872 is add ons over version in libc itself.
3873
3874 * sysdeps/unix/sysv/linux/i386/sysdep.S: Include <sysdep.h>.
3875 * sysdeps/unix/sysv/linux/i386/sysdep.h: Prevent multiple
3876 inclusion.
3877
3878 * libio/iofgets.c: Use __flockfile and __funlockfile instead of
3879 _IO_flockfile and _IO_funlockfile resp.
3880
3881 * locale/categories.def: Partly support for correct `era' handling
3882 in LC_TIME category.
3883 * locale/langinfo.h: Likewise.
3884 * locale/programs/ld-time.c: Likewise.
3885 * locale/localeinfo.h: Change comment a bit.
3886
3887 * malloc/memalign.c: Don't use goto, not necessary anymore.
3888
3889 1996-09-18 Paul Eggert <eggert@twinsun.com>
3890
3891 * time/mktime.c (ydhms_tm_diff): Work correctly even if year
3892 is negative, or if time_t is unsigned.
3893 * time/strftime.c (tm_diff): Work correctly even if tm_year
3894 is near INT_MIN.
3895
3896 Tue Sep 17 16:14:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3897
3898 * sysdeps/m68k/fpu/__math.h (__inline_mathop): Changed to generate
3899 all three versions of the math function.
3900 (__inline_mathopf, __inline_mathopl): Removed.
3901 (__inline_functions): New temporary definition containing all
3902 non-trivial inline functions.
3903
3904 Wed Sep 18 00:25:41 1996 Ulrich Drepper <drepper@cygnus.com>
3905
3906 * time/strftime.c (strftime): The T_FMT_AMPM string may be empty.
3907
3908 Tue Sep 17 20:27:18 1996 Ulrich Drepper <drepper@cygnus.com>
3909
3910 * math/Makefile (extra-libs-others): Use $(extra-libs) instead
3911 of $(extra-libc).
3912
3913 Tue Sep 17 17:09:44 1996 Ulrich Drepper <drepper@cygnus.com>
3914
3915 * sysdeps/stub/fpu_control.h: Correct end of file comment.
3916
3917 Tue Sep 17 05:39:18 1996 Ulrich Drepper <drepper@cygnus.com>
3918
3919 * stdio-common/bug3.c, stdio-common/bug4.c, stdio-common/bug5.c,
3920 stdio-common/test-popen.c: Remove temporary files after test.
3921 * stdio-common/bug5.c: Use `system' instead of `execlp'.
3922 Patches by Andreas Jaeger.
3923
3924 * stdio-common/bug5.c: Create string for `system' argument to
3925 make sure the input and output file names are really correct.
3926
3927 Sun Sep 15 12:46:44 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3928
3929 * configure.in: If $os contains a hyphen add the part before the
3930 hyphen to $ostry.
3931
3932 Sun Sep 15 18:14:02 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3933
3934 * sysdeps/m68k/fpu/__math.h (__ieee754_pow, __ieee754_powf,
3935 __ieee754_powl): Rename local variable i to __i.
3936 (__ieee754_atan2, __ieee754_atan2f, __ieee754_atan2l): New inline
3937 functions.
3938 * sysdeps/m68k/fpu/e_atan2.c, sysdeps/m68k/fpu/e_atan2f.c,
3939 sysdeps/m68k/fpu/e_atan2l.c: New files.
3940
3941 1996-09-15 Paul Eggert <eggert@twinsun.com>
3942
3943 * manual/time.texi: Change `range X to Y' to `range X through
3944 Y', to avoid ambiguity in English.
3945
3946 (strftime): Numbers that do not have a range indicated are not padded.
3947 Describe E and O modifiers.
3948 %g, %G, %u: New formats.
3949 %C, %y, %Y: Describe behavior on negative years.
3950 %e: Fix typo (was labeled %d).
3951 %l, %V: Fix typo in range.
3952 %M, %S, %U, %w, %W: Give ranges.
3953 %p: Clarify how noon and midnight are handled for AM and PM.
3954 %s: Clarify leap second handling.
3955 %r: Now locale-defined.
3956 %C, %D, %e, %h, %n, %r, %t, %T: Say that they are POSIX.2 extensions.
3957 %z: Say that it is a GNU extension.
3958 %Z: Wording fix.
3959
3960 * time/strftime.c: (strftime):
3961 %V: Fix mishandling of week numbers near year boundaries.
3962 %g, %G: New formats (suggested by Arthur David Olson).
3963 %U, %W: Use inline expression instead of `week' function.
3964 %C, %y: Handle negative years portably.
3965 %C, %Y: Use width 1, since values can be arbitrarily wide.
3966 %r: Use T_FMT_AMPM format if _NL_CURRENT is defined.
3967 %u: New Posix.2 format.
3968 %w: Width is 1, not 2.
3969 (iso_week_days): New function, for %V, %G, %g.
3970 (week): Remove; it didn't handle %V correctly.
3971 (__isleap): New macro.
3972 (mbsinit): Use arg, to pacify GCC -Wall.
3973
3974 1996-09-13 Paul Eggert <eggert@twinsun.com>
3975
3976 * time/strftime.c (strftime):
3977 If using the GNU C library, do not bother to check for
3978 multibyte encodings, since they're safe in formats. Otherwise:
3979 - Check for multibyte encodings when encountering any character that
3980 is not in the basic execution character set of the C Standard.
3981 - Use mbrlen (if available) instead of mblen, to avoid modifying
3982 mblen's internal state.
3983 - Do not assume that '%' cannot appear as the first character of a
3984 multibyte character sequence, since this is possible when not in the
3985 initial shift state.
3986 (HAVE_MBRLEN, MULTIBYTE_IS_FORMAT_SAFE): Define if _LIBC is defined.
3987 (DO_MULTIBYTE): New macro.
3988 (<ctype.h>): Do not include.
3989 (<wchar.h>): Include if HAVE_MBRLEN.
3990 (mbstate_t, mbrlen, mbsinit): Define if ! HAVE_MBRLEN.
3991 (mbstate_zero): New constant.
3992
3993 1996-09-12 Paul Eggert <eggert@twinsun.com>
3994
3995 * time/strftime.c (strftime):
3996 Use an empty zone if it can't be determined; POSIX.2 requires this.
3997 Use plain `int' for pad and modifier (which now contain char value).
3998 Use plain `int' for number_value, to print negative values correctly.
3999 Use plain `int' for digits; there was no need to make it unsigned.
4000 Initialize subfmt consistently.
4001 Remove incorrect code for %EC and %Ey; they aren't implemented yet.
4002 For %O, if there is no alternate digit, output Ascii instead of "".
4003 Output the `%' of an unknown format; this is most likely the right
4004 thing to do if a multibyte string has been misparsed.
4005
4006 Thu Sep 12 23:23:13 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4007
4008 * stdio-common/scanf7.c (main): Remove extra conversion from
4009 printf format string.
4010
4011 Thu Sep 12 23:01:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4012
4013 * stdlib/test-canon.c (tests): Rename structure member from errno
4014 to error, all uses changed.
4015
4016 Thu Sep 12 20:08:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4017
4018 * sysdeps/m68k/fpu/__math.h (__ldexp, __ldexpf, __ldexpl):
4019 Removed.
4020 * sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
4021 sysdeps/m68k/fpu/s_ldexpl.c: Removed, use generic implementation
4022 instead.
4023 * sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
4024 sysdeps/m68k/fpu/s_scalbnl.c: Replaced with old contents of
4025 s_ldexp.c, s_ldexpf.c and s_ldexpl.c, resp., suitably adpted.
4026
4027 * sysdeps/m68k/fpu/__math.h (__frexp, __frexpf, __frexpl):
4028 Return value must be in [0.5, 1), not [1, 2). Reported by Chris
4029 Lawrence.
4030 (__ilogb, __ilogbf, __ilogbl): Check for argument being zero.
4031 (__scalbn, __scalbnf, __scalbnl): Use second argument directly.
4032
4033 Thu Sep 12 19:59:24 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4034
4035 * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
4036 * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
4037
4038 Thu Sep 12 19:59:24 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4039
4040 * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
4041 * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
4042
4043 Thu Sep 12 19:56:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4044
4045 * inet/herrno.c (__h_errno_location): Fix return type.
4046
4047 Thu Sep 19 23:36:19 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
4048
4049 * hurd/hurdinit.c (__libc_argv): Provide common decl.
4050 (_hurd_setproc): Don't declare __libc_argv here.
4051
4052 Fri Sep 13 04:33:08 1996 Ulrich Drepper <drepper@cygnus.com>
4053
4054 * sched.h: New file. Helper to access posix/sched.h.
4055 * posix/sched.h: Change `sched_params' to `sched_param' to follow
4056 POSIX.4.
4057
4058 Thu Sep 12 20:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
4059
4060 * db/makedb.c (usage): Print bug report address separately to
4061 ease translators task.
4062 * catgets/gencat.c (usage): Likewise.
4063 * locale/locale.c (usage): Likewise.
4064 * locale/localedef.c (usage): Likewise.
4065
4066 1996-09-12 Paul Eggert <eggert@twinsun.com>
4067
4068 * time/strftime.c (my_localtime_r): Define if ! HAVE_LOCALTIME_R,
4069 and #define localtime_r to it. If _LIBC, use __localtime_r instead.
4070 (my_gmtime_r): Similar, except it's not needed if ! HAVE_TM_GMTOFF.
4071
4072 Thu Sep 12 14:03:29 1996 Ulrich Drepper <drepper@cygnus.com>
4073
4074 * crypt/Makefile: Include Makeconfig and add crypt object dir to
4075 rpath-link so that running the check finds the new library.
4076 * crypt/cert.c: provide correct prototypes to prevent warnings.
4077 Reported by Andreas Jaeger.
4078
4079 * sysdeps/mach/hurd/Makefile (rpath-link): Don't use += because
4080 old and new value must be glued using `:'.
4081 Reported by Marcus Daniels.
4082
4083 Thu Sep 12 12:33:52 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
4084
4085 * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
4086 accidentally added on.
4087
4088 * sysdeps/stub/intr-msg.h: New file.
4089
4090 * stdio-common/vfprintf.c: Include <libc-lock.h>.
4091 * stdio-common/vfscanf.c: Include <libc-lock.h>.
4092
4093 * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
4094 macro.
4095 (__libc_cleanup_region_end): New macro.
4096
4097 Thu Sep 12 12:33:52 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
4098
4099 * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
4100 accidentally added on.
4101
4102 * sysdeps/stub/intr-msg.h: New file.
4103
4104 * stdio-common/vfprintf.c: Include <libc-lock.h>.
4105 * stdio-common/vfscanf.c: Include <libc-lock.h>.
4106
4107 * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
4108 macro.
4109 (__libc_cleanup_region_end): New macro.
4110
4111 Thu Sep 12 03:35:27 1996 Ulrich Drepper <drepper@cygnus.com>
4112
4113 * sysdeps/unix/sysv/linux/i386/Dist: Remove init-first.h.
4114 * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
4115 * sysdeps/unix/sysv/linux/Dist: Add init-first.h.
4116
4117 1996-09-11 Paul Eggert <eggert@twinsun.com>
4118
4119 * strftime.c (strftime):
4120 Handle E and O modifiers, required for POSIX.2 and XPG4.
4121 Don't use sprintf to format numbers; this way, we can handle time_t
4122 correctly regardless of whether it's signed.
4123 Don't dump core if format ends in %.
4124 In default %c format, use %e instead of %d, for POSIX.2 compatibility.
4125 For %z:
4126 Use tm_gmtoff if available.
4127 Output nothing if tm_isdst is negative.
4128 Output correct value even if arg is 1969-12-31 23:59:59 UTC.
4129 Don't assume that UTC offset is less than 24 hours;
4130 Posix requires support for 24 hours, and there's no point
4131 limiting it at all.
4132 (HAVE_TM_GMTOFF, TYPE_SIGNED, INT_STRLEN_BOUND): New macros.
4133 (CHAR_BIT): Define if <limits.h> doesn't.
4134 (tm_diff): New function.
4135 (fmt, <stdio.h>): Remove; no longer used.
4136
4137 Thu Sep 12 02:21:44 1996 Ulrich Drepper <drepper@cygnus.com>
4138
4139 * db/Makefile: Add extra-libs-others variable so that shared
4140 library is built in `others' pass.
4141 * elf/Makefile: Likewise.
4142 * math/Makefile: Likewise.
4143 * resolv/Makefile: Likewise.
4144
4145 * Makefile (generated): Add version.info.h.
4146
4147 * time/checktab.awk: New file. From ADO 96k.
4148 * time/iso3166.tab: Likewise.
4149 * time/tzselect.ksh: Likewise.
4150 * time/zone.tab: Likewise.
4151
4152 * stdio-common/vfprintf.c: Correct cleanup registration. We
4153 cannot use a macro
4154
4155 1996-09-11 Paul Eggert <eggert@twinsun.com>
4156
4157 * time/time.h (tm_gmtoff, tm_zone): Prefix with `__' unless
4158 __USE_BSD; this is required for ANSI C compatibility.
4159 * manual/time.texi: Replace GMT by UTC, daylight savings by
4160 daylight saving, timezone by time zone.
4161 Rewrite description of %V to match ISO 8601.
4162 Fix TZ Posix string example for US Eastern time.
4163 Explain tzname[1] when DST isn't used.
4164 Explain tzname when multiple abbreviations used (e.g. EST/EWT/EDT).
4165 Explain that timezone's sign is opposite from tm_gmtoff, and that
4166 timezone lacks DST adjustment whereas tm_gmtoff has it.
4167 Deprecate tzname and timezone.
4168
4169 Tue Sep 10 14:46:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4170
4171 Implement Roland McGrath's idea of how to put an .interp into
4172 shared libraries.
4173 * interp.c: New file.
4174 * Makerules (interp-obj): New object, linked into every shared
4175 library.
4176 (common-generated): Add interp.so.
4177 (CFLAGS-interp.c): Pass name of interpreter.
4178
4179 Tue Sep 10 21:09:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4180
4181 * db/Makefile: Fix typo.
4182
4183 Tue Sep 10 19:29:53 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4184
4185 * nss/db-Makefile ($(VAR_DB)/passwd.db): Look for multiple
4186 occurences of the same uid, and only generate a mapping for the
4187 first one.
4188
4189 Tue Sep 10 03:14:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4190
4191 * sysdeps/unix/sysv/linux/system.c: New file, to override
4192 sysdeps/unix/system.c.
4193
4194 Tue Sep 10 15:05:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4195
4196 * Makefile (before-compile): Add version-info.h, needed to build
4197 version.d.
4198
4199 Tue Sep 10 14:14:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4200
4201 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Remove check for
4202 EWOULDBLOCK, never true on Linux.
4203 (__errno_location): New function.
4204 [_LIBC_REENTRANT]: Set errno using __errno_location function.
4205 * sysdeps/unix/sysv/linux/m68k/sysdep.h [PIC]: Add second
4206 syscall_error handler for reentrant libc.
4207
4208 Tue Sep 10 13:27:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4209
4210 * elf/Makefile (extra-objs): Add eval.so to get dependencies.
4211
4212 Wed Sep 11 04:40:57 1996 Ulrich Drepper <drepper@cygnus.com>
4213
4214 * time/tzset.c (__tzname_cur_max): Use type `size_t' to avoid
4215 warning.
4216 * time/tzfile.c (compute_tzname_max): Likewise.
4217
4218 Wed Sep 11 02:57:31 1996 Ulrich Drepper <drepper@cygnus.com>
4219
4220 * configure.in: Quote $add_ons argument in loop to generated
4221 prefices.
4222
4223 Tue Sep 10 20:43:45 1996 Ulrich Drepper <drepper@cygnus.com>
4224
4225 * db/makedb.c: Include <locale.h>. Reported by Fila Kolodny.
4226
4227 Tue Sep 10 14:42:39 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
4228
4229 * elf/dl-cache.c: Rename to ...
4230 * sysdeps/generic/dl-cache.c: ... here.
4231 * sysdeps/mach/hurd/dl-cache.c: New file.
4232
4233 * mach/Makefile (distribute): Add `errsystems.awk'.
4234 * hurd/Makefile (distribute): Add `Notes' and `intr-msg.h'.
4235 * hurd/hurdintr.awk: Delete file. (Not used in ages.)
4236 * hurd/intr-rpc.awk: Likewise.
4237 * hurd/invoke-trans.c: Likewise.
4238 * sysdeps/mach/hurd/i386/longjmp-ctx.c: Likewise.
4239 * sysdeps/mach/hurd/alpha/longjmp-ctx.c: Likewise.
4240 * sysdeps/mach/hurd/mips/longjmp-ctx.c: Likewise.
4241 * sysdeps/mach/hurd/i386/init-fault.c: Likewise.
4242 * sysdeps/mach/hurd/mips/init-fault.c: Likewise.
4243 * sysdeps/stub/init-fault.c: Likewise.
4244 * sysdeps/stub/longjmp-ctx.c: Likewise.
4245
4246 Tue Sep 10 13:49:08 1996 Ulrich Drepper <drepper@cygnus.com>
4247
4248 * inet/herrno.c: Initialize `h_errno' so that we can provide
4249 alias.
4250
4251 * Makefile (version-info.h): Fix typo in shell script.
4252
4253 * sysdeps/i386/i586/strlen.S: Optimize startup code a bit.
4254 * sysdeps/i386/i586/strchr.S: Likewise.
4255
4256 Mon Sep 9 20:31:27 1996 Ulrich Drepper <drepper@cygnus.com>
4257
4258 * version.c (banner): Report to bug-glibc@prep not @gnu.
4259 Reported by Andreas Jaeger.
4260
4261 * libio/stdio.h [!__USE_REENTRANT]: Don't define getc as
4262 _IO_getc_unlocked.
4263 [__USE_REENTRANT]: Don't define
4264
4265 Mon Sep 9 15:59:32 1996 Ulrich Drepper <drepper@cygnus.com>
4266
4267 * sysdeps/i386/strrchr.c: Fix bug where NUL byte is not recognized
4268 when it is the third byte in the string. Reported by
4269 NIIBE Yutaka.
4270 * string/tester.c: Add tests for above bug to strlen, strchr, and
4271 strrchr tests.
4272
4273 Fri Sep 6 21:23:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4274
4275 * sysdeps/m68k/fpu/e_acos.c: Deansideclized. Include
4276 "math_private.h" to get prototype.
4277 * sysdeps/m68k/fpu/e_fmod.c: Likewise.
4278 * sysdeps/m68k/fpu/k_cos.c: Likewise.
4279 * sysdeps/m68k/fpu/k_sin.c: Likewise.
4280 * sysdeps/m68k/fpu/k_tan.c: Likewise.
4281
4282 * sysdeps/m68k/fpu/k_sin.c: Remove uneeded indirection of
4283 __m81_u.
4284 * sysdeps/m68k/fpu/k_tan.c: Likewise.
4285
4286 Sun Sep 1 18:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4287
4288 * sysdeps/m68k/fpu/__math.h: Check for __NO_M81_MATH_INLINES
4289 instead of __NO_MATH_INLINES.
4290 (__M81_MATH_INLINES): Renamed from __MATH_INLINES.
4291 * sysdeps/m68k/fpu/e_acos.c: Define __NO_M81_MATH_INLINES.
4292 * sysdeps/m68k/fpu/e_fmod.c: Likewise.
4293 * sysdeps/m68k/fpu/k_cos.c: Likewise.
4294 * sysdeps/m68k/fpu/k_sin.c: Likewise.
4295 * sysdeps/m68k/fpu/k_tan.c: Likewise.
4296 * sysdeps/m68k/fpu/s_atan.c: Likewise.
4297 * sysdeps/m68k/fpu/s_frexp.c: Likewise.
4298 * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
4299 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
4300 * sysdeps/m68k/fpu/s_ldexp.c: Likewise.
4301 * sysdeps/m68k/fpu/s_modf.c: Likewise.
4302 * sysdeps/m68k/fpu/k_cos.c: Use inline version of __cos.
4303 * sysdeps/m68k/fpu/k_sin.c: Likewise.
4304 * sysdeps/m68k/fpu/k_tan.c: Likewise.
4305
4306 Mon Sep 9 12:55:14 1996 Ulrich Drepper <drepper@cygnus.com>
4307
4308 * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): Check for
4309 available character before converting number and return with
4310 error if none is available.
4311
4312 Fri Sep 6 22:09:08 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4313
4314 * sysdeps/unix/sysv/linux/init-first.h: New file, generic
4315 implementation for architectures where parameters are passed on
4316 stack.
4317 * sysdeps/unix/sysv/linux/m68k/init-first.h: Removed.
4318 * sysdeps/unix/sysv/linux/i386/init-first.h: Removed.
4319
4320 Fri Sep 6 22:05:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4321
4322 * configure.in: Remove unneeded sysnames frobbing.
4323
4324 Mon Sep 9 05:29:09 1996 Ulrich Drepper <drepper@cygnus.com>
4325
4326 * time/zic.c: Update from ADO 96l.
4327 * time/africa: Update from ADO 96k.
4328 * time/antarctica: Likewise.
4329 * time/asia: Likewise.
4330 * time/australia: Likewise.
4331 * time/europe: Likewise.
4332 * time/northamerica: Likewise.
4333 * time/southamerica: Likewise.
4334
4335 Mon Sep 9 05:03:47 1996 NIIBE Yutaka <gniibe@mri.co.jp>
4336
4337 * sysdeps/unix/sysv/linux/i386/init-first.h: Work around buggy
4338 gcc <= 2.7.2.1 which optimizes away address operations on weak
4339 objects.
4340
4341 * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): New macro.
4342 Like INT_FIELD but also accept non-existing field.
4343 * shadow/sgetspent_r.c (LINE_PARSER): Use INT_FIELD_MAYBE_NULL
4344 for last four fields.
4345 * shadow/putspent.c (putspent): Print `:' after numeric value.
4346
4347 Mon Sep 9 02:42:48 1996 Richard Henderson <rth@tamu.edu>
4348
4349 * libio/stdio.h (BUFSIZ): Define using _IO_BUFSIZ.
4350
4351 Sun Sep 8 16:43:56 1996 Ulrich Drepper <drepper@cygnus.com>
4352
4353 * Make-dist: Filter out $(add-ons) from $(subdirs).
4354 Don't distribute TAGS files.
4355 ($(tardir).tar): Remove dist.tar when all is done.
4356 * manual/Makefile (distribute): Add libc.info*.
4357 * libio/Makefile (distribute): Add Banner.
4358 * inet/Makefile (headers): Add netinet/tcp.h.
4359
4360 * resolv/Makefile (libresolv-routines): Add getnetnamadr.
4361
4362 * crypt-README: Removed.
4363 * gnu-stabs.h: Removed.
4364
4365 * sysdeps/alpha/copysign.S: Renamed to...
4366 * sysdeps/alpha/s_copysign.S: ...this.
4367 * sysdeps/alpha/fabs.S: Renamed to...
4368 * sysdeps/alpha/s_fabs.S: ...this.
4369
4370 * sysdeps/m68k/isinfl.c: Renamed to...
4371 * sysdeps/m68k/s_isinfl.c: ...this.
4372 * sysdeps/m68k/isnanl.c: Renamed to...
4373 * sysdeps/m68k/s_isnanl.c: ...this.
4374
4375 * sysdeps/sparc/sqrt.c: Renamed to...
4376 * sysdeps/sparc/e_sqrt.c: ...this. Function name now is
4377 __ieee754_sqrt.
4378
4379 * sysdeps/generic/get_str.c: Removed.
4380
4381 * sysdeps/ieee754/cbrt.c: Removed.
4382 * sysdeps/ieee754/drem.c: Removed.
4383 * sysdeps/ieee754/logb.c: Removed.
4384 * sysdeps/ieee754/sqrt.c: Removed.
4385
4386 * sysdeps/stub/cbrt.c: Removed.
4387 * sysdeps/stub/cos.c: Removed.
4388 * sysdeps/stub/drem.c: Removed.
4389 * sysdeps/stub/isinf.c: Removed.
4390 * sysdeps/stub/isinfl.c: Removed.
4391 * sysdeps/stub/isnanl.c: Removed.
4392 * sysdeps/stub/logb.c: Removed.
4393 * sysdeps/stub/sin.c: Removed.
4394 * sysdeps/stub/sqrt.c: Removed.
4395
4396 * sysdeps/tahoe/log10.c: Removed.
4397
4398 * sysdeps/vax/index.s: Removed.
4399 * sysdeps/vax/rindex.s: Removed.
4400 * sysdeps/vax/bcmp.s: Removed.
4401 * sysdeps/vax/log10.c: Removed.
4402 * sysdeps/vax/infnan.c: Removed.
4403 * sysdeps/vax/Dist: Add fl.h.
4404
4405 * sysdeps/unix/sysv/linux/alpha/Dist: Add llseek.S.
4406
4407 * inet/rcmd.c (rcmd): Make messages more uniform.
4408
4409 Sun Sep 8 14:15:42 1996 Ulrich Drepper <drepper@cygnus.com>
4410
4411 * po/de.po: Update.
4412 * po/es.po: Update.
4413 * po/ko.po: Update.
4414 * po/pl.po: New file.
4415 * po/nl.po: New file.
4416
4417 Sat Sep 7 18:41:17 1996 Richard Henderson <rth@tamu.edu>
4418
4419 * Makeconfig (+link): Filter out start, pre & postinit from the
4420 generic depenancies as well.
4421 * Rules: Add start, pre & postinit to the dependancies of
4422 $(others) and $(tests).
4423
4424 * configure.in: elf_dirs missing "sysdeps" component.
4425
4426 Sun Sep 8 02:36:02 1996 Ulrich Drepper <drepper@cygnus.com>
4427
4428 * locale/SYS_libc.c (_libc_intl_domainname): Change value to "libc".
4429 This is consistent with all other GNU packages. We shouldn't
4430 take care for a possible clash. Nobody will name the domain
4431 of a package libc if it is not the libc itself.
4432 * MakeTAGS ($P/SYS_libc.pot): Rename to $P/libc.pot.
4433 * po/Makefile (domainname): Change to libc.
4434 (distribute): Now ship libc.pot.
4435 * catgets/gencat.c (usage): Use `PACKAGE' for package name in
4436 version information banner.
4437 Change bug report address to bug-glibc@prep not @gnu.
4438 * db/makedb.c (PACKAGE): New macro. Set to _libc_intl_domain.
4439 (main): Use `PACKAGE' for package name in version information
4440 banner.
4441 Change bug report address to bug-glibc@prep not @gnu.
4442 * locale/programs/locale.c (main): Use `PACKAGE' for package name
4443 in version information banner.
4444 Change bug report address to bug-glibc@prep not @gnu.
4445 * locale/programs/localedef.c (main): Likewise.
4446
4447 * version.h (VERSION): Bump to 1.94.
4448
4449 * locale/Makefile (distribute): Add locale.c and localedef.c.
4450
4451 Sat Sep 7 14:00:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
4452
4453 * catgets/catgets.c (catopen): Allocate sizeof(*result) bytes
4454 instead of sizeof(nl_catd) (which is just a pointer!).
4455
4456 Sat Sep 7 19:39:19 1996 Ulrich Drepper <drepper@cygnus.com>
4457
4458 * Makefile ($(objpfx)version-info.h): Generate from Banner files.
4459 * version.c (banner): Add contents of version-info.h to string.
4460
4461 * Makerules: If $($(subdir)-version) is available name versioned
4462 shared library according to this value instead of glibc's version.
4463
4464 * libio/Banner: New file.
4465
4466 * elf/eval.c (funcall): Write error message in case function is
4467 not found.
4468 (eval): Recognize `_' in names.
4469
4470 Sat Sep 7 05:15:45 1996 Ulrich Drepper <drepper@cygnus.com>
4471
4472 * libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
4473 * libio/iofopen: Likewise.
4474 * libio/iofopncook.c: Likewise.
4475 * libio/iopopen.c: Likewise.
4476 * libio/iovsprintf.c: Likewise.
4477 * libio/iovsscanf.c: Likewise.
4478 * libio/memstream.c: Likewise.
4479 * libio/vasprintf.c: Likewise.
4480 * libio/vdprintf.c: Likewise.
4481 * libio/vsnprintf.c: Likewise.
4482
4483 Sat Sep 7 03:55:47 1996 Ulrich Drepper <drepper@cygnus.com>
4484
4485 * Makeconfig (soversions.mk): Also use shlib-versions files
4486 in add-on directories.
4487 * config.make.in (config-defines): Remove. Not used anymore.
4488 (defines): New variable. Initiliazed by @DEFINES@.
4489 * configure.in: Add AC_SUBST(DEFINES).
4490
4491 * libio/Makefile (routines): When compiling reentrant libc add
4492 clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
4493 iofflush_u, putc_u, putchar_u, ioflockfile.
4494 (CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
4495
4496 * sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
4497 and __libc_cleanup_region_end.
4498
4499 * sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
4500 using __errno_location function.
4501 * sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
4502 using __errno_location function.
4503 (__errno_location): New function.
4504 * sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
4505 syscall_error handler for reentrant libc.
4506
4507 * sysdeps/unix/opendir.c: Remove unneeded `;'.
4508
4509 * libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
4510 [!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
4511 as empty macros.
4512 * libioP.h: Include <libc-lock.h>.
4513 * libio/stdio.h: Add prototypes for *_locked and *_unlocked
4514 functions.
4515
4516 * libio/clearerr.c: Use _IO_ protected versions of flockfile
4517 and funlockfile to be namespace clean.
4518
4519 * libio/genops.c: Use __libc_lock_* macros for handling lock.
4520
4521 * libio/iofdopen: Add initialization of _lock in _IO_FILE.
4522 * libio/iofopen: Likewise.
4523 * libio/iofopncook.c: Likewise.
4524 * libio/iopopen.c: Likewise.
4525 * libio/iovsprintf.c: Likewise.
4526 * libio/iovsscanf.c: Likewise.
4527 * libio/memstream.c: Likewise.
4528 * libio/vasprintf.c: Likewise.
4529 * libio/vdprintf.c: Likewise.
4530 * libio/vsnprintf.c: Likewise.
4531
4532 * libio/fgetc.c: Use __libc_cleanup_region_* macros instead
4533 of flockfile etc.
4534 * libio/fputc.c: Likewise.
4535 * libio/freopen.c: Likewise.
4536 * libio/fseek.c: Likewise.
4537 * libio/getc.c: Likewise.
4538 * libio/getchar.c: Likewise.
4539 * libio/iofclose.c: Likewise.
4540 * libio/iofflush.c: Likewise.
4541 * libio/iofgetpos.c: Likewise.
4542 * libio/iofgets.c: Likewise.
4543 * libio/iofputs.c: Likewise.
4544 * libio/iofread.c: Likewise.
4545 * libio/iofsetpos.c: Likewise.
4546 * libio/ioftell.c: Likewise.
4547 * libio/iofwrite.c: Likewise.
4548 * libio/iogetdelim.c: Likewise.
4549 * libio/iogets.c: Likewise.
4550 * libio/ioputs.c: Likewise.
4551 * libio/iosetbuffer.c: Likewise.
4552 * libio/iosetvbuf.c: Likewise.
4553 * libio/ioungetc.c: Likewise.
4554 * libio/putc.c: Likewise.
4555 * libio/putchar.c: Likewise.
4556 * libio/rewind.c: Likewise.
4557 * stdio-common/vfprintf.c: Likewise.
4558 * stdio-common/vfscanf.c: Likewise.
4559
4560 * libio/clearerr_u.c: Correct alias name.
4561 * libio/ferror_u.c: Likewise.
4562 * libio/fileno.c: Likewise.
4563 * libio/fputc_u.c: Likewise.
4564 * libio/getc.c: Likewise.
4565 * libio/getc_u.c: Likewise.
4566 * libio/getchar.c: Likewise.
4567 * libio/getchar_u.c: Likewise.
4568 * libio/putc.c: Likewise.
4569 * libio/putchar.c: Likewise.
4570
4571 * libio/feof_u.c: Undefine macro with name of function before
4572 definition of function itself.
4573
4574 * libio/ioflockfile.c: New file. Implementation of flockfile and
4575 funlockfile.
4576
4577 * libio/putchar_u.c: Fix typo. Use stdout instead of fp.
4578
4579 * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
4580 _malloc_loc.
4581
4582 * malloc/free.c: Include <libc-lock.h>.
4583 * malloc/realloc.c: Likewise.
4584 * malloc/malloc-find.c: Likewise.
4585 * malloc/malloc-size.c: Likewise.
4586 * malloc/malloc-walk.c: Likewise.
4587 * malloc/memalign.c: Likewise.
4588 * malloc/malloc.c: Likewise.
4589
4590 * sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
4591
4592 Fri Sep 6 19:38:49 1996 Ulrich Drepper <drepper@cygnus.com>
4593
4594 * sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
4595 and __libc_lock_critical_end as empty macros.
4596
4597 * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
4598 __libc_malloc_lock.
4599 * malloc/free.c: Include <libc-lock.h>.
4600 * malloc/malloc-find.c: Likewise.
4601 * malloc/malloc-size.c: Likewise.
4602 * malloc/malloc-walk.c: Likewise.
4603 * malloc/malloc.c: Likewise.
4604 * malloc/memalign.c: Likewise.
4605 * malloc/realloc.c: Likewise.
4606
4607 * Makefile: Undo change from Mon Sep 2 22:15:14 1996. No more
4608 extra_solibs pass.
4609 * Rules: Likewise.
4610 * extra-lib.mk: Likewise.
4611 * manual/Makefile: Likewise.
4612
4613 * db/Makefile (makedb): Choose dependecies based on build-shared.
4614 Patch by Andres Schwab.
4615
4616 * sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
4617 but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
4618
4619 * sysdeps/unix/sysv/linux/errnos.h: New file.
4620 * sysdeps/unix/sysv/linux/schedbits.h: New file.
4621 * sysdeps/unix/sysv/linux/waitflags.h: New file.
4622
4623 * sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
4624
4625 Fri Sep 6 08:26:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4626
4627 * rpm/template: Fix typo in %build section.
4628
4629 Fri Sep 6 03:31:07 1996 Ulrich Drepper <drepper@cygnus.com>
4630
4631 * sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
4632 building libc without thread support.
4633 * resolv/netdb.h: Likewise for h_errno macro.
4634
4635 Thu Sep 5 23:01:48 1996 Ulrich Drepper <drepper@cygnus.com>
4636
4637 * libc-symbols.h: Add new macro weak_const_function. It's like
4638 weak_function, but the function is additionally marked as const.
4639 * features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
4640
4641 Thu Sep 5 22:55:49 1996 Richard Henderson <rth@tamu.edu>
4642
4643 * inet/herrno.c (__h_errno_location): New function.
4644 (h_errno): Make strong_alias __h_errno so that we can access
4645 the variable even if `h_errno' is a macro.
4646 * resolv/netdb.h: Define macro h_errno to access thread specific
4647 version of h_errno variable. Declare alias __h_errno for h_errno.
4648 * resolv/res_query (h_errno): Remove definition.
4649 * sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
4650 Add macro `errno' to get thread specific variable.
4651 * sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
4652 __errno_location function.
4653 (__errno_location): New function.
4654
4655 Thu Sep 5 21:08:44 1996 Ulrich Drepper <drepper@cygnus.com>
4656
4657 * posix/gnu/types.h: Remove definition of key_t.
4658 * sysdeps/generic/gnu/types.h: Move it to here.
4659 * sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
4660 definition of key_t.
4661
4662 * sysdeps/unix/sysv/linux/waitflags.h: New file. Linux specific
4663 definitions.
4664 * sysdeps/unix/sysv/linux/schedbits.h: New file. Include
4665 clone prototypes and associated flags.
4666
4667 Thu Sep 5 13:18:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
4668
4669 * sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
4670 New variables.
4671 (init1): Initialize them.
4672 * hurd/hurdinit.c (_hurd_setproc): Now that happens to be
4673 available, pass __libc_argv in call to __proc_set_arg_locations.
4674
4675 * gmon/gmon.c (write_hist): Call __profile_frequency instead of
4676 hertz.
4677 (hertz): Delete function.
4678 * gmon/Makefile (routines): Add `prof-freq'.
4679 * sysdeps/generic/prof-freq.c: New file.
4680 * sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
4681 * sysdeps/mach/hurd/profil.c (profile_tick): New variable.
4682 (update_waiter): Store frequency in profile_tick.
4683 (__profile_frequency): New function.
4684
4685 * sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
4686 syntax.
4687
4688 * Rules (generated): Restore reference to $(generated).
4689
4690 * mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
4691 here.
4692
4693 * malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
4694
4695 * malloc/free.c: Provide extern decl of __libc_malloc_lock.
4696 * malloc/realloc.c: Likewise.
4697 * malloc/malloc-find.c: Likewise.
4698 * malloc/malloc-size.c: Likewise.
4699 * malloc/malloc-walk.c: Likewise.
4700 * malloc/memalign.c: Likewise.
4701
4702 Thu Sep 5 08:58:47 1996 Richard Henderson <rth@tamu.edu>
4703
4704 * sysdeps/alpha/elf/start.S: Make _start global again.
4705
4706 Thu Sep 5 03:20:42 1996 Ulrich Drepper <drepper@cygnus.com>
4707
4708 Change configuration and Makefiles to allow add-ons to have a
4709 sysdeps/ directory hierachy.
4710 * configure.in: Test for sysdeps/ directory in add-ons. Before
4711 all test and searches in these hierachies, too.
4712 * Makeconfig (full-config-subdirs): Define based on $(config-sysdirs).
4713 Extend with $(..) if not absolute path.
4714 Use $(full-config-subdirs) where $(config-sysdirs) was used.
4715 * Makefile ($(objpfx)sysd-dirs): Use config-sysdirs.
4716 * MakeTAGS: Use $(full-config-subdirs).
4717 * Makerules: Change comment to libc.so link script.
4718 (sysdirs): Define based on $(full-config-subdirs).
4719 (sysd-Makefile): Define using config-sysdirs.
4720 (sysd-rules): Likewise.
4721 * sysdeps/unix/Makefile (sysd-syscalls): Define based on +sysdep-dirs.
4722 * sysdeps/unix/make-syscalls.sh: Remove basedir argument.
4723
4724 Wed Sep 4 01:32:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4725
4726 * sysdeps/m68k/fpu/k_cos.c: Rewritten for better accuracy.
4727 * sysdeps/m68k/fpu/k_sin.c: Likewise.
4728 * sysdeps/m68k/fpu/k_tan.c: Likewise.
4729
4730 Thu Sep 5 01:06:09 1996 Richard Henderson <rth@tamu.edu>
4731
4732 * malloc/free.c (free): Protect by using __libc_malloc_lock.
4733 * malloc/malloc-find.c (malloc_find_object_address): Likewise.
4734 * malloc/malloc-size.c (malloc_usable_size): Likewise.
4735 * malloc/malloc-walk.c (malloc_walk): Likewise.
4736 * malloc/memalign.c (memalign): Likewise.
4737 * malloc/realloc.c (realloc): Likewise.
4738 * malloc/malloc.c: Define __libc_malloc_lock.
4739 (_malloc_internal): Don't use `malloc'. Instead look for
4740 `__malloc_hook' or call `_malloc_internal'.
4741 (malloc): Protect by using `__libc_malloc_lock'.
4742 * malloc/malloc.h: Declare `__libc_malloc_lock'.
4743
4744 Mon Sep 2 22:42:59 1996 Richard Henderson <rth@tamu.edu>
4745
4746 * sysdeps/alpha/elf/start.S: Use weak_alias for __start
4747 instead of the hard definition.
4748
4749 * sysdeps/alpha/dl-machine.h (RTLD_START): Add type info for
4750 _start and _dl_start_user.
4751
4752 * sysdeps/unix/sysv/linux/alpha/init-first.h (SYSDEP_CALL_INIT):
4753 Make _dl_starting_up weak. Add type info for NAME.
4754
4755 Mon Sep 2 22:15:14 1996 Richard Henderson <rth@tamu.edu>
4756
4757 * Makefile (all): Add extra_solibs pass.
4758 (+subdir_targets): Same.
4759 * Rules (extra_solibs): New phony empty target for subdirs without
4760 extra libs.
4761 * extra-lib.mk: Build lib*.so* in extra_solibs not lib-noranlib.
4762 * manual/Makefile: Add dummy extra_solibs target.
4763
4764 Sun Sep 1 15:41:22 1996 Richard Henderson <rth@tamu.edu>
4765
4766 * Makeconfig (+link): Add $(link-extra-libs).
4767 (link-extra-libs): New variable which expands to the full paths of
4768 the other libraries needed by a program, as controled by LDLIBS-$(@F).
4769 * db/Makefile: Use LDLIBS-makedb to link libdb not a dependency, as
4770 the later attempts to install the library before linking it.
4771
4772 * sysdeps/unix/alpha/sysdep.S: Align errno.
4773
4774 * sysdeps/unix/sysv/linux/alpha/ioperm.c (struct platform): Add
4775 hae_shift entry.
4776 (io): Move bus_memory_base and sparse_bus_memory_base into struct.
4777 (_hae_shift): New function.
4778 * sysdeps/unix/sysv/linux/alpha/sys/io.h: New file. Prototypes
4779 for the bus query functions.
4780
4781 Sat Aug 31 18:14:54 1996 Richard Henderson <rth@tamu.edu>
4782
4783 * elf/dl-close.c (_dl_close): In static executables, map->l_prev
4784 can be NULL when unloading a library.
4785
4786 * elf/dl-open.c (_dl_open): Pass __environ instead of __libc_envp
4787 to the library .init function.
4788
4789 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Since we omitted
4790 part of the COPY reloc processing earlier, omit the rest now --
4791 we'll get into less trouble later when some fool does use a COPY.
4792
4793 * sysdeps/unix/sysv/linux/init-first.c (init): Accept argc et al as
4794 parameters. Move all argc and __libc_multiple_libcs calculation out
4795 to init-first.h. Use __environ not __libc_envp.
4796 * sysdeps/unix/sysv/linux/alpha/init-first.h: Rewrite.
4797 * sysdeps/unix/sysv/linux/i386/init-first.h: Rewrite.
4798
4799 Thu Aug 29 20:26:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4800
4801 * sysdeps/posix/profil.c (profil): Don't clobber saved timer and
4802 signal settings when profiling was already turned on.
4803
4804 * csu/gmon-start.c (__gmon_start__) [HAVE_INITFINI]: Protect from
4805 being called twice.
4806
4807 Wed Sep 4 01:31:50 1996 Ulrich Drepper <drepper@cygnus.com>
4808
4809 * sysdeps/unix/sysv/linux/i386/mmap.S: Test for
4810 0 < return value < -4096 and not < 0 to decide about failure.
4811 Reported by Andreas Jaeger.
4812
4813 Tue Sep 3 19:04:05 1996 Ulrich Drepper <drepper@cygnus.com>
4814
4815 * stdio-common/vfscanf.c (__vfscanf): Don't count EOF char
4816 in %c format.
4817
4818 Sat Aug 31 18:10:51 1996 Ulrich Drepper <drepper@cygnus.com>
4819
4820 * wcsmbs/wchar.h: Define prototypes for wcstoq and wcstouq only
4821 #ifdef __USE_GNU.
4822
4823 Sat Aug 31 12:34:29 1996 Ulrich Drepper <drepper@cygnus.com>
4824
4825 * version.c: Add missing newline character in banner.
4826
4827 * sysdeps/unix/sysv/linux/alpha/Dist: Correct typo.
4828 * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
4829
4830 Sat Aug 31 03:07:39 1996 Ulrich Drepper <drepper@cygnus.com>
4831
4832 * intl/l10nflist.c (_nl_normalize_codeset): We convert to lower
4833 case, so don't prepend uppercase `ISO' for only numeric arg.
4834
4835 Wed Sep 4 16:16:13 1996 Ulrich Drepper <drepper@cygnus.com>
4836
4837 * sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
4838 * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
4839
4840 Tue Sep 3 11:16:07 1996 Thomas Bushnell/ n/BSG <thomas@gnu.ai.mit.edu>
4841
4842 * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in
4843 call to __libc_lock_lock.
4844
4845 * sysdeps/mach/hurd/send.c (__send): Declare BUF const.
4846 * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
4847
4848 * sysdeps/stub/ustat.c: Include <sys/ustat.h>.
4849
4850 * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm').
4851
4852 Fri Aug 30 19:55:27 1996 Ulrich Drepper <drepper@cygnus.com>
4853
4854 * libio/genops.c: Make _cleanup an alias of _IO_cleanup.
4855 Reported by Erik Troan.
4856
4857 Fri Aug 30 15:40:04 1996 Ulrich Drepper <drepper@cygnus.com>
4858
4859 * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and
4860 sys/sysmacros.h. Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>.
4861
4862 Fri Aug 30 13:53:32 1996 Andreas Jaeger <aj@arthur.pfalz.de>
4863
4864 * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5.
4865
4866 Fri Aug 30 13:01:10 1996 NIIBE Yutaka <gniibe@mri.co.jp>
4867
4868 * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get
4869 real result.
4870
4871 Fri Aug 30 03:33:33 1996 Ulrich Drepper <drepper@cygnus.com>
4872
4873 * sysdeps/libm-ieee754/s_cbrtl.c: New file. `long double'
4874 implementation.
4875
4876 Fri Aug 30 13:39:21 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
4877
4878 * Makerules (BUILD_CFLAGS): Use @(common-objpfx) for config.h, not
4879 $(..). Some rules (like sysdeps/posix/Makefile for mk-stdiolim)
4880 do `cd' commands.
4881 (sed-remove-objpfx): Don't substitute for $(objpfx) anymore;
4882 $(common-objpfx) is good enough.
4883 * Rules (common-generated): Provide default (empty) value.
4884 (dummy.o, dummy.c, empty.o, empty.c): Put these in
4885 $(common-generated), not $(generated), and without $(..).
4886 (subdir_echo-distinfo): Treat $(common-generated) just like
4887 $(generated).
4888 (generated): Depend on the (suitably mutated) $(common-generated)
4889 files too.
4890 * Makerules (common-clean): Remove common-generated files too.
4891 * sysdeps/mach/hurd/Makefile (generated): Don't put errnos.d and
4892 stamp-errnos here.
4893 (common-generated): Do put errnos.d and stamp-errnos here.
4894 (rpath-link): Don't use +=; $(rpath-link) is a colon separated list.
4895
4896 * sysdeps/mach/hurd/Makefile (before-compile): Add auth; also add
4897 auth to following rule to get it built.
4898
4899 Fri Aug 30 01:26:44 1996 Ulrich Drepper <drepper@cygnus.com>
4900
4901 * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
4902 * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
4903 * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
4904
4905 * version.c: Add comment about where to report bugs to.
4906 * catgets/gencat.c (usage): Likewise.
4907 * db/makedb.c (usage): Likewise.
4908 * locale/programs/locale.c (usage): Likewise.
4909 * locale/programs/localedef.c (usage): Likewise.
4910
4911 * manual/socket.texi: A little bit better wording.
4912
4913 Thu Aug 29 18:03:06 1996 Ulrich Drepper <drepper@cygnus.com>
4914
4915 * Makerules: Make sure directory exists before generating stamp file.
4916 (BUILD_CFLAGS): Always refer to using $(..).
4917 * manual/Makefile: Make sure directory exists before generating
4918 stamp file.
4919 (make-target-directory): Add macro definition.
4920 * sysdeps/generic/Makefile: Make sure directory exists before
4921 generating stamp file.
4922
4923 * Makefile (distribute): Add autolock.sh. Reported by Fila Kolodny.
4924
4925 Tue Aug 27 10:06:22 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4926
4927 When compiling in separate directory put objects into
4928 subdirectories matching the source layout.
4929 * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir).
4930 When looking for configparms try in $(common-objpfx).
4931 Use $(common-objpfx)SUBDIR to find objects from other subdirectory
4932 builds.
4933 * Makerules: Add $(objpfx) to vpath list.
4934 (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d
4935 more than once. All uses in dependency lists changed.
4936 (+make-deps): Make target directory.
4937 (sed-remove-objpfx): Substitute $(common-objpfx).
4938 (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use
4939 $(objpfx) instead of $(objdir) for cd command.
4940 (O%-lib): Always find libc relative to $(..).
4941 (subdir-stamps): Collect stamp files from subdirs.
4942 (common-mostlyclean): Remove stub file in $(common-objpfx).
4943 * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common.
4944 * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to
4945 more than once.
4946 ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use
4947 $(common-objpfx). All uses in dependency lists changed.
4948 (generated): Prepend $(..) to names.
4949 * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx)
4950 from $@.
4951 * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so):
4952 Use $(common-objpfx) instead of $(..) in dependencies.
4953 * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use
4954 $(common-objpfx) instead of $(..) and (objpfx).
4955 * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise.
4956 (rpath-link): Likewise.
4957 (rpcuserlibs): Likewise.
4958 * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for
4959 errlist.c in $(objpfx), not $(common-objpfx).
4960 ($(common-objpfx)s-proto.d): Special rule not covered by pattern
4961 rule.
4962 * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on
4963 s-proto.d in $(common-objpfx), not $(objpfx).
4964
4965 Thu Aug 29 17:45:49 1996 Ulrich Drepper <drepper@cygnus.com>
4966
4967 * nss/nsswitch.c (nss_dlerror_run): Free returned error
4968 string.
4969
4970 Thu Aug 29 15:53:33 1996 Ulrich Drepper <drepper@cygnus.com>
4971
4972 * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double'
4973 implementation.
4974 * sysdeps/libm-ieee754/e_atanhl.c: Likewise.
4975 * sysdeps/libm-ieee754/e_remainderl.c: Likewise.
4976 * sysdeps/libm-ieee754/e_scalbl.c: Likewise.
4977 * sysdeps/libm-ieee754/s_asinhl.c: Likewise.
4978 * sysdeps/libm-ieee754/s_cosl.c: Likewise.
4979 * sysdeps/libm-ieee754/s_sinl.c: Likewise.
4980 * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
4981 * sysdeps/libm-ieee754/s_tanl.c: Likewise.
4982
4983 Thu Aug 29 12:00:30 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
4984
4985 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Correct
4986 spelling error of _hurd_itimerval.
4987
4988 * mach/Makefile (MIGFLAGS-mach/mach4): Define variable.
4989 * mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
4990 $(MIGFLAGS-$*) here too, as well as in the code-generating MiG calls.
4991
4992 * hurd/hurdinline.c: Include "hurd.h" for function definitions too.
4993
4994 * stdio/fseek.c (fseek): Don't assume we know the file position;
4995 other handles may have changed it. So set STREAM.__offset to -1
4996 before calling __stdio_check_offset to make sure we have a correct
4997 value.
4998
4999 Thu Aug 29 00:28:08 1996 Ulrich Drepper <drepper@cygnus.com>
5000
5001 * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
5002 `decimal' char is 0.
5003
5004 * C-numeric.c (not_available): New constant.
5005 (_nl_C_LC_NUMERIC): Use `not_available' for grouping value.
5006
5007 * nss/nsswitch.conf: Example configuration file.
5008 * nss/db-Makefile: Example Makefile for generation of databases
5009 for nss_db.
5010 * nss/Makefile (distribute): Add nsswitch.conf and db-Makefile.
5011
5012 1996-08-28 Paul Eggert <eggert@twinsun.com>
5013
5014 * C-messages.c (_nl_C_LC_MESSAGES): Set yesexpr to "^[yY]" and
5015 noexpr to "^[nN]"; this conforms to POSIX.2.
5016
5017 * C-time.c (_nl_C_LC_TIME): Change %d to %e in d_t_format, to
5018 conform to POSIX.2.
5019
5020 1996-08-28 Paul Eggert <eggert@twinsun.com>
5021
5022 * C-monetary.c (not_available): New constant.
5023 (_nl_C_LC_MONETARY): Set mon_decimal_point to "", and set
5024 mon_grouping, int_frac_digits, frac_digits, p_cs_precedes,
5025 p_sep_by_space, n_cs_precedes, n_sep_by_space, p_sign_posn, and
5026 n_sign_posn to CHAR_MAX, as required by the POSIX Standard.
5027
5028 Wed Aug 28 23:12:28 1996 Ulrich Drepper <drepper@cygnus.com>
5029
5030 * nss/nss_db/db-XXX.c: Correct function names. They must be
5031 `_nss_db_*' instead of `_nss_files_*'.
5032 (lookup): `parse_line' returns 1 if succesful.
5033 * nss/nss_files/files-service.c (servbyname): Key for database
5034 must also contain protocol names.
5035 (servbypt): Likewise.
5036 Test must also check for protocol. Add `proto' argument.
5037
5038 Tue Aug 27 09:56:13 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5039
5040 * MakeTAGS ($P/subdirs.pot): Prefix all file names, not only the
5041 first one.
5042
5043 Tue Aug 27 17:45:21 1996 Ulrich Drepper <drepper@cygnus.com>
5044
5045 * Makerules: Add some test for correct version of GNU Make.
5046
5047 * io/fcntl.h: Undo change from Mon Aug 26 22:22:17 1996.
5048 * sysdeps/unix/sysv/linux/fcntlbits.h: Place macros here instead.
5049
5050 * sysdeps/generic/dl-sysdep.c: Initialize break address to
5051 avoid overwriting last page (OK, Roland).
5052
5053 Tue Aug 27 16:20:37 1996 Ulrich Drepper <drepper@cygnus.com>
5054
5055 * resolv/resolv.h: Update from BIND-4.9.5-T3A.
5056 * resolv/arpa/nameser.h: Likewise.
5057 * resolv/res_init.c: Likewise.
5058 * resolv/res_debug.c: Likewise.
5059 * resolv/res_mkquery.c: Likewise.
5060
5061 Tue Aug 27 15:47:04 1996 Ulrich Drepper <drepper@cygnus.com>
5062
5063 * elf/dl-error.c (catch): Define errstring element not as const.
5064 (_dl_catch_error): ERRSTRING argument is not const pointer.
5065 Initialize *ERRSTRING and *OBJNAME separately.
5066 * elf/link.h: Change prototype for `_dl_catch_error'.
5067
5068 * elf/dl-load.c (_dl_map_object): Use separate variable for
5069 copied NAME to avoid `const' warning.
5070
5071 * elf/dlerror.c: Make `last_errstring' variable not const pointer.
5072
5073 * elf/rtld.c: Implement reading of /etc/ld.so.preload. This
5074 provides preloading even for SUID binaries.
5075 Add some more casts to avoid signed<->unsigned warnings.
5076
5077 Tue Aug 27 15:40:28 1996 NIIBE Yutaka <gniibe@mri.co.jp>
5078
5079 * posix/sys/types.h: Define loff_t.
5080 * sysdeps/unix/sysv/linux/gnu/types.h: Define __loff_t.
5081
5082 Mon Aug 26 22:22:17 1996 Ulrich Drepper <drepper@cygnus.com>
5083
5084 * io/fcntl.h: Add definition for BSD F* macros.
5085
5086 * misc/init-misc.c (__init_misc): Make static.
5087 * misc/Makefile: Pass -fkeep-inline-functions flag for init-misc.c.
5088
5089 * configure.in: Add test for -fno-exception option of gcc.
5090 * config.make.in: Add definition of have-no-exceptions.
5091 * Makerules: Define no-exceptions based on have-no-exceptions.
5092 * csu/Makefile: When translating initfini.c pass $(no-exceptions).
5093 This is necessary for gcc >= ss-960816.
5094
5095 Mon Aug 26 17:16:48 1996 Richard Henderson <rth@tamu.edu>
5096
5097 * sysdeps/alpha/dl-machine.h: Clear startup flag.
5098
5099 Fri Aug 16 21:17:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5100
5101 * Makerules (o-iterator-doit): Simplify reference to autolock
5102 script.
5103
5104 Sat Aug 24 15:27:41 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5105
5106 * sysdeps/mach/hurd/getcwd.c
5107 (_hurd_canonicalize_directory_name_internal): After resizing the
5108 buffer move the current contents to the end. Correctly relocate
5109 file name pointer to upper half of the buffer.
5110
5111 Mon Aug 26 15:49:59 1996 Ulrich Drepper <drepper@cygnus.com>
5112
5113 * rtld.c (dl_main): Remove code to call ld.so initializer. This
5114 was introduced for compatibility with Linux ld.so and would not
5115 be used anymore. Now we don't have any good values to use as the
5116 parameters to the initializer so simply remove it.
5117
5118 Sun Aug 25 18:25:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5119
5120 * gmon/gmon.c (ERR): Don't write the terminating NUL.
5121
5122 * sysdeps/posix/profil.c (profil): Disable the profiling timer at
5123 first.
5124 (profil_count): Use 64 bit arithmethic to avoid overflow.
5125
5126 * sysdeps/generic/machine-gmon.h (MCOUNT): Fix argument order.
5127
5128 Mon Aug 26 16:31:33 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
5129
5130 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Tolerate NEW
5131 being null; in that case don't touch the timer at all (but do
5132 return something in OLD if necessary).
5133
5134 Mon Aug 26 13:35:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
5135
5136 * sysdeps/mach/hurd/i386/init-first.c (__libc_multiple_libcs): New
5137 variable.
5138 * sysdeps/i386/init-first.c: Likewise.
5139 * sysdeps/stub/init-first.c: Likewise.
5140
5141 Mon Aug 26 02:01:37 1996 Ulrich Drepper <drepper@cygnus.com>
5142
5143 * elf/dl-open.c (_dl_open): Call library initializer with
5144 correct command line arguments and environment information.
5145 * elf/rtld.c (dl_main): Provide arguments to initializer of
5146 ld.so itself.
5147
5148 Sun Aug 25 19:15:46 1996 Ulrich Drepper <drepper@cygnus.com>
5149
5150 * shadow/Makefile (routines): Add lckpwdf.
5151 * shadow/lckpwdf.c: New file.
5152
5153 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Force
5154 argument `cw' to be placed in memory. Patch by Torbjorn Granlund.
5155
5156 Sun Aug 25 12:53:37 1996 Ulrich Drepper <drepper@cygnus.com>
5157
5158 * configure.in: Add definition for `__eh_pc' and `__throw' in
5159 test for --no-whole-archive. The compiler generates dependencies
5160 for this but none of the standard librares and startup files
5161 are used. Necessary for gcc >= ss-960816.
5162
5163 Sun Aug 25 01:31:33 1996 Ulrich Drepper <drepper@cygnus.com>
5164
5165 * elf/dl-error.c (_dl_signal_error): If error is catched, malloc
5166 return string since string might be on stack.
5167 * elf/dl-lookup.c (_dl_lookup_symbol): Undo change of
5168 Wed Aug 21 10:14:59 1996.
5169 * elf/dlerror.c (dlerror): Free error string after printing.
5170 (_dlerror_run): If error string was not printed since last error
5171 free string.
5172 * rtld.c (dl_main): Free error string in case of error.
5173
5174 Sat Aug 24 03:16:47 1996 Ulrich Drepper <drepper@cygnus.com>
5175
5176 * misc/syslog.c (vsyslog): Don't use `localtime' or `gmtime' since
5177 this changes the global state for `localtime' and `gmtime'. Use
5178 `__localtime_r'/`__gmtime_r' instead.
5179 * resolv/res_debug.c (__p_secstodate): Likewise.
5180 * sysdeps/generic/ftime.c: Likewise.
5181 * sysdeps/posix/gettimeofday.c: Likewise.
5182 Reported by Paul Eggert.
5183
5184 * time/gmtime.c: De-ANSI-fy.
5185 * time/strftime.c: Don't call non-reentrant functions which change
5186 state.
5187
5188 Wed Aug 21 10:14:59 1996 Richard Henderson <rth@tamu.edu>
5189
5190 * elf/dl-lookup.c (_dl_lookup_symbol): Malloc the error string rather
5191 than putting it on the stack.
5192
5193 Wed Aug 21 10:12:42 1996 Richard Henderson <rth@tamu.edu>
5194
5195 * elf/rtld.c (dl_main): When looking up symbols in response to --list,
5196 don't find .plt entries.
5197
5198 Mon Aug 19 23:18:12 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5199
5200 * sysdeps/m68k/dl-machine.h (RTLD_START): Optimize clearing
5201 _dl_starting_up.
5202
5203 Tue Aug 20 17:42:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
5204
5205 * stdio/linewrap.c (line_wrap_stream): Initialize D->seek.
5206
5207 Sat Aug 17 12:19:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
5208
5209 * login/pututline_r.c (__pututline_r): Fix handling of case where
5210 getutid_r() fails with ESRCH. Reported by Miquel van Smoorenburg.
5211
5212 Wed Aug 14 14:10:54 1996 David Mosberger-Tang <davidm@azstarnet.com>
5213
5214 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Change entry
5215 for "Jensen" so _bus_base() returns 0 on that platform. Use
5216 _bus_base_sparse() to determine base address of sparse memory.
5217
5218 * sysdeps/unix/sysv/linux/sys/io.h: Enclose #include <asm/io.h>
5219 and declarations in __BEGIN_DECLS/__END_DECLS.
5220
5221 Sun Aug 18 13:37:09 1996 Ulrich Drepper <drepper@cygnus.com>
5222
5223 * err.h: New file. Wrapper around misc/err.h.
5224
5225 Correct solution of multiple initialization problem by
5226 Roland McGrath.
5227 * csu/initfini.c: Remove global variable __libc_is_static.
5228 * elf/rtld.c: Introduce new global variable _dl_starting_up.
5229 It's nonzero during the startup.
5230 * elf/dl-open.c (_dl_open): When _dl_start function is not
5231 available (i.e., if in static libc) set `__libc_multiple_libcs'
5232 to nonzero value.
5233 * sysdeps/unix/sysv/linux/init-first.c (__libc_multiple_libc):
5234 New global variable.
5235 (init): Undo change of Fri Aug 2 03:12:40 1996.
5236 Initialize `__libc_multiple_libcs' to nonzero only if this is
5237 a shared lib called from a statically linked program and don't
5238 call `personality' and `setfpucw' in this case either.
5239 * sysdeps/generic/sbrk.c: Undo change of Fri Aug 2 03:12:40 1996.
5240 Don't call brk(0) until `__libc_multiple_libcs' is nonzero.
5241 * sysdeps/i386/dl-machine.h (RTLD_START): Clear _dl_starting_up
5242 before jumping to user code.
5243 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
5244
5245 Fri Aug 16 04:59:01 1996 Ulrich Drepper <drepper@cygnus.com>
5246
5247 * sysdeps/unix/sysv/linux/init-first.c: Remove hack from
5248 Thu Aug 8 12:40:20 1996.
5249 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = csu]: Use
5250 -fkeep-inline-functions flag instead.
5251
5252 Fri Aug 16 16:11:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
5253
5254 * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Treat
5255 EPFNOSUPPORT and EAFNOSUPPORT as implying NSS_STATUS_UNAVAIL just
5256 like ECONNREFUSED already does.
5257 (_nss_dns_gethostbyaddr_r): Likewise.
5258 * nss/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
5259 (_nss_dns_getnetbyaddr_r): Likewise.
5260
5261 * sysdeps/mach/hurd/socket.c (socket): For message transmission
5262 and RPC errors that indicate that the socket server is not really
5263 present and able to do its job, turn the error into EPFNOSUPPORT.
5264
5265 Fri Aug 16 01:24:33 1996 Ulrich Drepper <drepper@cygnus.com>
5266
5267 * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
5268 name dynamically. Reported by Alan Cox.
5269 Uncomment warnings and mark as translatable.
5270
5271 * time/strftime (strftime): Add implementation for %s and %z
5272 format. Change behaviour for unknown format character: now
5273 simply print it. This matches the behaviour of printf.
5274 Reported by Jim Meyering.
5275 * manual/time.texi: Document all formats and flags of strftime.
5276
5277 Thu Aug 15 18:02:51 1996 Ulrich Drepper <drepper@cygnus.com>
5278
5279 * elf/rtld.c (dl_main): Loaded object has type lt_executable,
5280 not lt_library.
5281
5282 * misc/sys/select.h: Define fd_set using typedef, not #define.
5283 Proposed by David Mosberger-Tang.
5284
5285 Thu Aug 15 12:48:21 1996 Ulrich Drepper <drepper@cygnus.com>
5286
5287 * po/header.pot: Use real description line.
5288
5289 Thu Aug 15 04:42:44 1996 Ulrich Drepper <drepper@cygnus.com>
5290
5291 * elf/rtld.c (dl_main): When started with --verify prevent
5292 any warning. Just exit with an error.
5293 * elf/ldd.sh.in: Don't run given object directly. This fails for
5294 libraries. Instead use $RTLD again.
5295
5296 Thu Aug 15 02:08:59 1996 Ulrich Drepper <drepper@cygnus.com>
5297
5298 * manual/nss.texi: New file. Document NSS.
5299 * manual/nsswitch.texi: New file. Example configuration.
5300
5301 * manual/string.texi: Document stpncpy, strdupa, and strndupa.
5302 * manual/example/strdupa.c: New file. Example for strdupa.
5303
5304 Wed Aug 14 21:36:16 1996 Ulrich Drepper <drepper@cygnus.com>
5305
5306 * stdlib/strtod.c (STRTOD): Correct assertion about size of
5307 wint_t and wchar_t. Reported by David Mosberger-Tang.
5308
5309 Mon Aug 12 22:40:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5310
5311 * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
5312 RELOC_ADDR and make NOPLT a set of flags. All callers
5313 changed. Delete condition that checks for resolving to the
5314 location being filled in. Add condition to skip the
5315 executable's symbols if requested.
5316 * elf/link.h: Change declaration of _dl_lookup_symbol
5317 accordingly.
5318 (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
5319 * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
5320 NOPLT to FLAGS.
5321 * elf/dl-runtime.c (RESOLVE): Likewise.
5322 * elf/rtld.c (RESOLVE): Likewise.
5323 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
5324 DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
5325 processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
5326 reloc, zero otherwise.
5327 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
5328 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
5329 * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
5330
5331 Wed Aug 14 17:57:08 1996 Ulrich Drepper <drepper@cygnus.com>
5332
5333 * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
5334 * po/header.pot: Add empty line at end.
5335
5336 Sun Aug 11 13:45:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5337
5338 * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
5339 are now in $P/stdio-common.pot.
5340 (XGETTEXTFLAGS-errlist.pot): Variable removed.
5341
5342 Mon Aug 12 19:25:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5343
5344 * Makerules (do-ar, o-iterator-doit): Compute path to autolock
5345 script at run time, not configure time.
5346 * config.make.in, configure.in: Undo previous change.
5347
5348 Wed Aug 14 13:20:02 1996 Ulrich Drepper <drepper@cygnus.com>
5349
5350 * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
5351 on stack as argument for `_exit'. Reported by Andreas Schwab.
5352
5353 Mon Aug 12 19:36:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5354
5355 * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
5356
5357 Wed Aug 14 04:22:35 1996 Richard Henderson <rth@tamu.edu>
5358
5359 * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
5360 (_dl_map_object_from_fd): Free name on error.
5361
5362 Wed Aug 14 13:00:09 1996 Ulrich Drepper <drepper@cygnus.com>
5363
5364 * string/strdup.c: Use result of memcpy to avoid reloading.
5365
5366 Tue Aug 13 00:55:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5367
5368 * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
5369 the other way round.
5370
5371 Tue Aug 13 20:51:21 1996 Ulrich Drepper <drepper@cygnus.com>
5372
5373 * stdlib/canonicalize.c (canonicalize): Add cast to prevent
5374 warning.
5375
5376 * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
5377
5378 Tue Aug 13 18:26:45 1996 Ulrich Drepper <drepper@cygnus.com>
5379
5380 * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
5381 sorted.
5382
5383 Update from bind-4.9.5-T1A.
5384 * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
5385 inet_net_pton, inet_net.
5386
5387 * resolv/gethnamaddr.c: Include <sys/types.h>.
5388 * resolv/getnetnamadr.c: Likewise.
5389 * resolv/herror.c: Likewise.
5390 * resolv/inet_addr.c: Likewise.
5391 * resolv/nsap_addr.c: Likewise.
5392 * resolv/res_comp.c: Likewise.
5393 * resolv/res_data.c: Likewise.
5394 * resolv/res_init.c: Likewise.
5395 * resolv/res_mkquery.c: Likewise.
5396 * resolv/res_query.c: Likewise.
5397 * resolv/res_send.c: Likewise.
5398
5399 * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
5400 value of sprintf.
5401 * resolv/inet_ntop.c: Likewise.
5402
5403 * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
5404 Remove prototype of gethostbyname_ipv4.
5405
5406 * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
5407 functions instead of BSD `b*' functions.
5408
5409 * resolv/nsap_addr.c: Add copyright message.
5410
5411 * resolv/res_comp.c: Remove comment explaining label format.
5412 (res_mailok): Correct check.
5413
5414 * resolv/res_debug: Include missing headers.
5415 (__fp_nquery): Handle `unused', `ad', and `cd' bits.
5416 (__p_fqnname): New function to print FQDN from compressed name.
5417 (__p_rr): Use __p_fqnname. Correct printing of ". Handle T_TXT
5418 correctly. Add handling of T_KEY and T_SIG.
5419 Handle class and type names by using name arrays instead of
5420 explicit `switch'es.
5421 (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
5422 (__dn_count_labels, __p_secstodate): New functions.
5423
5424 * resolv/resolv.h (__RES): Update version number.
5425 (res_sym): New type.
5426 Add #defines for new functions.
5427 Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
5428 __p_secstodate, dn_count_labels.
5429
5430 * resolv/arpa/nameser.h (__BIND): Update version number.
5431 Add KEYFLAG_* and ALGORITHM_* symbols.
5432 (HEADER): Add `ad' and `cd' flags.
5433
5434 * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
5435 and inet_net_pton.
5436
5437 * manual/maint.texi: Document that we use bind-4.9.5.
5438 * INSTALL: Ditto.
5439
5440 Mon Aug 12 19:03:22 1996 Thomas Bushnell n/BSG <thomas@psilocin.gnu.ai.mit.edu>
5441
5442 * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
5443
5444 * mach/Makefile (mach/mach_host.uh): Depend on
5445 $(objpfx)/mach-syscalls.mk.
5446 ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
5447 (This fixes a make loop; thanks to Marcus Daniels
5448 <marcus@sysc.pdx.edu> for the patch.)
5449
5450 Mon Aug 12 16:41:52 1996 Thomas Bushnell n/BSG <thomas@gnu.ai.mit.edu>
5451
5452 * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
5453 buffer is any longer than the amount necessary to hold the
5454 filename; the Hurd getcwd uses the *entire* contents of the
5455 buffer, however long it is specified to be.
5456
5457 Mon Aug 12 04:33:09 1996 Ulrich Drepper <drepper@cygnus.com>
5458
5459 * nss/nsswitch.c (__nss_database_lookup): Always release locks
5460 before returning. Reported by Miles Bader.
5461
5462 Mon Aug 12 03:31:58 1996 Ulrich Drepper <drepper@cygnus.com>
5463
5464 * nss/nsswitch.c (__nss_configure_lookup): New function.
5465 Allows to specify services.
5466 * nss/XXX-lookup.h: Rename database variable and make global.
5467 * nss/databases.def: New file. Real names of all databases.
5468
5469 * nss/nss.h: New file. Contains declaration useful for users
5470 and service developers.
5471 * nss/nsswitch.h: Move some declarations to nss/nss.h.
5472 * nss.h: New file. Wrapper around nss/nss.h.
5473
5474 * nss/Makefile (headers): Add nss.h.
5475 (distributes): Add databases.def.
5476
5477 Sun Aug 11 16:19:42 1996 Ulrich Drepper <drepper@cygnus.com>
5478
5479 Help the poor people with fast machines by making sure only
5480 one `ar' commands works on the library.
5481 * autolock.sh: New file. Written by Tom Tromey.
5482 * Makerules (do-ar): Call autolock.sh shell script instead of
5483 directly using `ar'.
5484 * config.make.in: Make configuration variable AUTOLOCK which
5485 gets initialized by configure.
5486 * configure.in: Define variable AUTOLOCK to point to autolock.sh
5487 script and mark it to substitute.
5488
5489 * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
5490
5491 * sysdeps/generic/sbrk.c (__sbrk): Get kernel brk address
5492 always only if in static libc or if statically linked program
5493 uses libc.so.
5494
5495 * sysdeps/generic/sbrk.c (__sbrk): Get kernel brk address
5496 always only if in static libc or if statically linked program
5497 uses libc.so.
5498
5499 Sun Aug 11 01:12:38 1996 Richard Henderson <rth@tamu.edu>
5500
5501 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
5502 startup by moving Icache flush from here ...
5503 (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
5504 (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
5505
5506 * sysdeps/alpha/divrem.h: Update comment to reflect the actual
5507 calling conventions. The code is already correct.
5508
5509 Sun Aug 11 01:06:42 1996 Richard Henderson <rth@tamu.edu>
5510
5511 * string/Makefile: Compile tester with -fno-builtin as we want to
5512 test our implementations, not gcc's.
5513
5514 Sat Aug 10 13:17:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
5515
5516 * shadow.h: New file.
5517
5518 * sysdeps/unix/sysv/linux/netinet/in.h: Move
5519 __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
5520 well.
5521
5522 * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
5523 g++ 2.7.2 (and earlier) has no transparent unions support.
5524
5525 Fri Aug 9 18:50:06 1996 David Mosberger-Tang <davidm@azstarnet.com>
5526
5527 * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
5528 function to determine the base address of sparse bus memory.
5529 (APECS_*): Rename to CIA_*.
5530 (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
5531 (platform): Add sparse_bus_memory_base member and initialize.
5532 (sparse_bus_memory_base): New variable.
5533
5534 Tue Aug 6 10:23:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
5535
5536 * sysdeps/posix/ttyname_r.c (ttyname_r),
5537 sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
5538 !__isatty(fd) (POSIX.1 says so.)
5539
5540 * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
5541 This is not a gross hack, after all---for compatibility,
5542 getlogin() really should check fd 0 only and not try to base its
5543 operation on the controlling tty.
5544
5545 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
5546
5547 * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
5548 change utmp_data from static to auto.
5549
5550 Sun Aug 11 02:56:08 1996 Ulrich Drepper <drepper@cygnus.com>
5551
5552 * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
5553 Reported by David Mosberger-Tang.
5554
5555 Sat Aug 10 02:05:28 1996 Richard Henderson <richard@twiddle.tamu.edu>
5556
5557 * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
5558 alias to `__isnanl'.
5559
5560 Fri Aug 9 17:38:58 1996 Ulrich Drepper <drepper@cygnus.com>
5561
5562 * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
5563 get `struct timeval'.
5564 * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
5565 * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
5566 * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
5567 * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
5568 * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
5569 * sysdeps/unix/sysv/linux/direntry.h: Complete types in
5570 <linux/dirent.h>.
5571 * io/fts.h: Include <sys/types.h> to get dev_t.
5572 Reported by Matthias Urlichs.
5573
5574 * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
5575 _IO_file_flags. It's the same as _flags.
5576 Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
5577
5578 Wed Aug 7 19:38:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5579
5580 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
5581
5582 Thu Aug 8 16:17:38 1996 Ulrich Drepper <drepper@cygnus.com>
5583
5584 * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
5585 * pwd/getpwent_r.c: Likewise.
5586 * pwd/getpwnam.c: Likewise.
5587 * pwd/getpwnam_r.c: Likewise.
5588 * pwd/getpwuid.c: Likewise.
5589 * pwd/getpwuid_r.c: Likewise.
5590
5591 * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
5592 * grp/getgrent_r.c: Likewise.
5593 * grp/getgrgid.c: Likewise.
5594 * grp/getgrgid_r.c: Likewise.
5595 * grp/getgrnam.c: Likewise.
5596
5597 * pwd/fgetpwent_r.c: New file. Reentrant version of fgetpwent.
5598 * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
5599 * pwd/Makefile (routines): Add fgetpwent_r.
5600 * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
5601
5602 * grp/fgetgrent_r.c: New file. Reentrant version of fgetgrent.
5603 * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
5604 * grp/Makefile (routines): Add fgetgrent_r.
5605 * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
5606
5607 Implement shadow password lookup functions. This is no complete
5608 shadow password suite.
5609 * shadow/Makefile: New file.
5610 * shadow/fgetspent.c: New file.
5611 * shadow/fgetspent_r.c: New file.
5612 * shadow/getspent.c: New file.
5613 * shadow/getspent_r.c: New file.
5614 * shadow/getspnam.c: New file.
5615 * shadow/getspnam_r.c: New file.
5616 * shadow/putspent.c: New file.
5617 * shadow/sgetspent.c: New file.
5618 * shadow/sgetspent_r.c: New file.
5619 * shadow/shadow.h: New file.
5620 * shadow/spwd-lookup.c: New file.
5621 * shadow/nss_files/files-spwd.c: New file.
5622
5623 Thu Aug 8 13:33:45 1996 Ulrich Drepper <drepper@cygnus.com>
5624
5625 * sysdeps/unix/sysv/linux/ftime.c: New file. Available system
5626 call is only a stub.
5627 Reported by Matthias Urlichs.
5628
5629 * Makeconfig [!default_cflags]: Change default value from `-g'
5630 to `-g -O'.
5631
5632 * configure.in: Recognize i686.
5633 * sysdeps/i386/i686/Implies: Default on i586 optimized code.
5634
5635 Thu Aug 8 12:40:20 1996 Matthias Urlichs <smurf@smurf.noris.de>
5636
5637 * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
5638 value of CFLAGS-.o, not CFLAGS-o.
5639
5640 * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
5641 pointer to ourself. Otherwise `gcc -O3' optimized init away.
5642
5643 Thu Aug 8 01:41:43 1996 Ulrich Drepper <drepper@cygnus.com>
5644
5645 * elf/Makefile: Undo change of Tue Aug 6 14:27:11 1996.
5646 * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
5647
5648 Thu Aug 8 01:15:59 1996 Ulrich Drepper <drepper@cygnus.com>
5649
5650 * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
5651 to 0x137f to allow long double operations.
5652
5653 Sun Aug 4 13:12:05 1996 Richard Henderson <rth@tamu.edu>
5654
5655 Bug Fixes:
5656
5657 * nss/nsswitch.c (_res): Remove redundant variable definition.
5658 The real one is in resolve/res_init.c, and having both prevents
5659 using -fno-common when building the shared library.
5660 * sunrpc/rpc_prot.c (_null_auth): Same. Original is in rpc_common.c.
5661
5662 * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
5663 a .bss object not a COMMON symbol.
5664
5665 * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
5666 $gp before referencing __sigsetjmp symbol. Retain LITUSE for same.
5667
5668 Optimizations:
5669
5670 * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
5671 main loop for better dual-issue on EV5. Rearrange binary search to
5672 pipeline better and trim one instruction.
5673
5674 Cosmetic Changes:
5675
5676 * time/localtime.c (localtime_r): Move lock declaration back next to
5677 the comment where it was before the 960724 change.
5678
5679 * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
5680 The second word is supposed to be the hardware manufacturer.
5681
5682 * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
5683 * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
5684
5685 * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
5686
5687 * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
5688 sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
5689 Same cleanups as with EV4 GMP stuff.
5690
5691 Tue Jul 25 03:30:56 1996 Richard Henderson <rth@tamu.edu>
5692
5693 * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
5694 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
5695 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
5696
5697 Sun Aug 4 00:12:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
5698
5699 * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
5700 `unsigned long'.
5701
5702 * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
5703
5704 Sat Aug 3 16:20:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
5705
5706 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
5707 Mikasa.
5708
5709 * socket/sys/socket.h (send, __send, sendto): Declare buffer
5710 pointer as __const.
5711
5712 * string/tester.c (main): Test stpncpy.
5713
5714 * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
5715 segfault when called with an N that is not a multiple of four and
5716 src[N-1]=='\0'.
5717
5718 * misc/syslog.c (LogType): New variable.
5719 (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
5720 try again with SOCK_STREAM (the Linux syslogd uses a socket of the
5721 latter type).
5722 (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
5723 terminator as a record-delimiter. If __send(LogFile) fails,
5724 call closelog() so logfile gets re-opened next time.
5725
5726 Wed Aug 7 15:15:14 1996 Ulrich Drepper <drepper@cygnus.com>
5727
5728 * elf/dl-open (_dl_open): Add cast to avoid warning.
5729
5730 * manual/memory.texi: Improve some examples to give readers better
5731 advice: Use `stpcpy' instead of `strcat' if possible.
5732 * manual/string.texi: Document `strtok_r' and `strtok'.
5733
5734 * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
5735 of Makeconfig.
5736 [$(cross-compiling)=no]: Change test before making librpcsvc
5737 to this from $(cross-compile).
5738 Reported by Andreas Schwab.
5739
5740 Tue Aug 6 14:27:11 1996 Ulrich Drepper <drepper@cygnus.com>
5741
5742 * elf/Makefile (routines): Move dl-sysdep to here...
5743 (rtld-routines): ...from here. This should make static linking
5744 work again.
5745
5746 * locale/setlocale.c: Add local variable `lock' and add code to
5747 `setlocale' to avoid simultaneous changing of global data.
5748
5749 * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
5750 * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
5751 `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
5752 of unprotected names.
5753
5754 Tue Aug 6 01:13:56 1996 Ulrich Drepper <drepper@cygnus.com>
5755
5756 Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
5757 This requires to rename several functions to use __ protected
5758 names.
5759 * dirent/dirent.h: Add prototypes of __opendir, __closedir,
5760 and __readdir.
5761 * sysdeps/mach/hurd/closedir.c: Prepend function name with __
5762 and make old name a weak alias.
5763 * sysdeps/mach/hurd/getrlimit.c: Likewise.
5764 * sysdeps/mach/hurd/opendir.c: Likewise.
5765 * sysdeps/mach/hurd/readdir.c: Likewise.
5766 * sysdeps/stub/closedir.c: Likewise.
5767 * sysdeps/stub/opendir.c: Likewise.
5768 * sysdeps/stub/readdir.c: Likewise.
5769 * sysdeps/unix/closedir.c: Likewise.
5770 * sysdeps/unix/opendir.c: Likewise.
5771 * sysdeps/unix/readdir.c: Likewise.
5772
5773 * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
5774
5775 * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
5776 `__closedir' instead of unprotected names.
5777
5778 * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
5779 instead of `isatty' since later is not part of ISO C.
5780 * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
5781 `open' since later is not part of ISO C.
5782
5783 * login/endutent.c (endutent): Call `__endutent_r', not
5784 `endutent_r'.
5785 * login/endutent_r.c: Rename defined function to `__endutent_r',
5786 make `endutent_r' weak alias.
5787 * login/getutent.c (getutent): Call `__getutent_r', not
5788 `getutent_r'.
5789 * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
5790 * login/getutid_r.c: Rename defined function to `__getutent_r',
5791 make `getutent_r' weak alias.
5792 * login/getutline.c (getutline): Call `__getutline_r', not
5793 `getutline_r'.
5794 * login/getutline_r.c: Rename defined function to `__getutline_r',
5795 make `getutline_r' weak alias.
5796 * login/pututline_r.c: Rename defined function to `__pututline_r',
5797 make `pututline_r' weak alias.
5798 * login/setutent.c (setutent): Call `__setutline_r', not
5799 `setutline_r'.
5800 * login/setutent_r.c: Rename defined function to `__setutline_r',
5801 make `setutline_r' weak alias.
5802 Rename `utmpname' to `__utmpname' and make former weak alias.
5803 (__utmpname): Call `__strdup', not `strdup'.
5804 * login/utmp.h: Add prototypes for name space clean reentrant
5805 versions.
5806 * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
5807 and `__endutent_r' instead of unprotected names.
5808
5809 * math/math.h: Add prototype for `__matherr'.
5810 * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
5811 of `matherr'.
5812
5813 * nss/getXXbyYY.c: Call __ protected reentrant function.
5814 * nss/getXXent.c: Likewise.
5815 * nss/getXXbyYY_r.c: Define `get*' function with __ protected
5816 name. Make usual name a weak alias.
5817 * nss/getXXent_r.c: Likewise.
5818
5819 * posix/unistd.h: Add prototype for `__ttyname_r'.
5820 * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
5821 and make `ttyname_r' a weak alias.
5822
5823 * resource/sys/resource.h: Add prototype for `__getrlimit'.
5824 * sysdeps/stub/getrlimit.c: Prepend function name with __
5825 and make old name a weak alias.
5826 * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
5827 and make `getrlimit' weak alias.
5828
5829 * libc/stdio/stdio.h: Add prototype for `__vscanf'.
5830 * libc/stdio/vscanf.c: De-ANSI-fy.
5831 Rename function to `__vscanf' and make `vscanf' a weak alias.
5832 * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
5833 of `vscanf'.
5834
5835 * stdio-common/reg-printf.c: De-ANSI-fy.
5836 Rename function to `__register_printf_function' and make
5837 `register_printf_function' weak alias.
5838
5839 * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
5840 `wcsrtombs'.
5841
5842 * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
5843 * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
5844 * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
5845 * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
5846 * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
5847 name a weak alias.
5848 * wcsmbs/mbsrtowcs.c: Likewise.
5849 * wcsmbs/wcrtomb.c: Likewise.
5850 * wcsmbs/wcsrtombs.c: Likewise.
5851 * wcsmbs/wchar.h: Add prototypes for __ protected versions.
5852
5853 * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
5854 instead of `sigprocmask'.
5855
5856
5857 * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
5858 version getgrent_r, getgrgid_r, and getgrnam_r.
5859 * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
5860 version getpwent_r, getpwuid_r, getpwnam_r and __ protected
5861 names.
5862 * resolv/netdb.h: Complete rewrite. No more BSD ugliness.
5863
5864
5865 * misc/error.c (private_strerror): Translate messages from table,
5866 too.
5867
5868 * io/fcntl.h: Pretty printing.
5869 * misc/fstab.h: Likewise.
5870 * misc/ttyent.h: Likewise.
5871 * resource/sys/resource.h: Likewise.
5872 * string/argz.h: Likewise.
5873 * string/envz.h: Likewise.
5874
5875 Add support for symbols from POSIX.1c (POSIX threads).
5876 * posix/getconf.c: Handle new sysconf symbols.
5877 * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
5878 _POSIX_LOGIN_NAME_MAX with minimal maximal values.
5879 * sysdeps/generic/confname.h: Define new symbols.
5880 * sysdeps/posix/sysconf.c: Handle new symbols.
5881 * sysdeps/stub/sysconf.c: Ditto.
5882 * sysdeps/unix/sysv/linux/sysconf.c: Removed. Generic version
5883 is ok now.
5884
5885 * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
5886 have real prototype.
5887
5888 * sysdeps/generic/resourcebits.h: Add macro definition for
5889 RLIMIT_* values. Some sources test using #ifdef whether specific
5890 limit is available.
5891 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
5892 * sysdeps/unix/sysv/linux/resourcebits.h: Removed. We need
5893 separate files for the architectures.
5894 * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
5895 * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
5896 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
5897 * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
5898
5899 * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
5900 and only default on `OPEN_MAX'.
5901 * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed. Default is already
5902 the POSIX version.
5903
5904 * time/Makefile (routines): Add ctime_r.
5905 * time/asctime.c: Add implementation of `asctime_r'. Make
5906 `asctime' implementation based on reentrant version.
5907 * time/ctime_r.c: New file.
5908 * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
5909 and `ctime_r'.
5910
5911 Sat Aug 3 18:41:36 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5912
5913 * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
5914 (_nl_C_LC_CTYPE): Fix ordering.
5915 * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
5916 typo.
5917
5918 Sat Aug 3 12:31:06 1996 Richard Henderson <rth@tamu.edu>
5919
5920 * csu/initfini.c: Discover the maximum alignment generated by the
5921 compiler when emitting a function.
5922 (_init): Make sure the end of the crti fragment is aligned.
5923 (_fini): Likewise.
5924
5925 Fri Aug 2 03:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
5926
5927 * initfini.c: (__libc_is_static): New variable. Will be
5928 initialized in init-first.c. Some actions in the libc work
5929 different when libc is static or dynamic.
5930
5931 * sysdeps/unix/sysv/linux/init-first.c (init): Use
5932 `__libc_is_static' variable to determine whether call to
5933 `personality' and `setfpucw' is necessary. When done set variable
5934 to +-1 depending on library type.
5935
5936 * locale/setlocale.c (setlocale): Use global variable
5937 `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
5938 determine whether it's a SET[UG]ID program.
5939
5940 Fri Aug 2 14:40:22 1996 Roland McGrath <roland@fast.cs.utah.edu>
5941
5942 * Version 1.93 test release.
5943
5944 * manual/Makefile: Use -include for chapters-incl too.
5945
5946 * Makeconfig (+link): Add back start.o, mistakenly removed in last
5947 change.
5948
5949 Fri Aug 2 01:04:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
5950
5951 * nss/Makefile (generated): Add db-*.c.
5952
5953 * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
5954 using #include_next.
5955
5956 * configure.in (--enable-add-ons): Quote m4 macro args.
5957
5958 * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
5959
5960 Thu Aug 1 14:40:03 1996 Roland McGrath <roland@fast.cs.utah.edu>
5961
5962 * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
5963
5964 * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
5965
5966 * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
5967 (+link): Not here.
5968
5969 * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
5970 warning when inline function is elided.
5971 * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
5972 (elf_machine_runtime_setup): Likewise.
5973 * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
5974 * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
5975 (elf_machine_load_address): Likewise.
5976
5977 * catgets/gencat.c: Include <locale.h>.
5978
5979 * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
5980
5981 * login/logwtmp.c (logwtmp): Call time, not __time.
5982
5983 * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
5984 * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
5985 * login/logwtmp.c (logwtmp): Likewise.
5986
5987 * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
5988 comparing ioctl macro values.
5989
5990 * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
5991
5992 * manual/Makefile: Use -include for chapters to suppress warning.
5993
5994 * sysdeps/stub/socket.c: Fix type of TYPE arg.
5995 * sysdeps/stub/socketpair.c: Likewise.
5996
5997 * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
5998
5999 * sysdeps/generic/sysdep.h: New file, broken out of ...
6000 * sysdeps/unix/sysdep.h: ... here.
6001 (C_LABEL): Moved out.
6002
6003 * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
6004 stick to sed. Do `exit 0' at end because while returns nonzero.
6005
6006 * sysdeps/i386/sysdep.h: New file, broken out of ...
6007 * sysdeps/unix/i386/sysdep.h: ... here. Generic asm macros moved out.
6008
6009 * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
6010 They are defined unconditionally in libio/stdio.h.
6011
6012 * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
6013 * elf/dl-cache.c: Likewise.
6014
6015 Mon Jul 29 19:20:05 1996 Ulrich Drepper <drepper@cygnus.com>
6016
6017 * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
6018 (sysdep_headers): Add sys/sysmacros.h.
6019 * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
6020
6021 Wed Jul 31 14:21:36 1996 Ulrich Drepper <drepper@cygnus.com>
6022
6023 * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
6024 tcgetattr. We have weak aliases now.
6025 * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
6026 "optimizations" for random functions.
6027
6028 Mon Jul 29 20:33:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6029
6030 * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
6031 htons) [__BIG_ENDIAN]: #undef them before defining to avoid
6032 redefinition warning.
6033
6034 Mon Jul 29 20:28:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6035
6036 * time/time.h: Don't optimize tzset() to __tzset() which bypasses
6037 the __tzset_lock.
6038
6039 Tue Jul 30 15:14:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6040
6041 * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
6042 protection.
6043
6044 Tue Jul 30 02:48:28 1996 Ulrich Drepper <drepper@cygnus.com>
6045
6046 * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
6047 to be 64-bit clean.
6048 Reported by Richard Henderson <rth@tamu.edu>.
6049
6050 Tue Jul 30 15:04:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6051
6052 * locale/programs/ld-collate.c (collate_output): Fix typo reported by
6053 David Miller.
6054
6055 Tue Jul 30 13:23:13 1996 Ulrich Drepper <drepper@cygnus.com>
6056
6057 * locale/setlocale.c (setlocale): Don't try to free C locale
6058 data.
6059 Reported by Matthias Urlichs.
6060
6061 Tue Jul 30 14:35:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
6062
6063 * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
6064 (open_file): New function, contents mostly from __open.
6065 (_dl_sysdep_read_whole_file): New function.
6066
6067 Sat Jul 27 11:23:59 1996 Miles Bader <miles@gnu.ai.mit.edu>
6068
6069 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
6070 `..' dots in sed search string.
6071
6072 Mon Jul 29 01:27:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6073
6074 * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
6075 protection.
6076
6077 Sun Jul 28 23:46:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6078
6079 * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
6080 in those directories.
6081 * config.make.in (add-ons): New varaible, set from @subdirs@.
6082 * Makefile (subdirs): Added $(add-ons) at the end.
6083
6084 * time/strftime.c (strftime: do_number): Initialize PRINTED to
6085 MAXDIGITS in case P is null and so sprintf is never actually called.
6086
6087 Mon Jul 29 02:46:23 1996 Ulrich Drepper <drepper@cygnus.com>
6088
6089 Add support for the to-be-written internationalized regexp.
6090 This code must be able to use collation symbols and collation
6091 equivalent classes.
6092 * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
6093 _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
6094 New global variables for collation classes.
6095 * locale/categories.def: Add new descriptions for collation symbols
6096 and collation classes.
6097 * locale/langinfo.h: Add constants for collation symbols and
6098 collation classes.
6099 * locale/lc-collate.c: Add new global variables for collation symbols
6100 and collation classes.
6101 (_nl_postload_collate): Initialize new variables.
6102 * locale/programs/ld-collate.c: Add code to emit tables for
6103 collation symbols and collation classes.
6104 * locale/programs/locales.h: Change prototype for `collate_output'.
6105 * locale/programs/locfile.c (write_all_categories): Call
6106 `collate_output' with new argument.
6107 * locale/localeinfo.h: Add declaration for new global vars.
6108 (union locale_data_value): New member wstr for `wchar_t' strings.
6109 * locale/programs/locale-spec.c: Handle `collate-classes'
6110 keyword and print information about available collation classes.
6111 * locale/strlen-hash.h: New file. Simple hashing function which
6112 takes a string with known length.
6113 * locale/Makefile (distribute): Add strlen-hash.h.
6114 (locale-modules): New var. Additional files for `locale' program.
6115
6116 * locale/C-ctype.c: Rewrite to avoid using string for giving values
6117 which are of type `u_int32_t'.
6118 Correct entry for EOF in toupper and tolower tables.
6119
6120 * locale/loadlocale.c (_nl_load_locale): Add cast to prevent
6121 warning.
6122
6123 * locale/programs/ld-ctype.c (ctype_output): Add code to make
6124 sure that all tables in binary file are word-aligned.
6125
6126 * locale/programs/locfile.c (write_locale_data): Correct handling
6127 of LC_MESSAGES locale. Create directory if necessary.
6128
6129 * locale/setlocale.c (setlocale): Add cast to avoid warning.
6130
6131 * string/string.h: Add prototype for `__strndup'.
6132
6133 Wed Jul 24 19:10:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6134
6135 * wcsmbs/mbrtowc.c: Remove unused variable.
6136
6137 Sun Jul 28 22:40:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6138
6139 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
6140 2.0.10; some problems were reported with an earlier version, and this
6141 one is known to work.
6142
6143 * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
6144 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6145
6146 Sat Jul 27 13:02:09 1996 Ulrich Drepper <drepper@cygnus.com>
6147
6148 * elf/rtld.c (dl_main): Ignore arguments when environment variable
6149 LD_TRACE_LOADED_OBJECTS is set.
6150
6151 Sun Jul 28 19:42:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6152
6153 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
6154 __libc_enable_secure instead of _dl_secure.
6155 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6156 * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
6157 of _dl_secure.
6158 * elf/Makefile (routines): Add enbl-secure.
6159 (elide-routines.so): Here too.
6160 * sysdeps/generic/enbl-secure.c: New file.
6161 * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
6162 * elf/dl-support.c (_dl_secure): Variable removed.
6163 * elf/rtld.c: Likewise. Replace all uses with __libc_enable_secure.
6164
6165 Sun Jul 28 19:26:40 1996 David S. Miller <dm@neteng.engr.sgi.com>
6166
6167 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
6168 Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
6169 compiler doesn't elide it.
6170 (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
6171
6172 Sat Jul 27 02:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6173
6174 * elf/rtld.c (dl_main): Take new option --verify when run directly.
6175 In verify mode, exit with status zero iff the argument object's
6176 PT_INTERP matches argv[0].
6177 * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
6178 exits with zero status. This makes `ldd' secure again.
6179
6180 Fri Jul 26 22:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
6181
6182 * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
6183 environment variable handling. This makes the dynamic linker
6184 only print loaded libraries and quit.
6185
6186 * elf/ldd.sh.in: Don't use `rtld --list' but instead
6187 LD_TRACE_LOADED_OBJECTS environment variable to print needed
6188 objects.
6189
6190 Sat Jul 27 02:03:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6191
6192 * db/makedb.c (main): Print version on stdout, not stderr. Don't exit
6193 after printing version until after doing usage for --help.
6194 (long_options, main, usage): Rename -l/--lowercase option to
6195 -f/--fold-case (-f matches sort).
6196
6197 Sat Jul 27 04:32:31 1996 Ulrich Drepper <drepper@cygnus.com>
6198
6199 * db/makedb.c: New file. Implement program to create simple <db.h>
6200 database from textual input. This will be used for nss_db.
6201
6202 Sat Jul 27 01:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6203
6204 * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
6205 * sunrpc/rpc/pmap_clnt.h: Likewise.
6206 * sunrpc/rpc/auth.h: Likewise.
6207 * sunrpc/rpc/pmap_rmt.h: Likewise.
6208 * sunrpc/rpc/rpc_msg.h: Likewise.
6209
6210 Sat Jul 27 04:37:34 1996 Ulrich Drepper <drepper@cygnus.com>
6211
6212 * string/string.h (strndupa): Change to use return value of
6213 `memcpy' for more performance.
6214 * string/strndup.c: Likewise.
6215
6216 * string/string.h (strdupa): Don't call __builtin_alloca in argument.
6217 This might lead to problems.
6218 (strndupa): Likewise.
6219
6220 Fri Jul 26 15:24:25 1996 Ulrich Drepper <drepper@cygnus.com>
6221
6222 * sunrpc/rpc/auth.h: Add protection against multiple inclusion
6223 and change K&R prototypes to ANSI prototypes.
6224 * sunrpc/rpc/auth_unix.h: Ditto.
6225 * sunrpc/rpc/clnt.h: Ditto.
6226 * sunrpc/rpc/pmap_clnt.h: Ditto.
6227 * sunrpc/rpc/pmap_prot.h: Ditto.
6228 * sunrpc/rpc/pmap_rmt.h: Ditto.
6229 * sunrpc/rpc/rpc_msg.h: Ditto.
6230 * sunrpc/rpc/svc.h: Ditto.
6231 * sunrpc/rpc/svc_auth.h: Ditto.
6232 * sunrpc/rpc/xdr.h: Ditto.
6233
6234 Fri Jul 26 20:39:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6235
6236 * ctype/test_ctype.c: Test EOF too.
6237
6238 Fri Jul 26 18:06:58 1996 Ulrich Drepper <drepper@cygnus.com>
6239
6240 * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
6241 * sunrpc/rpc/auth_unix.h: Likewise.
6242 * sunrpc/rpc/clnt.h: Likewise.
6243 * sunrpc/rpc/netdb.h: Likewise.
6244 * sunrpc/rpc/pmap_clnt.h: Likewise.
6245 * sunrpc/rpc/pmap_prot.h: Likewise.
6246 * sunrpc/rpc/rpc_msg.h: Likewise.
6247 * sunrpc/rpc/svc.h: Likewise.
6248 * sunrpc/rpc/svc_auth.h: Likewise.
6249 * sunrpc/rpc/xdr.h: Likewise.
6250
6251 * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
6252 to here from...
6253 * sunrpc/pmap_rmt.c: ...here.
6254
6255 Fri Jul 26 16:10:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
6256
6257 * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
6258 valid ut_id field.
6259 * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
6260 if a search fails.
6261
6262 Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6263
6264 * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
6265 <kkojima@info.kanagawa-u.ac.jp>.
6266
6267 Fri Jul 26 04:41:28 1996 Ulrich Drepper <drepper@cygnus.com>
6268
6269 * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
6270 defined, not __OPTIMIZED.
6271 (_nl_msg_cat_cntr): Move declaration outside macro definition
6272 to prevent "nested extern" warning.
6273 (dcgettext): Rename local variable `result' to `__result'.
6274
6275 Thu Jul 25 22:46:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6276
6277 * locale/programs/localedef.c (__progname): Remove decl.
6278 (main): Use program_invocation_short_name instead of __progname.
6279 (usage): Use program_invocation_name instead of __progname.
6280
6281 Fri Jul 26 03:46:08 1996 Ulrich Drepper <drepper@cygnus.com>
6282
6283 * catgets/gencat.c: Use "libc" instead of PACKAGE.
6284 * locale/localedef.c: Ditto.
6285 * locale/locale.c: Ditto.
6286
6287 * locale/findlocale.c (_nl_find_locale): Little optimization.
6288 Use new function `strndup'.
6289
6290 * locale/loadlocale.c: Little optimization. Use constant value
6291 from `_nl_category_num_items' instead of byte-order dependend
6292 value from file.
6293
6294 * locale/programs/ld-time.c (time_add): Correct string constant.
6295
6296 * locale/programs/locale-spec.c: New file.
6297 * locale/programs/locale.c: Call `locale_special' function if
6298 no other field matches.
6299
6300 * locale/programs/localedef.c: No need to define `program_name'.
6301 Use global variable `__progname'.
6302
6303 * locale/programs/locfile.c (write_locale_data): Always write
6304 LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file. This is
6305 necessary since message catalogs are also installed in the
6306 LC_MESSAGES/ directory.
6307
6308 * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
6309 function instead of writing single bytes.
6310 (encode_char): Also handle little endian.
6311
6312 * locale/setlocale.c (new_composite_name): Little optimization.
6313 Use return value of `memcpy'.
6314
6315 * misc/ttyent.h: Pretty print prototypes, add missing parameter
6316 names, prepend parameter names with __ and use `__const' instead
6317 of `const'.
6318 * posix/unistd.h: Ditto.
6319 * stdlib/stdlib.h: Ditto.
6320 * string/string.h: Ditto.
6321
6322 * posix/getconf.c: De-ANSI-fy. Recognize POSIX.2 constant names.
6323 Use `error' function instead of doing it by hand.
6324 * sysdeps/posix/sysconf.c: De-ANSI-fy.
6325 Handle _SC_COLL_WEIGHTS_MAX.
6326 * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
6327 _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
6328 since these do not depend on the platform.
6329 Add POSIX.4 symbols.
6330
6331 * posix/posix2_lim.h: Add missing definition of
6332 _POSIX2_COLL_WEIGHTS_MAX.
6333 Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
6334 to high values since we have no fixed limit.
6335
6336 * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
6337 _SC_PAGESIZE for buggy systems (= HP UX) out there.
6338
6339 * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
6340 * wcsmbs/mbsnrtowcs.c: New file. Non-standard implementation.
6341 * wcsmbs/wcsnrtombs.c: Ditto.
6342 * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
6343 wcsnrtombs.
6344
6345 Thu Jul 25 00:25:54 Richard Henderson <rth@tamu.edu>
6346
6347 * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
6348 course.
6349 * nss/getXXent_r.c: Likewise.
6350 * nss/nsswitch.c: Likewise.
6351 * nss/nss_files/files-XXX.c: Likewise.
6352 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
6353 * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
6354 * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
6355
6356 Thu Jul 25 00:53:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6357
6358 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
6359 macro, now put the needed Linux version just once, here; update to
6360 needing linux-2.0.3 headers.
6361 (libc_cv_linuxVER): New macro derived from that.
6362 (kernel header check): Use those macros and some m4 magic to replace
6363 hard-coded `201' and `2.0.1' in several places.
6364
6365 * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
6366
6367 Wed Jul 24 17:02:30 1996 Ulrich Drepper <drepper@cygnus.com>
6368
6369 * time/localtime.c: Move lock variable declaration to end of
6370 variable declarations since if is a dummy macro the ; at the
6371 end terminates the variable section of the function.
6372
6373 * time/tzset.c: Undefine `tzset' before function declaration.
6374 Use `weak_function' macro instead of `weak_symbol'.
6375
6376 Wed Jul 24 18:57:33 1996 Ulrich Drepper <drepper@cygnus.com>
6377
6378 * stdlib/strtouq.c: Additional weak alias is `strtoull', not
6379 `strotull'.
6380
6381 Wed Jul 24 18:26:23 1996 Ulrich Drepper <drepper@cygnus.com>
6382
6383 * locale/C-ctype.c: Increment number of fields after change
6384 from Wed Jun 19 03:24:58 1996.
6385
6386 Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6387
6388 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
6389 ($(common-objpfx)libc.so): Move deps into that, use it.
6390 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
6391 $(rpcuserlibs:.so=_pic.a).
6392 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
6393 use $(LDLIBS-c.so).
6394
6395 Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6396
6397 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
6398 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
6399
6400 Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
6401
6402 * locale/iso-4217.def: Add India to comment for symbol "INR ".
6403 Reported by Raja R Harinath <harinath@cs.umn.edu>.
6404
6405 Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6406
6407 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
6408 #undef RESOLVE.
6409
6410 Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6411
6412 * time/tzset.c: Include <libc-lock.h>.
6413 (__tzset_lock): New lock variable.
6414 (tzset): New function (weak defn), no longer weak alias for __tzset.
6415 Call __tzset while holding __tzset_lock.
6416 * time/localtime.c: Include <libc-lock.h>.
6417 (__localtime_r): Hold __tzset_lock while doing the work.
6418
6419 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
6420 from [!HAVE_GNU_LD] to [!_LIBC].
6421 [_LIBC]: Include <libc-lock.h> and define a lock.
6422 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
6423 (setenv, unsetenv): Use them.
6424
6425 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
6426
6427 * locale/programs/locfile.c (write_locale_data): Deal with missing
6428 UIO_MAXIOV.
6429
6430 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
6431 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
6432
6433 Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6434
6435 Win32 hacks from <Rob_Tulloh@tivoli.com>.
6436 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
6437 use void * for my_realloc; include <malloc.h> for alloca.
6438 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
6439 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
6440 * posix/glob.h: Likewise.
6441
6442 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
6443
6444 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
6445 call __io_select unless there's only a single descriptor, as each
6446 descriptor now has its own reply port.
6447 If there is only a single descriptor, just use its reply port for
6448 everything and don't bother creating the port set.
6449
6450 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
6451 <unistd.h>: New include.
6452
6453 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
6454 continuation line.
6455
6456 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6457
6458 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
6459 from the USA any software that even makes it easy to drop in an
6460 encryption module of foreign origin.
6461 * Makerules (cryptobjdir): Variable removed.
6462 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
6463 * Makefile (subdirs): Remove crypt.
6464
6465 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
6466
6467 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
6468 operator to yesexpr and noexpr string.
6469
6470 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
6471
6472 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
6473 old code would have failed on a big-endian 64-bit architecture).
6474 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
6475
6476 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
6477 (xdr_u_long): Use switch instead of chain of if-statements.
6478 Remove gratitous parentheses around return expressions.
6479 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
6480
6481 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
6482
6483 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
6484 not int.
6485
6486 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6487
6488 * dlfcn.h, db.h: New wrapper headers.
6489
6490 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
6491 for `struct stat;' forward decl.
6492
6493 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
6494
6495 * locale/iso-4217.def: Add some more standardized currency
6496 symbols.
6497
6498 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6499
6500 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
6501
6502 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
6503
6504 * Rules (dummy.o, empty.o): Targets removed.
6505 (dummy.c, empty.c): New targets replace them.
6506
6507 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6508
6509 * crypt/Makefile (lib-noranlib): Depend on
6510 $(objpfx)libcrypt.so$(libcrypt.so-version).
6511 (subdir): Fix name.
6512
6513 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
6514
6515 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
6516 check. mib's clueless hacking broke it.
6517
6518 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6519
6520 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
6521
6522 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
6523
6524 * misc/sys/ustat.h: New file.
6525 * misc/ustat.h: Ditto.
6526 * sysdeps/generic/ustatbits.h: Ditto.
6527 * sysdeps/stub/ustat.c: Ditto.
6528 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
6529 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
6530 ustatbits.h.
6531 (routines): Mention ustat.
6532
6533 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
6534 * sysdeps/alpha/elf/start.S: here.
6535
6536 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
6537 alphabetically correct place. Mention ustat.
6538
6539 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
6540 common symbol (makes errno accessible from gdb).
6541
6542 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
6543 test, not ut_type.
6544
6545 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
6546 record always gets appended at end of file (wtmp is a log file,
6547 after all). Set ut_type to DEAD_PROCESS if name is empty.
6548
6549 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
6550 separate loop from search for UT_ID. Fix code so it is in
6551 sync with Unix man page.
6552
6553 * login/getutline_r.c (getutline_r): Stop searching only if
6554 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
6555
6556 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
6557
6558 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
6559 avoid duplicate declarations.
6560
6561 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
6562
6563 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
6564 and alpha-gnu-linuxecoff targets.
6565
6566 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
6567
6568 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
6569
6570 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
6571
6572 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
6573 of int.
6574
6575 * resolv/res_comp.c (res_hnok): Use empty statement in place
6576 of NULL (which generates a "useless expression" warning in
6577 gcc).
6578
6579 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
6580
6581 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
6582 with $(..) in output.
6583
6584 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6585
6586 * elf/Makefile (dl-routines): Add dl-cache.
6587 * elf/dl-cache.c: New file.
6588 * elf/dl-load.c (_dl_map_object): Check cache before default path.
6589
6590 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
6591
6592 * stdio-common/vfscanf.c: Major change. Now read character
6593 from stream only if needed. Before it was read after the
6594 previous character was used.
6595 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
6596
6597 * stdio-common/tstscanf.c: Change test program so that return
6598 value is != 0 if one test failed.
6599
6600 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6601
6602 * sysdeps/m68k/Makefile (crypt): Variable removed.
6603 * sysdeps/sparc/Makefile: Likewise.
6604
6605 * version.h (VERSION): Update to 1.93.
6606
6607 * Makerules ($(libdir)/libc.so): Depend on
6608 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
6609
6610 * crypt/nocrypt.c: New file.
6611 * Makefile (subdirs): Add crypt.
6612 * crypt/Makefile: New file.
6613
6614 * Makerules (soversions.mk): Move this target, include of it, and
6615 include of version.mk to ...
6616 * Makeconfig: ... here.
6617 (soversions.mk): Depend on Makeconfig instead of Makerules.
6618
6619 * shlib-versions (*-*-*): Set libcrypt=0.
6620
6621 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
6622
6623 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
6624 word extends right up to rmargin.
6625
6626 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
6627 output the wrap margin, set point_col to wmargin.
6628 Use negative point_col to deal with a wmargin of 0.
6629 (line_wrap_point): Return 0 for a negative point_col.
6630 (line_wrap_stream): Make wmargin ssize_t.
6631 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
6632 point_col ssize_t.
6633 (line_wrap_stream): Make wmargin ssize_t.
6634 (line_wrap_point): Return 0 for a negative point_col.
6635
6636 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6637
6638 * shlib-versions (*-*-gnu*): Set libc=0.0
6639
6640 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6641
6642 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
6643 sysdeps/i386/dl-machine.h.
6644
6645 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
6646
6647 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
6648 to fiddle __put_limit in conjunction with __linebuf_active.
6649
6650 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6651
6652 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
6653 to the strong name, not the file name.
6654
6655 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6656
6657 * csu/initfini.c: More magic. Detect if .end is produced and put it
6658 in the output iff the compiler does.
6659
6660 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
6661 because that is broken on alpha.
6662
6663 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
6664 call as in first.
6665
6666 * Makerules (make-link): Install the new link with atomic mv -f in
6667 case ln itself requires the library being installed.
6668
6669 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
6670
6671 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
6672 i386/dl-machine.h of 960713.
6673
6674 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
6675 (_dl_sysdep_read_whole_file): Fix result variable declaration.
6676
6677 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6678
6679 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
6680 `nodename' member.
6681
6682 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
6683
6684 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
6685 with pointer to local variable instead of NULL.
6686
6687 1996-07-15 Paul Eggert <eggert@twinsun.com>
6688
6689 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
6690
6691 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6692
6693 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
6694 that are already added by other means.
6695
6696 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
6697 caller column to get those syscalls added automagically.
6698
6699 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
6700
6701 * login/logout.c (logout): Initialize DATA to a state that will
6702 make setutent_r happy.
6703
6704 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6705
6706 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
6707 instead of setting the DT_DEBUG pointer.
6708
6709 * csu/initfini.c (_init, _fini): Generate .end directives after
6710 standalone prologues and filter them out from epilogues.
6711
6712 * Makeconfig (rtld-installed-name): Set to ld.so.1.
6713 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
6714 removed.
6715
6716 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
6717
6718 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
6719
6720 * MakeTAGS (extract): Pass --add-comments=TRANS.
6721 * sysdeps/gnu/errlist.awk: Write comments into the output with the
6722 descriptive paragraphs from the manual preceded by TRANS.
6723
6724 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
6725 (_dl_start): Move RESOLVE defn inside this function and #include
6726 "dynamic-link.h" a second time there.
6727 [RTLD_START]: Move use of this after _dl_start function.
6728
6729 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
6730
6731 * elf/rtld.c: Include <string.h>.
6732
6733 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
6734 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
6735 Conditionalize defns on [RESOLVE].
6736 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
6737 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6738 Instead use RESOLVE macro with same args.
6739 (elf_machine_rel): Conditionalize defn on [RESOLVE].
6740 * elf/dl-reloc.c (RESOLVE): New macro, define before including
6741 "dynamic-link.h". It replaces `resolve' local function.
6742 * elf/dl-runtime.c: Likewise.
6743 * elf/rtld.c: Likewise.
6744
6745 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
6746
6747 * elf/dl-open.c (_dl_open): Force an indirect call for
6748 _dl_relocate_object so there is no chance a PLT fixup will be done
6749 and clobber _dl_global_scope before our call happens.
6750
6751 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
6752 to =t; must operate on top of fp reg stack, not second from top.
6753 Correct input constraint to 0 from t; must be explicit when input and
6754 output are the same register.
6755 (floor): Use __volatile instead of volatile.
6756 (ceil): Likewise.
6757
6758 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
6759 other targets.
6760
6761 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6762
6763 * manual/Makefile (lib): New phony target. Depend on stamp files.
6764 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
6765
6766 1996-07-13 Paul Eggert <eggert@twinsun.com>
6767
6768 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
6769 to match Emacs format-time-string specification.
6770 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
6771
6772 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6773
6774 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
6775 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
6776 between MAP and its deps.
6777 * elf/link.h: Fix decl.
6778 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
6779 colon-separated list of names, map those and pass vector of ptrs as
6780 PRELOADS list to _dl_map_object_deps.
6781 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
6782 _dl_map_object_deps with empty preload list.
6783 * elf/dl-open.c (_dl_open): Likewise.
6784
6785 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
6786 removed.
6787 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
6788 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
6789 Conditionalize defn on [! MAP_ANON].
6790 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
6791 on [! MAP_ANON].
6792 * elf/rtld.c (dl_main): Likewise.
6793 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
6794 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
6795
6796 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
6797
6798 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
6799
6800 * stdlib/random.c (__random): Declare as int32_t to be in sync
6801 with declaration.
6802
6803 * socket/Makefile (headers): Add socketbits.h.
6804
6805 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
6806 it that way.
6807
6808 * grp/initgroups.c (initgroups): Add groups that user is a member
6809 of, not the ones he is _not_ a member of.
6810
6811 * nss/nsswitch.c (known_compare): Make known_compare() a static
6812 instead of a local function. The latter are difficult to debug
6813 and slow to execute on certain platforms.
6814
6815 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
6816 place of sizeof (dev). The size of a literal string includes the
6817 NUL byte.
6818
6819 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
6820
6821 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
6822
6823 * misc/mntent.c (addmntent): Seek to end of file before writing
6824 entry. Return 1 on error, not -1.
6825
6826 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
6827
6828 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
6829 syscall.
6830
6831 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
6832
6833 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
6834 shift amount for Jensen must be 5 not 4.
6835
6836 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6837
6838 * socket/sys/socket.h (struct osockaddr): New type.
6839
6840 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
6841
6842 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
6843 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
6844 and `long double' versions can be generated.
6845 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
6846 so that included efgcvt{,_r}.c file generate `long double'
6847 versions.
6848 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
6849 functions.
6850
6851 * manual/startup.texi: Document new getsubopt function.
6852 * manual/examples/subopt.c: New example program for documenting
6853 getsubopt function.
6854
6855 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
6856
6857 * stdlib/Makefile (routines): Add getsubopt.
6858 * stdlib/stdlib.h: Add prototype for getsubopt.
6859 * stdlib/getsubopt.c: New file. Implement getsubopt function
6860 to handle suboption parsing.
6861
6862 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6863
6864 * inet/getnetent_r.c: Define NEED_H_ERRNO.
6865 * inet/getnetbynm_r.c: Likewise.
6866 * inet/getnetent.c: Likewise.
6867 * inet/getnetbyad_r.c: Likewise.
6868 * inet/getnetbyad.c: Likewise.
6869 * inet/getnetbynm.c: Likewise.
6870
6871 * sysdeps/generic/pselect.c: Include <sys/time.h>.
6872
6873 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
6874 `struct timespec'.
6875
6876 * math/Makefile (calls): Add s_frexp, s_ldexp.
6877 (routines): Remove them and &f from here.
6878
6879 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
6880
6881 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
6882 and check it.
6883
6884 * nss/nss_files/files-XXX.c: Comment fix.
6885
6886 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
6887
6888 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
6889 of reentrant function.
6890 (setup): Pass additional argument with function name we are
6891 looking for.
6892 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
6893 new argument {SET,END,GET}FUNC_NAME_STRING.
6894
6895 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
6896 we return a pointer.
6897
6898 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6899
6900 * nss/nss_files/files-parse.c: Add comment about things to #define.
6901
6902 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
6903
6904 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
6905 terminator char as an error.
6906
6907 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
6908
6909 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
6910
6911 * catgets/gencat.c (write_out): Move code to determine new
6912 best size out of inner loop.
6913
6914 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
6915
6916 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
6917 implementation of frexp() function.
6918 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
6919 implementation of ldexp() function.
6920
6921 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
6922 out before or'ing.
6923
6924 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
6925
6926 * misc/mntent.c: Include <sys/types.h>.
6927 (endmntent): Return 1 one success, 0 on failure.
6928 (getmntent): Chop newline and ignore empty lines.
6929
6930 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6931
6932 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
6933 differently based on [RTLD_BOOTSTRAP].
6934 (elf_machine_rela): Use it instead of the fn ptr arg directly.
6935
6936 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6937
6938 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
6939 __glob_closedir_hook): Remove decls.
6940
6941 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
6942
6943 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
6944 for send and connect syscalls.
6945
6946 * socket/sys/socket.h: New file, taken from non-sysdep parts of
6947 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
6948 Declare __ names for send and connect.
6949 * sysdeps/generic/socketbits.h: New file.
6950 * sysdeps/unix/sysv/linux/socketbits.h: New file.
6951 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
6952 * sysdeps/generic/sys/socket.h: File removed.
6953
6954 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
6955 * sysdeps/mach/hurd/send.c: Likewise.
6956
6957 * sysdeps/mach/libc-lock.h: New file.
6958 * sysdeps/unix/readdir.c: Do locking.
6959 * sysdeps/unix/seekdir.c: Likewise.
6960 * sysdeps/unix/rewinddir.c: Likewise.
6961 * sysdeps/unix/closedir.c: Likewise.
6962 * sysdeps/unix/bsd/telldir.c: Likewise.
6963 * sysdeps/mach/hurd/seekdir.c: Likewise.
6964 * sysdeps/mach/hurd/readdir.c: Likewise.
6965 * sysdeps/mach/hurd/closedir.c: Likewise.
6966 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
6967 * sysdeps/unix/opendir.c: Likewise.
6968 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
6969 (struct __dirstream): Add lock member using __libc_lock_define.
6970 * sysdeps/unix/dirstream.h: Likewise.
6971
6972 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
6973
6974 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
6975
6976 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
6977
6978 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
6979
6980 * locale/programs/stringtrans.c: Fix typo in copyright.
6981
6982 * stdio-common/printf-prs.c: Add casts to prevent
6983 signed<->unsigned warnings.
6984
6985 * stdio-common/printf-parse.h: Initialize state variable before
6986 calling mbrlen.
6987 * stdio-common/printf-prs.c: Don't initialize state variable here.
6988 * stdio-common/vfprintf.c: Don't initialize state variable.
6989 (vfprintf): While determining length of multibyte string don't
6990 try to be clever in determining characters to use for first
6991 call.
6992
6993 Add real implementation of multibyte<->wide char conversion
6994 functions. The functions always convert between the fixed wide
6995 char format (ISO 10646 in UCS4) and the UTF8 representation of
6996 this character set. Conversion between the currently used
6997 8bit character set and ISO 10646 will not take place. This is
6998 what iconv() is for.
6999 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
7000 dummy definition.
7001 Add optimized version of `mbrlen' function.
7002 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
7003 to 0...0x7f.
7004 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
7005 to 0..0x7f.
7006 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
7007 This is needed in the wchar.h header.
7008 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
7009 encoded character to UCS4.
7010 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
7011 element of `mbstate_t' for initial state.
7012 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
7013 encoded string to UCS4 string.
7014 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
7015 character to UTF8 encoded form.
7016 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
7017 encoded string to UTF8 encoded form.
7018
7019 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7020
7021 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
7022 variable name, so new a libc with new requirements won't fail to
7023 notice an insufficient Linux version.
7024
7025 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
7026
7027 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
7028 instead of 2.0 headers.
7029
7030 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
7031
7032 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
7033 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
7034
7035 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
7036 before using it in lhs of weak_alias.
7037
7038 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
7039 Call __nss_lookup when not setting STARTP.
7040 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
7041 function-calling loop.
7042
7043 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
7044
7045 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
7046 PENDIN, NOFLSH): Undefine these at start if they are already
7047 defined to avoid collision with termbits.h.
7048 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
7049 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
7050
7051 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7052
7053 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
7054 already defined to float, long double. Use those macros for _Mdouble_
7055 defns when including mathcalls.h.
7056 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
7057 -D_Mlong_double_=double.
7058
7059 Add more -lm functions to -lc because ldexp uses them.
7060 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
7061 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
7062 ldexp have both f and l code, and those have f though not l code.
7063
7064 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
7065
7066 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
7067 error is 0. The "placeholder" entries recently added to
7068 errno.texi convert to zero since `???/' is at the front of them.
7069 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
7070
7071 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
7072 __const to conform with unistd.h.
7073
7074 * stdlib/stdlib.h (random): Declare return type to be int32_t.
7075
7076 * string/argz-delete.c (argz_delete): Use memmove instead of
7077 memcpy for possibly overlapping strings.
7078
7079 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7080
7081 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
7082 storage class. GCC gives an error for non-extern data defns with the
7083 alias attribute.
7084
7085 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
7086
7087 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
7088 memmove instead of memcpy for possible overlapping strings.
7089
7090 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7091
7092 * libc-symbols.h (weak_function): New macro.
7093 For GCC 2.7+ define as __attribute__ ((weak)).
7094 * elf/dl-minimal.c: Use weak_function as keyword in function defns
7095 instead of weak_symbol (NAME) after the defn.
7096 * stdlib/strtol.c: Likewise.
7097 * stdlib/strtod.c: Likewise.
7098 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7099
7100 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
7101 If this is defined, don't declare _dl_rtld_map as weak, and
7102 don't check for MAP pointing to it. RESOLVE is always null in this
7103 case, so test with #ifdef instead of if.
7104
7105 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
7106 weak_symbol.
7107 * csu/initfini.c (_init): Likewise.
7108 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
7109 * misc/efgcvt_r.c: Likewise.
7110 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
7111 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
7112
7113 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
7114 It was not used in any assembler code.
7115 (weak_symbol_asm): Renamed to weak_extern_asm.
7116 (weak_extern): New macro replaces weak_symbol for weak extern refs;
7117 define to weak_extern_asm for [!ASSEMBLER].
7118
7119 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7120
7121 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
7122 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
7123 define those now as aliases.
7124 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
7125 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
7126 after GCC weak attribute decl.
7127
7128 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
7129 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
7130 (element printer): Check for elt in ALIAS, instead of special case
7131 for EWOULDBLOCK.
7132
7133 * io/Makefile (headers): Add sys/vfs.h.
7134 * io/sys/vfs.h: New file.
7135
7136 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
7137 critical section lock before unlinking dying active resources.
7138 The unlock just before return is right (i.e. old code unlocked twice).
7139
7140 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
7141
7142 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
7143 Use memmove instead of memcpy where overlap is possible (not
7144 necessary using current implementation of memcpy, but...).
7145 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
7146
7147 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
7148
7149 * stdio/linewrap.c (lwupdate): New function, mostly was
7150 __line_wrap_update. Use POINT_COL field instead of POINT.
7151 (__line_wrap_output): Use lwupdate.
7152 (__line_wrap_update): New function.
7153 (ensure_unwrapped, ensure_wrapped): New functions.
7154 (line_wrap_set_lmargin, line_wrap_set_rmargin,
7155 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
7156
7157 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
7158 POINT_COL. Add POINT_OFFS field.
7159 (__line_wrap_update): New decl.
7160 (line_wrap_set_lmargin, line_wrap_set_rmargin,
7161 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
7162
7163 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
7164
7165 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
7166
7167 * login/pututline_r.c (pututline_r): Since we assign RESULT from
7168 lseek now, check that it's >= 0, not == 0.
7169
7170 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
7171
7172 * login/login.c (login): Make a copy of *UT, fill in various
7173 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
7174 in place of UT.
7175
7176 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
7177 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
7178
7179 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7180
7181 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
7182 signal during critical section doing interruptible RPC, if
7183 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
7184 before thread_resume. If in critical section, pass 0 for SIGNO to
7185 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
7186
7187 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
7188
7189 * sysdeps/unix/sysv/linux/sys/user.h: New file.
7190 * sysdeps/unix/sysv/linux/Dist: Add it.
7191 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
7192
7193 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
7194 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
7195 itself, no need to skip past a NUL.
7196
7197 * nss/nsswitch.h (known_function): Comment fix.
7198 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
7199 directly. Do the lookup and insertion with a single call, and fill in
7200 the tree node afterwards if new.
7201 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
7202
7203 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
7204 (struct timeval): Add bodiless decl for scope.
7205
7206 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
7207 Move struct timespec defn outside [_TIME_H] so it can be got with
7208 #define __need_timespec.
7209
7210 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
7211 for `struct timespec' member names.
7212 (TIMESPEC_TO_TIMEVAL): Likewise.
7213
7214 * nss/Makefile (extra-libs-others): New variable.
7215
7216 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
7217 $(lib) in $(extra-libs-others).
7218 * sunrpc/Makefile (extra-libs-others): New variable.
7219 (librpcsvc-no-lib-dep): Variable removed.
7220
7221 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
7222 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
7223 _dl_rtld_map.
7224 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
7225 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
7226 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
7227 _dl_rtld_map weak only here.
7228
7229 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
7230
7231 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
7232
7233 * login/utmp.h: Fix typos.
7234
7235 * misc/syslog.c (vsyslog): Use __send instead of send and
7236 __connect instead of connect to avoid name-space collisions (e.g.,
7237 with psgetty).
7238
7239 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7240
7241 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
7242
7243 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
7244
7245 * malloc/malloc-size.c (malloc_usable_size): Renamed from
7246 malloc_object_allocation_size.
7247 * malloc/malloc.h: Fix decl.
7248
7249 * sys/select.h: New file, wrapper header.
7250
7251 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
7252 fd_set, associated macros, and select decl.
7253
7254 * sysdeps/posix/isfdtype.c: New file.
7255
7256 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
7257
7258 The latest Japanese proposal for POSIX locales renames the
7259 CHARMAP keyword in locale definition files to CHARCONV.
7260 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
7261 function ctype_is_charmap to ctype_is_charconv.
7262 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
7263 charconv.
7264 * locale/programs/locfile-token.h: Add definition of token
7265 charconv.
7266 * locale/programs/locfile.c: Recognize charconv keyword. Rename
7267 lables according to this.
7268
7269 * locale/weight.h (get_weight): Cast constants to prevent
7270 warnings.
7271
7272 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
7273 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
7274 warnings.
7275
7276 New stuff described in P1003.1g.
7277 * misc/Makefile (headers): Add sys/select.h.
7278 (routines): Add pselect.
7279 * misc/sys/select.h: New file. Declare select functions and
7280 needed data types and macros.
7281 * sysdeps/generic/pselect.c: New file. Add generic implementation
7282 of pselect() function which uses select().
7283
7284 * posix/getconf.c: Recognize new variables from P1003.1g.
7285 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
7286 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
7287 * posix/unistd.h: Add description of the P1003.1g variables.
7288 * sysdeps/generic/confname.h: Define _SC_* values for new
7289 variables.
7290 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
7291 _PC_SOCK_MAXBUF.
7292 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
7293 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
7294 P1003.1g variables.
7295 * sysdeps/stub/sysconf.c (sysconf): Ditto.
7296 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
7297 _POSIX_SELECT since Linux has this.
7298
7299 * socket/Makefile (routines): Add isfdtype.
7300 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
7301 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
7302 isfdtype.
7303
7304 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
7305
7306 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7307
7308 * elf/Makefile (LDFLAGS-dl.so): New variable.
7309 (libdl.so): Depend on eval.so.
7310 (distribute): Add eval.c.
7311 * elf/eval.c: New file.
7312
7313 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
7314 in case it wrote fewer than MAXDIGITS chars.
7315
7316 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
7317 newline from flushing full buffer in loop, fix test so no fflush is
7318 done when last byte written exactly fills the buffer.
7319
7320 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
7321
7322 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
7323 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
7324
7325 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
7326 extracting _dl_rtld_map.l_addr.
7327
7328 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
7329 weak.
7330 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
7331
7332 * shlib-versions (*-*-*): Set libnss_db=1.
7333
7334 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7335
7336 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
7337
7338 * rpm/template (%build): Use @prefix@ instead of always /usr.
7339 Set up configparms only if @prefix@ is in fact /usr.
7340 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
7341
7342 * elf/Makefile: Add missing endif.
7343
7344 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
7345
7346 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
7347 (DATABASE): Define this instead of DATAFILE.
7348 * nss/nss_files/files-hosts.c: Likewise.
7349 (hostbyname): Use LOOKUP_NAME macro.
7350
7351 * nss/nss_db/db-XXX.c: New file.
7352 * nss/Makefile (services): Add db.
7353 (libnss_db-inhibit-o): New variable.
7354 (libnss_db-routines): New variable.
7355 (distribute): Append db-XXX.c.
7356 (libnss_db.so): Depend on libdb.so and libnss_files.so.
7357 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
7358
7359 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
7360 args, ignored.
7361 (DATAFILE): New macro.
7362 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
7363 "files-XXX.c".
7364 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
7365 Pass db key args to DB_LOOKUP.
7366 (DATAFILE): Macro removed.
7367 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
7368 * nss/nss_files/files-service.c: Likewise.
7369 * nss/nss_files/files-pwd.c: Likewise.
7370 * nss/nss_files/files-proto.c: Likewise.
7371 * nss/nss_files/files-grp.c: Likewise.
7372 * nss/nss_files/files-ethers.c: Likewise.
7373
7374 * elf/linux-compat.c: File removed.
7375 * elf/Makefile (distribute): Remove linux-compat.c.
7376 (ld-linux.so.1): Remove target and associated variables.
7377
7378 * sunrpc/xdr.c: Remove malloc decl.
7379 * sunrpc/portmap.c: Likewise.
7380
7381 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
7382 casting abort to fn returning bool_t.
7383
7384 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
7385 the parser function.
7386 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
7387 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
7388 * nss/nss_files/files-grp.c: Likewise.
7389
7390 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
7391
7392 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
7393
7394 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
7395 of ld.so so lookups for that soname find it.
7396
7397 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
7398 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
7399
7400 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
7401 define parse_line function.
7402 (parse_line): #define to _nss_files_parse_pwent and
7403 add extern decl for that.
7404
7405 * nss/nss_files/files-XXX.c (internal_getent): Return
7406 NSS_STATUS_TRYAGAIN for ERANGE error.
7407
7408 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
7409 of null, so next round returns null again instead of bombing. Fix
7410 from drepper.
7411
7412 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
7413 Remove ; after `ENTDATA_DECL (data)'.
7414 Truncate line at strpbrk (line, EOLSET "\n").
7415 (ENTDATA_DECL): Put ; at end.
7416 (MIDLINE_COMMENTS): Macro removed.
7417 * nss/nss_files/files-ethers.c: Pass new argument.
7418 * nss/nss_files/files-hosts.c: Likewise.
7419 * nss/nss_files/files-network.c: Likewise.
7420 * nss/nss_files/files-parse.c: Likewise.
7421 * nss/nss_files/files-proto.c: Likewise.
7422 * nss/nss_files/files-rpc.c: Likewise.
7423 * nss/nss_files/files-service.c: Likewise.
7424 * grp/fgetgrent.c: Likewise.
7425 * pwd/fgetpwent.c: Likewise.
7426 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
7427 fgetpwent.c already defines it.
7428 * nss/nss_files/files-grp.c: Likewise.
7429
7430 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
7431 as well as any matching with l_libname. Fix DT_SONAME lookup to use
7432 string table properly.
7433
7434 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
7435 invoked directly, and l_libname from that if PT_INTERP missing.
7436 Set l_name from l_libname only if not set from argv.
7437
7438 * time/europe, time/northamerica: Updated from ADO 96i.
7439
7440 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7441
7442 * stdio-common/tst-ungetc.c: Include unistd.h.
7443
7444 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
7445
7446 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
7447
7448 * hurd/report-wait.c (describe_number): Make I unsigned long.
7449
7450 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
7451 actually found any entry.
7452
7453 * login/pututline_r.c (pututline_r): If not located after any
7454 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
7455 Lock the file before stating.
7456
7457 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7458
7459 * nss/Makefile (databases): Change host to hosts.
7460 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
7461
7462 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
7463
7464 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
7465
7466 * string/string.h (strndupa): Pass missing arg to strnlen.
7467
7468 * inet/getnetbypt_r.c: Renamed to ...
7469 * inet/getnetbyad_r.c: this; fixed function name.
7470 * inet/getnetbypt.c: Renamed to ...
7471 * inet/getnetbyad.c: this; fixed function name.
7472
7473 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7474
7475 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
7476 struct passwd.
7477
7478 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
7479
7480 * login/login.c (login): Initialize DATA so that setutent_r will
7481 actually do something.
7482
7483 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
7484
7485 * resolv/res_hconf.c (strndup): Remove function.
7486
7487 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
7488 using ElfW() instead of Elf32_*.
7489
7490 * sysdeps/unix/sysv/linux/alpha/init-first.h,
7491 sysdeps/unix/sysv/linux/m68k/init-first.h,
7492 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
7493 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
7494 init-first.h to make abstract machine dependent parts of
7495 initialization.
7496
7497 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
7498 error handling. It's safer that way.
7499
7500 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
7501 Fix by Richard Henderson.
7502
7503 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
7504 typo/extraneous whitespace.
7505
7506 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
7507 determine what integer sizes we're dealing with.
7508
7509 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
7510
7511 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
7512 check for signal zero, repair logical sense of test by
7513 parenthesizing correctly.
7514
7515 * hurd/hurdsig.c (_hurd_internal_post_signal): In
7516 check-for-pending signals code, release _hurd_siglock before
7517 jumping to deliver_pending.
7518
7519 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
7520
7521 * configure.in (config_machine): Make ELF the default even for
7522 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
7523 is specified.
7524
7525 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7526
7527 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
7528 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
7529 member only #ifdef ENTDATA.
7530 (ENTDATA_DECL): New macro.
7531 (LINE_PARSER): Use it for entdata decl.
7532 (parse_list): Find the space for LIST from DATA->linebuffer instead of
7533 from the input LINE, which might not be writable buffer space.
7534 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
7535 [ENTDATA] (parser_stclass): #define to `static inline'.
7536 [!ENDATA] (parser_stclass): #define to empty.
7537 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
7538 function is exported to -lnss_files users.
7539
7540 * string/strndup.c: Add missing arg.
7541
7542 * string/string.h (strndupa): Likewise.
7543 * string/strndup.c (strndup): Always terminate the string.
7544
7545 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7546
7547 * stdio/Makefile (routines): Add vscanf.
7548 * stdio-common/Makefile (routines): Remove vscanf.
7549 * stdio-common/vscanf.c: Move to ...
7550 * stdio/vscanf.c: here.
7551
7552 * rpm/Makefile (headers, install-lib, install-lib.so,
7553 versioned, install-bin, install-sbin, install-data,
7554 install-others): Add $(-VARIABLE).
7555
7556 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7557
7558 * nss/Makefile (databases): New variable.
7559 (routines, libnss_files-routines): Use it.
7560 (subdir-dirs): Compute from $(services).
7561
7562 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
7563 init_module, klogctl): Use EXTRA in the "caller" column so these get
7564 added to unix-extra-syscalls and thus compiled in misc.
7565
7566 * string/Makefile (routines): Add strndup.
7567 * string/strndup.c: New file.
7568 * string/string.h: Declare strndup.
7569 (strndupa): New macro.
7570
7571 * string/string.h: Declare __strdup.
7572 * string/strdup.c: Deansideclized. Define __ name and weak alias.
7573
7574 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
7575
7576 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
7577
7578 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
7579
7580 * grp/initgroups.c (initgroups): De-ansi-fy.
7581 Move declaration of NGROUPS and GROUPS outside #if so that
7582 the code compiles for NGROUPS_MAX != 0.
7583
7584 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
7585 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
7586 ether_ntoa, ether_ntoa_r, and ether_ntoh.
7587 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
7588 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
7589 inet/ether_ntoh.c: New files. Implementation of functions to
7590 handle Ethernet address to host mapping.
7591 * inet/netinet/ether.h: New file. Declare ether_* functions.
7592 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
7593 compilation.
7594 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
7595 * nss/Makefile (routines): Add ethers-lookup.
7596 (libnss_files-routines): Add files-ethers.
7597
7598 * nss/getXXent_r.c: Don't define set*ent and end*ent function
7599 with _r suffix.
7600
7601 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
7602 KEEP_STREAM every time called.
7603 (_nss_files_end): Reset KEEP_STREAM here instead.
7604 (internal_getent): If STREAM == NULL try to open instead of
7605 signalling error.
7606 Use cast to prevent warning.
7607 Terminate read line in case the buffer is too small.
7608
7609 * nss/nss_files/files-ethers.c: New file. Implementation of
7610 Ethernet adress<->hostname lookup through files interface.
7611
7612 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
7613 * stdlib/mbtowc.c: Define based on mbrtowc().
7614 * stdlib/wcstombs.c: Define based on wcsrtombs().
7615 * stdlib/wctomb.c: Define based on wcrtomb().
7616
7617 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
7618 unexpected_sizes_in_xdr_u_int.
7619
7620 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
7621 of `struct ether_addr'.
7622 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
7623 declaration of `struct ether_addr'.
7624
7625 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
7626 * wcsmbs/mbsrtowcs.c: Ditto.
7627 * wcsmbs/wcrtomb.c: Ditto.
7628 * wcsmbs/wcsrtombs.c: Ditto.
7629
7630 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
7631
7632 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
7633
7634 * hurd/get-host.c <fcntl.h>: New include.
7635 * hurd/set-host.c <fcntl.h>: New include.
7636 (_hurd_set_host_config): Include NEW in args to dir_link.
7637 Return NWROTE, not NREAD.
7638
7639 * sysdeps/mach/hurd/getcwd.c
7640 (_hurd_canonicalize_directory_name_internal): Don't deallocate
7641 DOTID & DOTDEVID until we're finished with them (we need to keep
7642 them at least until we've fetched the next level of id ports, so
7643 that mach will be able to use the same name if they're the same).
7644 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
7645 jumps to errlose, for those places where such cleanup is needed.
7646
7647 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7648
7649 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
7650
7651 Move DB code into separate -ldb library.
7652 * db/Makefile (extra-libs): New variable, list libdb.
7653 (routines): Renamed to libdb-routines.
7654 * shlib-versions: Add libdb=2.
7655
7656 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
7657 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
7658
7659 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
7660 of strncasecmp. Extend syntax to grok [!foo=bar].
7661
7662 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
7663 weak alias.
7664 * string/string.h: Declare __strncasecmp.
7665
7666 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
7667 (service_alias): Variable removed.
7668 (nss_parse_service_list): New function, broken out of nss_getline.
7669 Remove alias conversion; we will just use symlinks.
7670 (__nss_database_lookup): Take new string arg DEFCONFIG.
7671 If no entry exists, make one with service list parsed from that.
7672 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
7673 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
7674 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
7675
7676 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
7677 list size.
7678
7679 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
7680
7681 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
7682
7683 * locale/programs/locale.c (long_options): Short form of
7684 --version option is `-V'.
7685 (main): Recognize `-V' as option, not `-v'.
7686 Call `usage' instead of printing error message for illegal
7687 option.
7688 (usage): Document `-V'.
7689
7690 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
7691
7692 * sysdeps/mach/hurd/getcwd.c
7693 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
7694 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
7695
7696 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7697
7698 * inet/getrpcent.c: Fix macros.
7699 * inet/getrpcent_r.c: Fix macros.
7700
7701 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
7702
7703 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
7704
7705 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
7706
7707 * catgets/gencat.c (write_out): Use %Zu to print variables of type
7708 size_t.
7709 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
7710 cast it to (unsigned long) to make it work both on 32 and 64
7711 bit architectures.
7712
7713 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7714
7715 * locale/Makefile (distribute): Add `programs/' prefix to all
7716 files in that directory.
7717
7718 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
7719 subdir' works.
7720
7721 * MakeTAGS (sources, headers): Make them simply expanded variables
7722 so that all-dist is expanded before it is changed.
7723
7724 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7725
7726 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
7727 * Makefile (subdirs): Remove crypt.
7728 * crypt: Directory removed. It will be made an independent library
7729 distribution.
7730
7731 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
7732
7733 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
7734
7735 * inet/getrpcbynumber.c (BUFLEN): New macro.
7736
7737 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
7738
7739 * Makefile (headers): Add libc-lock.h.
7740 * sysdeps/stub/libc-lock.h: New file.
7741
7742 * inet/getrpcbynumber.c: Remove _r typo.
7743
7744 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
7745
7746 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
7747 after the first!
7748
7749 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
7750 or doesn't mention DATABASE, use an internal default equivalent to
7751 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
7752 (nss_lookup_function): Call nss_new_service as needed.
7753 (nss_parse_file): Don't bother calling nss_new_service here.
7754
7755 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
7756 * pwd/fgetpwent.c: Likewise.
7757
7758 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
7759 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
7760 * malloc/malloc-size.c: New file.
7761 * malloc/malloc-walk.c: New file.
7762
7763 * malloc/malloc-find.c (malloc_find_object_address): Return null if
7764 PTR is outside the heap.
7765
7766 * elf/dl-load.c (_dl_map_object): If the requested name matches the
7767 soname of a loaded object, use that object.
7768
7769 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7770
7771 * Makefile (subdirs): Add nss.
7772
7773 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
7774 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
7775 * inet/getrpcbynumber_r.c: New file.
7776 * inet/getrpcbynumber.c: New file.
7777 * inet/getrpcbyname.c: New file.
7778 * inet/getrpcbyname_r.c: New file.
7779 * inet/getrpcent_r.c: New file.
7780 * inet/getrpcent.c: New file.
7781 * nss/rpc-lookup.c: New file.
7782 * nss/nss_files/files-rpc.c: New file.
7783 * nss/Makefile (routines): Add rpc-lookup.
7784 (libnss_files-routines): Add files-rpc.
7785 * sunrpc/Makefile (routines): Remove getrpcent.
7786 * sunrpc/getrpcent.c: File removed.
7787
7788 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
7789 non-null on entry.
7790
7791 * Makeconfig (rpath-link): Add $(nssobjdir).
7792 (nssobjdir): New variable.
7793
7794 * Makerules: Move shared library building before objects rules, so
7795 versions are known before extra-lib.mk gets included.
7796 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
7797
7798 * pwd/getpwuid.c: Rewritten using nss.
7799 * pwd/getpwnam.c: Likewise.
7800 * pwd/getpwent.c: Likewise.
7801 * grp/getgrnam.c: Likewise.
7802 * grp/getgrgid.c: Likewise.
7803 * grp/getgrent.c: Likewise.
7804 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
7805 * pwd/getpwent_r.c: New file.
7806 * pwd/getpwnam_r.c: New file.
7807 * pwd/getpwuid_r.c: New file.
7808 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
7809 * grp/getgrnam_r.c: New file.
7810 * grp/getgrgid_r.c: New file.
7811 * grp/getgrent_r.c: New file.
7812 * grp/Makefile (routines): Remove grpopen, grpread.
7813 * pwd/Makefile (routines): Remove pwdopen, pwdread.
7814 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
7815
7816 * pwd/fgetpwent.c: Rewritten using files-parse.c.
7817 * grp/fgetgrent.c: Likewise.
7818
7819 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
7820 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
7821 * nss/nss_files/files-grp.c: New file.
7822 * nss/nss_files/files-pwd.c: New file.
7823
7824 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
7825
7826 * nss/nss_files/files-parse.c: New file.
7827 * nss/nss_files/files-XXX.c: New file.
7828 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
7829 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
7830 Rewritten using them.
7831
7832 * nss/Makefile (libnss_files-routines): Remove files-host.
7833 Add files-hosts, files-grp, files-pwd.
7834
7835 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
7836
7837 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
7838
7839 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7840 A .plt entry now loads the .rela.plt offset directly rather
7841 than making us calculate it.
7842
7843 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7844
7845 * time/Makefile ($(installed-localtime-file) rule): Do
7846 $(make-target-directory) first.
7847
7848 * resolv.h: Fix wrapper for resolv/resolv.h.
7849
7850 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
7851 Compile dummy file and pass -nostdlib -nostartfiles so as not to
7852 require installed libraries.
7853
7854 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
7855 libnss_dns=1.
7856
7857 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
7858
7859 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
7860 and mapv4v6hostent.h.
7861 (routines): Move res* and gethnamaddr into libresolv-routines.
7862 (libresolv-routines): New variable, put them there.
7863 (extra-libs): New variable, list libresolv.
7864 (CPPFLAGS): Add -D for get*by* to res_get*by*.
7865
7866 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
7867
7868 * inet/herrno.c: New file.
7869
7870 * resolv/res_init.c: Remove res_hconf calls.
7871
7872 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
7873 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
7874 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
7875 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
7876 nss/service-lookup.c: New files. Implementation of name
7877 service switch, following the approach in Solaris.
7878 Interface specification and general structure inspired by Peter
7879 Eriksson <pen@lysator.liu.se>.
7880 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
7881 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
7882 Implementation of libnss_files.so module for file based databases
7883 in NSS service.
7884 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
7885 if libnss_dns.so module for DNS name lookup in NSS service.
7886
7887 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
7888 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
7889 Changed to serve as interface to NSS.
7890 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
7891 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
7892 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
7893 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
7894 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
7895 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
7896 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
7897 interfaces to NSS, including reentrant functions.
7898
7899 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
7900 resolv/sethostent.c: Removed: Obsoleted by NSS.
7901
7902 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
7903 gethnamaddr.c. These private functions are now used in more
7904 than one file.
7905
7906 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
7907
7908 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7909
7910 * rpm/Makefile ($(config)): Make sure the word list in the for
7911 loop is syntactically non-empty.
7912
7913 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7914
7915 * Version 1.92 test release.
7916
7917 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
7918
7919 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
7920 to klogctl to match prototype in sys/klog.h.
7921
7922 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
7923 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
7924
7925 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
7926 Remove. Code is now part of __getcwd again. The old function
7927 never really worked for anything but THISDIR==".".
7928
7929 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
7930 only when building ELF version of library.
7931
7932 * libio/libioP.h (_IO_vscanf): Add prototype.
7933
7934 * posix/unistd.h (syscall): Change sysno arg and return value
7935 to int long.
7936
7937 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7938
7939 * version.h (VERSION): Updated to 1.92.
7940
7941 * misc/Makefile (headers): Add ar.h.
7942 * misc/ar.h: New file.
7943
7944 * config.make.in (BUILD_CC): New variable.
7945 * configure.in: Check for BUILD_CC if $host != $build.
7946
7947 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
7948
7949 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
7950 (stamp$o files): New targets, create them empty, no deps.
7951
7952 * rpm/template (Source): New field.
7953 (%prep, %build, %install): New sections.
7954 (%files): Add %doc FAQ NEWS NOTES README.
7955 * rpm/rpmrc (builddir): Removed.
7956
7957 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7958
7959 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
7960 guessing to not assume p_vaddr of first load cmd is zero.
7961
7962 * sysdeps/sparc/elf/start.S: New file.
7963 * sysdeps/sparc/dl-machine.h: New file.
7964
7965 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
7966 only for ?s, not for *s. Fix from Chet Ramey.
7967
7968 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
7969 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
7970 Use __{BEGIN,END}_DECLS.
7971 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
7972 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
7973 New macros, moved here from sysdeps/gnu/utmpbits.h.
7974 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
7975 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
7976 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
7977 Use sizeof instead of UT_*SIZE.
7978 * login/logwtmp.c: Likewise.
7979
7980 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
7981
7982 * version.c (banner): Add trailing newline.
7983
7984 * login/utmp.h: Declare login_tty.
7985
7986 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
7987
7988 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
7989 Changed to a 12-byte PLT entry to remove dependency on $gp.
7990 Take a new got_addr parameter.
7991 (elf_machine_rela): Pass the new parameter.
7992 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
7993 (RTLD_START): Do normal linkage with program entry.
7994
7995 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
7996
7997 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
7998
7999 * hurd/getuids.c (getuids): New weak link to __getuids.
8000
8001 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
8002
8003 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
8004 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
8005 argument.
8006 Rename nested function lookup to lookup_op.
8007 (__file_name_lookup, __file_name_lookup_under):
8008 Pass 0 for lookup arg to __hurd_file_name_lookup.
8009 (__file_name_split): Likewise for __hurd_file_name_split.
8010 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
8011 Rename nested function lookup to scan_lookup.
8012 (file_name_path_lookup): Pass 0 for lookup arg to
8013 hurd_file_name_path_lookup.
8014 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
8015 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
8016 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
8017 Add LOOKUP argument.
8018 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
8019 __hurd_file_name_lookup.
8020
8021 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8022
8023 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
8024 up a huge list just to discard most of it.
8025
8026 * configure.in (sysnames): Avoid fgrep by using the case shell
8027 builtin.
8028
8029 * Makeconfig (config.status): Fix dependency on Implies files.
8030
8031 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
8032
8033 * math/Makefile (distribute): Add ieee-math.c.
8034
8035 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
8036
8037 * locale/codeset_name.c: New file. Provide function for information
8038 about currently used character set.
8039 * locale/Makefile (routines): Add codeset_name.
8040 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
8041 * locale/localeinfo.h: Change magic number because of incompatible
8042 change.
8043 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
8044 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
8045
8046 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
8047 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
8048
8049 * locale/setlocale.c (setlocale): Initialize local variables to
8050 prevent warnings.
8051
8052 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
8053
8054 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
8055
8056 * locale/programs/locale.c: Include string.h.
8057
8058 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
8059 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
8060 appropriate sign-extension is performed on machines with
8061 sizeof(long) > 4.
8062
8063 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
8064 sizeof(int)<sizeof(long), we need to go through a temporary
8065 variable.
8066
8067 * locale/programs/ld-numeric.c: Include <alloca.h>
8068
8069 * libio/stdio.h (__libc_fatal): Add prototype.
8070
8071 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
8072 in efect.
8073
8074 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
8075 volatile to avoid "might get clobbered by longjmp" warning.
8076
8077 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
8078 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
8079 probability is a sure loser).
8080 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
8081
8082 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
8083 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
8084
8085 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
8086 to be Linux FSSTND compliant.
8087
8088 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
8089
8090 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
8091
8092 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
8093 sysdeps/unix/sysv/linux/alpha/brk.S,
8094 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
8095 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
8096 sysdeps/unix/sysv/linux/alpha/llseek.S,
8097 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
8098 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
8099 __syscall_error to avoid intruding application name space.
8100
8101 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
8102 to SYS_get?id so that syscall stubs in sysdeps/unix define
8103 these syscalls in terms of getxpid/getxuid/getxgid.
8104
8105 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
8106 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
8107 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
8108 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
8109
8110 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
8111 (PSEUDO_END): Rename END() to PSEUDO_END().
8112
8113 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
8114 to PSEUDO_END to improve branch-prediction. Include .frame
8115 directive to make syscalls debugabble.
8116 (PSEUDO_END): New macro.
8117
8118 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
8119 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
8120 latter is illegal under DEC Unix.
8121
8122 * sysdeps/unix/alpha/sysdep.S: Renamed from
8123 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
8124 as well.
8125 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
8126 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
8127 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
8128
8129 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
8130 address register in the .frame directive.
8131
8132 * sysdeps/alpha/copysign.c: Remove.
8133
8134 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
8135 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
8136
8137 * errno.h: Move __END_DECLS to correct place to make file
8138 compilable under c++.
8139
8140 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
8141 d_ino only if <direntry.h> hasn't defined d_fileno.
8142
8143 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
8144 arguments to weakext to make .weakext detection work on ECOFF systems.
8145
8146 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
8147 that _validuser() has been replaced by __ivaliduser().
8148
8149 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
8150
8151 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
8152 as unsigned long, not as int (to avoid incorrect int->long
8153 promotion).
8154
8155 \f
8156
8157 See ChangeLog.5 for earlier changes.
This page took 0.404605 seconds and 5 git commands to generate.