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