1 Sat Sep 28 03:02:49 1996 Ulrich Drepper <drepper@cygnus.com>
3 * dirent/Makefile (routines): Add readdir_r.
4 * dirent/readdir_r.c: New file. Wrapper around readdir.c.
5 * dirent/dirent.h: Add prototype for readdir_r.
7 * misc/hsearch_r.c (ENTRY): Make field `used' of type `unsigned int'
10 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
13 Sat Sep 28 01:16:42 1996 Ulrich Drepper <drepper@cygnus.com>
15 * sysdeps/generic/strsep.c: Rename to __strsep and make strsep
17 * string/string.h: Add prototype for __strsep.
18 * misc/mntent_r.c: Use __strsep instead of strsep to keep
21 * sysdeps/stub/nanosleep.c: Rename to __libc_nanosleep and make
22 __nanosleep and nanosleep weak aliases.
23 * sysdeps/unix/sysv/linux/syscalls.list: Add __nanosleep as weak
25 * sysdeps/unix/sysv/linux/sleep.c: Call __nanosleep instead of
26 nanosleep to keep namespace clean.
28 * sysdeps/posix/ttyname.c (ttyname): Add cast to prevent warning.
29 * sysdeps/posix/ttyname_r.c (ttyname_r): Likewise.
30 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32 * sysdeps/unix/nlist.c: Use ISO C definition since we don't always
35 * login/Makefile (headers): Add pty.h.
36 * login/pty.h: New file.
37 * sysdeps/generic/pty.h: Include <pty.h>.
38 * login/pututline_r.c: Add cast to prevent warning.
40 * gmon/gmon.c: Add prototype for __profile_frequency.
41 (monstartup): Add cast to prevent warning.
42 * sysdeps/generic/prof-freq.c: Change to use ISO C style definition.
44 * locale/programs/ld-time.c (time_output): Write `era' information
47 Sat Sep 28 00:11:08 1996 Ulrich Drepper <drepper@cygnus.com>
49 * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias
51 Set caller for mlock, mlockall, mremap, munlock, and munlockall
53 Reported by Matthias Urlichs <smurf@smurf.noris.de>.
55 1996-09-27 Paul Eggert <eggert@twinsun.com>
57 * strftime.c (strftime): Output incomplete formats like %E
60 1996-09-27 Paul Eggert <eggert@twinsun.com>
62 * strftime.c (strftime): Add support for %EC and %Ey.
63 Fix support for %EY. This uses the new _nl_get_era_entry function.
65 Fri Sep 27 14:12:27 1996 Ulrich Drepper <drepper@cygnus.com>
67 Security related patch by Elliot Lee <sopwith@redhat.com> and
68 David Holland <dholland@eecs.harvard.edu>.
70 * inet/rexec.c (rexec): Increase size of `num' array from 8 to 32.
71 * inet/ruserpass.c (ruserpass): Don't allow $HOME envvar to not exist.
73 * sysdeps/generic/getenv.c (__secure_getenv): New function. Return
74 NULL when programs runs with SUID or SGID enabled.
75 * sysdeps/stub/getenv.c: Make __secure_getenv an alias of getenv.
76 * stdlib/stdlib.h: Add prototype for __secure_getenv.
78 * locale/setlocale.c: Use __secure_getenv.
79 * resolv/res_init.c: Likewise.
80 * resolv/res_query.c: Likewise.
81 * inet/ruserpass.c: Likewise.
82 * sysdeps/posix/tempname.c: Likewise.
83 * malloc/mtrace.c: Likewise.
84 * catgets/catgets.c: Likewise.
86 Make temporary file handling functions reentrant.
88 * stdio-common/tmpnam.c: Rewrite to have own buffer to write
89 result to. The called __stdio_gen_tempname function must be
91 * stdio-common/tmpnam_r.c: New file.
92 * stdio/stdio.h: Add prototype for `tmpnam_r'.
93 Change prototype for __stdio_gen_tempname.
94 * stdio/libio.h: Likewise.
95 * sysdeps/posix/tempname.c: Add new parameters and use them instead
97 Don't reset `indeces' when PID changed between calls.
98 Don't fail for long running programs when index counter once
100 * sysdeps/stub/tempname.c: Likewise.
101 * stdio-common/tempnam.c: Provide local buffer as extra argument
102 to __stdio_gen_tempname. This makes this function reentrant.
103 * stdio-common/tmpfile.c: Likewise.
104 * stdio-common/temptest.c: Provide extra argument to
105 __stdio_gen_tempname.
106 * manual/filesys.texi: Describe tmpnam_r and add comments about
107 reentrancy of the functions.
109 * inet/rcmd.c: Fixed address length handling.
111 * sysdeps/posix/mk-stdiolim.c: Count final \0 byte in L_tmpnam value.
113 * time/strftime.c: Remove unused variables alt_digits and
116 * sysdeps/unix/sysv/linux/sys/sysinfo.h: Correct prototype names
117 for get_nprocs and get_nprocs_conf.
118 * sysdeps/generic/sys/sysinfo.h: Likewise.
120 * stdlib/test-canon.c: Finally do the right fix.
122 * misc/Makefile: Only compile force-wrapper when compiling
125 Fri Sep 27 03:49:56 1996 Ulrich Drepper <drepper@cygnus.com>
127 Add support for cancelable system calls.
129 * csu/initfini.c: Make in crti.o reference to symbol
130 __libc_force_cancel_wrapper when compiling reentrant version.
131 * misc/Makefile (routines): Add force-wrapper.
132 * misc/force-wrapper.c: New file.
134 * posix/system.c: Rename function to __libc_system and make system
136 * sysdeps/stub/system.c: Likewise.
137 * posix/wait.c: Rename function to __libc_wait and make __wait a
138 weak alias. De-ANSI-fy.
139 * sysdeps/standalone/read.c: Rename function to __libc_read and
140 make __read a weak alias.
141 * sysdeps/stub/read.c: Likewise.
142 * sysdeps/standalone/write.c: Rename function to __libc_write and
143 make __write a weak alias.
144 * sysdeps/stub/write.c: Likewise.
145 * sysdeps/stub/tcdrain.c: Rename function to __libc_tcdrain and
146 make tcdrain a weak alias.
147 * sysdeps/unix/bsd/tcdrain.c: Likewise.
148 * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Likewise.
149 * sysdeps/unix/sysv/tcdrain.c: Likewise.
150 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
151 * sysdeps/unix/bsd/bsd4.4/wait.c: Rename function to __libc_wait
152 and make __wait a weak alias.
153 * sysdeps/stub/waitpid.c: Rename function to __libc_waitpid and
154 make __waitpid a weak alias.
155 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
156 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
157 * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
158 * sysdeps/unix/common/pause.c: Rename function to __libc_pause
159 and make pause a weak alias. De-ANSI-fy.
161 * sysdeps/unix/syscalls.list: Change name for close, fcntl, fsync,
162 lseek, open, read, and write to have __libc_ prefix and make old
164 * sysdeps/unix/mman/syscalls.list: Likewise for msync.
165 * sysdeps/unix/sysv/linux/syscalls.list: Likewise for nanosleep.
167 * io/creat.c: De-ANSI-fy.
169 * sysdeps/unix/sysv/linux/syscalls.list: Add pause.
171 Thu Sep 26 19:15:55 1996 Ulrich Drepper <drepper@cygnus.com>
173 * misc/mntent.h: Add MNTTYPE_* and MNTOPT_* macros.
174 Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
176 Thu Sep 26 14:40:10 1996 Ulrich Drepper <drepper@cygnus.com>
178 * sysdeps/posix/pathconf.c: Pass descriptor for just opened file
180 Reported by Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>.
182 Thu Sep 26 04:02:43 1996 Ulrich Drepper <drepper@cygnus.com>
184 * locale/programs/locfile.c (write_locale_data): Allocate room
185 even for file name for LC_MESSAGES locale.
186 (locafile_read): `tok_era' must be handled as a string list.
187 * locale/programs/ld-time.c: Finish correction of handling `era'.
188 * locale/C-time.c (_nl_C_LC_TIME): Add initializer for new fields.
189 * locale/categories.def: Add postload function for LC_TIME.
190 * locale/setlocale.c: Make lock global and rename to
191 __libc_setlocale_lock.
192 * locale/localeinfo.h (struct era_entry): New type. Used in strftime.
193 Add prototypes for _nl_get_era_entry and _nl_get_alt_digit.
194 * locale/lc-time.c (_nl_postload_time): New function. Initialize
196 (_nl_get_era_entry): New function. Return era entry which corresponds
198 (_nl_get_alt_digit): New function. Return string with alternate
199 digit representation for given number.
201 * time/strftime.c (strftime): Use _nl_get_alt_digit to get
202 string representing alternate digit notation.
204 Wed Sep 25 17:31:55 1996 Ulrich Drepper <drepper@cygnus.com>
206 * sysdeps/generic/waitstatus.h (union wait): Add w_status field.
207 Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
209 * elf/rtld.c (dl_main): Process LD_PRELOAD before loading
210 ld.so.preload. Suggested by David Engel <david@elo.ods.com>.
212 Wed Sep 25 13:10:57 1996 Ulrich Drepper <drepper@cygnus.com>
214 * catgets/gencat.c (main): Change --version again because RMS wants
215 the package name in parentheses.
216 * db/makedb.c: Likewise.
217 * locale/programs/locale.c: Likewise.
218 * locale/programs/localedef.c: Likewise.
220 Tue Sep 24 01:28:05 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
222 * Makefile ($(objpfx)sysd-dirs): Depend on Subdirs files, command
224 ($(objpfx)version-info.h): Depend on Banner files, command
227 Wed Sep 25 02:44:41 1996 Ulrich Drepper <drepper@cygnus.com>
229 * sysdeps/unix/sysv/linux/sleep.c: New file. Based on nanosleep.
231 Tue Sep 24 21:46:02 1996 Ulrich Drepper <drepper@cygnus.com>
233 * shadow/lckpwdf.c (PWD_LOCKFILE): Change to /etc/lock.pwd to be
234 on the same device as the password file.
235 * shadow/shadow.h (struct spwd): Change type of numeric fields
236 to `long int' since there value are days, not seconds.
237 * shadow/putspent.c: Change casts from time_t to `long int'.
238 * shadow/sgetspent_r.c (LINE_READER): Likewise.
240 Mon Sep 23 23:05:24 1996 Ulrich Drepper <drepper@cygnus.com>
242 * sysdeps/unix/sysv/linux/errnos.h: Define __set_errno to make
243 sure the thread specific variable is set as well as the global
245 * sysdeps/mach/hurd/errnos.awk: Define macro for source code
247 * sysdeps/stub/errnos.h: Likewise.
248 * sysdeps/unix/bsd/bsd4.4/errnos.h: Likewise.
250 * shadow/putspent.c: Don't include <errno.h>.
252 * dirent/scandir.c (scandir): Use __set_errno to set errno
254 * elf/dl-load.c (open_path): Likewise.
255 * inet/rcmd.c (rcmd): Likewise.
256 (rresvport): Likewise.
257 * intl/dcgettext.c [!__set_errno]: Define __set_errno.
258 (DCGETTEXT): Use __set_errno to set errno variable.
259 * io/fts.c (fts_open): Likewise.
260 (fts_close): Likewise.
261 (fts_read): Likewise.
263 (fts_children): Likewise.
264 (fts_build): Likewise.
265 (fts_stat): Likewise.
266 * io/ftw.c (ftw_dir): Likewise.
268 * io/getwd.c (getwd): Likewise.
269 * io/lockf.c (lockf): Likewise.
270 * libio/libioP.h [EINVAL]: Use __set_errno to define MAYBE_SET_EINVAL.
271 * libio/iofdopen.c (_IO_fdopen): Use MAYBE_SET_EINVAL to errno.
272 * libio/iogetdelim.c (_IO_getdelim): Likewise.
273 * libio/fileops.c (_IO_file_open): Use __set_errno to set errno
275 * libio/iofgetpos.c (_IO_fgetpos): Likewise.
276 * libio/iofsetpos.c (_IO_fsetpos): Likewise.
277 * libio/ioftell.c (_IO_ftell): Likewise.
278 * locale/loadlocale.c (_nl_load_locale): Likewise.
279 * locale/nl_langinfo.c (nl_langinfo): Likewise.
280 * locale/setlocale.c (ERROR_RETURN): Likewise.
281 * login/getutid_r (__getutid_r): Likewise.
282 * login/getutline_r (__getutline_r): Likewise.
283 * login/login.c (tty_name): Likewise.
284 * login/oututline_r.c (__pututline_r): Likewise.
285 * malloc/malloc.c (morecore): Likewise.
286 * misc/efgcvt_r.c (fcvt_r): Likewise.
287 * misc/hsearch_r.c (hcreate_r): Likewise.
288 (hdestroy_r): Likewise.
289 (hsearch_r): Likewise.
290 * nss/nsswitch.c (__nss_configure_lookup): Likewise.
291 * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Likewise.
292 (_nss_dns_gethostbyaddr_r): Likewise.
293 * nss/nss_files/files-XXX.c (internal_getent): Likewise.
294 * nss/nss_files/files-parse.c (parse_list): Likewise.
295 * posix/confstr.c (confstr): Likewise. De-ANSI-fy.
296 * posix/execvp.c (execvp): Likewise.
297 * posix/glob.c: Define __set_errno.
298 (glob): Use __set_errno to set errno variable.
299 (glob_in_dir): Likewise.
300 * pwd/getpw.c: Likewise. De-ANSI-fy.
301 * pwd/putpwent.c: Likewise.
302 * resolv/inet_net_ntop.c: Likewise.
303 * resolv/inet_net_pton.c: Likewise.
304 * resolv/inet_neta.c: Likewise.
305 * resolv/inet_ntop.c: Likewise.
306 * resolv/inet_pton.c: Likewise.
307 * resolv/res_query.c (res_search): Likewise.
308 * resolv/res_send.c (Aerror): Likewise.
310 (res_send): Likewise.
311 * signal/sigaddset.c: Likewise. De-ANSI-fy.
312 * signal/sigdelset.c: Likewise.
313 * signal/sigempty.c: Likewise.
314 * signal/sigfillset.c: Likewise.
315 * signal/sigismem.c: Likewise.
316 * stdio/fclose.c: Likewise.
317 * stdio/feof.c: Likewise.
318 * stdio/ferror.c: Likewise.
319 * stdio/fflush.c: Likewise.
320 * stdio/fgetc.c: Likewise.
321 * stdio/fgetpos.c: Likewise.
322 * stdio/fgets.c: Likewise.
323 * stdio/fileno.c: Likewise.
324 * stdio/fmemopen.c: Likewise.
325 * stdio/fopen.c: Likewise.
326 * stdio/fputc.c: Likewise.
327 * stdio/fread.c: Likewise.
328 * stdio/freopen.c: Likewise.
329 * stdio/fseek.c: Likewise.
330 * stdio/fsetpos.c: Likewise.
331 * stdio/ftell.c: Likewise.
332 * stdio/fwrite.c: Likewise.
333 * stdio/getdelim.c: Likewise.
334 * stdio/gets.c: Likewise.
335 * stdio/glue.c: Likewise.
336 * stdio/internals.c: Likewise.
337 * stdio/memstream.c: Likewise.
338 * stdio/setvbuf.c: Likewise.
339 * stdio/ungetc.c: Likewise.
340 * stdio/vsscanf.c: Likewise.
341 * stdio-common/reg-printf.c: Likewise.
342 * stdio-common/vfprintf.c: Likewise.
343 * stdio-common/vfscanf.c: Likewise.
344 * stdlib/canonicalize.c: Likewise.
345 * stdlib/msort.c: Likewise.
346 * stdlib/random_r.c: Likewise.
347 * stdlib/strfmon.c: Likewise.
348 * stdlib/strtod.c: Likewise.
349 * stdlib/strtol.c: Likewise.
350 * sunrpc/bindrsvprt.c: Likewise.
351 * time/asctime.c: Likewise.
352 * time/localtime.c: Likewise.
353 * wcsmbs/mbrtowc.c: Likewise.
354 * wcsmbs/mbsnrtowcs.c: Likewise.
355 * wcsmbs/mbsrtowcs.c: Likewise.
356 * wcsmbs/wcrtomb.c: Likewise.
357 * wcsmbs/wcsnrtombs.c: Likewise.
358 * wcsmbs/wcsrtombs.c: Likewise.
359 * wcsmbs/wcstok.c: Likewise.
360 * sysdeps/generic/ftime.c: Likewise.
361 * sysdeps/generic/pty.c: Likewise.
362 * sysdeps/generic/setenv.c: Likewise.
363 * sysdeps/generic/speed.c: Likewise.
364 * sysdeps/generic/sysd-stdio.c: Likewise.
365 * sysdeps/generic/uname.c: Likewise.
366 * sysdeps/generic/vlimit.c: Likewise.
367 * sysdeps/libm-ieee754/k_standard.c: Likewise.
368 * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
369 * sysdeps/libm-ieee754/s_ldexpf.c: Likewise.
370 * sysdeps/libm-ieee754/s_ldexpl.c: Likewise.
371 * sysdeps/libm-ieee754/w_scalb.c: Likewise.
372 * sysdeps/libm-ieee754/w_scalbf.c: Likewise.
373 * sysdeps/libm-ieee754/w_scalbl.c: Likewise.
374 * sysdeps/posix/dup2.c: Likewise.
375 * sysdeps/posix/euidaccess.c: Likewise.
376 * sysdeps/posix/fdopen.c: Likewise.
377 * sysdeps/posix/flock.c: Likewise.
378 * sysdeps/posix/fpathconf.c: Likewise.
379 * sysdeps/posix/getcwd.c: Likewise.
380 * sysdeps/posix/gettimeofday.c: Likewise.
381 * sysdeps/posix/isatty.c: Likewise.
382 * sysdeps/posix/isfdtype.c: Likewise.
383 * sysdeps/posix/killpg.c: Likewise.
384 * sysdeps/posix/mkstemp.c: Likewise.
385 * sysdeps/posix/mktemp.c: Likewise.
386 * sysdeps/posix/pathconf.c: Likewise.
387 * sysdeps/posix/pipestream.c: Likewise.
388 * sysdeps/posix/remove.c: Likewise.
389 * sysdeps/posix/rename.c: Likewise.
390 * sysdeps/posix/sigintr.c: Likewise.
391 * sysdeps/posix/signal.c: Likewise.
392 * sysdeps/posix/sigsuspend.c: Likewise.
393 * sysdeps/posix/sigvec.c: Likewise.
394 * sysdeps/posix/sleep.c: Likewise.
395 * sysdeps/posix/sysconf.c: Likewise.
396 * sysdeps/posix/system.c: Likewise.
397 * sysdeps/posix/tempname.c: Likewise.
398 * sysdeps/posix/truncate.c: Likewise.
399 * sysdeps/posix/ttyname.c: Likewise.
400 * sysdeps/posix/ttyname_r.c: Likewise.
401 * sysdeps/posix/wait3.c: Likewise.
402 * sysdeps/standalone/close.c: Likewise.
403 * sysdeps/standalone/open.c: Likewise.
404 * sysdeps/standalone/read.c: Likewise.
405 * sysdeps/standalone/write.c: Likewise.
406 * sysdeps/stub/__longjmp.c: Likewise.
407 * sysdeps/stub/accept.c: Likewise.
408 * sysdeps/stub/access.c: Likewise.
409 * sysdeps/stub/acct.c: Likewise.
410 * sysdeps/stub/adjtime.c: Likewise.
411 * sysdeps/stub/alarm.c: Likewise.
412 * sysdeps/stub/bind.c: Likewise.
413 * sysdeps/stub/brk.c: Likewise.
414 * sysdeps/stub/chdir.c: Likewise.
415 * sysdeps/stub/chflags.c: Likewise.
416 * sysdeps/stub/chmod.c: Likewise.
417 * sysdeps/stub/chown.c: Likewise.
418 * sysdeps/stub/chroot.c: Likewise.
419 * sysdeps/stub/clock.c: Likewise.
420 * sysdeps/stub/close.c: Likewise.
421 * sysdeps/stub/closedir.c: Likewise.
422 * sysdeps/stub/connect.c: Likewise.
423 * sysdeps/stub/ctermid.c: Likewise.
424 * sysdeps/stub/cuserid.c: Likewise.
425 * sysdeps/stub/dirfd.c: Likewise.
426 * sysdeps/stub/dup.c: Likewise.
427 * sysdeps/stub/dup2.c: Likewise.
428 * sysdeps/stub/euidaccess.c: Likewise.
429 * sysdeps/stub/execve.c: Likewise.
430 * sysdeps/stub/fchdir.c: Likewise.
431 * sysdeps/stub/fchflags.c: Likewise.
432 * sysdeps/stub/fchmod.c: Likewise.
433 * sysdeps/stub/fchown.c: Likewise.
434 * sysdeps/stub/fcntl.c: Likewise.
435 * sysdeps/stub/fdopen.c: Likewise.
436 * sysdeps/stub/fexecve.c: Likewise.
437 * sysdeps/stub/flock.c: Likewise.
438 * sysdeps/stub/fork.c: Likewise.
439 * sysdeps/stub/fpathconf.c: Likewise.
440 * sysdeps/stub/fstatfs.c: Likewise.
441 * sysdeps/stub/fsync.c: Likewise.
442 * sysdeps/stub/ftruncate.c: Likewise.
443 * sysdeps/stub/fxstat.c: Likewise.
444 * sysdeps/stub/getcwd.c: Likewise.
445 * sysdeps/stub/getdents.c: Likewise.
446 * sysdeps/stub/getdomain.c: Likewise.
447 * sysdeps/stub/getdtsz.c: Likewise.
448 * sysdeps/stub/getegid.c: Likewise.
449 * sysdeps/stub/getenv.c: Likewise.
450 * sysdeps/stub/geteuid.c: Likewise.
451 * sysdeps/stub/getgid.c: Likewise.
452 * sysdeps/stub/getgroups.c: Likewise.
453 * sysdeps/stub/gethostid.c: Likewise.
454 * sysdeps/stub/gethostname.c: Likewise.
455 * sysdeps/stub/getitimer.c: Likewise.
456 * sysdeps/stub/getlogin.c: Likewise.
457 * sysdeps/stub/getlogin_r.c: Likewise.
458 * sysdeps/stub/getpagesize.c: Likewise.
459 * sysdeps/stub/getpeername.c: Likewise.
460 * sysdeps/stub/getpid.c: Likewise.
461 * sysdeps/stub/getppid.c: Likewise.
462 * sysdeps/stub/getpriority.c: Likewise.
463 * sysdeps/stub/getrlimit.c: Likewise.
464 * sysdeps/stub/getrusage.c: Likewise.
465 * sysdeps/stub/getsid.c: Likewise.
466 * sysdeps/stub/getsockname.c: Likewise.
467 * sysdeps/stub/getsockopt.c: Likewise.
468 * sysdeps/stub/getsysstats.c: Likewise.
469 * sysdeps/stub/gettimeofday.c: Likewise.
470 * sysdeps/stub/getuid.c: Likewise.
471 * sysdeps/stub/gtty.c: Likewise.
472 * sysdeps/stub/ioctl.c: Likewise.
473 * sysdeps/stub/isatty.c: Likewise.
474 * sysdeps/stub/isfdtype.c: Likewise.
475 * sysdeps/stub/kill.c: Likewise.
476 * sysdeps/stub/killpg.c: Likewise.
477 * sysdeps/stub/link.c: Likewise.
478 * sysdeps/stub/listen.c: Likewise.
479 * sysdeps/stub/lseek.c: Likewise.
480 * sysdeps/stub/lxstat.c: Likewise.
481 * sysdeps/stub/madvice.c: Likewise.
482 * sysdeps/stub/mkdir.c: Likewise.
483 * sysdeps/stub/mkfifo.c: Likewise.
484 * sysdeps/stub/mkstemp.c: Likewise.
485 * sysdeps/stub/mktemp.c: Likewise.
486 * sysdeps/stub/mmap.c: Likewise.
487 * sysdeps/stub/morecore.c: Likewise.
488 * sysdeps/stub/mprotect.c: Likewise.
489 * sysdeps/stub/msgctl.c: Likewise.
490 * sysdeps/stub/msgget.c: Likewise.
491 * sysdeps/stub/msgrcv.c: Likewise.
492 * sysdeps/stub/msgsnd.c: Likewise.
493 * sysdeps/stub/msync.c: Likewise.
494 * sysdeps/stub/munmap.c: Likewise.
495 * sysdeps/stub/nanosleep.c: Likewise.
496 * sysdeps/stub/nice.c: Likewise.
497 * sysdeps/stub/nlist.c: Likewise.
498 * sysdeps/stub/open.c: Likewise.
499 * sysdeps/stub/opendir.c: Likewise.
500 * sysdeps/stub/pathconf.c: Likewise.
501 * sysdeps/stub/pause.c: Likewise.
502 * sysdeps/stub/pipe.c: Likewise.
503 * sysdeps/stub/pipestream.c: Likewise.
504 * sysdeps/stub/poll.c: Likewise.
505 * sysdeps/stub/profil.c: Likewise.
506 * sysdeps/stub/ptrace.c: Likewise.
507 * sysdeps/stub/putenv.c: Likewise.
508 * sysdeps/stub/raise.c: Likewise.
509 * sysdeps/stub/read.c: Likewise.
510 * sysdeps/stub/readdir.c: Likewise.
511 * sysdeps/stub/readlink.c: Likewise.
512 * sysdeps/stub/readv.c: Likewise.
513 * sysdeps/stub/reboot.c: Likewise.
514 * sysdeps/stub/recv.c: Likewise.
515 * sysdeps/stub/recvfrom.c: Likewise.
516 * sysdeps/stub/recvmsg.c: Likewise.
517 * sysdeps/stub/remove.c: Likewise.
518 * sysdeps/stub/rename.c: Likewise.
519 * sysdeps/stub/revoke.c: Likewise.
520 * sysdeps/stub/rewinddir.c: Likewise.
521 * sysdeps/stub/rmdir.c: Likewise.
522 * sysdeps/stub/sbrk.c: Likewise.
523 * sysdeps/stub/sched_getp.c: Likewise.
524 * sysdeps/stub/sched_gets.c: Likewise.
525 * sysdeps/stub/sched_primax.c: Likewise.
526 * sysdeps/stub/sched_primin.c: Likewise.
527 * sysdeps/stub/sched_rr_gi.c: Likewise.
528 * sysdeps/stub/sched_setp.c: Likewise.
529 * sysdeps/stub/sched_sets.c: Likewise.
530 * sysdeps/stub/sched_yield.c: Likewise.
531 * sysdeps/stub/seekdir.c: Likewise.
532 * sysdeps/stub/select.c: Likewise.
533 * sysdeps/stub/semctl.c: Likewise.
534 * sysdeps/stub/semget.c: Likewise.
535 * sysdeps/stub/semop.c: Likewise.
536 * sysdeps/stub/send.c: Likewise.
537 * sysdeps/stub/sendmsg.c: Likewise.
538 * sysdeps/stub/sendto.c: Likewise.
539 * sysdeps/stub/setdomain.c: Likewise.
540 * sysdeps/stub/setegid.c: Likewise.
541 * sysdeps/stub/setenv.c: Likewise.
542 * sysdeps/stub/seteuid.c: Likewise.
543 * sysdeps/stub/setgid.c: Likewise.
544 * sysdeps/stub/setgroups.c: Likewise.
545 * sysdeps/stub/sethostid.c: Likewise.
546 * sysdeps/stub/sethostname.c: Likewise.
547 * sysdeps/stub/setitimer.c: Likewise.
548 * sysdeps/stub/setjmp.c: Likewise.
549 * sysdeps/stub/setlogin.c: Likewise.
550 * sysdeps/stub/setpgid.c: Likewise.
551 * sysdeps/stub/setpriority.c: Likewise.
552 * sysdeps/stub/setregid.c: Likewise.
553 * sysdeps/stub/setreuid.c: Likewise.
554 * sysdeps/stub/setrlimit.c: Likewise.
555 * sysdeps/stub/setsid.c: Likewise.
556 * sysdeps/stub/setsockopt.c: Likewise.
557 * sysdeps/stub/settimeofday.c: Likewise.
558 * sysdeps/stub/setuid.c: Likewise.
559 * sysdeps/stub/shmat.c: Likewise.
560 * sysdeps/stub/shmctl.c: Likewise.
561 * sysdeps/stub/shmdt.c: Likewise.
562 * sysdeps/stub/shmget.c: Likewise.
563 * sysdeps/stub/shutdown.c: Likewise.
564 * sysdeps/stub/sigaction.c: Likewise.
565 * sysdeps/stub/sigaltstack.c: Likewise.
566 * sysdeps/stub/sigblock.c: Likewise.
567 * sysdeps/stub/sigintr.c: Likewise.
568 * sysdeps/stub/signal.c: Likewise.
569 * sysdeps/stub/sigpause.c: Likewise.
570 * sysdeps/stub/sigpending.c: Likewise.
571 * sysdeps/stub/sigprocmask.c: Likewise.
572 * sysdeps/stub/sigreturn.c: Likewise.
573 * sysdeps/stub/sigsetmask.c: Likewise.
574 * sysdeps/stub/sigstack.c: Likewise.
575 * sysdeps/stub/sigsuspend.c: Likewise.
576 * sysdeps/stub/sigvec.c: Likewise.
577 * sysdeps/stub/sleep.c: Likewise.
578 * sysdeps/stub/socket.c: Likewise.
579 * sysdeps/stub/socketpair.c: Likewise.
580 * sysdeps/stub/sstk.c: Likewise.
581 * sysdeps/stub/statfs.c: Likewise.
582 * sysdeps/stub/stime.c: Likewise.
583 * sysdeps/stub/stty.c: Likewise.
584 * sysdeps/stub/swapoff.c: Likewise.
585 * sysdeps/stub/swapon.c: Likewise.
586 * sysdeps/stub/symlink.c: Likewise.
587 * sysdeps/stub/sync.c: Likewise.
588 * sysdeps/stub/syscall.c: Likewise.
589 * sysdeps/stub/sysconf.c: Likewise.
590 * sysdeps/stub/sysd-stdio.c: Likewise.
591 * sysdeps/stub/system.c: Likewise.
592 * sysdeps/stub/tcdrain.c: Likewise.
593 * sysdeps/stub/tcflow.c: Likewise.
594 * sysdeps/stub/tcflush.c: Likewise.
595 * sysdeps/stub/tcgetattr.c: Likewise.
596 * sysdeps/stub/tcgetpgrp.c: Likewise.
597 * sysdeps/stub/tcsendbrk.c: Likewise.
598 * sysdeps/stub/tcsetattr.c: Likewise.
599 * sysdeps/stub/tcsetpgrp.c: Likewise.
600 * sysdeps/stub/telldir.c: Likewise.
601 * sysdeps/stub/tempname.c: Likewise.
602 * sysdeps/stub/time.c: Likewise.
603 * sysdeps/stub/times.c: Likewise.
604 * sysdeps/stub/truncate.c: Likewise.
605 * sysdeps/stub/ttyname.c: Likewise.
606 * sysdeps/stub/ttyname_r.c: Likewise.
607 * sysdeps/stub/ualarm.c: Likewise.
608 * sysdeps/stub/ulimit.c: Likewise.
609 * sysdeps/stub/umask.c: Likewise.
610 * sysdeps/stub/unlink.c: Likewise.
611 * sysdeps/stub/usleep.c: Likewise.
612 * sysdeps/stub/ustat.c: Likewise.
613 * sysdeps/stub/utime.c: Likewise.
614 * sysdeps/stub/utimes.c: Likewise.
615 * sysdeps/stub/vhangup.c: Likewise.
616 * sysdeps/stub/wait.c: Likewise.
617 * sysdeps/stub/wait3.c: Likewise.
618 * sysdeps/stub/wait4.c: Likewise.
619 * sysdeps/stub/waitpid.c: Likewise.
620 * sysdeps/stub/write.c: Likewise.
621 * sysdeps/stub/writev.c: Likewise.
622 * sysdeps/stub/xmknod.c: Likewise.
623 * sysdeps/stub/xstat.c: Likewise.
624 * sysdeps/unix/closedir.c: Likewise.
625 * sysdeps/unix/fxstat.c: Likewise.
626 * sysdeps/unix/getlogin.c: Likewise.
627 * sysdeps/unix/getlogin_r.c: Likewise.
628 * sysdeps/unix/mkdir.c: Likewise.
629 * sysdeps/unix/nice.c: Likewise.
630 * sysdeps/unix/nlist.c: Likewise.
631 * sysdeps/unix/opendir.c: Likewise.
632 * sysdeps/unix/readdir.c: Likewise.
633 * sysdeps/unix/rmdir.c: Likewise.
634 * sysdeps/unix/stime.c: Likewise.
635 * sysdeps/unix/xmknod.c: Likewise.
636 * sysdeps/unix/xstat.c: Likewise.
637 * sysdeps/unix/bsd/isatty.c: Likewise.
638 * sysdeps/unix/bsd/setegid.c: Likewise.
639 * sysdeps/unix/bsd/seteuid.c: Likewise.
640 * sysdeps/unix/bsd/setsid.c: Likewise.
641 * sysdeps/unix/bsd/sigaction.c: Likewise.
642 * sysdeps/unix/bsd/sigprocmask.c: Likewise.
643 * sysdeps/unix/bsd/sigsuspend.c: Likewise.
644 * sysdeps/unix/bsd/tcflow.c: Likewise.
645 * sysdeps/unix/bsd/tcflush.c: Likewise.
646 * sysdeps/unix/bsd/tcgetattr.c: Likewise.
647 * sysdeps/unix/bsd/tcsetattr.c: Likewise.
648 * sysdeps/unix/bsd/times.c: Likewise.
649 * sysdeps/unix/bsd/ulimit.c: Likewise.
650 * sysdeps/unix/common/lxstat.c: Likewise.
651 * sysdeps/unix/common/tcsendbrk.c: Likewise.
652 * sysdeps/unix/sysv/setrlimit.c: Likewise.
653 * sysdeps/unix/sysv/settimeofday.c: Likewise.
654 * sysdeps/unix/sysv/sigaction.c: Likewise.
655 * sysdeps/unix/sysv/tcflow.c: Likewise.
656 * sysdeps/unix/sysv/tcflush.c: Likewise.
657 * sysdeps/unix/sysv/tcgetattr.c: Likewise.
658 * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
659 * sysdeps/unix/sysv/tcsetattr.c: Likewise.
660 * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
661 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
662 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
663 * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
664 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
665 * sysdeps/unix/sysv/linux/gethostname.c: Likewise.
666 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
667 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
668 * sysdeps/unix/sysv/linux/speed.c: Likewise.
669 * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
670 * sysdeps/unix/sysv/sysv4/sigaction.c: Likewise.
671 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
672 * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
673 * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
674 * sysdeps/unix/bsd/sun/sunos4/speed.c: Likewise.
675 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c: Likewise.
676 * sysdeps/unix/sysv/linux/alpha/ioperm.c: Likewise.
677 * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
678 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
679 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
681 * sunrpc/clnt_tcp.c: Protect declaration of errno by #ifndef.
682 * sunrpc/clnt_udp.c: Likewise.
683 * sunrpc/bindrsvprt.c: Likewise.
684 * sunrpc/pm_getmaps.c: Likewise.
685 * sunrpc/pmap_rmt.c: Likewise.
686 * sunrpc/svc.c: Likewise.
687 * sunrpc/svc_run.c: Likewise.
688 * sunrpc/svc_tcp.c: Likewise.
689 * sunrpc/svc_udp.c: Likewise.
691 * sysdeps/generic/strtok.c: Don't check argument, just crash.
692 * sysdeps/generic/strtok_r.c: Likewise.
694 * sysdeps/stub/start.c: Make __errno a strong alias of errno.
695 * sysdeps/unix/start.c: Likewise. De-ANSI-fy.
696 * sysdeps/unix/sparc/start.c: Likewise.
697 * sysdeps/standalone/m68k/m68020/start.S: Likewise.
698 * sysdeps/unix/sysv/irix4/start.c: Likewise.
699 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
700 * sysdeps/unix/sysv/linux/i386/sysdep.S: Likewise.
701 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
703 Mon Sep 23 17:54:57 1996 Ulrich Drepper <drepper@cygnus.com>
705 * catgets/gencat.c (main): Put package name in --version message
706 in parantheses. Reported by Jim Meyering.
707 * db/makedb.c: Likewise.
708 * locale/programs/locale.c: Likewise.
709 * locale/programs/localedef.c: Likewise.
711 * sysdeps/i386/fpu/__math.h (tan): Make sure gcc knows we use
712 two registers. Patch by John Bowman.
714 Sat Sep 21 15:08:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
716 * sysdeps/mach/libc-lock.h: Fix comment.
717 * sysdeps/stubs/libc-lock.h: Likewise.
719 Sat Sep 21 13:50:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
721 * libio/genops.c (_IO_init) [_IO_MTSAFE_IO]: Dereference pointer
722 to lock when passing it to __libc_lock_init macro.
723 (_IO_default_finish) [_IO_MTSAFE_IO]: Dereference pointer to lock
724 when passing it to __libc_lock_fini macro.
726 Sat Sep 21 14:35:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
728 * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYSCALL_ERROR_HANDLER)
729 [_LIBC_REENTRANT]: Add missing semicolon.
731 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Move inclusion of
732 sysdep.h to the top outside of #ifndef PIC. Don't include errnos.h.
735 Sat Sep 21 14:33:41 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
737 * libio/Makefile: Make `all' the default target.
738 * po/Makefile: Likewise.
740 Mon Sep 23 15:49:47 1996 Ulrich Drepper <drepper@cygnus.com>
742 * stdlib/test-canon.c: Correct patch from Thu Sep 12 23:01:16 1996.
743 I applied it incorrectly.
744 * sysdeps/m68k/fpu/s_scalbn.c: Likewise.
745 * sysdeps/m68k/fpu/s_scalbnf.c: Likewise.
746 * sysdeps/m68k/fpu/s_scalbnl.c: Likewise.
748 Mon Sep 23 03:00:10 1996 Ulrich Drepper <drepper@cygnus.com>
750 * shadow/sgetspent_r.c (LINE_PARSER): Accept empty 9th field.
751 Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
753 * shadow/sgetspent_r.c (LINE_PARSER): Don't accept any chars after
756 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
757 (sysdep_headers): Add sys/debugreg.h, sys/kd.h, sys/soundcard.h,
759 * sysdeps/unix/sysv/linux/sys/debugreg.h: New file.
760 * sysdeps/unix/sysv/linux/sys/kd.h: New file.
761 * sysdeps/unix/sysv/linux/sys/soundcard.h: New file.
762 * sysdeps/unix/sysv/linux/sys/vt.h: New file.
763 Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
765 Thu Sep 26 13:44:29 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
767 * hurd/Makefile (installed-sunrpc-headers): New variable.
768 (sunrpc-headers): New variable.
769 (install-headers-nosubir): Depend on $(installed-sunrpc-headers),
770 not just <rpc/netdb.h>.
771 ($(installed-sunrpc-headers)): Provide rule for all of these.
773 Mon Sep 23 15:31:04 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
775 * hurd/Makefile ($(includedir)/rpc/netdb.h): There is no make
776 variable `top_srcdir' in libc; use $(..) instead.
778 * sysdeps/mach/hurd/Makefile (rtld-installed-name): Delete special
779 definition. It was a *Mistake*. (With a capital M.)
781 * sysdeps/mach/getsysstats.c (__get_nprocs): Renamed from
783 (__get_nprocs_conf): Renamed from __get_nproc_conf.
785 Sun Sep 22 15:18:41 1996 Ulrich Drepper <drepper@cygnus.com>
787 * sysdeps/unix/sysv/linux/init-first.c: Define dummy function
788 `_dl_start' so that linking fails if this file should ever be used
791 * catgets/gencat.c (main): Change --version message according to
792 RMS' last standard revision.
793 * db/makedb.c: Likewise.
794 * locale/programs/locale.c: Likewise.
795 * locale/programs/localedef.c: Likewise.
797 Sat Sep 21 23:42:39 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
799 * sysdeps/mach/getsysstats.c: Include <sys/sysinfo.h>.
800 (__get_nproc_conf): New function.
802 Sun Sep 22 03:40:52 1996 Ulrich Drepper <drepper@cygnus.com>
804 * resolv/resolv.h: Update to bind-4.9.5-T4B.
805 * resolv/base64.c: Likewise.
806 * resolv/res_debug.c: Likewise.
807 * resolv/res_query.c: Likewise.
808 * resolv/gethnamaddr.c: Likewise.
809 * nss/nss_dns/dns-host.c: Likewise.
810 * resolv/res_comp.c: Likewise.
811 * resolv/res_send.c: Likewise.
812 * resolv/arpa/nameser.h: Likewise. Attention: MAXDNAME is much
815 * resolv/Banner: New file.
816 * resolv/Makefile (distribute): Add Banner.
818 Sat Sep 21 19:15:24 1996 Ulrich Drepper <drepper@cygnus.com>
820 * sysdeps/stub/getsysstats.c: New file.
821 * sysdeps/unix/sysv/linux/getsysstats.c: New file.
823 * misc/Makefile (headers): Add sys/sysinfo.h.
824 (routines): Add getsysstats.
825 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
826 (sysdep_headers): Remove sys/sysinfo.h.
827 * sysdeps/generic/sys/sysinfo.h: New file.
828 * sysdeps/unix/sysv/linux/sys/sysinfo.h: Add prototype for get_nprocs,
829 get_phys_pages, and get_avphys_pages.
831 * misc/Makefile (routines): Add mntent_r.
832 * misc/mntent_r.c: New file.
833 * misc/mntent.c: Remove all functions but getmntent and use
835 * misc/mntent.h: Add prototype for __getmntent_r.
836 * misc/fstab.c: Use __getmntent_r function instead of getmntent.
837 This will not clobber the state in getmntent.
839 * sysdeps/generic/confname.h: Add _SC_PROCESSORS_CONF,
840 _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES,
841 _SC_ATEXIT_MAX, and _SC_PASS_MAX.
842 * sysdeps/stub/sysconf.c: Add handling _SC_PROCESSORS_CONF and
843 _SC_NPROCESSORS_ONLN by calling __get_nprocs, _SC_PHYS_PAGES by
844 calling __get_phys_pages, _SY_AVPHYS_PAGES by calling
845 __get_avphys_pages, _SC_ATEXIT_MAX and _SC_PASS_MAX.
846 * sysdeps/posix/sysconf.c: Likewise.
847 * posix/getconf.c (vars): Add _NPROCESSORS_CONF, _NPROCESSORS_ONLN,
848 _PHYS_PAGES, _AVPHYS_PAGES, ATEXIT_MAX, and PASS_MAX entries.
850 Sat Sep 21 05:20:36 1996 Ulrich Drepper <drepper@cygnus.com>
852 * version.h (VERSION): Bump to 1.95.
854 * Make-dist (+tsrcs): Don't filter out files in subdirs which
855 match files in the sysdeps hierachy (welcome back,
858 * resolv/Makefile (libresolv-routines): Remove getnetnamad.
860 Sat Sep 21 03:00:19 1996 Ulrich Drepper <drepper@cygnus.com>
862 * locale/loadlocale.c (_nl_free_locale): Remove function.
863 * locale/localeinfo.h: Remove prototype for _nl_free_locale.
864 * locale/setlocale.c (setlocale): Don't free locale data of
865 categories which succeeded to load after a wrong or missing data
868 * locale/setlocale (setlocale): Initialize NEWNAME correctly so
869 that it works even when the locale data is not used.
871 * stdlib/random_r.c: Fix typo in comment.
872 * stdlib/drand48-iter.c: Likewise.
873 * stdlib/drand48.c: Likewise.
874 * stdlib/erand48.c: Likewise.
875 * stdlib/jrand48.c: Likewise.
876 * stdlib/lcong48.c: Likewise.
877 * stdlib/lrand48.c: Likewise.
878 * stdlib/mrand48.c: Likewise.
879 * stdlib/nrand48.c: Likewise.
880 * stdlib/random.c: Likewise.
881 * stdlib/seed48.c: Likewise.
882 * stdlib/srand48.c: Likewise.
883 * misc/search.h: Likewise.
884 * misc/hsearch.c: Likewise.
885 * misc/hsearch_r.c: Likewise.
887 Sat Sep 21 14:59:22 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
889 * sysdeps/mach/getsysstats.c: New file.
891 * shlib-versions (*-*-gnu*): Increment libc to 0.2 for upcoming
894 * sysdeps/mach/hurd/Makefile (rtld-installed-name): Provide
895 definition to override dangerous one in Makeconfig.
897 * hurd/Makefile (install-headers-nosubdir): Install <rpc/netdb.h>.
898 ($(includedir)/rpc/netdb.h): New rule.
899 [ This is XXX until sunrpc can be built; <rpc/netdb.h> is
902 Fri Sep 20 16:06:06 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
904 * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Add definition,
905 to guarantee link errors if this is included in ld.so.
907 Thu Sep 19 23:36:19 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
909 * hurd/hurdinit.c (__libc_argv): Provide common decl.
910 (_hurd_setproc): Don't declare __libc_argv here.
912 Tue Sep 17 10:51:58 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
914 * malloc/memalign.c (memalign): Only acquire __libc_malloc_lock
915 for actual modifications to global state.
917 Fri Sep 13 01:21:36 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
919 * sysdeps/mach/Makefile (includes): Add -I$(common-objpfx)mach/.
920 * sysdeps/mach/hurd/Makefile (includes): Add
921 -I$(common-objpfx)hurd/. Reported by Marcus Daniels.
923 * sysdeps/generic/schedbits.h (struct sched_param): Renamed from
925 * sysdeps/stub/sched_setp.c (__sched_setparam): struct
926 sched_params -> struct sched_param.
927 * sysdeps/stub/sched_getp.c (__sched_getparam): Likewise.
928 * sysdeps/stub/sched_sets.c (__sched_setscheduler): Likewise.
930 Thu Sep 12 23:58:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
932 * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): Fix
935 * stdio-common/Makefile: Put lockfile in routines
938 * stdio-common/vfprintf.c (__flockfile, __funlockfile): Declare
939 this always, not just if _LIBC_REENTRANT.
940 (__funlockfile): Don't use weak_extern for this one;
941 __libc_cleanup_region_end might be defined and the use of
942 __funlockfile can't be protected the way the use of __flockfile
945 Thu Sep 19 21:50:55 1996 Ulrich Drepper <drepper@cygnus.com>
947 * sysdeps/posix/gettimeofday.c (__gettimeofday): Use localtime_r
948 instead of localtime.
949 Reported by Matthias Urlichs.
951 * shlib-versions: Remove version number for libcrypt.
952 * features.h: Define __USE_REENTRANT if _REENTRANT or _THREAD_SAFE.
953 * libc-symbols.h: Define _REENTRANT while compiling libc.
955 * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location):
956 Define even if !_LIBC_REENTRANT.
957 * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
960 * sysdeps/posix/cuserid.h: Remove prototype for geteuid().
963 * MakeTAGS ($P/libc.pot): Generate correctly formed header.
964 * po/header.pot: Correct title line.
967 Thu Sep 19 18:59:55 1996 Ulrich Drepper <drepper@cygnus.com>
969 * Makeconfig (soversions.mk): Prefer shared lib version numbers
970 is add ons over version in libc itself.
972 * sysdeps/unix/sysv/linux/i386/sysdep.S: Include <sysdep.h>.
973 * sysdeps/unix/sysv/linux/i386/sysdep.h: Prevent multiple
976 * libio/iofgets.c: Use __flockfile and __funlockfile instead of
977 _IO_flockfile and _IO_funlockfile resp.
979 * locale/categories.def: Partly support for correct `era' handling
981 * locale/langinfo.h: Likewise.
982 * locale/programs/ld-time.c: Likewise.
983 * locale/localeinfo.h: Change comment a bit.
985 * malloc/memalign.c: Don't use goto, not necessary anymore.
987 1996-09-18 Paul Eggert <eggert@twinsun.com>
989 * time/mktime.c (ydhms_tm_diff): Work correctly even if year
990 is negative, or if time_t is unsigned.
991 * time/strftime.c (tm_diff): Work correctly even if tm_year
994 Tue Sep 17 16:14:34 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
996 * sysdeps/m68k/fpu/__math.h (__inline_mathop): Changed to generate
997 all three versions of the math function.
998 (__inline_mathopf, __inline_mathopl): Removed.
999 (__inline_functions): New temporary definition containing all
1000 non-trivial inline functions.
1002 Wed Sep 18 00:25:41 1996 Ulrich Drepper <drepper@cygnus.com>
1004 * time/strftime.c (strftime): The T_FMT_AMPM string may be empty.
1006 Tue Sep 17 20:27:18 1996 Ulrich Drepper <drepper@cygnus.com>
1008 * math/Makefile (extra-libs-others): Use $(extra-libs) instead
1011 Tue Sep 17 17:09:44 1996 Ulrich Drepper <drepper@cygnus.com>
1013 * sysdeps/stub/fpu_control.h: Correct end of file comment.
1015 Tue Sep 17 05:39:18 1996 Ulrich Drepper <drepper@cygnus.com>
1017 * stdio-common/bug3.c, stdio-common/bug4.c, stdio-common/bug5.c,
1018 stdio-common/test-popen.c: Remove temporary files after test.
1019 * stdio-common/bug5.c: Use `system' instead of `execlp'.
1020 Patches by Andreas Jaeger.
1022 * stdio-common/bug5.c: Create string for `system' argument to
1023 make sure the input and output file names are really correct.
1025 Sun Sep 15 12:46:44 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1027 * configure.in: If $os contains a hyphen add the part before the
1030 Sun Sep 15 18:14:02 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1032 * sysdeps/m68k/fpu/__math.h (__ieee754_pow, __ieee754_powf,
1033 __ieee754_powl): Rename local variable i to __i.
1034 (__ieee754_atan2, __ieee754_atan2f, __ieee754_atan2l): New inline
1036 * sysdeps/m68k/fpu/e_atan2.c, sysdeps/m68k/fpu/e_atan2f.c,
1037 sysdeps/m68k/fpu/e_atan2l.c: New files.
1039 1996-09-15 Paul Eggert <eggert@twinsun.com>
1041 * manual/time.texi: Change `range X to Y' to `range X through
1042 Y', to avoid ambiguity in English.
1044 (strftime): Numbers that do not have a range indicated are not padded.
1045 Describe E and O modifiers.
1046 %g, %G, %u: New formats.
1047 %C, %y, %Y: Describe behavior on negative years.
1048 %e: Fix typo (was labeled %d).
1049 %l, %V: Fix typo in range.
1050 %M, %S, %U, %w, %W: Give ranges.
1051 %p: Clarify how noon and midnight are handled for AM and PM.
1052 %s: Clarify leap second handling.
1053 %r: Now locale-defined.
1054 %C, %D, %e, %h, %n, %r, %t, %T: Say that they are POSIX.2 extensions.
1055 %z: Say that it is a GNU extension.
1058 * time/strftime.c: (strftime):
1059 %V: Fix mishandling of week numbers near year boundaries.
1060 %g, %G: New formats (suggested by Arthur David Olson).
1061 %U, %W: Use inline expression instead of `week' function.
1062 %C, %y: Handle negative years portably.
1063 %C, %Y: Use width 1, since values can be arbitrarily wide.
1064 %r: Use T_FMT_AMPM format if _NL_CURRENT is defined.
1065 %u: New Posix.2 format.
1066 %w: Width is 1, not 2.
1067 (iso_week_days): New function, for %V, %G, %g.
1068 (week): Remove; it didn't handle %V correctly.
1069 (__isleap): New macro.
1070 (mbsinit): Use arg, to pacify GCC -Wall.
1072 1996-09-13 Paul Eggert <eggert@twinsun.com>
1074 * time/strftime.c (strftime):
1075 If using the GNU C library, do not bother to check for
1076 multibyte encodings, since they're safe in formats. Otherwise:
1077 - Check for multibyte encodings when encountering any character that
1078 is not in the basic execution character set of the C Standard.
1079 - Use mbrlen (if available) instead of mblen, to avoid modifying
1080 mblen's internal state.
1081 - Do not assume that '%' cannot appear as the first character of a
1082 multibyte character sequence, since this is possible when not in the
1083 initial shift state.
1084 (HAVE_MBRLEN, MULTIBYTE_IS_FORMAT_SAFE): Define if _LIBC is defined.
1085 (DO_MULTIBYTE): New macro.
1086 (<ctype.h>): Do not include.
1087 (<wchar.h>): Include if HAVE_MBRLEN.
1088 (mbstate_t, mbrlen, mbsinit): Define if ! HAVE_MBRLEN.
1089 (mbstate_zero): New constant.
1091 1996-09-12 Paul Eggert <eggert@twinsun.com>
1093 * time/strftime.c (strftime):
1094 Use an empty zone if it can't be determined; POSIX.2 requires this.
1095 Use plain `int' for pad and modifier (which now contain char value).
1096 Use plain `int' for number_value, to print negative values correctly.
1097 Use plain `int' for digits; there was no need to make it unsigned.
1098 Initialize subfmt consistently.
1099 Remove incorrect code for %EC and %Ey; they aren't implemented yet.
1100 For %O, if there is no alternate digit, output Ascii instead of "".
1101 Output the `%' of an unknown format; this is most likely the right
1102 thing to do if a multibyte string has been misparsed.
1104 Thu Sep 12 23:23:13 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1106 * stdio-common/scanf7.c (main): Remove extra conversion from
1107 printf format string.
1109 Thu Sep 12 23:01:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1111 * stdlib/test-canon.c (tests): Rename structure member from errno
1112 to error, all uses changed.
1114 Thu Sep 12 20:08:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1116 * sysdeps/m68k/fpu/__math.h (__ldexp, __ldexpf, __ldexpl):
1118 * sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
1119 sysdeps/m68k/fpu/s_ldexpl.c: Removed, use generic implementation
1121 * sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
1122 sysdeps/m68k/fpu/s_scalbnl.c: Replaced with old contents of
1123 s_ldexp.c, s_ldexpf.c and s_ldexpl.c, resp., suitably adpted.
1125 * sysdeps/m68k/fpu/__math.h (__frexp, __frexpf, __frexpl):
1126 Return value must be in [0.5, 1), not [1, 2). Reported by Chris
1128 (__ilogb, __ilogbf, __ilogbl): Check for argument being zero.
1129 (__scalbn, __scalbnf, __scalbnl): Use second argument directly.
1131 Thu Sep 12 19:59:24 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1133 * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
1134 * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
1136 Thu Sep 12 19:59:24 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1138 * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
1139 * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
1141 Thu Sep 12 19:56:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1143 * inet/herrno.c (__h_errno_location): Fix return type.
1145 Thu Sep 19 23:36:19 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1147 * hurd/hurdinit.c (__libc_argv): Provide common decl.
1148 (_hurd_setproc): Don't declare __libc_argv here.
1150 Fri Sep 13 04:33:08 1996 Ulrich Drepper <drepper@cygnus.com>
1152 * sched.h: New file. Helper to access posix/sched.h.
1153 * posix/sched.h: Change `sched_params' to `sched_param' to follow
1156 Thu Sep 12 20:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
1158 * db/makedb.c (usage): Print bug report address separately to
1159 ease translators task.
1160 * catgets/gencat.c (usage): Likewise.
1161 * locale/locale.c (usage): Likewise.
1162 * locale/localedef.c (usage): Likewise.
1164 1996-09-12 Paul Eggert <eggert@twinsun.com>
1166 * time/strftime.c (my_localtime_r): Define if ! HAVE_LOCALTIME_R,
1167 and #define localtime_r to it. If _LIBC, use __localtime_r instead.
1168 (my_gmtime_r): Similar, except it's not needed if ! HAVE_TM_GMTOFF.
1170 Thu Sep 12 14:03:29 1996 Ulrich Drepper <drepper@cygnus.com>
1172 * crypt/Makefile: Include Makeconfig and add crypt object dir to
1173 rpath-link so that running the check finds the new library.
1174 * crypt/cert.c: provide correct prototypes to prevent warnings.
1175 Reported by Andreas Jaeger.
1177 * sysdeps/mach/hurd/Makefile (rpath-link): Don't use += because
1178 old and new value must be glued using `:'.
1179 Reported by Marcus Daniels.
1181 Thu Sep 12 12:33:52 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1183 * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
1184 accidentally added on.
1186 * sysdeps/stub/intr-msg.h: New file.
1188 * stdio-common/vfprintf.c: Include <libc-lock.h>.
1189 * stdio-common/vfscanf.c: Include <libc-lock.h>.
1191 * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
1193 (__libc_cleanup_region_end): New macro.
1195 Thu Sep 12 12:33:52 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1197 * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
1198 accidentally added on.
1200 * sysdeps/stub/intr-msg.h: New file.
1202 * stdio-common/vfprintf.c: Include <libc-lock.h>.
1203 * stdio-common/vfscanf.c: Include <libc-lock.h>.
1205 * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
1207 (__libc_cleanup_region_end): New macro.
1209 Thu Sep 12 03:35:27 1996 Ulrich Drepper <drepper@cygnus.com>
1211 * sysdeps/unix/sysv/linux/i386/Dist: Remove init-first.h.
1212 * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
1213 * sysdeps/unix/sysv/linux/Dist: Add init-first.h.
1215 1996-09-11 Paul Eggert <eggert@twinsun.com>
1217 * strftime.c (strftime):
1218 Handle E and O modifiers, required for POSIX.2 and XPG4.
1219 Don't use sprintf to format numbers; this way, we can handle time_t
1220 correctly regardless of whether it's signed.
1221 Don't dump core if format ends in %.
1222 In default %c format, use %e instead of %d, for POSIX.2 compatibility.
1224 Use tm_gmtoff if available.
1225 Output nothing if tm_isdst is negative.
1226 Output correct value even if arg is 1969-12-31 23:59:59 UTC.
1227 Don't assume that UTC offset is less than 24 hours;
1228 Posix requires support for 24 hours, and there's no point
1230 (HAVE_TM_GMTOFF, TYPE_SIGNED, INT_STRLEN_BOUND): New macros.
1231 (CHAR_BIT): Define if <limits.h> doesn't.
1232 (tm_diff): New function.
1233 (fmt, <stdio.h>): Remove; no longer used.
1235 Thu Sep 12 02:21:44 1996 Ulrich Drepper <drepper@cygnus.com>
1237 * db/Makefile: Add extra-libs-others variable so that shared
1238 library is built in `others' pass.
1239 * elf/Makefile: Likewise.
1240 * math/Makefile: Likewise.
1241 * resolv/Makefile: Likewise.
1243 * Makefile (generated): Add version.info.h.
1245 * time/checktab.awk: New file. From ADO 96k.
1246 * time/iso3166.tab: Likewise.
1247 * time/tzselect.ksh: Likewise.
1248 * time/zone.tab: Likewise.
1250 * stdio-common/vfprintf.c: Correct cleanup registration. We
1253 1996-09-11 Paul Eggert <eggert@twinsun.com>
1255 * time/time.h (tm_gmtoff, tm_zone): Prefix with `__' unless
1256 __USE_BSD; this is required for ANSI C compatibility.
1257 * manual/time.texi: Replace GMT by UTC, daylight savings by
1258 daylight saving, timezone by time zone.
1259 Rewrite description of %V to match ISO 8601.
1260 Fix TZ Posix string example for US Eastern time.
1261 Explain tzname[1] when DST isn't used.
1262 Explain tzname when multiple abbreviations used (e.g. EST/EWT/EDT).
1263 Explain that timezone's sign is opposite from tm_gmtoff, and that
1264 timezone lacks DST adjustment whereas tm_gmtoff has it.
1265 Deprecate tzname and timezone.
1267 Tue Sep 10 14:46:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1269 Implement Roland McGrath's idea of how to put an .interp into
1271 * interp.c: New file.
1272 * Makerules (interp-obj): New object, linked into every shared
1274 (common-generated): Add interp.so.
1275 (CFLAGS-interp.c): Pass name of interpreter.
1277 Tue Sep 10 21:09:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1279 * db/Makefile: Fix typo.
1281 Tue Sep 10 19:29:53 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1283 * nss/db-Makefile ($(VAR_DB)/passwd.db): Look for multiple
1284 occurences of the same uid, and only generate a mapping for the
1287 Tue Sep 10 03:14:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1289 * sysdeps/unix/sysv/linux/system.c: New file, to override
1290 sysdeps/unix/system.c.
1292 Tue Sep 10 15:05:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1294 * Makefile (before-compile): Add version-info.h, needed to build
1297 Tue Sep 10 14:14:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1299 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Remove check for
1300 EWOULDBLOCK, never true on Linux.
1301 (__errno_location): New function.
1302 [_LIBC_REENTRANT]: Set errno using __errno_location function.
1303 * sysdeps/unix/sysv/linux/m68k/sysdep.h [PIC]: Add second
1304 syscall_error handler for reentrant libc.
1306 Tue Sep 10 13:27:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1308 * elf/Makefile (extra-objs): Add eval.so to get dependencies.
1310 Wed Sep 11 04:40:57 1996 Ulrich Drepper <drepper@cygnus.com>
1312 * time/tzset.c (__tzname_cur_max): Use type `size_t' to avoid
1314 * time/tzfile.c (compute_tzname_max): Likewise.
1316 Wed Sep 11 02:57:31 1996 Ulrich Drepper <drepper@cygnus.com>
1318 * configure.in: Quote $add_ons argument in loop to generated
1321 Tue Sep 10 20:43:45 1996 Ulrich Drepper <drepper@cygnus.com>
1323 * db/makedb.c: Include <locale.h>. Reported by Fila Kolodny.
1325 Tue Sep 10 14:42:39 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1327 * elf/dl-cache.c: Rename to ...
1328 * sysdeps/generic/dl-cache.c: ... here.
1329 * sysdeps/mach/hurd/dl-cache.c: New file.
1331 * mach/Makefile (distribute): Add `errsystems.awk'.
1332 * hurd/Makefile (distribute): Add `Notes' and `intr-msg.h'.
1333 * hurd/hurdintr.awk: Delete file. (Not used in ages.)
1334 * hurd/intr-rpc.awk: Likewise.
1335 * hurd/invoke-trans.c: Likewise.
1336 * sysdeps/mach/hurd/i386/longjmp-ctx.c: Likewise.
1337 * sysdeps/mach/hurd/alpha/longjmp-ctx.c: Likewise.
1338 * sysdeps/mach/hurd/mips/longjmp-ctx.c: Likewise.
1339 * sysdeps/mach/hurd/i386/init-fault.c: Likewise.
1340 * sysdeps/mach/hurd/mips/init-fault.c: Likewise.
1341 * sysdeps/stub/init-fault.c: Likewise.
1342 * sysdeps/stub/longjmp-ctx.c: Likewise.
1344 Tue Sep 10 13:49:08 1996 Ulrich Drepper <drepper@cygnus.com>
1346 * inet/herrno.c: Initialize `h_errno' so that we can provide
1349 * Makefile (version-info.h): Fix typo in shell script.
1351 * sysdeps/i386/i586/strlen.S: Optimize startup code a bit.
1352 * sysdeps/i386/i586/strchr.S: Likewise.
1354 Mon Sep 9 20:31:27 1996 Ulrich Drepper <drepper@cygnus.com>
1356 * version.c (banner): Report to bug-glibc@prep not @gnu.
1357 Reported by Andreas Jaeger.
1359 * libio/stdio.h [!__USE_REENTRANT]: Don't define getc as
1361 [__USE_REENTRANT]: Don't define
1363 Mon Sep 9 15:59:32 1996 Ulrich Drepper <drepper@cygnus.com>
1365 * sysdeps/i386/strrchr.c: Fix bug where NUL byte is not recognized
1366 when it is the third byte in the string. Reported by
1368 * string/tester.c: Add tests for above bug to strlen, strchr, and
1371 Fri Sep 6 21:23:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1373 * sysdeps/m68k/fpu/e_acos.c: Deansideclized. Include
1374 "math_private.h" to get prototype.
1375 * sysdeps/m68k/fpu/e_fmod.c: Likewise.
1376 * sysdeps/m68k/fpu/k_cos.c: Likewise.
1377 * sysdeps/m68k/fpu/k_sin.c: Likewise.
1378 * sysdeps/m68k/fpu/k_tan.c: Likewise.
1380 * sysdeps/m68k/fpu/k_sin.c: Remove uneeded indirection of
1382 * sysdeps/m68k/fpu/k_tan.c: Likewise.
1384 Sun Sep 1 18:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1386 * sysdeps/m68k/fpu/__math.h: Check for __NO_M81_MATH_INLINES
1387 instead of __NO_MATH_INLINES.
1388 (__M81_MATH_INLINES): Renamed from __MATH_INLINES.
1389 * sysdeps/m68k/fpu/e_acos.c: Define __NO_M81_MATH_INLINES.
1390 * sysdeps/m68k/fpu/e_fmod.c: Likewise.
1391 * sysdeps/m68k/fpu/k_cos.c: Likewise.
1392 * sysdeps/m68k/fpu/k_sin.c: Likewise.
1393 * sysdeps/m68k/fpu/k_tan.c: Likewise.
1394 * sysdeps/m68k/fpu/s_atan.c: Likewise.
1395 * sysdeps/m68k/fpu/s_frexp.c: Likewise.
1396 * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
1397 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
1398 * sysdeps/m68k/fpu/s_ldexp.c: Likewise.
1399 * sysdeps/m68k/fpu/s_modf.c: Likewise.
1400 * sysdeps/m68k/fpu/k_cos.c: Use inline version of __cos.
1401 * sysdeps/m68k/fpu/k_sin.c: Likewise.
1402 * sysdeps/m68k/fpu/k_tan.c: Likewise.
1404 Mon Sep 9 12:55:14 1996 Ulrich Drepper <drepper@cygnus.com>
1406 * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): Check for
1407 available character before converting number and return with
1408 error if none is available.
1410 Fri Sep 6 22:09:08 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1412 * sysdeps/unix/sysv/linux/init-first.h: New file, generic
1413 implementation for architectures where parameters are passed on
1415 * sysdeps/unix/sysv/linux/m68k/init-first.h: Removed.
1416 * sysdeps/unix/sysv/linux/i386/init-first.h: Removed.
1418 Fri Sep 6 22:05:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1420 * configure.in: Remove unneeded sysnames frobbing.
1422 Mon Sep 9 05:29:09 1996 Ulrich Drepper <drepper@cygnus.com>
1424 * time/zic.c: Update from ADO 96l.
1425 * time/africa: Update from ADO 96k.
1426 * time/antarctica: Likewise.
1427 * time/asia: Likewise.
1428 * time/australia: Likewise.
1429 * time/europe: Likewise.
1430 * time/northamerica: Likewise.
1431 * time/southamerica: Likewise.
1433 Mon Sep 9 05:03:47 1996 NIIBE Yutaka <gniibe@mri.co.jp>
1435 * sysdeps/unix/sysv/linux/i386/init-first.h: Work around buggy
1436 gcc <= 2.7.2.1 which optimizes away address operations on weak
1439 * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): New macro.
1440 Like INT_FIELD but also accept non-existing field.
1441 * shadow/sgetspent_r.c (LINE_PARSER): Use INT_FIELD_MAYBE_NULL
1442 for last four fields.
1443 * shadow/putspent.c (putspent): Print `:' after numeric value.
1445 Mon Sep 9 02:42:48 1996 Richard Henderson <rth@tamu.edu>
1447 * libio/stdio.h (BUFSIZ): Define using _IO_BUFSIZ.
1449 Sun Sep 8 16:43:56 1996 Ulrich Drepper <drepper@cygnus.com>
1451 * Make-dist: Filter out $(add-ons) from $(subdirs).
1452 Don't distribute TAGS files.
1453 ($(tardir).tar): Remove dist.tar when all is done.
1454 * manual/Makefile (distribute): Add libc.info*.
1455 * libio/Makefile (distribute): Add Banner.
1456 * inet/Makefile (headers): Add netinet/tcp.h.
1458 * resolv/Makefile (libresolv-routines): Add getnetnamadr.
1460 * crypt-README: Removed.
1461 * gnu-stabs.h: Removed.
1463 * sysdeps/alpha/copysign.S: Renamed to...
1464 * sysdeps/alpha/s_copysign.S: ...this.
1465 * sysdeps/alpha/fabs.S: Renamed to...
1466 * sysdeps/alpha/s_fabs.S: ...this.
1468 * sysdeps/m68k/isinfl.c: Renamed to...
1469 * sysdeps/m68k/s_isinfl.c: ...this.
1470 * sysdeps/m68k/isnanl.c: Renamed to...
1471 * sysdeps/m68k/s_isnanl.c: ...this.
1473 * sysdeps/sparc/sqrt.c: Renamed to...
1474 * sysdeps/sparc/e_sqrt.c: ...this. Function name now is
1477 * sysdeps/generic/get_str.c: Removed.
1479 * sysdeps/ieee754/cbrt.c: Removed.
1480 * sysdeps/ieee754/drem.c: Removed.
1481 * sysdeps/ieee754/logb.c: Removed.
1482 * sysdeps/ieee754/sqrt.c: Removed.
1484 * sysdeps/stub/cbrt.c: Removed.
1485 * sysdeps/stub/cos.c: Removed.
1486 * sysdeps/stub/drem.c: Removed.
1487 * sysdeps/stub/isinf.c: Removed.
1488 * sysdeps/stub/isinfl.c: Removed.
1489 * sysdeps/stub/isnanl.c: Removed.
1490 * sysdeps/stub/logb.c: Removed.
1491 * sysdeps/stub/sin.c: Removed.
1492 * sysdeps/stub/sqrt.c: Removed.
1494 * sysdeps/tahoe/log10.c: Removed.
1496 * sysdeps/vax/index.s: Removed.
1497 * sysdeps/vax/rindex.s: Removed.
1498 * sysdeps/vax/bcmp.s: Removed.
1499 * sysdeps/vax/log10.c: Removed.
1500 * sysdeps/vax/infnan.c: Removed.
1501 * sysdeps/vax/Dist: Add fl.h.
1503 * sysdeps/unix/sysv/linux/alpha/Dist: Add llseek.S.
1505 * inet/rcmd.c (rcmd): Make messages more uniform.
1507 Sun Sep 8 14:15:42 1996 Ulrich Drepper <drepper@cygnus.com>
1512 * po/pl.po: New file.
1513 * po/nl.po: New file.
1515 Sat Sep 7 18:41:17 1996 Richard Henderson <rth@tamu.edu>
1517 * Makeconfig (+link): Filter out start, pre & postinit from the
1518 generic depenancies as well.
1519 * Rules: Add start, pre & postinit to the dependancies of
1520 $(others) and $(tests).
1522 * configure.in: elf_dirs missing "sysdeps" component.
1524 Sun Sep 8 02:36:02 1996 Ulrich Drepper <drepper@cygnus.com>
1526 * locale/SYS_libc.c (_libc_intl_domainname): Change value to "libc".
1527 This is consistent with all other GNU packages. We shouldn't
1528 take care for a possible clash. Nobody will name the domain
1529 of a package libc if it is not the libc itself.
1530 * MakeTAGS ($P/SYS_libc.pot): Rename to $P/libc.pot.
1531 * po/Makefile (domainname): Change to libc.
1532 (distribute): Now ship libc.pot.
1533 * catgets/gencat.c (usage): Use `PACKAGE' for package name in
1534 version information banner.
1535 Change bug report address to bug-glibc@prep not @gnu.
1536 * db/makedb.c (PACKAGE): New macro. Set to _libc_intl_domain.
1537 (main): Use `PACKAGE' for package name in version information
1539 Change bug report address to bug-glibc@prep not @gnu.
1540 * locale/programs/locale.c (main): Use `PACKAGE' for package name
1541 in version information banner.
1542 Change bug report address to bug-glibc@prep not @gnu.
1543 * locale/programs/localedef.c (main): Likewise.
1545 * version.h (VERSION): Bump to 1.94.
1547 * locale/Makefile (distribute): Add locale.c and localedef.c.
1549 Sat Sep 7 14:00:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
1551 * catgets/catgets.c (catopen): Allocate sizeof(*result) bytes
1552 instead of sizeof(nl_catd) (which is just a pointer!).
1554 Sat Sep 7 19:39:19 1996 Ulrich Drepper <drepper@cygnus.com>
1556 * Makefile ($(objpfx)version-info.h): Generate from Banner files.
1557 * version.c (banner): Add contents of version-info.h to string.
1559 * Makerules: If $($(subdir)-version) is available name versioned
1560 shared library according to this value instead of glibc's version.
1562 * libio/Banner: New file.
1564 * elf/eval.c (funcall): Write error message in case function is
1566 (eval): Recognize `_' in names.
1568 Sat Sep 7 05:15:45 1996 Ulrich Drepper <drepper@cygnus.com>
1570 * libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
1571 * libio/iofopen: Likewise.
1572 * libio/iofopncook.c: Likewise.
1573 * libio/iopopen.c: Likewise.
1574 * libio/iovsprintf.c: Likewise.
1575 * libio/iovsscanf.c: Likewise.
1576 * libio/memstream.c: Likewise.
1577 * libio/vasprintf.c: Likewise.
1578 * libio/vdprintf.c: Likewise.
1579 * libio/vsnprintf.c: Likewise.
1581 Sat Sep 7 03:55:47 1996 Ulrich Drepper <drepper@cygnus.com>
1583 * Makeconfig (soversions.mk): Also use shlib-versions files
1584 in add-on directories.
1585 * config.make.in (config-defines): Remove. Not used anymore.
1586 (defines): New variable. Initiliazed by @DEFINES@.
1587 * configure.in: Add AC_SUBST(DEFINES).
1589 * libio/Makefile (routines): When compiling reentrant libc add
1590 clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
1591 iofflush_u, putc_u, putchar_u, ioflockfile.
1592 (CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
1594 * sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
1595 and __libc_cleanup_region_end.
1597 * sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
1598 using __errno_location function.
1599 * sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
1600 using __errno_location function.
1601 (__errno_location): New function.
1602 * sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
1603 syscall_error handler for reentrant libc.
1605 * sysdeps/unix/opendir.c: Remove unneeded `;'.
1607 * libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
1608 [!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
1610 * libioP.h: Include <libc-lock.h>.
1611 * libio/stdio.h: Add prototypes for *_locked and *_unlocked
1614 * libio/clearerr.c: Use _IO_ protected versions of flockfile
1615 and funlockfile to be namespace clean.
1617 * libio/genops.c: Use __libc_lock_* macros for handling lock.
1619 * libio/iofdopen: Add initialization of _lock in _IO_FILE.
1620 * libio/iofopen: Likewise.
1621 * libio/iofopncook.c: Likewise.
1622 * libio/iopopen.c: Likewise.
1623 * libio/iovsprintf.c: Likewise.
1624 * libio/iovsscanf.c: Likewise.
1625 * libio/memstream.c: Likewise.
1626 * libio/vasprintf.c: Likewise.
1627 * libio/vdprintf.c: Likewise.
1628 * libio/vsnprintf.c: Likewise.
1630 * libio/fgetc.c: Use __libc_cleanup_region_* macros instead
1632 * libio/fputc.c: Likewise.
1633 * libio/freopen.c: Likewise.
1634 * libio/fseek.c: Likewise.
1635 * libio/getc.c: Likewise.
1636 * libio/getchar.c: Likewise.
1637 * libio/iofclose.c: Likewise.
1638 * libio/iofflush.c: Likewise.
1639 * libio/iofgetpos.c: Likewise.
1640 * libio/iofgets.c: Likewise.
1641 * libio/iofputs.c: Likewise.
1642 * libio/iofread.c: Likewise.
1643 * libio/iofsetpos.c: Likewise.
1644 * libio/ioftell.c: Likewise.
1645 * libio/iofwrite.c: Likewise.
1646 * libio/iogetdelim.c: Likewise.
1647 * libio/iogets.c: Likewise.
1648 * libio/ioputs.c: Likewise.
1649 * libio/iosetbuffer.c: Likewise.
1650 * libio/iosetvbuf.c: Likewise.
1651 * libio/ioungetc.c: Likewise.
1652 * libio/putc.c: Likewise.
1653 * libio/putchar.c: Likewise.
1654 * libio/rewind.c: Likewise.
1655 * stdio-common/vfprintf.c: Likewise.
1656 * stdio-common/vfscanf.c: Likewise.
1658 * libio/clearerr_u.c: Correct alias name.
1659 * libio/ferror_u.c: Likewise.
1660 * libio/fileno.c: Likewise.
1661 * libio/fputc_u.c: Likewise.
1662 * libio/getc.c: Likewise.
1663 * libio/getc_u.c: Likewise.
1664 * libio/getchar.c: Likewise.
1665 * libio/getchar_u.c: Likewise.
1666 * libio/putc.c: Likewise.
1667 * libio/putchar.c: Likewise.
1669 * libio/feof_u.c: Undefine macro with name of function before
1670 definition of function itself.
1672 * libio/ioflockfile.c: New file. Implementation of flockfile and
1675 * libio/putchar_u.c: Fix typo. Use stdout instead of fp.
1677 * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
1680 * malloc/free.c: Include <libc-lock.h>.
1681 * malloc/realloc.c: Likewise.
1682 * malloc/malloc-find.c: Likewise.
1683 * malloc/malloc-size.c: Likewise.
1684 * malloc/malloc-walk.c: Likewise.
1685 * malloc/memalign.c: Likewise.
1686 * malloc/malloc.c: Likewise.
1688 * sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
1690 Fri Sep 6 19:38:49 1996 Ulrich Drepper <drepper@cygnus.com>
1692 * sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
1693 and __libc_lock_critical_end as empty macros.
1695 * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
1697 * malloc/free.c: Include <libc-lock.h>.
1698 * malloc/malloc-find.c: Likewise.
1699 * malloc/malloc-size.c: Likewise.
1700 * malloc/malloc-walk.c: Likewise.
1701 * malloc/malloc.c: Likewise.
1702 * malloc/memalign.c: Likewise.
1703 * malloc/realloc.c: Likewise.
1705 * Makefile: Undo change from Mon Sep 2 22:15:14 1996. No more
1708 * extra-lib.mk: Likewise.
1709 * manual/Makefile: Likewise.
1711 * db/Makefile (makedb): Choose dependecies based on build-shared.
1712 Patch by Andres Schwab.
1714 * sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
1715 but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
1717 * sysdeps/unix/sysv/linux/errnos.h: New file.
1718 * sysdeps/unix/sysv/linux/schedbits.h: New file.
1719 * sysdeps/unix/sysv/linux/waitflags.h: New file.
1721 * sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
1723 Fri Sep 6 08:26:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1725 * rpm/template: Fix typo in %build section.
1727 Fri Sep 6 03:31:07 1996 Ulrich Drepper <drepper@cygnus.com>
1729 * sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
1730 building libc without thread support.
1731 * resolv/netdb.h: Likewise for h_errno macro.
1733 Thu Sep 5 23:01:48 1996 Ulrich Drepper <drepper@cygnus.com>
1735 * libc-symbols.h: Add new macro weak_const_function. It's like
1736 weak_function, but the function is additionally marked as const.
1737 * features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
1739 Thu Sep 5 22:55:49 1996 Richard Henderson <rth@tamu.edu>
1741 * inet/herrno.c (__h_errno_location): New function.
1742 (h_errno): Make strong_alias __h_errno so that we can access
1743 the variable even if `h_errno' is a macro.
1744 * resolv/netdb.h: Define macro h_errno to access thread specific
1745 version of h_errno variable. Declare alias __h_errno for h_errno.
1746 * resolv/res_query (h_errno): Remove definition.
1747 * sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
1748 Add macro `errno' to get thread specific variable.
1749 * sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
1750 __errno_location function.
1751 (__errno_location): New function.
1753 Thu Sep 5 21:08:44 1996 Ulrich Drepper <drepper@cygnus.com>
1755 * posix/gnu/types.h: Remove definition of key_t.
1756 * sysdeps/generic/gnu/types.h: Move it to here.
1757 * sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
1758 definition of key_t.
1760 * sysdeps/unix/sysv/linux/waitflags.h: New file. Linux specific
1762 * sysdeps/unix/sysv/linux/schedbits.h: New file. Include
1763 clone prototypes and associated flags.
1765 Thu Sep 5 13:18:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1767 * sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
1769 (init1): Initialize them.
1770 * hurd/hurdinit.c (_hurd_setproc): Now that happens to be
1771 available, pass __libc_argv in call to __proc_set_arg_locations.
1773 * gmon/gmon.c (write_hist): Call __profile_frequency instead of
1775 (hertz): Delete function.
1776 * gmon/Makefile (routines): Add `prof-freq'.
1777 * sysdeps/generic/prof-freq.c: New file.
1778 * sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
1779 * sysdeps/mach/hurd/profil.c (profile_tick): New variable.
1780 (update_waiter): Store frequency in profile_tick.
1781 (__profile_frequency): New function.
1783 * sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
1786 * Rules (generated): Restore reference to $(generated).
1788 * mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
1791 * malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
1793 * malloc/free.c: Provide extern decl of __libc_malloc_lock.
1794 * malloc/realloc.c: Likewise.
1795 * malloc/malloc-find.c: Likewise.
1796 * malloc/malloc-size.c: Likewise.
1797 * malloc/malloc-walk.c: Likewise.
1798 * malloc/memalign.c: Likewise.
1800 Thu Sep 5 08:58:47 1996 Richard Henderson <rth@tamu.edu>
1802 * sysdeps/alpha/elf/start.S: Make _start global again.
1804 Thu Sep 5 03:20:42 1996 Ulrich Drepper <drepper@cygnus.com>
1806 Change configuration and Makefiles to allow add-ons to have a
1807 sysdeps/ directory hierachy.
1808 * configure.in: Test for sysdeps/ directory in add-ons. Before
1809 all test and searches in these hierachies, too.
1810 * Makeconfig (full-config-subdirs): Define based on $(config-sysdirs).
1811 Extend with $(..) if not absolute path.
1812 Use $(full-config-subdirs) where $(config-sysdirs) was used.
1813 * Makefile ($(objpfx)sysd-dirs): Use config-sysdirs.
1814 * MakeTAGS: Use $(full-config-subdirs).
1815 * Makerules: Change comment to libc.so link script.
1816 (sysdirs): Define based on $(full-config-subdirs).
1817 (sysd-Makefile): Define using config-sysdirs.
1818 (sysd-rules): Likewise.
1819 * sysdeps/unix/Makefile (sysd-syscalls): Define based on +sysdep-dirs.
1820 * sysdeps/unix/make-syscalls.sh: Remove basedir argument.
1822 Wed Sep 4 01:32:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1824 * sysdeps/m68k/fpu/k_cos.c: Rewritten for better accuracy.
1825 * sysdeps/m68k/fpu/k_sin.c: Likewise.
1826 * sysdeps/m68k/fpu/k_tan.c: Likewise.
1828 Thu Sep 5 01:06:09 1996 Richard Henderson <rth@tamu.edu>
1830 * malloc/free.c (free): Protect by using __libc_malloc_lock.
1831 * malloc/malloc-find.c (malloc_find_object_address): Likewise.
1832 * malloc/malloc-size.c (malloc_usable_size): Likewise.
1833 * malloc/malloc-walk.c (malloc_walk): Likewise.
1834 * malloc/memalign.c (memalign): Likewise.
1835 * malloc/realloc.c (realloc): Likewise.
1836 * malloc/malloc.c: Define __libc_malloc_lock.
1837 (_malloc_internal): Don't use `malloc'. Instead look for
1838 `__malloc_hook' or call `_malloc_internal'.
1839 (malloc): Protect by using `__libc_malloc_lock'.
1840 * malloc/malloc.h: Declare `__libc_malloc_lock'.
1842 Mon Sep 2 22:42:59 1996 Richard Henderson <rth@tamu.edu>
1844 * sysdeps/alpha/elf/start.S: Use weak_alias for __start
1845 instead of the hard definition.
1847 * sysdeps/alpha/dl-machine.h (RTLD_START): Add type info for
1848 _start and _dl_start_user.
1850 * sysdeps/unix/sysv/linux/alpha/init-first.h (SYSDEP_CALL_INIT):
1851 Make _dl_starting_up weak. Add type info for NAME.
1853 Mon Sep 2 22:15:14 1996 Richard Henderson <rth@tamu.edu>
1855 * Makefile (all): Add extra_solibs pass.
1856 (+subdir_targets): Same.
1857 * Rules (extra_solibs): New phony empty target for subdirs without
1859 * extra-lib.mk: Build lib*.so* in extra_solibs not lib-noranlib.
1860 * manual/Makefile: Add dummy extra_solibs target.
1862 Sun Sep 1 15:41:22 1996 Richard Henderson <rth@tamu.edu>
1864 * Makeconfig (+link): Add $(link-extra-libs).
1865 (link-extra-libs): New variable which expands to the full paths of
1866 the other libraries needed by a program, as controled by LDLIBS-$(@F).
1867 * db/Makefile: Use LDLIBS-makedb to link libdb not a dependency, as
1868 the later attempts to install the library before linking it.
1870 * sysdeps/unix/alpha/sysdep.S: Align errno.
1872 * sysdeps/unix/sysv/linux/alpha/ioperm.c (struct platform): Add
1874 (io): Move bus_memory_base and sparse_bus_memory_base into struct.
1875 (_hae_shift): New function.
1876 * sysdeps/unix/sysv/linux/alpha/sys/io.h: New file. Prototypes
1877 for the bus query functions.
1879 Sat Aug 31 18:14:54 1996 Richard Henderson <rth@tamu.edu>
1881 * elf/dl-close.c (_dl_close): In static executables, map->l_prev
1882 can be NULL when unloading a library.
1884 * elf/dl-open.c (_dl_open): Pass __environ instead of __libc_envp
1885 to the library .init function.
1887 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Since we omitted
1888 part of the COPY reloc processing earlier, omit the rest now --
1889 we'll get into less trouble later when some fool does use a COPY.
1891 * sysdeps/unix/sysv/linux/init-first.c (init): Accept argc et al as
1892 parameters. Move all argc and __libc_multiple_libcs calculation out
1893 to init-first.h. Use __environ not __libc_envp.
1894 * sysdeps/unix/sysv/linux/alpha/init-first.h: Rewrite.
1895 * sysdeps/unix/sysv/linux/i386/init-first.h: Rewrite.
1897 Thu Aug 29 20:26:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1899 * sysdeps/posix/profil.c (profil): Don't clobber saved timer and
1900 signal settings when profiling was already turned on.
1902 * csu/gmon-start.c (__gmon_start__) [HAVE_INITFINI]: Protect from
1905 Wed Sep 4 01:31:50 1996 Ulrich Drepper <drepper@cygnus.com>
1907 * sysdeps/unix/sysv/linux/i386/mmap.S: Test for
1908 0 < return value < -4096 and not < 0 to decide about failure.
1909 Reported by Andreas Jaeger.
1911 Tue Sep 3 19:04:05 1996 Ulrich Drepper <drepper@cygnus.com>
1913 * stdio-common/vfscanf.c (__vfscanf): Don't count EOF char
1916 Sat Aug 31 18:10:51 1996 Ulrich Drepper <drepper@cygnus.com>
1918 * wcsmbs/wchar.h: Define prototypes for wcstoq and wcstouq only
1921 Sat Aug 31 12:34:29 1996 Ulrich Drepper <drepper@cygnus.com>
1923 * version.c: Add missing newline character in banner.
1925 * sysdeps/unix/sysv/linux/alpha/Dist: Correct typo.
1926 * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
1928 Sat Aug 31 03:07:39 1996 Ulrich Drepper <drepper@cygnus.com>
1930 * intl/l10nflist.c (_nl_normalize_codeset): We convert to lower
1931 case, so don't prepend uppercase `ISO' for only numeric arg.
1933 Wed Sep 4 16:16:13 1996 Ulrich Drepper <drepper@cygnus.com>
1935 * sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
1936 * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
1938 Tue Sep 3 11:16:07 1996 Thomas Bushnell/ n/BSG <thomas@gnu.ai.mit.edu>
1940 * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in
1941 call to __libc_lock_lock.
1943 * sysdeps/mach/hurd/send.c (__send): Declare BUF const.
1944 * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
1946 * sysdeps/stub/ustat.c: Include <sys/ustat.h>.
1948 * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm').
1950 Fri Aug 30 19:55:27 1996 Ulrich Drepper <drepper@cygnus.com>
1952 * libio/genops.c: Make _cleanup an alias of _IO_cleanup.
1953 Reported by Erik Troan.
1955 Fri Aug 30 15:40:04 1996 Ulrich Drepper <drepper@cygnus.com>
1957 * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and
1958 sys/sysmacros.h. Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>.
1960 Fri Aug 30 13:53:32 1996 Andreas Jaeger <aj@arthur.pfalz.de>
1962 * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5.
1964 Fri Aug 30 13:01:10 1996 NIIBE Yutaka <gniibe@mri.co.jp>
1966 * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get
1969 Fri Aug 30 03:33:33 1996 Ulrich Drepper <drepper@cygnus.com>
1971 * sysdeps/libm-ieee754/s_cbrtl.c: New file. `long double'
1974 Fri Aug 30 13:39:21 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1976 * Makerules (BUILD_CFLAGS): Use @(common-objpfx) for config.h, not
1977 $(..). Some rules (like sysdeps/posix/Makefile for mk-stdiolim)
1979 (sed-remove-objpfx): Don't substitute for $(objpfx) anymore;
1980 $(common-objpfx) is good enough.
1981 * Rules (common-generated): Provide default (empty) value.
1982 (dummy.o, dummy.c, empty.o, empty.c): Put these in
1983 $(common-generated), not $(generated), and without $(..).
1984 (subdir_echo-distinfo): Treat $(common-generated) just like
1986 (generated): Depend on the (suitably mutated) $(common-generated)
1988 * Makerules (common-clean): Remove common-generated files too.
1989 * sysdeps/mach/hurd/Makefile (generated): Don't put errnos.d and
1991 (common-generated): Do put errnos.d and stamp-errnos here.
1992 (rpath-link): Don't use +=; $(rpath-link) is a colon separated list.
1994 * sysdeps/mach/hurd/Makefile (before-compile): Add auth; also add
1995 auth to following rule to get it built.
1997 Fri Aug 30 01:26:44 1996 Ulrich Drepper <drepper@cygnus.com>
1999 * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
2000 * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
2001 * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
2003 * version.c: Add comment about where to report bugs to.
2004 * catgets/gencat.c (usage): Likewise.
2005 * db/makedb.c (usage): Likewise.
2006 * locale/programs/locale.c (usage): Likewise.
2007 * locale/programs/localedef.c (usage): Likewise.
2009 * manual/socket.texi: A little bit better wording.
2011 Thu Aug 29 18:03:06 1996 Ulrich Drepper <drepper@cygnus.com>
2013 * Makerules: Make sure directory exists before generating stamp file.
2014 (BUILD_CFLAGS): Always refer to using $(..).
2015 * manual/Makefile: Make sure directory exists before generating
2017 (make-target-directory): Add macro definition.
2018 * sysdeps/generic/Makefile: Make sure directory exists before
2019 generating stamp file.
2021 * Makefile (distribute): Add autolock.sh. Reported by Fila Kolodny.
2023 Tue Aug 27 10:06:22 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2025 When compiling in separate directory put objects into
2026 subdirectories matching the source layout.
2027 * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir).
2028 When looking for configparms try in $(common-objpfx).
2029 Use $(common-objpfx)SUBDIR to find objects from other subdirectory
2031 * Makerules: Add $(objpfx) to vpath list.
2032 (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d
2033 more than once. All uses in dependency lists changed.
2034 (+make-deps): Make target directory.
2035 (sed-remove-objpfx): Substitute $(common-objpfx).
2036 (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use
2037 $(objpfx) instead of $(objdir) for cd command.
2038 (O%-lib): Always find libc relative to $(..).
2039 (subdir-stamps): Collect stamp files from subdirs.
2040 (common-mostlyclean): Remove stub file in $(common-objpfx).
2041 * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common.
2042 * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to
2044 ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use
2045 $(common-objpfx). All uses in dependency lists changed.
2046 (generated): Prepend $(..) to names.
2047 * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx)
2049 * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so):
2050 Use $(common-objpfx) instead of $(..) in dependencies.
2051 * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use
2052 $(common-objpfx) instead of $(..) and (objpfx).
2053 * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise.
2054 (rpath-link): Likewise.
2055 (rpcuserlibs): Likewise.
2056 * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for
2057 errlist.c in $(objpfx), not $(common-objpfx).
2058 ($(common-objpfx)s-proto.d): Special rule not covered by pattern
2060 * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on
2061 s-proto.d in $(common-objpfx), not $(objpfx).
2063 Thu Aug 29 17:45:49 1996 Ulrich Drepper <drepper@cygnus.com>
2065 * nss/nsswitch.c (nss_dlerror_run): Free returned error
2068 Thu Aug 29 15:53:33 1996 Ulrich Drepper <drepper@cygnus.com>
2070 * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double'
2072 * sysdeps/libm-ieee754/e_atanhl.c: Likewise.
2073 * sysdeps/libm-ieee754/e_remainderl.c: Likewise.
2074 * sysdeps/libm-ieee754/e_scalbl.c: Likewise.
2075 * sysdeps/libm-ieee754/s_asinhl.c: Likewise.
2076 * sysdeps/libm-ieee754/s_cosl.c: Likewise.
2077 * sysdeps/libm-ieee754/s_sinl.c: Likewise.
2078 * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
2079 * sysdeps/libm-ieee754/s_tanl.c: Likewise.
2081 Thu Aug 29 12:00:30 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2083 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Correct
2084 spelling error of _hurd_itimerval.
2086 * mach/Makefile (MIGFLAGS-mach/mach4): Define variable.
2087 * mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
2088 $(MIGFLAGS-$*) here too, as well as in the code-generating MiG calls.
2090 * hurd/hurdinline.c: Include "hurd.h" for function definitions too.
2092 * stdio/fseek.c (fseek): Don't assume we know the file position;
2093 other handles may have changed it. So set STREAM.__offset to -1
2094 before calling __stdio_check_offset to make sure we have a correct
2097 Thu Aug 29 00:28:08 1996 Ulrich Drepper <drepper@cygnus.com>
2099 * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
2100 `decimal' char is 0.
2102 * C-numeric.c (not_available): New constant.
2103 (_nl_C_LC_NUMERIC): Use `not_available' for grouping value.
2105 * nss/nsswitch.conf: Example configuration file.
2106 * nss/db-Makefile: Example Makefile for generation of databases
2108 * nss/Makefile (distribute): Add nsswitch.conf and db-Makefile.
2110 1996-08-28 Paul Eggert <eggert@twinsun.com>
2112 * C-messages.c (_nl_C_LC_MESSAGES): Set yesexpr to "^[yY]" and
2113 noexpr to "^[nN]"; this conforms to POSIX.2.
2115 * C-time.c (_nl_C_LC_TIME): Change %d to %e in d_t_format, to
2118 1996-08-28 Paul Eggert <eggert@twinsun.com>
2120 * C-monetary.c (not_available): New constant.
2121 (_nl_C_LC_MONETARY): Set mon_decimal_point to "", and set
2122 mon_grouping, int_frac_digits, frac_digits, p_cs_precedes,
2123 p_sep_by_space, n_cs_precedes, n_sep_by_space, p_sign_posn, and
2124 n_sign_posn to CHAR_MAX, as required by the POSIX Standard.
2126 Wed Aug 28 23:12:28 1996 Ulrich Drepper <drepper@cygnus.com>
2128 * nss/nss_db/db-XXX.c: Correct function names. They must be
2129 `_nss_db_*' instead of `_nss_files_*'.
2130 (lookup): `parse_line' returns 1 if succesful.
2131 * nss/nss_files/files-service.c (servbyname): Key for database
2132 must also contain protocol names.
2133 (servbypt): Likewise.
2134 Test must also check for protocol. Add `proto' argument.
2136 Tue Aug 27 09:56:13 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2138 * MakeTAGS ($P/subdirs.pot): Prefix all file names, not only the
2141 Tue Aug 27 17:45:21 1996 Ulrich Drepper <drepper@cygnus.com>
2143 * Makerules: Add some test for correct version of GNU Make.
2145 * io/fcntl.h: Undo change from Mon Aug 26 22:22:17 1996.
2146 * sysdeps/unix/sysv/linux/fcntlbits.h: Place macros here instead.
2148 * sysdeps/generic/dl-sysdep.c: Initialize break address to
2149 avoid overwriting last page (OK, Roland).
2151 Tue Aug 27 16:20:37 1996 Ulrich Drepper <drepper@cygnus.com>
2153 * resolv/resolv.h: Update from BIND-4.9.5-T3A.
2154 * resolv/arpa/nameser.h: Likewise.
2155 * resolv/res_init.c: Likewise.
2156 * resolv/res_debug.c: Likewise.
2157 * resolv/res_mkquery.c: Likewise.
2159 Tue Aug 27 15:47:04 1996 Ulrich Drepper <drepper@cygnus.com>
2161 * elf/dl-error.c (catch): Define errstring element not as const.
2162 (_dl_catch_error): ERRSTRING argument is not const pointer.
2163 Initialize *ERRSTRING and *OBJNAME separately.
2164 * elf/link.h: Change prototype for `_dl_catch_error'.
2166 * elf/dl-load.c (_dl_map_object): Use separate variable for
2167 copied NAME to avoid `const' warning.
2169 * elf/dlerror.c: Make `last_errstring' variable not const pointer.
2171 * elf/rtld.c: Implement reading of /etc/ld.so.preload. This
2172 provides preloading even for SUID binaries.
2173 Add some more casts to avoid signed<->unsigned warnings.
2175 Tue Aug 27 15:40:28 1996 NIIBE Yutaka <gniibe@mri.co.jp>
2177 * posix/sys/types.h: Define loff_t.
2178 * sysdeps/unix/sysv/linux/gnu/types.h: Define __loff_t.
2180 Mon Aug 26 22:22:17 1996 Ulrich Drepper <drepper@cygnus.com>
2182 * io/fcntl.h: Add definition for BSD F* macros.
2184 * misc/init-misc.c (__init_misc): Make static.
2185 * misc/Makefile: Pass -fkeep-inline-functions flag for init-misc.c.
2187 * configure.in: Add test for -fno-exception option of gcc.
2188 * config.make.in: Add definition of have-no-exceptions.
2189 * Makerules: Define no-exceptions based on have-no-exceptions.
2190 * csu/Makefile: When translating initfini.c pass $(no-exceptions).
2191 This is necessary for gcc >= ss-960816.
2193 Mon Aug 26 17:16:48 1996 Richard Henderson <rth@tamu.edu>
2195 * sysdeps/alpha/dl-machine.h: Clear startup flag.
2197 Fri Aug 16 21:17:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2199 * Makerules (o-iterator-doit): Simplify reference to autolock
2202 Sat Aug 24 15:27:41 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2204 * sysdeps/mach/hurd/getcwd.c
2205 (_hurd_canonicalize_directory_name_internal): After resizing the
2206 buffer move the current contents to the end. Correctly relocate
2207 file name pointer to upper half of the buffer.
2209 Mon Aug 26 15:49:59 1996 Ulrich Drepper <drepper@cygnus.com>
2211 * rtld.c (dl_main): Remove code to call ld.so initializer. This
2212 was introduced for compatibility with Linux ld.so and would not
2213 be used anymore. Now we don't have any good values to use as the
2214 parameters to the initializer so simply remove it.
2216 Sun Aug 25 18:25:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2218 * gmon/gmon.c (ERR): Don't write the terminating NUL.
2220 * sysdeps/posix/profil.c (profil): Disable the profiling timer at
2222 (profil_count): Use 64 bit arithmethic to avoid overflow.
2224 * sysdeps/generic/machine-gmon.h (MCOUNT): Fix argument order.
2226 Mon Aug 26 16:31:33 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2228 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Tolerate NEW
2229 being null; in that case don't touch the timer at all (but do
2230 return something in OLD if necessary).
2232 Mon Aug 26 13:35:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2234 * sysdeps/mach/hurd/i386/init-first.c (__libc_multiple_libcs): New
2236 * sysdeps/i386/init-first.c: Likewise.
2237 * sysdeps/stub/init-first.c: Likewise.
2239 Mon Aug 26 02:01:37 1996 Ulrich Drepper <drepper@cygnus.com>
2241 * elf/dl-open.c (_dl_open): Call library initializer with
2242 correct command line arguments and environment information.
2243 * elf/rtld.c (dl_main): Provide arguments to initializer of
2246 Sun Aug 25 19:15:46 1996 Ulrich Drepper <drepper@cygnus.com>
2248 * shadow/Makefile (routines): Add lckpwdf.
2249 * shadow/lckpwdf.c: New file.
2251 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Force
2252 argument `cw' to be placed in memory. Patch by Torbjorn Granlund.
2254 Sun Aug 25 12:53:37 1996 Ulrich Drepper <drepper@cygnus.com>
2256 * configure.in: Add definition for `__eh_pc' and `__throw' in
2257 test for --no-whole-archive. The compiler generates dependencies
2258 for this but none of the standard librares and startup files
2259 are used. Necessary for gcc >= ss-960816.
2261 Sun Aug 25 01:31:33 1996 Ulrich Drepper <drepper@cygnus.com>
2263 * elf/dl-error.c (_dl_signal_error): If error is catched, malloc
2264 return string since string might be on stack.
2265 * elf/dl-lookup.c (_dl_lookup_symbol): Undo change of
2266 Wed Aug 21 10:14:59 1996.
2267 * elf/dlerror.c (dlerror): Free error string after printing.
2268 (_dlerror_run): If error string was not printed since last error
2270 * rtld.c (dl_main): Free error string in case of error.
2272 Sat Aug 24 03:16:47 1996 Ulrich Drepper <drepper@cygnus.com>
2274 * misc/syslog.c (vsyslog): Don't use `localtime' or `gmtime' since
2275 this changes the global state for `localtime' and `gmtime'. Use
2276 `__localtime_r'/`__gmtime_r' instead.
2277 * resolv/res_debug.c (__p_secstodate): Likewise.
2278 * sysdeps/generic/ftime.c: Likewise.
2279 * sysdeps/posix/gettimeofday.c: Likewise.
2280 Reported by Paul Eggert.
2282 * time/gmtime.c: De-ANSI-fy.
2283 * time/strftime.c: Don't call non-reentrant functions which change
2286 Wed Aug 21 10:14:59 1996 Richard Henderson <rth@tamu.edu>
2288 * elf/dl-lookup.c (_dl_lookup_symbol): Malloc the error string rather
2289 than putting it on the stack.
2291 Wed Aug 21 10:12:42 1996 Richard Henderson <rth@tamu.edu>
2293 * elf/rtld.c (dl_main): When looking up symbols in response to --list,
2294 don't find .plt entries.
2296 Mon Aug 19 23:18:12 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2298 * sysdeps/m68k/dl-machine.h (RTLD_START): Optimize clearing
2301 Tue Aug 20 17:42:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
2303 * stdio/linewrap.c (line_wrap_stream): Initialize D->seek.
2305 Sat Aug 17 12:19:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
2307 * login/pututline_r.c (__pututline_r): Fix handling of case where
2308 getutid_r() fails with ESRCH. Reported by Miquel van Smoorenburg.
2310 Wed Aug 14 14:10:54 1996 David Mosberger-Tang <davidm@azstarnet.com>
2312 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Change entry
2313 for "Jensen" so _bus_base() returns 0 on that platform. Use
2314 _bus_base_sparse() to determine base address of sparse memory.
2316 * sysdeps/unix/sysv/linux/sys/io.h: Enclose #include <asm/io.h>
2317 and declarations in __BEGIN_DECLS/__END_DECLS.
2319 Sun Aug 18 13:37:09 1996 Ulrich Drepper <drepper@cygnus.com>
2321 * err.h: New file. Wrapper around misc/err.h.
2323 Correct solution of multiple initialization problem by
2325 * csu/initfini.c: Remove global variable __libc_is_static.
2326 * elf/rtld.c: Introduce new global variable _dl_starting_up.
2327 It's nonzero during the startup.
2328 * elf/dl-open.c (_dl_open): When _dl_start function is not
2329 available (i.e., if in static libc) set `__libc_multiple_libcs'
2331 * sysdeps/unix/sysv/linux/init-first.c (__libc_multiple_libc):
2332 New global variable.
2333 (init): Undo change of Fri Aug 2 03:12:40 1996.
2334 Initialize `__libc_multiple_libcs' to nonzero only if this is
2335 a shared lib called from a statically linked program and don't
2336 call `personality' and `setfpucw' in this case either.
2337 * sysdeps/generic/sbrk.c: Undo change of Fri Aug 2 03:12:40 1996.
2338 Don't call brk(0) until `__libc_multiple_libcs' is nonzero.
2339 * sysdeps/i386/dl-machine.h (RTLD_START): Clear _dl_starting_up
2340 before jumping to user code.
2341 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2343 Fri Aug 16 04:59:01 1996 Ulrich Drepper <drepper@cygnus.com>
2345 * sysdeps/unix/sysv/linux/init-first.c: Remove hack from
2346 Thu Aug 8 12:40:20 1996.
2347 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = csu]: Use
2348 -fkeep-inline-functions flag instead.
2350 Fri Aug 16 16:11:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
2352 * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Treat
2353 EPFNOSUPPORT and EAFNOSUPPORT as implying NSS_STATUS_UNAVAIL just
2354 like ECONNREFUSED already does.
2355 (_nss_dns_gethostbyaddr_r): Likewise.
2356 * nss/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
2357 (_nss_dns_getnetbyaddr_r): Likewise.
2359 * sysdeps/mach/hurd/socket.c (socket): For message transmission
2360 and RPC errors that indicate that the socket server is not really
2361 present and able to do its job, turn the error into EPFNOSUPPORT.
2363 Fri Aug 16 01:24:33 1996 Ulrich Drepper <drepper@cygnus.com>
2365 * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
2366 name dynamically. Reported by Alan Cox.
2367 Uncomment warnings and mark as translatable.
2369 * time/strftime (strftime): Add implementation for %s and %z
2370 format. Change behaviour for unknown format character: now
2371 simply print it. This matches the behaviour of printf.
2372 Reported by Jim Meyering.
2373 * manual/time.texi: Document all formats and flags of strftime.
2375 Thu Aug 15 18:02:51 1996 Ulrich Drepper <drepper@cygnus.com>
2377 * elf/rtld.c (dl_main): Loaded object has type lt_executable,
2380 * misc/sys/select.h: Define fd_set using typedef, not #define.
2381 Proposed by David Mosberger-Tang.
2383 Thu Aug 15 12:48:21 1996 Ulrich Drepper <drepper@cygnus.com>
2385 * po/header.pot: Use real description line.
2387 Thu Aug 15 04:42:44 1996 Ulrich Drepper <drepper@cygnus.com>
2389 * elf/rtld.c (dl_main): When started with --verify prevent
2390 any warning. Just exit with an error.
2391 * elf/ldd.sh.in: Don't run given object directly. This fails for
2392 libraries. Instead use $RTLD again.
2394 Thu Aug 15 02:08:59 1996 Ulrich Drepper <drepper@cygnus.com>
2396 * manual/nss.texi: New file. Document NSS.
2397 * manual/nsswitch.texi: New file. Example configuration.
2399 * manual/string.texi: Document stpncpy, strdupa, and strndupa.
2400 * manual/example/strdupa.c: New file. Example for strdupa.
2402 Wed Aug 14 21:36:16 1996 Ulrich Drepper <drepper@cygnus.com>
2404 * stdlib/strtod.c (STRTOD): Correct assertion about size of
2405 wint_t and wchar_t. Reported by David Mosberger-Tang.
2407 Mon Aug 12 22:40:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2409 * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
2410 RELOC_ADDR and make NOPLT a set of flags. All callers
2411 changed. Delete condition that checks for resolving to the
2412 location being filled in. Add condition to skip the
2413 executable's symbols if requested.
2414 * elf/link.h: Change declaration of _dl_lookup_symbol
2416 (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
2417 * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
2419 * elf/dl-runtime.c (RESOLVE): Likewise.
2420 * elf/rtld.c (RESOLVE): Likewise.
2421 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
2422 DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
2423 processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
2424 reloc, zero otherwise.
2425 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
2426 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2427 * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
2429 Wed Aug 14 17:57:08 1996 Ulrich Drepper <drepper@cygnus.com>
2431 * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
2432 * po/header.pot: Add empty line at end.
2434 Sun Aug 11 13:45:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2436 * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
2437 are now in $P/stdio-common.pot.
2438 (XGETTEXTFLAGS-errlist.pot): Variable removed.
2440 Mon Aug 12 19:25:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2442 * Makerules (do-ar, o-iterator-doit): Compute path to autolock
2443 script at run time, not configure time.
2444 * config.make.in, configure.in: Undo previous change.
2446 Wed Aug 14 13:20:02 1996 Ulrich Drepper <drepper@cygnus.com>
2448 * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
2449 on stack as argument for `_exit'. Reported by Andreas Schwab.
2451 Mon Aug 12 19:36:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2453 * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
2455 Wed Aug 14 04:22:35 1996 Richard Henderson <rth@tamu.edu>
2457 * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
2458 (_dl_map_object_from_fd): Free name on error.
2460 Wed Aug 14 13:00:09 1996 Ulrich Drepper <drepper@cygnus.com>
2462 * string/strdup.c: Use result of memcpy to avoid reloading.
2464 Tue Aug 13 00:55:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2466 * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
2467 the other way round.
2469 Tue Aug 13 20:51:21 1996 Ulrich Drepper <drepper@cygnus.com>
2471 * stdlib/canonicalize.c (canonicalize): Add cast to prevent
2474 * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
2476 Tue Aug 13 18:26:45 1996 Ulrich Drepper <drepper@cygnus.com>
2478 * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
2481 Update from bind-4.9.5-T1A.
2482 * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
2483 inet_net_pton, inet_net.
2485 * resolv/gethnamaddr.c: Include <sys/types.h>.
2486 * resolv/getnetnamadr.c: Likewise.
2487 * resolv/herror.c: Likewise.
2488 * resolv/inet_addr.c: Likewise.
2489 * resolv/nsap_addr.c: Likewise.
2490 * resolv/res_comp.c: Likewise.
2491 * resolv/res_data.c: Likewise.
2492 * resolv/res_init.c: Likewise.
2493 * resolv/res_mkquery.c: Likewise.
2494 * resolv/res_query.c: Likewise.
2495 * resolv/res_send.c: Likewise.
2497 * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
2499 * resolv/inet_ntop.c: Likewise.
2501 * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
2502 Remove prototype of gethostbyname_ipv4.
2504 * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
2505 functions instead of BSD `b*' functions.
2507 * resolv/nsap_addr.c: Add copyright message.
2509 * resolv/res_comp.c: Remove comment explaining label format.
2510 (res_mailok): Correct check.
2512 * resolv/res_debug: Include missing headers.
2513 (__fp_nquery): Handle `unused', `ad', and `cd' bits.
2514 (__p_fqnname): New function to print FQDN from compressed name.
2515 (__p_rr): Use __p_fqnname. Correct printing of ". Handle T_TXT
2516 correctly. Add handling of T_KEY and T_SIG.
2517 Handle class and type names by using name arrays instead of
2518 explicit `switch'es.
2519 (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
2520 (__dn_count_labels, __p_secstodate): New functions.
2522 * resolv/resolv.h (__RES): Update version number.
2523 (res_sym): New type.
2524 Add #defines for new functions.
2525 Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
2526 __p_secstodate, dn_count_labels.
2528 * resolv/arpa/nameser.h (__BIND): Update version number.
2529 Add KEYFLAG_* and ALGORITHM_* symbols.
2530 (HEADER): Add `ad' and `cd' flags.
2532 * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
2535 * manual/maint.texi: Document that we use bind-4.9.5.
2538 Mon Aug 12 19:03:22 1996 Thomas Bushnell n/BSG <thomas@psilocin.gnu.ai.mit.edu>
2540 * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
2542 * mach/Makefile (mach/mach_host.uh): Depend on
2543 $(objpfx)/mach-syscalls.mk.
2544 ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
2545 (This fixes a make loop; thanks to Marcus Daniels
2546 <marcus@sysc.pdx.edu> for the patch.)
2548 Mon Aug 12 16:41:52 1996 Thomas Bushnell n/BSG <thomas@gnu.ai.mit.edu>
2550 * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
2551 buffer is any longer than the amount necessary to hold the
2552 filename; the Hurd getcwd uses the *entire* contents of the
2553 buffer, however long it is specified to be.
2555 Mon Aug 12 04:33:09 1996 Ulrich Drepper <drepper@cygnus.com>
2557 * nss/nsswitch.c (__nss_database_lookup): Always release locks
2558 before returning. Reported by Miles Bader.
2560 Mon Aug 12 03:31:58 1996 Ulrich Drepper <drepper@cygnus.com>
2562 * nss/nsswitch.c (__nss_configure_lookup): New function.
2563 Allows to specify services.
2564 * nss/XXX-lookup.h: Rename database variable and make global.
2565 * nss/databases.def: New file. Real names of all databases.
2567 * nss/nss.h: New file. Contains declaration useful for users
2568 and service developers.
2569 * nss/nsswitch.h: Move some declarations to nss/nss.h.
2570 * nss.h: New file. Wrapper around nss/nss.h.
2572 * nss/Makefile (headers): Add nss.h.
2573 (distributes): Add databases.def.
2575 Sun Aug 11 16:19:42 1996 Ulrich Drepper <drepper@cygnus.com>
2577 Help the poor people with fast machines by making sure only
2578 one `ar' commands works on the library.
2579 * autolock.sh: New file. Written by Tom Tromey.
2580 * Makerules (do-ar): Call autolock.sh shell script instead of
2581 directly using `ar'.
2582 * config.make.in: Make configuration variable AUTOLOCK which
2583 gets initialized by configure.
2584 * configure.in: Define variable AUTOLOCK to point to autolock.sh
2585 script and mark it to substitute.
2587 * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
2589 * sysdeps/generic/sbrk.c (__sbrk): Get kernel brk address
2590 always only if in static libc or if statically linked program
2593 * sysdeps/generic/sbrk.c (__sbrk): Get kernel brk address
2594 always only if in static libc or if statically linked program
2597 Sun Aug 11 01:12:38 1996 Richard Henderson <rth@tamu.edu>
2599 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
2600 startup by moving Icache flush from here ...
2601 (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
2602 (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
2604 * sysdeps/alpha/divrem.h: Update comment to reflect the actual
2605 calling conventions. The code is already correct.
2607 Sun Aug 11 01:06:42 1996 Richard Henderson <rth@tamu.edu>
2609 * string/Makefile: Compile tester with -fno-builtin as we want to
2610 test our implementations, not gcc's.
2612 Sat Aug 10 13:17:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
2614 * shadow.h: New file.
2616 * sysdeps/unix/sysv/linux/netinet/in.h: Move
2617 __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
2620 * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
2621 g++ 2.7.2 (and earlier) has no transparent unions support.
2623 Fri Aug 9 18:50:06 1996 David Mosberger-Tang <davidm@azstarnet.com>
2625 * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
2626 function to determine the base address of sparse bus memory.
2627 (APECS_*): Rename to CIA_*.
2628 (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
2629 (platform): Add sparse_bus_memory_base member and initialize.
2630 (sparse_bus_memory_base): New variable.
2632 Tue Aug 6 10:23:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
2634 * sysdeps/posix/ttyname_r.c (ttyname_r),
2635 sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
2636 !__isatty(fd) (POSIX.1 says so.)
2638 * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
2639 This is not a gross hack, after all---for compatibility,
2640 getlogin() really should check fd 0 only and not try to base its
2641 operation on the controlling tty.
2643 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
2645 * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
2646 change utmp_data from static to auto.
2648 Sun Aug 11 02:56:08 1996 Ulrich Drepper <drepper@cygnus.com>
2650 * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
2651 Reported by David Mosberger-Tang.
2653 Sat Aug 10 02:05:28 1996 Richard Henderson <richard@twiddle.tamu.edu>
2655 * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
2656 alias to `__isnanl'.
2658 Fri Aug 9 17:38:58 1996 Ulrich Drepper <drepper@cygnus.com>
2660 * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
2661 get `struct timeval'.
2662 * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
2663 * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
2664 * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
2665 * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
2666 * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
2667 * sysdeps/unix/sysv/linux/direntry.h: Complete types in
2669 * io/fts.h: Include <sys/types.h> to get dev_t.
2670 Reported by Matthias Urlichs.
2672 * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
2673 _IO_file_flags. It's the same as _flags.
2674 Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
2676 Wed Aug 7 19:38:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2678 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
2680 Thu Aug 8 16:17:38 1996 Ulrich Drepper <drepper@cygnus.com>
2682 * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
2683 * pwd/getpwent_r.c: Likewise.
2684 * pwd/getpwnam.c: Likewise.
2685 * pwd/getpwnam_r.c: Likewise.
2686 * pwd/getpwuid.c: Likewise.
2687 * pwd/getpwuid_r.c: Likewise.
2689 * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
2690 * grp/getgrent_r.c: Likewise.
2691 * grp/getgrgid.c: Likewise.
2692 * grp/getgrgid_r.c: Likewise.
2693 * grp/getgrnam.c: Likewise.
2695 * pwd/fgetpwent_r.c: New file. Reentrant version of fgetpwent.
2696 * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
2697 * pwd/Makefile (routines): Add fgetpwent_r.
2698 * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
2700 * grp/fgetgrent_r.c: New file. Reentrant version of fgetgrent.
2701 * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
2702 * grp/Makefile (routines): Add fgetgrent_r.
2703 * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
2705 Implement shadow password lookup functions. This is no complete
2706 shadow password suite.
2707 * shadow/Makefile: New file.
2708 * shadow/fgetspent.c: New file.
2709 * shadow/fgetspent_r.c: New file.
2710 * shadow/getspent.c: New file.
2711 * shadow/getspent_r.c: New file.
2712 * shadow/getspnam.c: New file.
2713 * shadow/getspnam_r.c: New file.
2714 * shadow/putspent.c: New file.
2715 * shadow/sgetspent.c: New file.
2716 * shadow/sgetspent_r.c: New file.
2717 * shadow/shadow.h: New file.
2718 * shadow/spwd-lookup.c: New file.
2719 * shadow/nss_files/files-spwd.c: New file.
2721 Thu Aug 8 13:33:45 1996 Ulrich Drepper <drepper@cygnus.com>
2723 * sysdeps/unix/sysv/linux/ftime.c: New file. Available system
2724 call is only a stub.
2725 Reported by Matthias Urlichs.
2727 * Makeconfig [!default_cflags]: Change default value from `-g'
2730 * configure.in: Recognize i686.
2731 * sysdeps/i386/i686/Implies: Default on i586 optimized code.
2733 Thu Aug 8 12:40:20 1996 Matthias Urlichs <smurf@smurf.noris.de>
2735 * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
2736 value of CFLAGS-.o, not CFLAGS-o.
2738 * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
2739 pointer to ourself. Otherwise `gcc -O3' optimized init away.
2741 Thu Aug 8 01:41:43 1996 Ulrich Drepper <drepper@cygnus.com>
2743 * elf/Makefile: Undo change of Tue Aug 6 14:27:11 1996.
2744 * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
2746 Thu Aug 8 01:15:59 1996 Ulrich Drepper <drepper@cygnus.com>
2748 * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
2749 to 0x137f to allow long double operations.
2751 Sun Aug 4 13:12:05 1996 Richard Henderson <rth@tamu.edu>
2755 * nss/nsswitch.c (_res): Remove redundant variable definition.
2756 The real one is in resolve/res_init.c, and having both prevents
2757 using -fno-common when building the shared library.
2758 * sunrpc/rpc_prot.c (_null_auth): Same. Original is in rpc_common.c.
2760 * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
2761 a .bss object not a COMMON symbol.
2763 * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
2764 $gp before referencing __sigsetjmp symbol. Retain LITUSE for same.
2768 * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
2769 main loop for better dual-issue on EV5. Rearrange binary search to
2770 pipeline better and trim one instruction.
2774 * time/localtime.c (localtime_r): Move lock declaration back next to
2775 the comment where it was before the 960724 change.
2777 * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
2778 The second word is supposed to be the hardware manufacturer.
2780 * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
2781 * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
2783 * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
2785 * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
2786 sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
2787 Same cleanups as with EV4 GMP stuff.
2789 Tue Jul 25 03:30:56 1996 Richard Henderson <rth@tamu.edu>
2791 * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
2792 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
2793 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
2795 Sun Aug 4 00:12:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
2797 * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
2800 * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
2802 Sat Aug 3 16:20:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
2804 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
2807 * socket/sys/socket.h (send, __send, sendto): Declare buffer
2810 * string/tester.c (main): Test stpncpy.
2812 * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
2813 segfault when called with an N that is not a multiple of four and
2816 * misc/syslog.c (LogType): New variable.
2817 (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
2818 try again with SOCK_STREAM (the Linux syslogd uses a socket of the
2820 (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
2821 terminator as a record-delimiter. If __send(LogFile) fails,
2822 call closelog() so logfile gets re-opened next time.
2824 Wed Aug 7 15:15:14 1996 Ulrich Drepper <drepper@cygnus.com>
2826 * elf/dl-open (_dl_open): Add cast to avoid warning.
2828 * manual/memory.texi: Improve some examples to give readers better
2829 advice: Use `stpcpy' instead of `strcat' if possible.
2830 * manual/string.texi: Document `strtok_r' and `strtok'.
2832 * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
2834 [$(cross-compiling)=no]: Change test before making librpcsvc
2835 to this from $(cross-compile).
2836 Reported by Andreas Schwab.
2838 Tue Aug 6 14:27:11 1996 Ulrich Drepper <drepper@cygnus.com>
2840 * elf/Makefile (routines): Move dl-sysdep to here...
2841 (rtld-routines): ...from here. This should make static linking
2844 * locale/setlocale.c: Add local variable `lock' and add code to
2845 `setlocale' to avoid simultaneous changing of global data.
2847 * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
2848 * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
2849 `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
2850 of unprotected names.
2852 Tue Aug 6 01:13:56 1996 Ulrich Drepper <drepper@cygnus.com>
2854 Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
2855 This requires to rename several functions to use __ protected
2857 * dirent/dirent.h: Add prototypes of __opendir, __closedir,
2859 * sysdeps/mach/hurd/closedir.c: Prepend function name with __
2860 and make old name a weak alias.
2861 * sysdeps/mach/hurd/getrlimit.c: Likewise.
2862 * sysdeps/mach/hurd/opendir.c: Likewise.
2863 * sysdeps/mach/hurd/readdir.c: Likewise.
2864 * sysdeps/stub/closedir.c: Likewise.
2865 * sysdeps/stub/opendir.c: Likewise.
2866 * sysdeps/stub/readdir.c: Likewise.
2867 * sysdeps/unix/closedir.c: Likewise.
2868 * sysdeps/unix/opendir.c: Likewise.
2869 * sysdeps/unix/readdir.c: Likewise.
2871 * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
2873 * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
2874 `__closedir' instead of unprotected names.
2876 * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
2877 instead of `isatty' since later is not part of ISO C.
2878 * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
2879 `open' since later is not part of ISO C.
2881 * login/endutent.c (endutent): Call `__endutent_r', not
2883 * login/endutent_r.c: Rename defined function to `__endutent_r',
2884 make `endutent_r' weak alias.
2885 * login/getutent.c (getutent): Call `__getutent_r', not
2887 * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
2888 * login/getutid_r.c: Rename defined function to `__getutent_r',
2889 make `getutent_r' weak alias.
2890 * login/getutline.c (getutline): Call `__getutline_r', not
2892 * login/getutline_r.c: Rename defined function to `__getutline_r',
2893 make `getutline_r' weak alias.
2894 * login/pututline_r.c: Rename defined function to `__pututline_r',
2895 make `pututline_r' weak alias.
2896 * login/setutent.c (setutent): Call `__setutline_r', not
2898 * login/setutent_r.c: Rename defined function to `__setutline_r',
2899 make `setutline_r' weak alias.
2900 Rename `utmpname' to `__utmpname' and make former weak alias.
2901 (__utmpname): Call `__strdup', not `strdup'.
2902 * login/utmp.h: Add prototypes for name space clean reentrant
2904 * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
2905 and `__endutent_r' instead of unprotected names.
2907 * math/math.h: Add prototype for `__matherr'.
2908 * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
2911 * nss/getXXbyYY.c: Call __ protected reentrant function.
2912 * nss/getXXent.c: Likewise.
2913 * nss/getXXbyYY_r.c: Define `get*' function with __ protected
2914 name. Make usual name a weak alias.
2915 * nss/getXXent_r.c: Likewise.
2917 * posix/unistd.h: Add prototype for `__ttyname_r'.
2918 * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
2919 and make `ttyname_r' a weak alias.
2921 * resource/sys/resource.h: Add prototype for `__getrlimit'.
2922 * sysdeps/stub/getrlimit.c: Prepend function name with __
2923 and make old name a weak alias.
2924 * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
2925 and make `getrlimit' weak alias.
2927 * libc/stdio/stdio.h: Add prototype for `__vscanf'.
2928 * libc/stdio/vscanf.c: De-ANSI-fy.
2929 Rename function to `__vscanf' and make `vscanf' a weak alias.
2930 * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
2933 * stdio-common/reg-printf.c: De-ANSI-fy.
2934 Rename function to `__register_printf_function' and make
2935 `register_printf_function' weak alias.
2937 * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
2940 * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
2941 * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
2942 * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
2943 * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
2944 * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
2946 * wcsmbs/mbsrtowcs.c: Likewise.
2947 * wcsmbs/wcrtomb.c: Likewise.
2948 * wcsmbs/wcsrtombs.c: Likewise.
2949 * wcsmbs/wchar.h: Add prototypes for __ protected versions.
2951 * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
2952 instead of `sigprocmask'.
2955 * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
2956 version getgrent_r, getgrgid_r, and getgrnam_r.
2957 * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
2958 version getpwent_r, getpwuid_r, getpwnam_r and __ protected
2960 * resolv/netdb.h: Complete rewrite. No more BSD ugliness.
2963 * misc/error.c (private_strerror): Translate messages from table,
2966 * io/fcntl.h: Pretty printing.
2967 * misc/fstab.h: Likewise.
2968 * misc/ttyent.h: Likewise.
2969 * resource/sys/resource.h: Likewise.
2970 * string/argz.h: Likewise.
2971 * string/envz.h: Likewise.
2973 Add support for symbols from POSIX.1c (POSIX threads).
2974 * posix/getconf.c: Handle new sysconf symbols.
2975 * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
2976 _POSIX_LOGIN_NAME_MAX with minimal maximal values.
2977 * sysdeps/generic/confname.h: Define new symbols.
2978 * sysdeps/posix/sysconf.c: Handle new symbols.
2979 * sysdeps/stub/sysconf.c: Ditto.
2980 * sysdeps/unix/sysv/linux/sysconf.c: Removed. Generic version
2983 * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
2984 have real prototype.
2986 * sysdeps/generic/resourcebits.h: Add macro definition for
2987 RLIMIT_* values. Some sources test using #ifdef whether specific
2989 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
2990 * sysdeps/unix/sysv/linux/resourcebits.h: Removed. We need
2991 separate files for the architectures.
2992 * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
2993 * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
2994 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
2995 * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
2997 * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
2998 and only default on `OPEN_MAX'.
2999 * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed. Default is already
3002 * time/Makefile (routines): Add ctime_r.
3003 * time/asctime.c: Add implementation of `asctime_r'. Make
3004 `asctime' implementation based on reentrant version.
3005 * time/ctime_r.c: New file.
3006 * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
3009 Sat Aug 3 18:41:36 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3011 * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
3012 (_nl_C_LC_CTYPE): Fix ordering.
3013 * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
3016 Sat Aug 3 12:31:06 1996 Richard Henderson <rth@tamu.edu>
3018 * csu/initfini.c: Discover the maximum alignment generated by the
3019 compiler when emitting a function.
3020 (_init): Make sure the end of the crti fragment is aligned.
3023 Fri Aug 2 03:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
3025 * initfini.c: (__libc_is_static): New variable. Will be
3026 initialized in init-first.c. Some actions in the libc work
3027 different when libc is static or dynamic.
3029 * sysdeps/unix/sysv/linux/init-first.c (init): Use
3030 `__libc_is_static' variable to determine whether call to
3031 `personality' and `setfpucw' is necessary. When done set variable
3032 to +-1 depending on library type.
3034 * locale/setlocale.c (setlocale): Use global variable
3035 `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
3036 determine whether it's a SET[UG]ID program.
3038 Fri Aug 2 14:40:22 1996 Roland McGrath <roland@fast.cs.utah.edu>
3040 * Version 1.93 test release.
3042 * manual/Makefile: Use -include for chapters-incl too.
3044 * Makeconfig (+link): Add back start.o, mistakenly removed in last
3047 Fri Aug 2 01:04:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3049 * nss/Makefile (generated): Add db-*.c.
3051 * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
3052 using #include_next.
3054 * configure.in (--enable-add-ons): Quote m4 macro args.
3056 * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
3058 Thu Aug 1 14:40:03 1996 Roland McGrath <roland@fast.cs.utah.edu>
3060 * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
3062 * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
3064 * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
3067 * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
3068 warning when inline function is elided.
3069 * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
3070 (elf_machine_runtime_setup): Likewise.
3071 * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
3072 * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
3073 (elf_machine_load_address): Likewise.
3075 * catgets/gencat.c: Include <locale.h>.
3077 * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
3079 * login/logwtmp.c (logwtmp): Call time, not __time.
3081 * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
3082 * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
3083 * login/logwtmp.c (logwtmp): Likewise.
3085 * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
3086 comparing ioctl macro values.
3088 * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
3090 * manual/Makefile: Use -include for chapters to suppress warning.
3092 * sysdeps/stub/socket.c: Fix type of TYPE arg.
3093 * sysdeps/stub/socketpair.c: Likewise.
3095 * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
3097 * sysdeps/generic/sysdep.h: New file, broken out of ...
3098 * sysdeps/unix/sysdep.h: ... here.
3099 (C_LABEL): Moved out.
3101 * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
3102 stick to sed. Do `exit 0' at end because while returns nonzero.
3104 * sysdeps/i386/sysdep.h: New file, broken out of ...
3105 * sysdeps/unix/i386/sysdep.h: ... here. Generic asm macros moved out.
3107 * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
3108 They are defined unconditionally in libio/stdio.h.
3110 * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
3111 * elf/dl-cache.c: Likewise.
3113 Mon Jul 29 19:20:05 1996 Ulrich Drepper <drepper@cygnus.com>
3115 * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
3116 (sysdep_headers): Add sys/sysmacros.h.
3117 * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
3119 Wed Jul 31 14:21:36 1996 Ulrich Drepper <drepper@cygnus.com>
3121 * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
3122 tcgetattr. We have weak aliases now.
3123 * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
3124 "optimizations" for random functions.
3126 Mon Jul 29 20:33:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3128 * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
3129 htons) [__BIG_ENDIAN]: #undef them before defining to avoid
3130 redefinition warning.
3132 Mon Jul 29 20:28:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3134 * time/time.h: Don't optimize tzset() to __tzset() which bypasses
3137 Tue Jul 30 15:14:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3139 * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
3142 Tue Jul 30 02:48:28 1996 Ulrich Drepper <drepper@cygnus.com>
3144 * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
3146 Reported by Richard Henderson <rth@tamu.edu>.
3148 Tue Jul 30 15:04:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3150 * locale/programs/ld-collate.c (collate_output): Fix typo reported by
3153 Tue Jul 30 13:23:13 1996 Ulrich Drepper <drepper@cygnus.com>
3155 * locale/setlocale.c (setlocale): Don't try to free C locale
3157 Reported by Matthias Urlichs.
3159 Tue Jul 30 14:35:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
3161 * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
3162 (open_file): New function, contents mostly from __open.
3163 (_dl_sysdep_read_whole_file): New function.
3165 Sat Jul 27 11:23:59 1996 Miles Bader <miles@gnu.ai.mit.edu>
3167 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
3168 `..' dots in sed search string.
3170 Mon Jul 29 01:27:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3172 * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
3175 Sun Jul 28 23:46:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3177 * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
3178 in those directories.
3179 * config.make.in (add-ons): New varaible, set from @subdirs@.
3180 * Makefile (subdirs): Added $(add-ons) at the end.
3182 * time/strftime.c (strftime: do_number): Initialize PRINTED to
3183 MAXDIGITS in case P is null and so sprintf is never actually called.
3185 Mon Jul 29 02:46:23 1996 Ulrich Drepper <drepper@cygnus.com>
3187 Add support for the to-be-written internationalized regexp.
3188 This code must be able to use collation symbols and collation
3190 * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
3191 _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
3192 New global variables for collation classes.
3193 * locale/categories.def: Add new descriptions for collation symbols
3194 and collation classes.
3195 * locale/langinfo.h: Add constants for collation symbols and
3197 * locale/lc-collate.c: Add new global variables for collation symbols
3198 and collation classes.
3199 (_nl_postload_collate): Initialize new variables.
3200 * locale/programs/ld-collate.c: Add code to emit tables for
3201 collation symbols and collation classes.
3202 * locale/programs/locales.h: Change prototype for `collate_output'.
3203 * locale/programs/locfile.c (write_all_categories): Call
3204 `collate_output' with new argument.
3205 * locale/localeinfo.h: Add declaration for new global vars.
3206 (union locale_data_value): New member wstr for `wchar_t' strings.
3207 * locale/programs/locale-spec.c: Handle `collate-classes'
3208 keyword and print information about available collation classes.
3209 * locale/strlen-hash.h: New file. Simple hashing function which
3210 takes a string with known length.
3211 * locale/Makefile (distribute): Add strlen-hash.h.
3212 (locale-modules): New var. Additional files for `locale' program.
3214 * locale/C-ctype.c: Rewrite to avoid using string for giving values
3215 which are of type `u_int32_t'.
3216 Correct entry for EOF in toupper and tolower tables.
3218 * locale/loadlocale.c (_nl_load_locale): Add cast to prevent
3221 * locale/programs/ld-ctype.c (ctype_output): Add code to make
3222 sure that all tables in binary file are word-aligned.
3224 * locale/programs/locfile.c (write_locale_data): Correct handling
3225 of LC_MESSAGES locale. Create directory if necessary.
3227 * locale/setlocale.c (setlocale): Add cast to avoid warning.
3229 * string/string.h: Add prototype for `__strndup'.
3231 Wed Jul 24 19:10:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3233 * wcsmbs/mbrtowc.c: Remove unused variable.
3235 Sun Jul 28 22:40:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3237 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
3238 2.0.10; some problems were reported with an earlier version, and this
3239 one is known to work.
3241 * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
3242 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3244 Sat Jul 27 13:02:09 1996 Ulrich Drepper <drepper@cygnus.com>
3246 * elf/rtld.c (dl_main): Ignore arguments when environment variable
3247 LD_TRACE_LOADED_OBJECTS is set.
3249 Sun Jul 28 19:42:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3251 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
3252 __libc_enable_secure instead of _dl_secure.
3253 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
3254 * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
3256 * elf/Makefile (routines): Add enbl-secure.
3257 (elide-routines.so): Here too.
3258 * sysdeps/generic/enbl-secure.c: New file.
3259 * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
3260 * elf/dl-support.c (_dl_secure): Variable removed.
3261 * elf/rtld.c: Likewise. Replace all uses with __libc_enable_secure.
3263 Sun Jul 28 19:26:40 1996 David S. Miller <dm@neteng.engr.sgi.com>
3265 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3266 Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
3267 compiler doesn't elide it.
3268 (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
3270 Sat Jul 27 02:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3272 * elf/rtld.c (dl_main): Take new option --verify when run directly.
3273 In verify mode, exit with status zero iff the argument object's
3274 PT_INTERP matches argv[0].
3275 * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
3276 exits with zero status. This makes `ldd' secure again.
3278 Fri Jul 26 22:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
3280 * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
3281 environment variable handling. This makes the dynamic linker
3282 only print loaded libraries and quit.
3284 * elf/ldd.sh.in: Don't use `rtld --list' but instead
3285 LD_TRACE_LOADED_OBJECTS environment variable to print needed
3288 Sat Jul 27 02:03:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3290 * db/makedb.c (main): Print version on stdout, not stderr. Don't exit
3291 after printing version until after doing usage for --help.
3292 (long_options, main, usage): Rename -l/--lowercase option to
3293 -f/--fold-case (-f matches sort).
3295 Sat Jul 27 04:32:31 1996 Ulrich Drepper <drepper@cygnus.com>
3297 * db/makedb.c: New file. Implement program to create simple <db.h>
3298 database from textual input. This will be used for nss_db.
3300 Sat Jul 27 01:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3302 * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
3303 * sunrpc/rpc/pmap_clnt.h: Likewise.
3304 * sunrpc/rpc/auth.h: Likewise.
3305 * sunrpc/rpc/pmap_rmt.h: Likewise.
3306 * sunrpc/rpc/rpc_msg.h: Likewise.
3308 Sat Jul 27 04:37:34 1996 Ulrich Drepper <drepper@cygnus.com>
3310 * string/string.h (strndupa): Change to use return value of
3311 `memcpy' for more performance.
3312 * string/strndup.c: Likewise.
3314 * string/string.h (strdupa): Don't call __builtin_alloca in argument.
3315 This might lead to problems.
3316 (strndupa): Likewise.
3318 Fri Jul 26 15:24:25 1996 Ulrich Drepper <drepper@cygnus.com>
3320 * sunrpc/rpc/auth.h: Add protection against multiple inclusion
3321 and change K&R prototypes to ANSI prototypes.
3322 * sunrpc/rpc/auth_unix.h: Ditto.
3323 * sunrpc/rpc/clnt.h: Ditto.
3324 * sunrpc/rpc/pmap_clnt.h: Ditto.
3325 * sunrpc/rpc/pmap_prot.h: Ditto.
3326 * sunrpc/rpc/pmap_rmt.h: Ditto.
3327 * sunrpc/rpc/rpc_msg.h: Ditto.
3328 * sunrpc/rpc/svc.h: Ditto.
3329 * sunrpc/rpc/svc_auth.h: Ditto.
3330 * sunrpc/rpc/xdr.h: Ditto.
3332 Fri Jul 26 20:39:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3334 * ctype/test_ctype.c: Test EOF too.
3336 Fri Jul 26 18:06:58 1996 Ulrich Drepper <drepper@cygnus.com>
3338 * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
3339 * sunrpc/rpc/auth_unix.h: Likewise.
3340 * sunrpc/rpc/clnt.h: Likewise.
3341 * sunrpc/rpc/netdb.h: Likewise.
3342 * sunrpc/rpc/pmap_clnt.h: Likewise.
3343 * sunrpc/rpc/pmap_prot.h: Likewise.
3344 * sunrpc/rpc/rpc_msg.h: Likewise.
3345 * sunrpc/rpc/svc.h: Likewise.
3346 * sunrpc/rpc/svc_auth.h: Likewise.
3347 * sunrpc/rpc/xdr.h: Likewise.
3349 * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
3351 * sunrpc/pmap_rmt.c: ...here.
3353 Fri Jul 26 16:10:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
3355 * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
3357 * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
3360 Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3362 * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
3363 <kkojima@info.kanagawa-u.ac.jp>.
3365 Fri Jul 26 04:41:28 1996 Ulrich Drepper <drepper@cygnus.com>
3367 * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
3368 defined, not __OPTIMIZED.
3369 (_nl_msg_cat_cntr): Move declaration outside macro definition
3370 to prevent "nested extern" warning.
3371 (dcgettext): Rename local variable `result' to `__result'.
3373 Thu Jul 25 22:46:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3375 * locale/programs/localedef.c (__progname): Remove decl.
3376 (main): Use program_invocation_short_name instead of __progname.
3377 (usage): Use program_invocation_name instead of __progname.
3379 Fri Jul 26 03:46:08 1996 Ulrich Drepper <drepper@cygnus.com>
3381 * catgets/gencat.c: Use "libc" instead of PACKAGE.
3382 * locale/localedef.c: Ditto.
3383 * locale/locale.c: Ditto.
3385 * locale/findlocale.c (_nl_find_locale): Little optimization.
3386 Use new function `strndup'.
3388 * locale/loadlocale.c: Little optimization. Use constant value
3389 from `_nl_category_num_items' instead of byte-order dependend
3392 * locale/programs/ld-time.c (time_add): Correct string constant.
3394 * locale/programs/locale-spec.c: New file.
3395 * locale/programs/locale.c: Call `locale_special' function if
3396 no other field matches.
3398 * locale/programs/localedef.c: No need to define `program_name'.
3399 Use global variable `__progname'.
3401 * locale/programs/locfile.c (write_locale_data): Always write
3402 LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file. This is
3403 necessary since message catalogs are also installed in the
3404 LC_MESSAGES/ directory.
3406 * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
3407 function instead of writing single bytes.
3408 (encode_char): Also handle little endian.
3410 * locale/setlocale.c (new_composite_name): Little optimization.
3411 Use return value of `memcpy'.
3413 * misc/ttyent.h: Pretty print prototypes, add missing parameter
3414 names, prepend parameter names with __ and use `__const' instead
3416 * posix/unistd.h: Ditto.
3417 * stdlib/stdlib.h: Ditto.
3418 * string/string.h: Ditto.
3420 * posix/getconf.c: De-ASNI-fy. Recognize POSIX.2 constant names.
3421 Use `error' function instead of doing it by hand.
3422 * sysdeps/posix/sysconf.c: De-ANSI-fy.
3423 Handle _SC_COLL_WEIGHTS_MAX.
3424 * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
3425 _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
3426 since these do depend on the platform.
3427 Add POSIX.4 symbols.
3429 * posix/posix2_lim.h: Add missing definition of
3430 _POSIX2_COLL_WEIGHTS_MAX.
3431 Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
3432 to high values since we have no fixed limit.
3434 * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
3435 _SC_PAGESIZE for buggy systems (= HP UX) out there.
3437 * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
3438 * wcsmbs/mbsnrtowcs.c: New file. Non-standard implementation.
3439 * wcsmbs/wcsnrtombs.c: Ditto.
3440 * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
3443 Thu Jul 25 00:25:54 Richard Henderson <rth@tamu.edu>
3445 * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
3447 * nss/getXXent_r.c: Likewise.
3448 * nss/nsswitch.c: Likewise.
3449 * nss/nss_files/files-XXX.c: Likewise.
3450 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
3451 * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
3452 * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
3454 Thu Jul 25 00:53:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3456 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
3457 macro, now put the needed Linux version just once, here; update to
3458 needing linux-2.0.3 headers.
3459 (libc_cv_linuxVER): New macro derived from that.
3460 (kernel header check): Use those macros and some m4 magic to replace
3461 hard-coded `201' and `2.0.1' in several places.
3463 * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
3465 Wed Jul 24 17:02:30 1996 Ulrich Drepper <drepper@cygnus.com>
3467 * time/localtime.c: Move lock variable declaration to end of
3468 variable declarations since if is a dummy macro the ; at the
3469 end terminates the variable section of the function.
3471 * time/tzset.c: Undefine `tzset' before function declaration.
3472 Use `weak_function' macro instead of `weak_symbol'.
3474 Wed Jul 24 18:57:33 1996 Ulrich Drepper <drepper@cygnus.com>
3476 * stdlib/strtouq.c: Additional weak alias is `strtoull', not
3479 Wed Jul 24 18:26:23 1996 Ulrich Drepper <drepper@cygnus.com>
3481 * locale/C-ctype.c: Increment number of fields after change
3482 from Wed Jun 19 03:24:58 1996.
3484 Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3486 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
3487 ($(common-objpfx)libc.so): Move deps into that, use it.
3488 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
3489 $(rpcuserlibs:.so=_pic.a).
3490 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
3493 Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3495 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
3496 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
3498 Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
3500 * locale/iso-4217.def: Add India to comment for symbol "INR ".
3501 Reported by Raja R Harinath <harinath@cs.umn.edu>.
3503 Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3505 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
3508 Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3510 * time/tzset.c: Include <libc-lock.h>.
3511 (__tzset_lock): New lock variable.
3512 (tzset): New function (weak defn), no longer weak alias for __tzset.
3513 Call __tzset while holding __tzset_lock.
3514 * time/localtime.c: Include <libc-lock.h>.
3515 (__localtime_r): Hold __tzset_lock while doing the work.
3517 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
3518 from [!HAVE_GNU_LD] to [!_LIBC].
3519 [_LIBC]: Include <libc-lock.h> and define a lock.
3520 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
3521 (setenv, unsetenv): Use them.
3523 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
3525 * locale/programs/locfile.c (write_locale_data): Deal with missing
3528 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
3529 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
3531 Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3533 Win32 hacks from <Rob_Tulloh@tivoli.com>.
3534 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
3535 use void * for my_realloc; include <malloc.h> for alloca.
3536 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
3537 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
3538 * posix/glob.h: Likewise.
3540 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
3542 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
3543 call __io_select unless there's only a single descriptor, as each
3544 descriptor now has its own reply port.
3545 If there is only a single descriptor, just use its reply port for
3546 everything and don't bother creating the port set.
3548 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
3549 <unistd.h>: New include.
3551 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
3554 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3556 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
3557 from the USA any software that even makes it easy to drop in an
3558 encryption module of foreign origin.
3559 * Makerules (cryptobjdir): Variable removed.
3560 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
3561 * Makefile (subdirs): Remove crypt.
3563 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
3565 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
3566 operator to yesexpr and noexpr string.
3568 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
3570 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
3571 old code would have failed on a big-endian 64-bit architecture).
3572 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
3574 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
3575 (xdr_u_long): Use switch instead of chain of if-statements.
3576 Remove gratitous parentheses around return expressions.
3577 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
3579 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
3581 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
3584 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3586 * dlfcn.h, db.h: New wrapper headers.
3588 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
3589 for `struct stat;' forward decl.
3591 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
3593 * locale/iso-4217.def: Add some more standardized currency
3596 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3598 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
3600 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
3602 * Rules (dummy.o, empty.o): Targets removed.
3603 (dummy.c, empty.c): New targets replace them.
3605 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3607 * crypt/Makefile (lib-noranlib): Depend on
3608 $(objpfx)libcrypt.so$(libcrypt.so-version).
3611 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
3613 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
3614 check. mib's clueless hacking broke it.
3616 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3618 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
3620 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
3622 * misc/sys/ustat.h: New file.
3623 * misc/ustat.h: Ditto.
3624 * sysdeps/generic/ustatbits.h: Ditto.
3625 * sysdeps/stub/ustat.c: Ditto.
3626 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
3627 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
3629 (routines): Mention ustat.
3631 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
3632 * sysdeps/alpha/elf/start.S: here.
3634 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
3635 alphabetically correct place. Mention ustat.
3637 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
3638 common symbol (makes errno accessible from gdb).
3640 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
3643 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
3644 record always gets appended at end of file (wtmp is a log file,
3645 after all). Set ut_type to DEAD_PROCESS if name is empty.
3647 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
3648 separate loop from search for UT_ID. Fix code so it is in
3649 sync with Unix man page.
3651 * login/getutline_r.c (getutline_r): Stop searching only if
3652 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
3654 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
3656 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
3657 avoid duplicate declarations.
3659 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
3661 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
3662 and alpha-gnu-linuxecoff targets.
3664 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
3666 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
3668 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
3670 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
3673 * resolv/res_comp.c (res_hnok): Use empty statement in place
3674 of NULL (which generates a "useless expression" warning in
3677 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
3679 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
3680 with $(..) in output.
3682 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3684 * elf/Makefile (dl-routines): Add dl-cache.
3685 * elf/dl-cache.c: New file.
3686 * elf/dl-load.c (_dl_map_object): Check cache before default path.
3688 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
3690 * stdio-common/vfscanf.c: Major change. Now read character
3691 from stream only if needed. Before it was read after the
3692 previous character was used.
3693 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
3695 * stdio-common/tstscanf.c: Change test program so that return
3696 value is != 0 if one test failed.
3698 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3700 * sysdeps/m68k/Makefile (crypt): Variable removed.
3701 * sysdeps/sparc/Makefile: Likewise.
3703 * version.h (VERSION): Update to 1.93.
3705 * Makerules ($(libdir)/libc.so): Depend on
3706 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
3708 * crypt/nocrypt.c: New file.
3709 * Makefile (subdirs): Add crypt.
3710 * crypt/Makefile: New file.
3712 * Makerules (soversions.mk): Move this target, include of it, and
3713 include of version.mk to ...
3714 * Makeconfig: ... here.
3715 (soversions.mk): Depend on Makeconfig instead of Makerules.
3717 * shlib-versions (*-*-*): Set libcrypt=0.
3719 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
3721 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
3722 word extends right up to rmargin.
3724 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
3725 output the wrap margin, set point_col to wmargin.
3726 Use negative point_col to deal with a wmargin of 0.
3727 (line_wrap_point): Return 0 for a negative point_col.
3728 (line_wrap_stream): Make wmargin ssize_t.
3729 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
3731 (line_wrap_stream): Make wmargin ssize_t.
3732 (line_wrap_point): Return 0 for a negative point_col.
3734 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3736 * shlib-versions (*-*-gnu*): Set libc=0.0
3738 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3740 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
3741 sysdeps/i386/dl-machine.h.
3743 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
3745 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
3746 to fiddle __put_limit in conjunction with __linebuf_active.
3748 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3750 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
3751 to the strong name, not the file name.
3753 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3755 * csu/initfini.c: More magic. Detect if .end is produced and put it
3756 in the output iff the compiler does.
3758 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
3759 because that is broken on alpha.
3761 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
3764 * Makerules (make-link): Install the new link with atomic mv -f in
3765 case ln itself requires the library being installed.
3767 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
3769 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
3770 i386/dl-machine.h of 960713.
3772 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
3773 (_dl_sysdep_read_whole_file): Fix result variable declaration.
3775 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3777 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
3780 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
3782 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
3783 with pointer to local variable instead of NULL.
3785 1996-07-15 Paul Eggert <eggert@twinsun.com>
3787 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
3789 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3791 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
3792 that are already added by other means.
3794 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
3795 caller column to get those syscalls added automagically.
3797 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
3799 * login/logout.c (logout): Initialize DATA to a state that will
3800 make setutent_r happy.
3802 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3804 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
3805 instead of setting the DT_DEBUG pointer.
3807 * csu/initfini.c (_init, _fini): Generate .end directives after
3808 standalone prologues and filter them out from epilogues.
3810 * Makeconfig (rtld-installed-name): Set to ld.so.1.
3811 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
3814 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
3816 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
3818 * MakeTAGS (extract): Pass --add-comments=TRANS.
3819 * sysdeps/gnu/errlist.awk: Write comments into the output with the
3820 descriptive paragraphs from the manual preceded by TRANS.
3822 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
3823 (_dl_start): Move RESOLVE defn inside this function and #include
3824 "dynamic-link.h" a second time there.
3825 [RTLD_START]: Move use of this after _dl_start function.
3827 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
3829 * elf/rtld.c: Include <string.h>.
3831 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
3832 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
3833 Conditionalize defns on [RESOLVE].
3834 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
3835 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3836 Instead use RESOLVE macro with same args.
3837 (elf_machine_rel): Conditionalize defn on [RESOLVE].
3838 * elf/dl-reloc.c (RESOLVE): New macro, define before including
3839 "dynamic-link.h". It replaces `resolve' local function.
3840 * elf/dl-runtime.c: Likewise.
3841 * elf/rtld.c: Likewise.
3843 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
3845 * elf/dl-open.c (_dl_open): Force an indirect call for
3846 _dl_relocate_object so there is no chance a PLT fixup will be done
3847 and clobber _dl_global_scope before our call happens.
3849 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
3850 to =t; must operate on top of fp reg stack, not second from top.
3851 Correct input constraint to 0 from t; must be explicit when input and
3852 output are the same register.
3853 (floor): Use __volatile instead of volatile.
3856 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
3859 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3861 * manual/Makefile (lib): New phony target. Depend on stamp files.
3862 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
3864 1996-07-13 Paul Eggert <eggert@twinsun.com>
3866 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
3867 to match Emacs format-time-string specification.
3868 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
3870 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3872 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
3873 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
3874 between MAP and its deps.
3875 * elf/link.h: Fix decl.
3876 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
3877 colon-separated list of names, map those and pass vector of ptrs as
3878 PRELOADS list to _dl_map_object_deps.
3879 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
3880 _dl_map_object_deps with empty preload list.
3881 * elf/dl-open.c (_dl_open): Likewise.
3883 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
3885 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
3886 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
3887 Conditionalize defn on [! MAP_ANON].
3888 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
3890 * elf/rtld.c (dl_main): Likewise.
3891 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
3892 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
3894 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
3896 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
3898 * stdlib/random.c (__random): Declare as int32_t to be in sync
3901 * socket/Makefile (headers): Add socketbits.h.
3903 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
3906 * grp/initgroups.c (initgroups): Add groups that user is a member
3907 of, not the ones he is _not_ a member of.
3909 * nss/nsswitch.c (known_compare): Make known_compare() a static
3910 instead of a local function. The latter are difficult to debug
3911 and slow to execute on certain platforms.
3913 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
3914 place of sizeof (dev). The size of a literal string includes the
3917 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
3919 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
3921 * misc/mntent.c (addmntent): Seek to end of file before writing
3922 entry. Return 1 on error, not -1.
3924 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
3926 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
3929 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
3931 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
3932 shift amount for Jensen must be 5 not 4.
3934 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3936 * socket/sys/socket.h (struct osockaddr): New type.
3938 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
3940 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
3941 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
3942 and `long double' versions can be generated.
3943 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
3944 so that included efgcvt{,_r}.c file generate `long double'
3946 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
3949 * manual/startup.texi: Document new getsubopt function.
3950 * manual/examples/subopt.c: New example program for documenting
3953 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
3955 * stdlib/Makefile (routines): Add getsubopt.
3956 * stdlib/stdlib.h: Add prototype for getsubopt.
3957 * stdlib/getsubopt.c: New file. Implement getsubopt function
3958 to handle suboption parsing.
3960 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3962 * inet/getnetent_r.c: Define NEED_H_ERRNO.
3963 * inet/getnetbynm_r.c: Likewise.
3964 * inet/getnetent.c: Likewise.
3965 * inet/getnetbyad_r.c: Likewise.
3966 * inet/getnetbyad.c: Likewise.
3967 * inet/getnetbynm.c: Likewise.
3969 * sysdeps/generic/pselect.c: Include <sys/time.h>.
3971 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
3974 * math/Makefile (calls): Add s_frexp, s_ldexp.
3975 (routines): Remove them and &f from here.
3977 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
3979 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
3982 * nss/nss_files/files-XXX.c: Comment fix.
3984 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
3986 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
3987 of reentrant function.
3988 (setup): Pass additional argument with function name we are
3990 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
3991 new argument {SET,END,GET}FUNC_NAME_STRING.
3993 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
3994 we return a pointer.
3996 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3998 * nss/nss_files/files-parse.c: Add comment about things to #define.
4000 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
4002 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
4003 terminator char as an error.
4005 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
4007 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
4009 * catgets/gencat.c (write_out): Move code to determine new
4010 best size out of inner loop.
4012 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
4014 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
4015 implementation of frexp() function.
4016 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
4017 implementation of ldexp() function.
4019 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
4022 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
4024 * misc/mntent.c: Include <sys/types.h>.
4025 (endmntent): Return 1 one success, 0 on failure.
4026 (getmntent): Chop newline and ignore empty lines.
4028 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4030 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
4031 differently based on [RTLD_BOOTSTRAP].
4032 (elf_machine_rela): Use it instead of the fn ptr arg directly.
4034 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4036 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
4037 __glob_closedir_hook): Remove decls.
4039 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
4041 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
4042 for send and connect syscalls.
4044 * socket/sys/socket.h: New file, taken from non-sysdep parts of
4045 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
4046 Declare __ names for send and connect.
4047 * sysdeps/generic/socketbits.h: New file.
4048 * sysdeps/unix/sysv/linux/socketbits.h: New file.
4049 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
4050 * sysdeps/generic/sys/socket.h: File removed.
4052 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
4053 * sysdeps/mach/hurd/send.c: Likewise.
4055 * sysdeps/mach/libc-lock.h: New file.
4056 * sysdeps/unix/readdir.c: Do locking.
4057 * sysdeps/unix/seekdir.c: Likewise.
4058 * sysdeps/unix/rewinddir.c: Likewise.
4059 * sysdeps/unix/closedir.c: Likewise.
4060 * sysdeps/unix/bsd/telldir.c: Likewise.
4061 * sysdeps/mach/hurd/seekdir.c: Likewise.
4062 * sysdeps/mach/hurd/readdir.c: Likewise.
4063 * sysdeps/mach/hurd/closedir.c: Likewise.
4064 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
4065 * sysdeps/unix/opendir.c: Likewise.
4066 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
4067 (struct __dirstream): Add lock member using __libc_lock_define.
4068 * sysdeps/unix/dirstream.h: Likewise.
4070 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
4072 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
4074 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
4076 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
4078 * locale/programs/stringtrans.c: Fix typo in copyright.
4080 * stdio-common/printf-prs.c: Add casts to prevent
4081 signed<->unsigned warnings.
4083 * stdio-common/printf-parse.h: Initialize state variable before
4085 * stdio-common/printf-prs.c: Don't initialize state variable here.
4086 * stdio-common/vfprintf.c: Don't initialize state variable.
4087 (vfprintf): While determining length of multibyte string don't
4088 try to be clever in determining characters to use for first
4091 Add real implementation of multibyte<->wide char conversion
4092 functions. The functions always convert between the fixed wide
4093 char format (ISO 10646 in UCS4) and the UTF8 representation of
4094 this character set. Conversion between the currently used
4095 8bit character set and ISO 10646 will not take place. This is
4096 what iconv() is for.
4097 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
4099 Add optimized version of `mbrlen' function.
4100 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
4102 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
4104 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
4105 This is needed in the wchar.h header.
4106 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
4107 encoded character to UCS4.
4108 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
4109 element of `mbstate_t' for initial state.
4110 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
4111 encoded string to UCS4 string.
4112 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
4113 character to UTF8 encoded form.
4114 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
4115 encoded string to UTF8 encoded form.
4117 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4119 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
4120 variable name, so new a libc with new requirements won't fail to
4121 notice an insufficient Linux version.
4123 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
4125 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
4126 instead of 2.0 headers.
4128 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
4130 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
4131 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
4133 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
4134 before using it in lhs of weak_alias.
4136 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
4137 Call __nss_lookup when not setting STARTP.
4138 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
4139 function-calling loop.
4141 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
4143 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
4144 PENDIN, NOFLSH): Undefine these at start if they are already
4145 defined to avoid collision with termbits.h.
4146 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
4147 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
4149 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4151 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
4152 already defined to float, long double. Use those macros for _Mdouble_
4153 defns when including mathcalls.h.
4154 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
4155 -D_Mlong_double_=double.
4157 Add more -lm functions to -lc because ldexp uses them.
4158 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
4159 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
4160 ldexp have both f and l code, and those have f though not l code.
4162 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
4164 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
4165 error is 0. The "placeholder" entries recently added to
4166 errno.texi convert to zero since `???/' is at the front of them.
4167 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
4169 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
4170 __const to conform with unistd.h.
4172 * stdlib/stdlib.h (random): Declare return type to be int32_t.
4174 * string/argz-delete.c (argz_delete): Use memmove instead of
4175 memcpy for possibly overlapping strings.
4177 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4179 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
4180 storage class. GCC gives an error for non-extern data defns with the
4183 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
4185 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
4186 memmove instead of memcpy for possible overlapping strings.
4188 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4190 * libc-symbols.h (weak_function): New macro.
4191 For GCC 2.7+ define as __attribute__ ((weak)).
4192 * elf/dl-minimal.c: Use weak_function as keyword in function defns
4193 instead of weak_symbol (NAME) after the defn.
4194 * stdlib/strtol.c: Likewise.
4195 * stdlib/strtod.c: Likewise.
4196 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4198 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
4199 If this is defined, don't declare _dl_rtld_map as weak, and
4200 don't check for MAP pointing to it. RESOLVE is always null in this
4201 case, so test with #ifdef instead of if.
4203 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
4205 * csu/initfini.c (_init): Likewise.
4206 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
4207 * misc/efgcvt_r.c: Likewise.
4208 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
4209 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4211 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
4212 It was not used in any assembler code.
4213 (weak_symbol_asm): Renamed to weak_extern_asm.
4214 (weak_extern): New macro replaces weak_symbol for weak extern refs;
4215 define to weak_extern_asm for [!ASSEMBLER].
4217 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4219 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
4220 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
4221 define those now as aliases.
4222 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
4223 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
4224 after GCC weak attribute decl.
4226 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
4227 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
4228 (element printer): Check for elt in ALIAS, instead of special case
4231 * io/Makefile (headers): Add sys/vfs.h.
4232 * io/sys/vfs.h: New file.
4234 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
4235 critical section lock before unlinking dying active resources.
4236 The unlock just before return is right (i.e. old code unlocked twice).
4238 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
4240 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
4241 Use memmove instead of memcpy where overlap is possible (not
4242 necessary using current implementation of memcpy, but...).
4243 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
4245 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
4247 * stdio/linewrap.c (lwupdate): New function, mostly was
4248 __line_wrap_update. Use POINT_COL field instead of POINT.
4249 (__line_wrap_output): Use lwupdate.
4250 (__line_wrap_update): New function.
4251 (ensure_unwrapped, ensure_wrapped): New functions.
4252 (line_wrap_set_lmargin, line_wrap_set_rmargin,
4253 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
4255 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
4256 POINT_COL. Add POINT_OFFS field.
4257 (__line_wrap_update): New decl.
4258 (line_wrap_set_lmargin, line_wrap_set_rmargin,
4259 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
4261 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
4263 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
4265 * login/pututline_r.c (pututline_r): Since we assign RESULT from
4266 lseek now, check that it's >= 0, not == 0.
4268 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
4270 * login/login.c (login): Make a copy of *UT, fill in various
4271 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
4274 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
4275 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
4277 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4279 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
4280 signal during critical section doing interruptible RPC, if
4281 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
4282 before thread_resume. If in critical section, pass 0 for SIGNO to
4283 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
4285 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
4287 * sysdeps/unix/sysv/linux/sys/user.h: New file.
4288 * sysdeps/unix/sysv/linux/Dist: Add it.
4289 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
4291 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
4292 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
4293 itself, no need to skip past a NUL.
4295 * nss/nsswitch.h (known_function): Comment fix.
4296 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
4297 directly. Do the lookup and insertion with a single call, and fill in
4298 the tree node afterwards if new.
4299 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
4301 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
4302 (struct timeval): Add bodiless decl for scope.
4304 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
4305 Move struct timespec defn outside [_TIME_H] so it can be got with
4306 #define __need_timespec.
4308 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
4309 for `struct timespec' member names.
4310 (TIMESPEC_TO_TIMEVAL): Likewise.
4312 * nss/Makefile (extra-libs-others): New variable.
4314 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
4315 $(lib) in $(extra-libs-others).
4316 * sunrpc/Makefile (extra-libs-others): New variable.
4317 (librpcsvc-no-lib-dep): Variable removed.
4319 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
4320 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
4322 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
4323 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
4324 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
4325 _dl_rtld_map weak only here.
4327 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
4329 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
4331 * login/utmp.h: Fix typos.
4333 * misc/syslog.c (vsyslog): Use __send instead of send and
4334 __connect instead of connect to avoid name-space collisions (e.g.,
4337 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4339 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
4341 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
4343 * malloc/malloc-size.c (malloc_usable_size): Renamed from
4344 malloc_object_allocation_size.
4345 * malloc/malloc.h: Fix decl.
4347 * sys/select.h: New file, wrapper header.
4349 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
4350 fd_set, associated macros, and select decl.
4352 * sysdeps/posix/isfdtype.c: New file.
4354 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
4356 The latest Japanese proposal for POSIX locales renames the
4357 CHARMAP keyword in locale definition files to CHARCONV.
4358 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
4359 function ctype_is_charmap to ctype_is_charconv.
4360 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
4362 * locale/programs/locfile-token.h: Add definition of token
4364 * locale/programs/locfile.c: Recognize charconv keyword. Rename
4365 lables according to this.
4367 * locale/weight.h (get_weight): Cast constants to prevent
4370 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
4371 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
4374 New stuff described in P1003.1g.
4375 * misc/Makefile (headers): Add sys/select.h.
4376 (routines): Add pselect.
4377 * misc/sys/select.h: New file. Declare select functions and
4378 needed data types and macros.
4379 * sysdeps/generic/pselect.c: New file. Add generic implementation
4380 of pselect() function which uses select().
4382 * posix/getconf.c: Recognize new variables from P1003.1g.
4383 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
4384 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
4385 * posix/unistd.h: Add description of the P1003.1g variables.
4386 * sysdeps/generic/confname.h: Define _SC_* values for new
4388 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
4390 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
4391 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
4393 * sysdeps/stub/sysconf.c (sysconf): Ditto.
4394 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
4395 _POSIX_SELECT since Linux has this.
4397 * socket/Makefile (routines): Add isfdtype.
4398 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
4399 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
4402 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
4404 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4406 * elf/Makefile (LDFLAGS-dl.so): New variable.
4407 (libdl.so): Depend on eval.so.
4408 (distribute): Add eval.c.
4409 * elf/eval.c: New file.
4411 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
4412 in case it wrote fewer than MAXDIGITS chars.
4414 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
4415 newline from flushing full buffer in loop, fix test so no fflush is
4416 done when last byte written exactly fills the buffer.
4418 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
4420 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
4421 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
4423 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
4424 extracting _dl_rtld_map.l_addr.
4426 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
4428 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
4430 * shlib-versions (*-*-*): Set libnss_db=1.
4432 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4434 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
4436 * rpm/template (%build): Use @prefix@ instead of always /usr.
4437 Set up configparms only if @prefix@ is in fact /usr.
4438 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
4440 * elf/Makefile: Add missing endif.
4442 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
4444 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
4445 (DATABASE): Define this instead of DATAFILE.
4446 * nss/nss_files/files-hosts.c: Likewise.
4447 (hostbyname): Use LOOKUP_NAME macro.
4449 * nss/nss_db/db-XXX.c: New file.
4450 * nss/Makefile (services): Add db.
4451 (libnss_db-inhibit-o): New variable.
4452 (libnss_db-routines): New variable.
4453 (distribute): Append db-XXX.c.
4454 (libnss_db.so): Depend on libdb.so and libnss_files.so.
4455 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
4457 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
4459 (DATAFILE): New macro.
4460 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
4462 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
4463 Pass db key args to DB_LOOKUP.
4464 (DATAFILE): Macro removed.
4465 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
4466 * nss/nss_files/files-service.c: Likewise.
4467 * nss/nss_files/files-pwd.c: Likewise.
4468 * nss/nss_files/files-proto.c: Likewise.
4469 * nss/nss_files/files-grp.c: Likewise.
4470 * nss/nss_files/files-ethers.c: Likewise.
4472 * elf/linux-compat.c: File removed.
4473 * elf/Makefile (distribute): Remove linux-compat.c.
4474 (ld-linux.so.1): Remove target and associated variables.
4476 * sunrpc/xdr.c: Remove malloc decl.
4477 * sunrpc/portmap.c: Likewise.
4479 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
4480 casting abort to fn returning bool_t.
4482 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
4483 the parser function.
4484 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
4485 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
4486 * nss/nss_files/files-grp.c: Likewise.
4488 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
4490 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
4492 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
4493 of ld.so so lookups for that soname find it.
4495 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
4496 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
4498 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
4499 define parse_line function.
4500 (parse_line): #define to _nss_files_parse_pwent and
4501 add extern decl for that.
4503 * nss/nss_files/files-XXX.c (internal_getent): Return
4504 NSS_STATUS_TRYAGAIN for ERANGE error.
4506 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
4507 of null, so next round returns null again instead of bombing. Fix
4510 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
4511 Remove ; after `ENTDATA_DECL (data)'.
4512 Truncate line at strpbrk (line, EOLSET "\n").
4513 (ENTDATA_DECL): Put ; at end.
4514 (MIDLINE_COMMENTS): Macro removed.
4515 * nss/nss_files/files-ethers.c: Pass new argument.
4516 * nss/nss_files/files-hosts.c: Likewise.
4517 * nss/nss_files/files-network.c: Likewise.
4518 * nss/nss_files/files-parse.c: Likewise.
4519 * nss/nss_files/files-proto.c: Likewise.
4520 * nss/nss_files/files-rpc.c: Likewise.
4521 * nss/nss_files/files-service.c: Likewise.
4522 * grp/fgetgrent.c: Likewise.
4523 * pwd/fgetpwent.c: Likewise.
4524 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
4525 fgetpwent.c already defines it.
4526 * nss/nss_files/files-grp.c: Likewise.
4528 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
4529 as well as any matching with l_libname. Fix DT_SONAME lookup to use
4530 string table properly.
4532 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
4533 invoked directly, and l_libname from that if PT_INTERP missing.
4534 Set l_name from l_libname only if not set from argv.
4536 * time/europe, time/northamerica: Updated from ADO 96i.
4538 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4540 * stdio-common/tst-ungetc.c: Include unistd.h.
4542 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
4544 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
4546 * hurd/report-wait.c (describe_number): Make I unsigned long.
4548 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
4549 actually found any entry.
4551 * login/pututline_r.c (pututline_r): If not located after any
4552 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
4553 Lock the file before stating.
4555 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4557 * nss/Makefile (databases): Change host to hosts.
4558 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
4560 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
4562 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
4564 * string/string.h (strndupa): Pass missing arg to strnlen.
4566 * inet/getnetbypt_r.c: Renamed to ...
4567 * inet/getnetbyad_r.c: this; fixed function name.
4568 * inet/getnetbypt.c: Renamed to ...
4569 * inet/getnetbyad.c: this; fixed function name.
4571 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4573 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
4576 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
4578 * login/login.c (login): Initialize DATA so that setutent_r will
4579 actually do something.
4581 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
4583 * resolv/res_hconf.c (strndup): Remove function.
4585 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
4586 using ElfW() instead of Elf32_*.
4588 * sysdeps/unix/sysv/linux/alpha/init-first.h,
4589 sysdeps/unix/sysv/linux/m68k/init-first.h,
4590 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
4591 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
4592 init-first.h to make abstract machine dependent parts of
4595 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
4596 error handling. It's safer that way.
4598 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
4599 Fix by Richard Henderson.
4601 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
4602 typo/extraneous whitespace.
4604 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
4605 determine what integer sizes we're dealing with.
4607 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
4609 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
4610 check for signal zero, repair logical sense of test by
4611 parenthesizing correctly.
4613 * hurd/hurdsig.c (_hurd_internal_post_signal): In
4614 check-for-pending signals code, release _hurd_siglock before
4615 jumping to deliver_pending.
4617 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
4619 * configure.in (config_machine): Make ELF the default even for
4620 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
4623 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4625 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
4626 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
4627 member only #ifdef ENTDATA.
4628 (ENTDATA_DECL): New macro.
4629 (LINE_PARSER): Use it for entdata decl.
4630 (parse_list): Find the space for LIST from DATA->linebuffer instead of
4631 from the input LINE, which might not be writable buffer space.
4632 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
4633 [ENTDATA] (parser_stclass): #define to `static inline'.
4634 [!ENDATA] (parser_stclass): #define to empty.
4635 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
4636 function is exported to -lnss_files users.
4638 * string/strndup.c: Add missing arg.
4640 * string/string.h (strndupa): Likewise.
4641 * string/strndup.c (strndup): Always terminate the string.
4643 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4645 * stdio/Makefile (routines): Add vscanf.
4646 * stdio-common/Makefile (routines): Remove vscanf.
4647 * stdio-common/vscanf.c: Move to ...
4648 * stdio/vscanf.c: here.
4650 * rpm/Makefile (headers, install-lib, install-lib.so,
4651 versioned, install-bin, install-sbin, install-data,
4652 install-others): Add $(-VARIABLE).
4654 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4656 * nss/Makefile (databases): New variable.
4657 (routines, libnss_files-routines): Use it.
4658 (subdir-dirs): Compute from $(services).
4660 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
4661 init_module, klogctl): Use EXTRA in the "caller" column so these get
4662 added to unix-extra-syscalls and thus compiled in misc.
4664 * string/Makefile (routines): Add strndup.
4665 * string/strndup.c: New file.
4666 * string/string.h: Declare strndup.
4667 (strndupa): New macro.
4669 * string/string.h: Declare __strdup.
4670 * string/strdup.c: Deansideclized. Define __ name and weak alias.
4672 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
4674 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
4676 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
4678 * grp/initgroups.c (initgroups): De-ansi-fy.
4679 Move declaration of NGROUPS and GROUPS outside #if so that
4680 the code compiles for NGROUPS_MAX != 0.
4682 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
4683 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
4684 ether_ntoa, ether_ntoa_r, and ether_ntoh.
4685 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
4686 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
4687 inet/ether_ntoh.c: New files. Implementation of functions to
4688 handle Ethernet address to host mapping.
4689 * inet/netinet/ether.h: New file. Declare ether_* functions.
4690 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
4692 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
4693 * nss/Makefile (routines): Add ethers-lookup.
4694 (libnss_files-routines): Add files-ethers.
4696 * nss/getXXent_r.c: Don't define set*ent and end*ent function
4699 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
4700 KEEP_STREAM every time called.
4701 (_nss_files_end): Reset KEEP_STREAM here instead.
4702 (internal_getent): If STREAM == NULL try to open instead of
4704 Use cast to prevent warning.
4705 Terminate read line in case the buffer is too small.
4707 * nss/nss_files/files-ethers.c: New file. Implementation of
4708 Ethernet adress<->hostname lookup through files interface.
4710 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
4711 * stdlib/mbtowc.c: Define based on mbrtowc().
4712 * stdlib/wcstombs.c: Define based on wcsrtombs().
4713 * stdlib/wctomb.c: Define based on wcrtomb().
4715 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
4716 unexpected_sizes_in_xdr_u_int.
4718 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
4719 of `struct ether_addr'.
4720 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
4721 declaration of `struct ether_addr'.
4723 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
4724 * wcsmbs/mbsrtowcs.c: Ditto.
4725 * wcsmbs/wcrtomb.c: Ditto.
4726 * wcsmbs/wcsrtombs.c: Ditto.
4728 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
4730 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
4732 * hurd/get-host.c <fcntl.h>: New include.
4733 * hurd/set-host.c <fcntl.h>: New include.
4734 (_hurd_set_host_config): Include NEW in args to dir_link.
4735 Return NWROTE, not NREAD.
4737 * sysdeps/mach/hurd/getcwd.c
4738 (_hurd_canonicalize_directory_name_internal): Don't deallocate
4739 DOTID & DOTDEVID until we're finished with them (we need to keep
4740 them at least until we've fetched the next level of id ports, so
4741 that mach will be able to use the same name if they're the same).
4742 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
4743 jumps to errlose, for those places where such cleanup is needed.
4745 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4747 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
4749 Move DB code into separate -ldb library.
4750 * db/Makefile (extra-libs): New variable, list libdb.
4751 (routines): Renamed to libdb-routines.
4752 * shlib-versions: Add libdb=2.
4754 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
4755 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
4757 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
4758 of strncasecmp. Extend syntax to grok [!foo=bar].
4760 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
4762 * string/string.h: Declare __strncasecmp.
4764 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
4765 (service_alias): Variable removed.
4766 (nss_parse_service_list): New function, broken out of nss_getline.
4767 Remove alias conversion; we will just use symlinks.
4768 (__nss_database_lookup): Take new string arg DEFCONFIG.
4769 If no entry exists, make one with service list parsed from that.
4770 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
4771 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
4772 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
4774 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
4777 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
4779 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
4781 * locale/programs/locale.c (long_options): Short form of
4782 --version option is `-V'.
4783 (main): Recognize `-V' as option, not `-v'.
4784 Call `usage' instead of printing error message for illegal
4786 (usage): Document `-V'.
4788 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
4790 * sysdeps/mach/hurd/getcwd.c
4791 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
4792 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
4794 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4796 * inet/getrpcent.c: Fix macros.
4797 * inet/getrpcent_r.c: Fix macros.
4799 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
4801 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
4803 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
4805 * catgets/gencat.c (write_out): Use %Zu to print variables of type
4807 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
4808 cast it to (unsigned long) to make it work both on 32 and 64
4811 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4813 * locale/Makefile (distribute): Add `programs/' prefix to all
4814 files in that directory.
4816 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
4819 * MakeTAGS (sources, headers): Make them simply expanded variables
4820 so that all-dist is expanded before it is changed.
4822 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4824 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
4825 * Makefile (subdirs): Remove crypt.
4826 * crypt: Directory removed. It will be made an independent library
4829 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
4831 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
4833 * inet/getrpcbynumber.c (BUFLEN): New macro.
4835 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
4837 * Makefile (headers): Add libc-lock.h.
4838 * sysdeps/stub/libc-lock.h: New file.
4840 * inet/getrpcbynumber.c: Remove _r typo.
4842 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
4844 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
4847 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
4848 or doesn't mention DATABASE, use an internal default equivalent to
4849 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
4850 (nss_lookup_function): Call nss_new_service as needed.
4851 (nss_parse_file): Don't bother calling nss_new_service here.
4853 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
4854 * pwd/fgetpwent.c: Likewise.
4856 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
4857 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
4858 * malloc/malloc-size.c: New file.
4859 * malloc/malloc-walk.c: New file.
4861 * malloc/malloc-find.c (malloc_find_object_address): Return null if
4862 PTR is outside the heap.
4864 * elf/dl-load.c (_dl_map_object): If the requested name matches the
4865 soname of a loaded object, use that object.
4867 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4869 * Makefile (subdirs): Add nss.
4871 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
4872 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
4873 * inet/getrpcbynumber_r.c: New file.
4874 * inet/getrpcbynumber.c: New file.
4875 * inet/getrpcbyname.c: New file.
4876 * inet/getrpcbyname_r.c: New file.
4877 * inet/getrpcent_r.c: New file.
4878 * inet/getrpcent.c: New file.
4879 * nss/rpc-lookup.c: New file.
4880 * nss/nss_files/files-rpc.c: New file.
4881 * nss/Makefile (routines): Add rpc-lookup.
4882 (libnss_files-routines): Add files-rpc.
4883 * sunrpc/Makefile (routines): Remove getrpcent.
4884 * sunrpc/getrpcent.c: File removed.
4886 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
4889 * Makeconfig (rpath-link): Add $(nssobjdir).
4890 (nssobjdir): New variable.
4892 * Makerules: Move shared library building before objects rules, so
4893 versions are known before extra-lib.mk gets included.
4894 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
4896 * pwd/getpwuid.c: Rewritten using nss.
4897 * pwd/getpwnam.c: Likewise.
4898 * pwd/getpwent.c: Likewise.
4899 * grp/getgrnam.c: Likewise.
4900 * grp/getgrgid.c: Likewise.
4901 * grp/getgrent.c: Likewise.
4902 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
4903 * pwd/getpwent_r.c: New file.
4904 * pwd/getpwnam_r.c: New file.
4905 * pwd/getpwuid_r.c: New file.
4906 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
4907 * grp/getgrnam_r.c: New file.
4908 * grp/getgrgid_r.c: New file.
4909 * grp/getgrent_r.c: New file.
4910 * grp/Makefile (routines): Remove grpopen, grpread.
4911 * pwd/Makefile (routines): Remove pwdopen, pwdread.
4912 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
4914 * pwd/fgetpwent.c: Rewritten using files-parse.c.
4915 * grp/fgetgrent.c: Likewise.
4917 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
4918 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
4919 * nss/nss_files/files-grp.c: New file.
4920 * nss/nss_files/files-pwd.c: New file.
4922 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
4924 * nss/nss_files/files-parse.c: New file.
4925 * nss/nss_files/files-XXX.c: New file.
4926 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
4927 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
4928 Rewritten using them.
4930 * nss/Makefile (libnss_files-routines): Remove files-host.
4931 Add files-hosts, files-grp, files-pwd.
4933 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
4935 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
4937 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4938 A .plt entry now loads the .rela.plt offset directly rather
4939 than making us calculate it.
4941 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4943 * time/Makefile ($(installed-localtime-file) rule): Do
4944 $(make-target-directory) first.
4946 * resolv.h: Fix wrapper for resolv/resolv.h.
4948 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
4949 Compile dummy file and pass -nostdlib -nostartfiles so as not to
4950 require installed libraries.
4952 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
4955 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
4957 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
4958 and mapv4v6hostent.h.
4959 (routines): Move res* and gethnamaddr into libresolv-routines.
4960 (libresolv-routines): New variable, put them there.
4961 (extra-libs): New variable, list libresolv.
4962 (CPPFLAGS): Add -D for get*by* to res_get*by*.
4964 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
4966 * inet/herrno.c: New file.
4968 * resolv/res_init.c: Remove res_hconf calls.
4970 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
4971 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
4972 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
4973 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
4974 nss/service-lookup.c: New files. Implementation of name
4975 service switch, following the approach in Solaris.
4976 Interface specification and general structure inspired by Peter
4977 Eriksson <pen@lysator.liu.se>.
4978 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
4979 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
4980 Implementation of libnss_files.so module for file based databases
4982 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
4983 if libnss_dns.so module for DNS name lookup in NSS service.
4985 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
4986 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
4987 Changed to serve as interface to NSS.
4988 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
4989 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
4990 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
4991 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
4992 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
4993 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
4994 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
4995 interfaces to NSS, including reentrant functions.
4997 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
4998 resolv/sethostent.c: Removed: Obsoleted by NSS.
5000 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
5001 gethnamaddr.c. These private functions are now used in more
5004 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
5006 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5008 * rpm/Makefile ($(config)): Make sure the word list in the for
5009 loop is syntactically non-empty.
5011 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
5013 * Version 1.92 test release.
5015 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
5017 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
5018 to klogctl to match prototype in sys/klog.h.
5020 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
5021 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
5023 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
5024 Remove. Code is now part of __getcwd again. The old function
5025 never really worked for anything but THISDIR==".".
5027 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
5028 only when building ELF version of library.
5030 * libio/libioP.h (_IO_vscanf): Add prototype.
5032 * posix/unistd.h (syscall): Change sysno arg and return value
5035 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
5037 * version.h (VERSION): Updated to 1.92.
5039 * misc/Makefile (headers): Add ar.h.
5040 * misc/ar.h: New file.
5042 * config.make.in (BUILD_CC): New variable.
5043 * configure.in: Check for BUILD_CC if $host != $build.
5045 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
5047 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
5048 (stamp$o files): New targets, create them empty, no deps.
5050 * rpm/template (Source): New field.
5051 (%prep, %build, %install): New sections.
5052 (%files): Add %doc FAQ NEWS NOTES README.
5053 * rpm/rpmrc (builddir): Removed.
5055 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
5057 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
5058 guessing to not assume p_vaddr of first load cmd is zero.
5060 * sysdeps/sparc/elf/start.S: New file.
5061 * sysdeps/sparc/dl-machine.h: New file.
5063 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
5064 only for ?s, not for *s. Fix from Chet Ramey.
5066 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
5067 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
5068 Use __{BEGIN,END}_DECLS.
5069 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
5070 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
5071 New macros, moved here from sysdeps/gnu/utmpbits.h.
5072 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
5073 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
5074 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
5075 Use sizeof instead of UT_*SIZE.
5076 * login/logwtmp.c: Likewise.
5078 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
5080 * version.c (banner): Add trailing newline.
5082 * login/utmp.h: Declare login_tty.
5084 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
5086 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
5087 Changed to a 12-byte PLT entry to remove dependency on $gp.
5088 Take a new got_addr parameter.
5089 (elf_machine_rela): Pass the new parameter.
5090 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
5091 (RTLD_START): Do normal linkage with program entry.
5093 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
5095 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
5097 * hurd/getuids.c (getuids): New weak link to __getuids.
5099 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
5101 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
5102 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
5104 Rename nested function lookup to lookup_op.
5105 (__file_name_lookup, __file_name_lookup_under):
5106 Pass 0 for lookup arg to __hurd_file_name_lookup.
5107 (__file_name_split): Likewise for __hurd_file_name_split.
5108 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
5109 Rename nested function lookup to scan_lookup.
5110 (file_name_path_lookup): Pass 0 for lookup arg to
5111 hurd_file_name_path_lookup.
5112 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
5113 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
5114 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
5115 Add LOOKUP argument.
5116 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
5117 __hurd_file_name_lookup.
5119 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5121 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
5122 up a huge list just to discard most of it.
5124 * configure.in (sysnames): Avoid fgrep by using the case shell
5127 * Makeconfig (config.status): Fix dependency on Implies files.
5129 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
5131 * math/Makefile (distribute): Add ieee-math.c.
5133 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
5135 * locale/codeset_name.c: New file. Provide function for information
5136 about currently used character set.
5137 * locale/Makefile (routines): Add codeset_name.
5138 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
5139 * locale/localeinfo.h: Change magic number because of incompatible
5141 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
5142 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
5144 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
5145 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
5147 * locale/setlocale.c (setlocale): Initialize local variables to
5150 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
5152 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
5154 * locale/programs/locale.c: Include string.h.
5156 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
5157 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
5158 appropriate sign-extension is performed on machines with
5161 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
5162 sizeof(int)<sizeof(long), we need to go through a temporary
5165 * locale/programs/ld-numeric.c: Include <alloca.h>
5167 * libio/stdio.h (__libc_fatal): Add prototype.
5169 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
5172 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
5173 volatile to avoid "might get clobbered by longjmp" warning.
5175 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
5176 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
5177 probability is a sure loser).
5178 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
5180 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
5181 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
5183 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
5184 to be Linux FSSTND compliant.
5186 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
5188 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
5190 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
5191 sysdeps/unix/sysv/linux/alpha/brk.S,
5192 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
5193 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
5194 sysdeps/unix/sysv/linux/alpha/llseek.S,
5195 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
5196 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
5197 __syscall_error to avoid intruding application name space.
5199 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
5200 to SYS_get?id so that syscall stubs in sysdeps/unix define
5201 these syscalls in terms of getxpid/getxuid/getxgid.
5203 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
5204 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
5205 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
5206 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
5208 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
5209 (PSEUDO_END): Rename END() to PSEUDO_END().
5211 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
5212 to PSEUDO_END to improve branch-prediction. Include .frame
5213 directive to make syscalls debugabble.
5214 (PSEUDO_END): New macro.
5216 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
5217 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
5218 latter is illegal under DEC Unix.
5220 * sysdeps/unix/alpha/sysdep.S: Renamed from
5221 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
5223 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
5224 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
5225 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
5227 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
5228 address register in the .frame directive.
5230 * sysdeps/alpha/copysign.c: Remove.
5232 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
5233 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
5235 * errno.h: Move __END_DECLS to correct place to make file
5236 compilable under c++.
5238 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
5239 d_ino only if <direntry.h> hasn't defined d_fileno.
5241 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
5242 arguments to weakext to make .weakext detection work on ECOFF systems.
5244 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
5245 that _validuser() has been replaced by __ivaliduser().
5247 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
5249 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
5250 as unsigned long, not as int (to avoid incorrect int->long
5255 See ChangeLog.5 for earlier changes.