1998-12-06 Mark Kettenis <kettenis@phys.uva.nl>
[glibc.git] / ChangeLog
blob1796eacea4f244cc7c8cca7800bd0cca1f6afd41
1 1998-12-06  Mark Kettenis  <kettenis@phys.uva.nl>
3         Reverse the change of 1998-04-22.  Providing a struct dirent with
4         different members when __USE_FILE_OFFSET64 is defined is asking
5         for trouble.  Instead add the necessary LFS magic to the 4.4BSD
6         header.
7         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Add LFS definitions.
8         * sysdeps/mach/hurd/bits/dirent.h: Removed.
9         * sysdeps/mach/hurd/readdir64.c: Removed.
10         * sysdeps/mach/hurd/readdir64_r.c: Removed.
12 1998-12-20  Roland McGrath  <roland@baalperazim.frob.com>
14         * sysdeps/generic/bits/mman.h [__USE_MISC] (MAP_ANONYMOUS): Define as
15         alias for MAP_ANON.
17         * stdio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
18         Remove decls.  They don't exist at all on the Hurd.
20         * sunrpc/svc_unix.c, sunrpc/clnt_unix.c: Avoid using `struct cmsghdr'
21         and `struct ucred' #ifndef SCM_CREDENTIALS.
23         * sunrpc/publickey.c (getsecretkey): Use `&errno' instead of
24         `__errno_location ()'; means the same, works for Hurd.
26         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide sunrpc.
28 1998-12-18  Ulrich Drepper  <drepper@cygnus.com>
30         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Include
31         features.h and stddef.h.
32         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h (struct
33         sigaltstack): Move ss_size field at the end.
34         Patches by Jeff Bailey <jbailey@nisa.net>.
36         * time/getdate.c (check_mday): tm_mon contains values from 0 to 11,
37         not 1 to 12.
39         * manual/texinfo.tex: Update to latest version.
41         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add ipc.
42         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
43         Patch by Cristian Gafton <gafton@redhat.com>.
45 1998-12-17  Ulrich Drepper  <drepper@cygnus.com>
47         * iconvdata/gconv-modules: Add remaining aliases from Internet
48         standards.
50         * iconv/gconv_int.h (gconv_module): Add new element from_regex_mem.
51         * iconv/gconv_conf.c (module_compare): Make s1 and s2 const.
52         (detect_conflict): New function.
53         (add_alias): Call detect_conflict to see whether there is already
54         a module for the new name.
55         (add_module): Make sure there is no alias for the new name.
56         (read_conf_file): Call add_alias with new argument.
57         (__gconv_read_conf): Don't destroy module tree immediately after
58         walking it.  We need it to test the internal conversions for
59         conflicts.
60         * iconv/gconv_db.c (find_derivation): Don't allocate memory for
61         regular expression.  There is now room in the module descriptor.
62         (free_mem): Don't free memory for regular expression.
64         * sysdeps/unix/sysv/linux/bits/socket.h: Add AF_IRDA, PF_IRDA and
65         MSG_TRYHARD.
67         * sunrpc/clnt_unix.c (clntunix_destroy): Use __close not close.
68         * libio/oldtmpfile.c: Likewise.
69         * libio/oldiofdopen.c: Use __fcntl instead fcntl.
70         * sysdeps/posix/profil.c: Use __sigaction instead of sigaction.
72         * iconvdata/iso646.c (gconv_init): Return correct error value if we
73         run out of memory.
74         * iconvdata/iso-2022-jp.c: Likewise.
76         * iconv/gconv_db.c (gen_steps): Respect error return value from
77         init functions and abort.
79         * iconvdata/iso646.c: Recognize NF_Z_62-010_1973 as charset name.
81 1998-12-17  H.J. Lu  <hjl@gnu.org>
83         * sunrpc/rpc/xdr.h (XDR_DESTROY): Add ';'.
84         (xdr_destroy): Likewise.
86 1998-12-17  Ulrich Drepper  <drepper@cygnus.com>
88         * login/login.c: Determine pts/3 as terminal name if path is
89         /dev/pts/3.  This is consistent with getlogin.  [PR libc/906]
91 1998-12-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
93         * sysdeps/posix/tempname.c (__path_search): Add casts for format
94         string.
96 1998-12-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98         * sunrpc/rpc/xdr.h (XDR_DESTROY, xdr_destroy): Avoid dangling else
99         problem.
100         (IXDR_PUT_INT32): Fully parenthesize parameters.
101         (IXDR_GET_LONG, IXDR_PUT_LONG): Mark GCC extension.  Fully
102         parenthesize parameter.
104 1998-12-16  Ulrich Drepper  <drepper@cygnus.com>
106         * iconvdata/gconv-modules: Add some of the charset name aliases
107         used in Internet standards.
109 1998-12-16  Ulrich Drepper  <drepper@cygnus.com>
111         * version.h (VERSION): Bump to 2.0.107.
113         * sysdeps/i386/i486/bits/string.h: Pretty printing.
115 1998-12-16  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
117         * sunrpc/rpc/xdr.h: Revert patch from 1998-12-14, partly revert
118         patch from 1998-12-01.
120 1998-12-16  Roland McGrath  <roland@baalperazim.frob.com>
122         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Define this #ifdef
123         __USE_BSD as well as #ifdef __USE_GNU, so MAXSYMLINKS can use it.
124         Reported by UCHIYAMA Yasushi <uch@nop.or.jp>
126 1998-12-16  Ulrich Drepper  <drepper@cygnus.com>
128         * iconvdata/ibm866.c: New file.
129         * iconvdata/cp1258.c: New file.
130         * iconvdata/cp1258.h: New file.
131         * iconvdata/mac-uk.c: New file.
132         * iconvdata/gconv-modules: Add rules for new modules.
133         * iconvdata/Makefile: Likewise.
135         * sysdeps/gnu/bits/ipc.h: Move libc internal bits to...
136         * include/bits/ipc.h: ..here.  New file.
138 1998-12-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
140         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Don't change
141         read-only struct termios_p* but change k_termios member directly.
143 1998-12-15  H.J. Lu  <hjl@gnu.org>
145         * sysdeps/posix/tempname.c (__path_search): Fix the maximum
146         string length.
148 1998-12-15  Ulrich Drepper  <drepper@cygnus.com>
150         * sysdeps/unix/sysv/linux/msgctl.c: Use INLINE_SYSCALL.
151         * sysdeps/unix/sysv/linux/msgget.c: Likewise.
152         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
153         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
154         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
155         * sysdeps/unix/sysv/linux/semget.c: Likewise.
156         * sysdeps/unix/sysv/linux/semop.c: Likewise.
157         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
158         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
159         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
160         * sysdeps/unix/sysv/linux/shmget.c: Likewise.
161         * sysdeps/unix/sysv/linux/syscalls.list: Remove ipc syscall here.
162         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add ipc syscall here.
164         * time/strftime.c: Remove 'f' format.
166         * time/strptime.c (get_number): Ignore trailing whitespace.
167         (strptime_internal): Handle 'F' and 'k' formats.
169         * sysdeps/posix/tempname.c (__path_search): Add second part of the
170         patch by Andreas Jaeger.
172 1998-12-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
174         * stdio-common/tst-tmpnam.c (main): Use void as parameter to avoid
175         warnings about unused args.  Fix comment.
177 1998-12-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
179         * sysdeps/posix/tempname.c (__path_search): Correct last patch.
181 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
183         * sunrpc/rpc/xdr.h (IXDR_GET_INT32): Case pointer before reading from
184         it.
185         (IXDR_PUT_INT32): Likewise for writing.
186         Patch by Bruce Elliott <bde@nwlink.com>.
188 1998-12-08  H.J. Lu  <hjl@gnu.org>
190         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Don't clear
191         the IBAUD0 bit in c_iflag.
193         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Clear the
194         the IBAUD0 bit in c_iflag.
196 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
198         * time/Makefile (tests): Add tst-strptime.
199         * time/tst-strptime.c: New file.
200         * time/strptime.c: Correct bugs in weekday and yearday computation.
202 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
204         * time/strptime.c (strptime_internal): Set tm_wday and tm_yday in
205         any of tm_year, tm_mon, or tm_mday was changed and the value
206         itself wasn't specified.
208         * include/stdio.h: Add new parameter to __path_search.
209         * libio/oldtmpfile.c: Add 0 as new parameter to __path_search.
210         * stdio-common/tmpfile.c: Likewise.
211         * stdio-common/tmpfile64.c: Likewise.
212         * stdio-common/tmpnam.c: Likewise.
213         * stdio-common/tmpnam_r.c: Likewise.
214         * stdio-common/tempnam.c: Add 1 as new parameter to __path_search.
215         * sysdeps/posix/tempname.c: Add new parameter.  If value is nonzero
216         consider TMPDIR environment variable and dir parameter.  Otherwise not.
217         * stdio-common/Makefile (tests): Add tst-tmpnam.
218         * stdio-common/tst-tmpnam.c: New file.
220         * po/es.po: Update from translation team.
222 1998-12-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
224         * timezone/Makefile: Protect inclusion of z.* by avoid-generated
225         and inhibit_timezone_rules instead of no_deps.
226         * Make-dist: Pass inhibit_timezone_rules=t when making
227         echo-distinfo.
229 1998-12-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
231         * manual/Makefile (distribute): Remove dir-add.texinfo.
233         * sysdeps/unix/sysv/linux/powerpc/Dist: Add sys/procfs.h and
234         sys/user.h.
236 1998-12-11  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
238         * manual/Makefile (stamp-summary): Use ^L as separator for
239         sorting.
240         * manual/arith.texi: Add comments before all @deffoox lines to get
241         them added to the summary.
242         * manual/creature.texi: Likewise.
243         * manual/math.texi: Likewise.
245 1998-12-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
247         * math/libm-test.c: Remove macro ISINF.  Change all usages of
248         ISINF to isinf.
250 1998-12-13  Ulrich Drepper  <drepper@cygnus.com>
252         * sysdeps/posix/tempname.c: Use __xstat instead of __stat.
253         * sysdeps/unix/grantpt.c: Likewise.
254         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
255         * sysvipc/ftok.c: Likewise.
256         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
258         * stdlib/test-canon.c: Define PATH_MAX if the system does not.
259         * string/stratcliff.c: Use MAP_ANON instead of MAP_ANONYMOUS.
260         Patch by UCHIYAMA Yasushi <uch@nop.or.jp>.
262 1998-12-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
264         * sysdeps/alpha/fpu/fsetexcptflg.c: Avoid -Wparentheses warning.
266         * sysdeps/libm-ieee754/s_expm1.c (__expm1): Avoid -Wparentheses
267         warning.
268         * sysdeps/libm-ieee754/s_log1p.c (__log1p): Likewise.
269         * sysdeps/libm-ieee754/e_logf.c (__ieee754_logf): Likewise.
270         * sysdeps/libm-ieee754/s_expm1f.c (__expm1f): Likewise.
271         * sysdeps/libm-ieee754/e_log.c (__ieee754_log): Likewise.
272         * sysdeps/libm-ieee754/s_log1pf.c (__log1pf): Likewise.
274 1998-12-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
276         * sunrpc/svc_udp.c (svcudp_bufcreate): Declare len as socklen_t.
277         (svcudp_recv): Likewise.
279 1998-12-13  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
281         * nis/nss-nisplus.h: Change some mappings of NIS+ errors to
282         NSS error codes to avoid endless loops.
284 1998-12-13  Ulrich Drepper  <drepper@cygnus.com>
286         * iconvdata/gconv-modules: Correct aliases for ISO-8859-13 and add
287         aliases for ISO-8859-14.
289 1998-12-12  Geoff Keating  <geoffk@ozemail.com.au>
291         * posix/fnmatch.c (fnmatch): Arguments to FOLD must not have
292         side-effects.
294 1998-12-12  Ulrich Drepper  <drepper@cygnus.com>
296         * iconvdata/iso-8859-11.h: ISO 8859-11 conversion data.
297         * iconvdata/iso-8859-11.c: ISO 8859-11 conversion module.
298         * iconvdata/iso-8859-13.c: Likewise for 8859-13.
299         * iconvdata/iso-8859-14.c: Likewise for 8859-14.
300         * iconvdata/iso-8859-15.c: Likewise for 8859-15.
301         * iconvdata/gconv-modules: Add rules for new modules.
302         * iconvdata/Makefile: Likewise.
304 1998-12-12  Ulrich Drepper  <drepper@cygnus.com>
306         * stdio-common/printf_fp.c: #ifdef out long double handling code if
307         __NO_LONG_DOUBLE_MATH is defined to avoid warnings.
308         * stdio-common/printf_fphex.c: Likewise.
309         * stdio-common/printf-size.c: Likewise.
311 1998-12-12  Ulrich Drepper  <drepper@cygnus.com>
313         * login/Makefile: Install pt_chown using INSTALL_PROGRAM.
314         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
316 1998-12-11  Ulrich Drepper  <drepper@cygnus.com>
318         * sysdeps/powerpc/dl-machine.h (elf_machine_matches_host): Mark
319         static inline, not extern inline.
320         (elf_machine_dynamic): Likewise.
321         (elf_machine_lazy_rel): Likewise.
322         (elf_machine_plt_value): Likewise.
323         * sysdeps/powerpc/backtrace.c: Include stddef.h to get NULL
324         definition.
325         Patchess by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
327         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fixl_addr parameter
328         type.  Reported by job bogan <job@piquin.uchicago.edu>.
330         * sysdeps/unix/opendir.c (__opendir): Use __xstat instead of
331         __stat.
333 1998-12-11  Kunihiro Ishiguro  <kunihiro@zebra.org>
335         * inet/netinet/in.h: Change obsolete structure member
336         ipv6mr_ifindex to new ipv6mr_interface.
338 1998-12-11  Ulrich Drepper  <drepper@cygnus.com>
340         * sysdeps/ieee754/dbl2mpn.c: Changed '#include "ieee754.h"' to
341         '#include <ieee754.h>'.  ARM port has its own version of 'ieee754.h'
342         due to its big endian floating point format.
343         * sysdeps/ieee754/ldbl2mpn.c: Likewise.
344         * sysdeps/ieee754/mpn2dbl.c: Likewise.
345         * sysdeps/ieee754/mpn2ldbl.c: Likewise.
346         * sysdeps/ieee754/mpn2flt.c: Likewise.
347         Patch by Scott Bambrough <scottb@corelcomputer.com>.
349 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
351         * sysdeps/unix/sysv/linux/adjtime.c: Undo last change.
353         * posix/PTESTS: Fix typo.
355         * po/es.po: Update from translation team.
356         * po/fr.po: Likewise.
358 1998-12-10  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
360         * nis/nss_compat/compat-pwd.c: Fix handling of +/- entries.
362 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
364         * sunrpc/Makefile: Call rpcgen program which -Y parameter so that
365         it can find the preprocessor.
367 1998-12-09  Geoff Keating  <geoffk@ozemail.com.au>
369         * sysdeps/unix/sysv/linux/sys/procfs.h: Use sys/user.h not
370         asm/user.h.
371         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
373         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: New file,
374         like linux/sys/procfs.h but uses uid_t and gid_t.
375         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: New file,
376         don't include <linux/ptrace.h>.
378 1998-12-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
380         * posix/runptests.c (main): Check that regcomp did not succeed
381         unexpectedly.
382         * posix/runtests.c (run_a_test): Likewise.  Return appropriate
383         exit code.
384         * posix/TESTS: Regexp "a[b-a]" should not compile.
385         * posix/PTESTS: Comment out bogus tests GA113(2), GA145(2) and
386         GA147(2).
388 1998-12-09  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
390         * locale/programs/ld-ctype.c (allocate_arrays): Don't crash if
391         there is no codeset name.
392         * locale/programs/ld-collate.c (collate_output): Don't crash if a
393         character has no weight.
395 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
397         * inet/getnetgrent_r.c (innetgr): Check host and domain name with
398         strcasecmp, not strcmp.  [PR libc/894].
400 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
402         * posix/regex.h: Declare re_comp, re_exec if compiling for libc to
403         get prototypes.
405         * wctype/wctype.h: Add prototypes for __iswblank_l and iswblank.
407 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
409         * sysdeps/unix/sysv/linux/gethostid.c: Include <netdb.h> to get
410         prototype for __gethostbyname_r.
412         * include/time.h: Add declarations of internal interfaces.
414         * time/tzset.c: Remove declarations of internal interfaces.
415         * time/gmtime.c: Likewise.
416         * time/localtime.c: Likewise.
417         * time/offtime.c: Likewise.
418         * time/tzfile.c: Likewise.
420 1998-12-01 09:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
422         * sysdeps/unix/sysv/linux/sys/timex.h: Copy out
423         user-space-relevant definitions from linux/timex.h of kernel
424         2.1.130 and remove include of kernel header.
426         * sysdeps/unix/sysv/linux/adjtime.c: Remove portability crud.
428 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
430         * posix/regex.c: Get regex.h from system path, not from local
431         directory.
433         * posix/regex.h: Move internal interfaces to ...
434         * include/regex.h: ...here.
436         * posix/unistd.h: Move internal interfaces to ...
437         * include/unistd.h: ...here.
439         * math/math.h: Move internal interfaces to ...
440         * include/math.h: ...here.
442         * posix/glob.h: Move internal interfaces to ...
443         * include/glob.h: ...here.
445         * string/string.h: Move internal interfaces to ...
446         * include/string.h: ...here.
448         * time/sys/time.h: Move internal interfaces to ...
449         * include/sys/time.h: ...here.
451         * resolv/netdb.h: Move internal interfaces to ...
452         * include/netdb.h: ...here.
454 1998-12-08  Ulrich Drepper  <drepper@cygnus.com>
456         * iconvdata/eucjp.c: Handle Yen in overscore conversion from ISO 10646
457         correctly.
458         * iconvdata/iso-2022-jp.c: Handle Kana in 2022-JP2 correctly
459         Fix various bugs in conversion routine.
460         * iconvdata/jis0201.h: Correct variable name.
461         * iconvdata/jis0208.c: Correct script to generate tables and regenerate
462         them.
463         * iconvdata/jis0208.h: Likewise.
464         * iconvdata/jis0212.c: Likewise.
465         * iconvdata/sjis.c: Likewise.
466         Patch by HANATAKA Shinya <hanataka@abyss.rim.or.jp>.
468 1998-12-07  Ulrich Drepper  <drepper@cygnus.com>
470         * sysdeps/unix/sysv/linux/speed.c (IBAUD0): New definition.  Bit
471         set in c_iflag if cfsetispeed is call with SPEED set to zero.
472         (cfgetispeed): Return zero if prior if IBAUD0 is set.
473         (cfsetospeed): Clear IBAUD0 bit.
474         (cfgetispeed): Set IBAUD0 bit if necessary.
475         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Clear
476         the IBAUD0 bit in c_iflag when making the system call.
477         Work around a Linux kernel bug which silently changes the
478         PARENB/CREAD/CSIZE bits in c_cflag on pty.
479         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed): Make a real
480         function.  Don't set speed is SPEED parameter is zero since this
481         means set it to the output speed.
482         Based on a patch by H.J. Lu <hjl@gnu.org>.
484         * version.h (VERSION): Bump to 2.0.106.
486         * Makeconfig (link-libc-static): Don't use link-libc since this
487         includes the shared object.  Use gnulib only.
489         * configure.in: Disable --disable-static.
491 1998-12-07 12:06  Ulrich Drepper  <drepper@cygnus.com>
493         * po/de.po: Update from translation team.
494         * po/ko.po: Likewise.
496 1998-12-07  Richard Henderson  <rth@cygnus.com>
498         * sysdeps/unix/sysv/linux/alpha/select.S: Save a4 through
499         both paths.
501 1998-12-05  Roland McGrath  <roland@baalperazim.frob.com>
503         * sysdeps/mach/hurd/pselect.c: New file.
505         * sysdeps/mach/hurd/poll.c: New file.
507         * hurd/Makefile (routines): Add hurdselect.
508         * hurd/hurdselect.c: New file.
509         (_hurd_select): New function, guts taken from ...
510         * sysdeps/mach/hurd/select.c (__select): ... here.
511         Now work by just calling _hurd_select.
512         * hurd/hurd/fd.h: Declare _hurd_select.
514 1998-12-05  Roland McGrath  <roland@baalperazim.frob.com>
516         * time/strptime.c: Fix unterminated comment in last change.
518 1998-12-05  Ulrich Drepper  <drepper@cygnus.com>
520         * ctype/ctype.h (_ISbit): Protect use of parameter with
521         parentheses.
522         * wctype/wctype.h (_ISwbit): Likewise.
524         * locale/Versions: Make experimental locale interface available in
525         GLIBC_2.1.
527         * sysdeps/gnu/bits/utmp.h (struct exit_status): Define members
528         without leading __ only for __USE_GNU.
529         * sysdeps/gnu/bits/utmpx.h (struct __exit_status): Likewise.
531 1998-12-04  Ulrich Drepper  <drepper@cygnus.com>
533         * argp/argp.h: Add __restrict.
534         * dirent/dirent.h: Likewise.
535         * elf/dlfcn.h: Likewise.
536         * grp/grp.h: Likewise.
537         * iconv/iconv.h: Likewise.
538         * inet/aliases.h: Likewise.
539         * libio/libio.h: Likewise.
540         * libio/stdio.h: Likewise.
541         * locale/locale.h: Likewise.
542         * misc/mntent.h: Likewise.
543         * posix/wordexp.h: Likewise.
544         * pwd/pwd.h: Likewise.
545         * resolv/netdb.h: Likewise.
546         * rt/aio.h: Likewise.
547         * stdio-common/printf.h: Likewise.
548         * stdlib/monetary.h: Likewise.
549         * stdlib/stdlib.h: Likewise.
550         * string/argz.h: Likewise.
551         * string/envz.h: Likewise.
552         * string/string.h: Likewise.
553         * time/time.h: Likewise.
555 1998-12-04  Zack Weinberg  <zack@rabi.phys.columbia.edu>
557         * misc/sys/cdefs.h: Only include features.h if _FEATURES_H isn't
558         defined.  gcc's redundant include optimizer isn't clever enough to
559         prevent a reinclusion here.
560         Define __restrict to the empty string only if not GCC or
561         GCC version less than 2.92.
563 1998-12-03  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
565         * sysdeps/unix/sysv/linux/configure.in: Fix last change.
567 1998-12-03  Mark Kettenis  <kettenis@phys.uva.nl>
569         * time/strptime.c (strptime_internal): Make use of `%C' format
570         specifier if it is seen together with the `%y' specifier.
572 1998-12-04  Ulrich Drepper  <drepper@cygnus.com>
574         * po/sk.po: New file.
576 1998-12-03  Scott Bambrough  <scottb@corelcomputer.com>
578         * sysdeps/arm/dl-machine.h (dl_start_user): Incorrect address
579         for _dl_main_searchlist passed to _dl_init_next.
581 1998-12-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
583         * math/libm-test.c: Expand literal tabs in strings.  Normalize
584         whitespace.
586 1998-12-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
588         * sysdeps/unix/sysv/linux/sys/fsuid.h: Fix spelling.
590 1998-12-04  Mark Kettenis  <kettenis@phys.uva.nl>
592         Provide backwards binary compatibility for the Hurd.
593         * hurd/geteuids.c [PIC && DO_VERSIONING]: Make __getuids a weak
594         alias for geteuids.
595         * hurd/Versions [GLIBC_2.0]: Add __getuids,
596         __hurd_file_name_lookup and _hurd_umask.
597         [GLIBC_2.1]: Add _hurd_proc_init.
598         * hurd/Makefile [versioning] (routines): Add compat-20.
599         (shared-only-routines): Likewise.
600         * hurd/hurdinit.c (_hurd_new_proc_init): Renamed from
601         _hurd_proc_init.  Use it as the default _hurd_proc_init version
602         for GLIBC_2.1.
603         * hurd/compat-20.c: New file.
604         * mach/Versions [GLIBC_2.0]: Add __vm_allocate.
606 1998-12-02  Ulrich Drepper  <drepper@cygnus.com>
608         * elf/elf.h: Add R_MIPS_JALR and adjust R_MIPS_NUM appropriately.
610 1998-12-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
612         * inet/Versions: Remove inet6_isipv4mapped.
614 1998-12-02  Philip Blundell  <pb@nexus.co.uk>
616         * inet/in6_addr.c (inet6_isipv4mapped): Obsolete, deleted.
618 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
620         * manual/time.texi (Formatting Date and Time): Fix typo.
622 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
624         * sysdeps/unix/sysv/linux/configure.in: Only check for symlinks
625         when configuring natively.  Use autoconf macros instead of rolling
626         our own.  Handle defaulted prefix.
628 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
630         * version.h (VERSION): Bump to 2.0.105.
632         * sysdeps/generic/Dist: Add bits/libc-tsd.h.
634         * sysdeps/mach/hurd/Dist: Add bits/libc-tsd.h.
636         * sysdeps/unix/sysv/linux/mips/Dist: Add xstatconv.c.
638 1998-11-29 1998  H.J. Lu  <hjl@gnu.org>
640         * libio/genops.c (_IO_unbuffer_write): Renamed from
641         _IO_unbuffer_all.
642         (_IO_cleanup): Call _IO_unbuffer_write instead of
643         _IO_unbuffer_all.
645 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
647         * intl/localealias.c: Use *_unlocked version of stdio function if
648         _LIBC_REENTRANT is defined, not _LIBC.
650 1998-12-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
652         * include/grp.h: Add prototypes for internal functions
653         __getgrgid_r and __getgrnam_r.
655         * inet/herrno.c: Include <netdb.h> for prototype, undef h_errno.
657         * resolv/nsap_addr.c: Include <arpa/inet.h> for inet_nsap_addr and
658         inet_nsap_ntoa prototypes.
660 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
662         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Pass -I option
663         to gcc to have it find the correct system header.
664         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
666         * Makefile (postclean): Add sysd-sorted.
667         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
669 1998-12-01  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
671         * sunrpc/auth_des.c: Use new XDR int32 functions for integers.
672         * sunrpc/rpc/xdr.h: Add IXDR INT32 functions.
673         * sunrpc/rpc_hout.c: Remove (u_long) casts in defines to avoid
674         conflicts with new solaris version.
675         * sunrpc/rpc_main.c: Fix bug in generating Makefile name (malloc
676         doesn't zero allocated memory).
677         * sunrpc/rpc_svcout.c: Local variables now starts with a _ to avoid
678         conflicts with xdr functions.  Solves PR libc/877.
679         * nis/rpcsvc/nis.x: Use always uint32_t.
680         * nis/rpcsvc/nis.h: Likewise.
681         * nis/rpcsvc/nis_object.x: Likewise.
683 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
685         * math/libm-test.c: Various cleanups.  Patch by Zack Weinberg.
687         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use correct type for
688         parameter.  Patch by Christian Gafton.
690         * string/envz.h: Add prototype for envz_remove.
691         Reported by Andreas Jaeger.
693 1998-11-30  Mark Kettenis  <kettenis@phys.uva.nl>
695         * mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
696         __spin_lock_init,  __mutex_lock, __mutex_trylock,
697         __mutex_unlock.
698         Remove get_priviliged_ports.  Moved to hurd/Versions.
700         * hurd/Versions [libc, GLIBC_2.0]: Add _end.  This makes the Hurd
701         brk implementation see the end of the data segment of the program
702         instead of the shared library.
703         Add __hurd_errno_location.  This inline function is used in user
704         programs.
705         Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
706         _hurd_fd_get, _hurd_port_free, _hurd_port_get,
707         _hurd_port_locked_get.  These inline functions are used by macros
708         used in mail.local in the Hurd distribution.
709         Add get_privileged_ports.  Moved here from mach/Versions.
710         Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
711         __hurd_file_name_split, __hurd_file_name_path_lookup.  These are
712         not used outside libc.
714 1998-11-30  Mark Kettenis  <kettenis@phys.uva.nl>
716         * hurd/hurdstartup.c: Really include set-hooks.h with <> instead
717         of "".
719 1998-11-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
721         * sunrpc/Makefile: Add xdr_intXX_t to routines.
722         * sunrpc/Versions: Add xdr_int8_t, xdr_uint8_t, xdr_in16_t and
723           xdr_uint16_t.
724         * sunrpc/rpc/xdr.h: Add prototypes for new xdr_intXX_t functions.
725         * sunrpc/xdr.c: Remove xdr_int32_t and xdr_uint32_t.
726         * sunrpc/xdr_intXX_t.c: New, contains all xdr_intXX_t functions.
728         * nis/Depend: New.
729         * nis/nss_nis/nis-service.c: Include generated prototype for parser.
731 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
733         * nscd/nscd_getpw_r.c: Include nscd_proto.h for prototypes.
735         * sysdeps/generic/errno-loc.c: Include <errno.h> for prototype,
736         undefine errno to get variable.
738         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Include <sys/fsuid.h>
739         instead of <unistd.h> for prototype.
740         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
742 1998-11-30  Ulrich Drepper  <drepper@cygnus.com>
744         * misc/err.h: Correct comments and use protected attribute keywords.
745         Reported by Joseph Myers <jsm28@cam.ac.uk>.
747 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
749         * malloc/thread-m.h [_LIBC]: Include <bits/libc-tsd.h>, and
750         remove tsd stuff from pthreads/cthreads libc sections.
751         Use __libc_tsd_define for MALLOC key.
752         [_LIBC] (tsd_key_t, tsd_key_create): Define to a zero-size type and a
753         no-op, respectively.
754         [_LIBC] (tsd_setspecific, tsd_getspecific): Use __libc_tsd_get/set.
756         * elf/dl-error.c: Include <bits/libc-tsd.h>.
757         Use __libc_tsd_define for DL_ERROR key.
758         (tsd_setspecific, tsd_getspecific): Rewritten using __libc_tsd_get/set.
760         * sysdeps/mach/hurd/bits/libc-tsd.h: New file.
761         * sysdeps/generic/bits/libc-tsd.h: New file.
762         * Makefile (distribute): Add bits/libc-tsd.h.
764 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
766         * elf/dl-error.c: Remove kludge to check for ld.so load address.
767         There is no need if weak undefined symbols are not used in ld.so;
768         see linuxthreads/ChangeLog for changes to files
769         linuxthreads/sysdeps/pthread/bits/libc-lock.h and
770         linuxthreads/sysdeps/pthread/bits/libc-tsd.h.
772 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
774         * sysdeps/i386/bits/string.h (__memset_cc): Fix typo (s->__s).
776         * sysdeps/i386/i486/bits/string.h: Add prototypes for all new
777         inline functions.
778         * sysdeps/i386/bits/string.h: Likewise.
780 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
782         * sysdeps/unix/sysv/linux/alpha/bits/ipc.h: Remove ipc_kludge.
784 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
786         * db2/progs/db_load/db_load.c (main): Avoid -Wparentheses warning.
788 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
790         * sysdeps/mach/hurd/dl-sysdep.c: Do not define
791         __hurd_threadvar_max.  Add comment explaining why we define
792         __hurd_threadvar_stack_offset and __hurd_threadvar_stack_mask here.
794 1998-07-29  Mark Kettenis  <kettenis@phys.uva.nl>
796         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
797         __hurd_sigthread_stack_end, __hurd_sigthread_variables): Define to
798         prevent inclusion of Hurd signal handling code.
799         (__libc_write): New function.
800         (_dl_sysdep_output): Removed.  The implementation in
801         `elf/dl-misc.c' now also works for the Hurd.
803 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
805         * hurd/hurdstartup.c: Do not include hurdmalloc.h; _hurd_startup
806         does not use any of malloc/realloc/free anymore.  Include
807         set-hooks.h with <> instead of "".
809 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
811         * sunrpc/svc_unix.c (__msgread): Move ON local var inside block
812         within #ifdef SO_PASSCRED.  Avoids unused var when no SO_PASSCRED.
813         * sunrpc/clnt_unix.c (__msgread): Likewise.
815 1998-11-28  Roland McGrath  <roland@baalperazim.frob.com>
817         * hurd/setuids.c: Renamed to ...
818         * hurd/seteuids.c: this.
819         (setuids): Renamed to seteuids.
820         * hurd/getuids.c: Renamed to ...
821         * hurd/geteuids.c: this.
822         (__getuids): Renamed to geteuids, no aliases.
823         * hurd/hurd.h (geteuids, seteuids): Declare them.
824         * hurd/Versions: Replace getuids; __getuids with geteuids; seteuids.
825         * hurd/Makefile (routines): Updated.
827 1998-11-29  Ulrich Drepper  <drepper@cygnus.com>
829         * sysdeps/generic/segfault.c (install_handler): Correct test for
830         SEGFAULT_HANDLER=all.
831         Patch by Zack Weinberg.
833 1998-11-28 23:23 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
835         * sysdeps/unix/sysv/linux/configure.in: Test for symlinks in
836         $prefix/include that may be clobbered on installation.
838 1998-11-27  Philip Blundell  <pb@nexus.co.uk>
840         Fixes to allow compilation with static NSS:
841         * nss/Makefile: Make explicit the dependency of getent on
842         libnss_files.a.
843         [build_static_nss]: Define $(otherlibs) appropriately.
844         * nss/Depend: Add a dependency on `resolv'.
846 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
848         Partial support for MIPS ISO C 9x exception handling:
849         * sysdeps/mips/fclrexcpt.c: New file.
850         * sysdeps/mips/ftestexcept.c: New file.
851         * sysdeps/mips/fgetexcptflg.c: New file.
852         * sysdeps/mips/fesetround.c: New file.
853         * sysdeps/mips/fegetround.c: New file.
854         * sysdeps/mips/fegetenv.c: New file.
855         * sysdeps/mips/fesetenv.c: New file.
856         * sysdeps/mips/feupdateenv.c: Likewise.
857         * sysdeps/mips/bits/fenv.h: New file.
859 1998-11-28  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
861         * sysdeps/unix/sysv/linux/mips/bits/signum.h: Remove inclusion of
862         <asm/signal.h> and add needed symbols from <asm/signal.h>; bring
863         in sync with linux specific version.
865         Patches by Ralf Baechle <ralf@uni-koblenz.de> for mips-linux:
867         * sysdeps/unix/mips/sysdep.S: Define _errno as weak_alias, rewrite
868         errno declaration.
870         * sysdeps/unix/sysv/linux/mips/ustat.c: Use INLINE_SYSCALL instead
871         of calling __syscall_*.
872         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
874         * sysdeps/unix/sysv/linux/mips/syscalls.list: Update entries.
876         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Add missing SYS_*
877         constants, correct values according to Linux 2.1.130.
879         * sysdeps/unix/sysv/linux/mips/pwrite.c: New file.
880         * sysdeps/unix/sysv/linux/mips/pwrite64.c: New file.
881         * sysdeps/unix/sysv/linux/mips/pread.c: New file.
882         * sysdeps/unix/sysv/linux/mips/pread64.c: New file.
884         * sysdeps/mips/Makefile (sysdep_routines): Use += instead of a
885         :=.
887         * sysdeps/unix/sysv/linux/mips/bits/ipc.h: Remove ipc_kludge.
889         * sysdeps/unix/sysv/linux/mips/xstatconv.c: New file.
891         * sysdeps/unix/sysv/linux/mips/xstat.c: Removed.
893         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: New file.
895         * sysdeps/unix/sysv/linux/mips/kernel_termios.h: Add copyright
896         message, change name of include protection, remove inclusion of
897         <bits/termios.h>.
899         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
900         (old_kernel_sigaction): Define.
901         (struct kernel_sigaction): Rename sa_handler to k_sa_handler.
903         * sysdeps/unix/sysv/linux/mips/bits/time.h: Removed, we can use
904         the general linux version.
905         * sysdeps/unix/sysv/linux/mips/bits/stat.h (_STAT_VER_KERNEL): Added.
907         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Update file.
909 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
911         * sysdeps/arm/bits/endian.h (__FLOAT_WORD_ORDER): Define to big
912         endian.
913         * math/math_private.h: Use __FLOAT_WORD_ORDER rather than
914         BYTE_ORDER.
915         * string/endian.h: If __FLOAT_WORD_ORDER wasn't defined by
916         <bits/endian.h>, make it the same as __BYTE_ORDER.
918 1998-11-27  Ulrich Drepper  <drepper@cygnus.com>
920         * math/math.h: Avoid using long double functions in generic macros
921         if __NO_LONG_DOUBLE_MATH.
923         * sysdeps/arm/dl-machine.h: Fix handling of weak undefined symbols
924         during bootstrapping.
925         * scripts/config.sub: Add Netwinder specific matches.
926         Patch by Scott Bambrough <scottb@corelcomputer.com>.
928 1998-11-26  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
930         * Makeconfig ($(common-objpfx)sysd-dirs): Use automatic variables
931         if possible.
932         ($(common-objpfx)sysd-sorted): Likewise.
934 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
936         * sysdeps/libm-ieee754/e_log.c (__ieee754_log): Add declaration of
937         local variables t1,t2 only if needed.
939         * sysdeps/libm-ieee754/e_atan2.c: Added braces to avoid compiler
940         warnings.
941         * sysdeps/libm-ieee754/s_truncf.c (__truncf): Likewise.
942         * sysdeps/libm-ieee754/s_trunc.c (__trunc): Likewise.
944         * sysdeps/mips/mul_1.S (Loop): Add closing comment to avoid
945         warning.
947 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
949         * math/math.h: Add brace to correct #if expression.
951 1998-11-26  Philip Blundell  <philb@gnu.org>
953         Undo change of 1998-11-12:
954         * sysdeps/unix/sysv/linux/netlink/netlink.h: Deleted.
955         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
956         netlink/netlink.h.
957         * sysdeps/unix/sysv/linux/Dist: Likewise.
959 1998-11-22  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
961         * nis/nis_print.c (nis_print_entry): Changes to match Solaris output.
963 1998-11-26  Ulrich Drepper  <drepper@cygnus.com>
965         * sysdeps/mips/dl-machine.h (ELF_MACHINE_NO_PLT): New defined macro.
966         (elf_machine_got_rel): Remove scope variable.  Use scope from the map.
967         Don't modify _dl_global_scope_end in the end.
968         (__dl_runtime_resolv): Also use scope from the map.
969         * sysdeps/mips/mips64/dl-machine.h: Likewise.
970         * elf/dl-runtime.c: Don't define fixup and profile_fixup if
971         ELF_MACHINE_NO_PLT is defined.
972         * sysdeps/mips/sys/ucontext.h: New file.
973         Patches by kaz Kojima <kkojima@rr.iij4u.or.jp>.
975 1998-11-26  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
977         * sysdeps/generic/pselect.c (__pselect): Change interface,
978         set/restore sigmask.
980         * misc/sys/select.h: Change declaration according to Stevens' Unix
981         Network Programming.
982         * include/sys/select.h (__pselect): Likewise.
983         Reported by <bwelling@anomaly.munge.com> [PR libc/872].
985         * include/fpu_control.h: New file, contains __setfpucw
986         declaration.
988         * sysdeps/generic/fpu_control.h: Remove __setfpucw declaration,
989         it's an internal symbol.
990         * sysdeps/alpha/fpu/fpu_control.h: Likewise.
991         * sysdeps/arm/fpu/fpu_control.h: Likewise.
992         * sysdeps/i386/fpu_control.h: Likewise.
993         * sysdeps/m68k/fpu_control.h: Likewise.
994         * sysdeps/powerpc/fpu_control.h: Likewise.
995         * sysdeps/sparc/sparc32/fpu/fpu_control.h: Likewise.
996         * sysdeps/sparc/sparc64/fpu/fpu_control.h: Likewise.
998 1998-11-25  Ulrich Drepper  <drepper@cygnus.com>
1000         * version.h (VERSION): Bump to 2.0.104.
1002 1998-11-25  Mark Kettenis  <kettenis@phys.uva.nl>
1004         * libio/bits/stdio.h (fread_unlocked): Add missing parentheses
1005         around parameter n.
1007 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1009         * time/tzfile.c (__tzfile_read): Fix comment.
1011 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1013         * Makerules (build-shlib): Pass -O1 down to linker to get
1014         optimized shared libraries.
1016 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1018         * Makeconfig ($(common-objpfx)sysd-dirs): Cope with no Subdirs
1019         file.  Strip "-" from inhibited subdir name.  Combine into a
1020         single awk program.
1021         ($(common-objpfx)sysd-sorted): Fix sed command.
1023 1998-11-25  Roland McGrath  <roland@baalperazim.frob.com>
1025         * sysdeps/mach/hurd/i386/init-first.c (init): Restored as inline fn.
1026         Use constant _HURD_THREADVARS_MAX for temporary array size.
1028         * Makeconfig ($(common-objpfx)sysd-sorted): Use @ instead of / as sed
1029         s separator, since $(..) might contain a /.
1031 1998-11-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1033         * configure.in (mips): Fix typo (Replace ,, by ;;).
1035         * libio/Versions: Clean up entries.
1037 1998-11-23  Ulrich Drepper  <drepper@cygnus.com>
1039         * sysdeps/i386/fpu/bits/mathinline.h: Add optimizations for lrint
1040         and llrint.
1042 1998-11-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1044         * sysdeps/unix/sysv/linux/netinet/ip_fw.h: Removed.  There are too
1045         many differences between the Linux 2.0 and 2.1 versions of this
1046         file and it's too difficult to convert all calls.  The file should
1047         only be needed by the ipfw program which has to take care of the
1048         correct kernel version and include files.
1050         * sysdeps/unix/sysv/linux/Dist: Remove netinet/ip_fw.h.
1051         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Likewise.
1053 1998-11-23  Ulrich Drepper  <drepper@cygnus.com>
1055         * Makeconfig: Don't read sysd-sorted unless sysd-dirs is read.
1056         Patch by Zack Weinberg.
1058         * math/bits/mathcalls.h: Adjust comments.  Remove gamma_r prototype.
1060         * sysdeps/i386/fpu/bits/mathinline.h: Make log2 only available if
1061         __USE_ISOC9X is defined.  Provide rint optimization.
1063 1998-11-21  H.J. Lu  <hjl@gnu.org>
1065         * libio/Versions (_IO_popen, _IO_proc_open, _IO_proc_close,
1066         popen, pclose): Add to GLIBC_2.1.
1068         * libio/Makefile (routines): Add oldiopopen and oldpclose.
1069         (shared-only-routines): Likewise.
1071         * libio/pclose.c (pclose): Make it default for GLIBC_2.1.
1072         * libio/iopopen.c (_IO_proc_open, _IO_popen, popen,
1073         _IO_proc_close): Likewise.
1075         * libio/iolibio.h (_IO_new_popen, _IO_old_popen, __new_pclose,
1076         __old_pclose): New prototypes.
1078         * libio/libioP.h (_IO_new_file_jumps): Removed.
1079         (_IO_old_proc_jumps): Added.
1080         (_IO_new_proc_open, _IO_old_proc_open): New prototypes.
1082         * libio/oldiopopen.c: New file.
1084         * libio/oldpclose.c: New file.
1086 1998-11-22  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1088         * nss/Makefile: Build and install getent.
1089         * nss/getent.c: New, get entries from administrative database.
1091 1998-11-22  Roland McGrath  <roland@baalperazim.frob.com>
1093         * sysdeps/mach/hurd/i386/init-first.c (init): Provide temporary storage
1094         for the per-thread variables of the main user thread to make it
1095         possible to use malloc as soon as _hurd_preinit_hook has been run.
1096         For cthreads, copy values to new stack from there.
1097         For non-cthreads, malloc threadvar array here and copy from temp space.
1098         (init1): No longer initialize threadvars here.
1099         (doinit1): Made static void at top level.
1100         (init): Folded into [PIC] _init or [!PIC] doinit1, since GCC cannot
1101         inline a function that uses dynamic auto arrays.
1103 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
1105         * version.h (VERSION): Bump to 2.0.103.
1107         * aclocal.m4 (LIBC_PROG_BINUTILS): Also add AR and RANLIB using the
1108         same method.
1109         * configure.in: Don't define AR and RANLIB here.
1111         * inet/gethstbyad_r.c: Define NEED__RES_HCONV and POSTPROCESS for
1112         host name res_hconf code.
1113         * inet/gethstbynm_r.c: Likewise.
1114         * nss/getXXbyYY_r.c: Include resolv/res_hconf.h if NEED__RES_HCONF
1115         is defined.  Call res_hconf_init if necessary.  If POSTPROCESS is
1116         defined execute the code.
1117         * resolv/Makefile (routines): Add res_hconf.
1118         (headers): Add res_hconf.h.
1119         * resolv/res_hconf.c: Pretty print.
1120         * resolv/res_hconf.h: Likewise.
1122 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
1124         * sysdeps/generic/bits/byteswap.h: Fix typos in non-GCC
1125         definitions.  Reported by Scott Bambrough <scottb@corelcomputer.com>.
1127 1998-11-20 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1129         * math/libm-test.c: Raise some epsilons a bit.
1131 1998-11-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1133         * Makeconfig ($(common-objpfx)sysd-sorted): Fix portability problems.
1135 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
1137         * Makefile (distribute): Add scripts/gen-sorted.awk.
1139 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
1141         * posix/regex.c (regex_compile): Handle extra long class names
1142         correctly.
1144 1998-11-19  Geoff Keating  <geoffk@ozemail.com.au>
1146         * elf/rtld.c (_dl_start): Handle weak undefined symbols in ld.so
1147         correctly.
1149 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
1151         * misc/error.c: Undo last change.
1153         * ctype/Versions: Add _tolower and _toupper.
1155 1998-11-19  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1157         * sunrpc/svc_unix.c (readunix): Check for POLLERR, POLLHUP and
1158         POLLNVAL.
1160 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
1162         * Makeconfig: Add comment to all-subdirs definition.
1163         Add rule to generate sysd-sorted.  Include this file and and set
1164         subdirs value to $(sorted-subdirs).
1165         * scripts/gen-sorted.awk: New file.
1166         * Make-dist (+tsrcs): Add Depend.
1167         * nscd/Depend: New file.
1168         * nss/Depend: New file.
1169         * rt/Depend: New file.
1171 1998-11-18  Ulrich Drepper  <drepper@cygnus.com>
1173         * sysdeps/unix/bsd/poll.c (__poll): Add code to extend sets if any
1174         passed file descriptor exceeds the size determined by
1175         getdtablesize.
1177         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Update
1178         from inline version in bits/socket.h.
1180         * sysdeps/unix/sysv/linux/bits/socket.h: Define __cmsg_nxthdr as
1181         inline function only is __USE_EXTERN_INLINES is defined.
1183         * time/strftime.c (my_strftime): Make code a bit clearer.
1184         Patch by Paul Eggert <eggert@twinsun.com>.
1186         * io/Makefile (CFLAGS-ftw.c): Removed.
1188         * manual/errno.texi: Change the short text for ENODEV to
1189         "No such device".
1191 1998-11-18  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1193         * io/Makefile (tests): Make sure that the test program has an
1194         explicit directory part.
1196 1998-11-18  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1198         * configure.in: Fix last change.
1200 1998-11-18  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1202         * sunrpc/Makefile (routines): Add create_xid.
1204         * sunrpc/clnt_tcp.c: Use non-guessable xid.
1205         * sunrpc/clnt_udp.c: Likewise.
1206         * sunrpc/clnt_unix.c: Likewise.
1207         * sunrpc/pmap_rmt.c: Likewise.
1208         * sunrpc/create_xid.c: New, create non-guessable xid.
1210         * sunrpc/svc_tcp.c: Remove patch from 1998-06-15, use poll instead
1211         of select.
1212         * sunrpc/svc_unix.c: Use poll instead of select.
1214 1998-11-17  Ulrich Drepper  <drepper@cygnus.com>
1216         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Make Unix98 compliant
1217         by removing SIG_IGN handler for SIGCHLD if necessary.
1218         Patch by H.J. Lu <hjl@lucon.org>.
1220         * stdio-common/printf_fphex.c (__printf_fphex): Correct printing
1221         of denormalized numbers.
1223 1998-10-06  Geoff Keating  <geoffk@ozemail.com.au>
1225         * sysdeps/powerpc/dl-machine.h (elf_machine_load_address): Suppress
1226         another parentheses warning, make nano-optimisation.
1228         * sysdeps/powerpc/dl-machine.h (_dl_runtime_resolve): Preserve
1229         saved LR on stack so _mcount works.
1230         (_dl_prof_resolve): Likewise.
1231         * sysdeps/powerpc/register-dump.h: Print FPRs.  Adjust for correct
1232         signal handler calling convention.
1233         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Adjust for
1234         correct signal handler calling convention---more like x86 linux and
1235         mklinux, less like linux-ppc versions between 2.1 and 2.1.126.
1237 1998-11-17  Ulrich Drepper  <drepper@cygnus.com>
1239         * configure.in: Correct allowed makeinfo version.
1241 1998-11-17  Philip Blundell  <pb@nexus.co.uk>
1243         * sysdeps/generic/bits/mathdef.h: Fix typo.
1245 1998-11-17  Geoff Keating  <geoffk@ozemail.com.au>
1247         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Prototype the syscall
1248         under the right name (squish warning).
1249         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1251 1998-11-17  Geoff Keating  <geoffk@ozemail.com.au>
1253         * stdio-common/_itoa.c (_itoa): Add redundant parentheses to
1254         prevent warnings.
1256 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
1258         * intl/locale.alias: Change `japanese' alias to match X11R6's.
1259         Add `japanese.euc' alias.
1261         * manual/Makefile (%.info): Set LANGUAGE and LC_ALL explicitly to C
1262         before running makeinfo.
1264         * math/Makefile (libm-routines): $(strip) entire value.
1266         * nss/nss_db/db-XXX.c (internal_setent): Rewrite to avoid warning.
1268 1998-10-24  H.J. Lu  <hjl@gnu.org>
1270         * libio/libio.h (_IO_cookie_io_functions_t): Protect with __USE_GNU.
1271         (_IO_cookie_file): Likewise.
1273 1998-11-16  Philip Blundell  <philb@gnu.org>
1275         * inet/netinet/icmp6.h: Correct naming of constants.
1277 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
1279         * sysdeps/unix/opendir.c: Use o_directory_works differently.  Treat
1280         zero value as uninitialized so that variable can go into .bss.
1282         * dirent/opendir-tst1.c: Print error strings to stdout.
1284         * sysdeps/unix/sysv/linux/mmap64.c: New file.  Empty.
1285         * sysdeps/unix/sysv/linux/syscalls.list: Add mmap with mmap64 alias.
1286         * sysdeps/unix/sysv/linux/arm/mmap.S: Add mmap64 alias.
1287         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1288         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
1290 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1292         * time/tzfile.c (__tzfile_read): Check that types[i].isdst is in
1293         range.
1295 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
1297         * libio/bits/stdio.h (fread_unlocked): Do handle zero size and number.
1298         (fwrite_unlocked): Likewise.
1300 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1302         * libio/bits/stdio.h (fread_unlocked): Don't evaluate non-constant
1303         twice.  Don't bother handling zero size.
1304         (fwrite_unlocked): Likewise.
1306 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1308         * configure.in: Fix regex for makeinfo version string.
1310 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1312         * sunrpc/rpc_sample.c (write_sample_server): Avoid -Wparentheses
1313         warning.
1314         * sunrpc/rpc_svcout.c (write_program): Likewise.
1316 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1318         * time/Makefile (CFLAGS-test_time.c): Add -Wno-format.
1320 1998-11-16  Ulrich Drepper  <drepper@cygnus.com
1322         * misc/sys/mman.h: Pretty print prototypes.
1324 1998-11-15  Ulrich Drepper  <drepper@cygnus.com
1326         * misc/error.c (error): Don't use result of strerror_r call directly
1327         since at least DEC Unix has a wrong return type.
1328         Patch by Johan Danielsson <joda@pdc.kth.se>.
1330 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1332         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Undo
1333         last change.
1335 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
1337         * stdio-common/vfscanf.c: Don't return -1 in case of an invalid
1338         format, just stop.
1340         * version.h (VERSION): Bump to 2.0.102.
1342         * stdio-common/tstdiomisc.c (t2): Update test case for last scanf
1343         change.
1344         * stdio-common/scanf7.c (main): Likewise.
1346 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
1348         * stdio-common/vfscanf.c: Return EOF for invalid format
1349         characters.
1351         * version.h (VERSION): Bump to 2.0.101.
1353         * Makerules (Versions.all): Generate this file from all Versions.def
1354         files.
1355         (sysd-versions): Use Versions.all instead of Versions.def.
1357 1998-11-13  Philip Blundell  <philb@gnu.org>
1359         * sysdeps/arm/fpu/bits/setjmp.h (__JMP_BUF_SP): Correct value.
1360         Reported by Scott Bambrough.
1362 1998-11-11  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1364         * locale/programs/config.h: Define HAVE_STRING_H for xstrdup.c.
1366 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
1368         * libio/bits/stdio.h: Correct and improve fread_unlocked and
1369         fwrite_unlocked optimizations.
1371         * time/tzfile.c (__tzfile_read): Set __tzname based on last names
1372         in time not to last entries in the file.
1373         (__tzfile_compute): Likewise.  Fix for PR libc/863.
1375         * timezone/Makefile: Generate GB timezone data for test.
1376         * timezone/tst-timezone.c: More tests for DST switching time (disabled
1377         for now).
1379 1998-11-13  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1381         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Remove
1382         d0 from clobber list.
1384 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1386         * inet/netinet/in.h: Add a few more IPPROTO_* macros.
1388         * libio/Makefile (headers): Add bits/stdio.h.
1389         * libio/iofread_u.c: Undefine fread_unlocked before definition.
1390         * libio/iofwrite_u.c: Undefine fwrite_unlocked before definition.
1391         * libio/stdio.h: Move optimizations into ...
1392         * libio/bits/stdio.h: ...here.  New file.
1394         * libio/iofread.c: Pretty print.
1396 1998-11-12  Mark Kettenis  <kettenis@phys.uva.nl>
1398         * sysdeps/gnu/bits/utmpx.h: Protect members of struct
1399         __exit_status with `__'.  Rename pad member of struct utmpx to
1400         __unused.
1401         (RUN_LVL): Define unconditionally.
1402         * sysdeps/gnu/bits/utmp.h: Rename pad member of struct utmp to
1403         __unused.
1405 1998-11-12  Philip Blundell  <philb@gnu.org>
1407         * sysdeps/unix/sysv/linux/netlink/netlink.h: New file, support for
1408         Linux AF_NETLINK sockets (needed since the kernel version is
1409         unusable).
1410         * sysdeps/unix/sysv/linux/Makefile: Install it.
1411         * sysdeps/unix/sysv/linux/Dist: Distribute it.
1413 1998-11-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1415         * timezone/tst-timezone.c (tests): Add entry for America/Chicago
1416         to test for bug in PR libc/863.
1418 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1420         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Cleanup comment.
1422         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Rename macro
1423         parameter lazy to do_lazy to avoid clashing with struct member name.
1424         Reported by Ralf Baechle <ralf@uni-koblenz.de>.
1426 1998-11-10  H.J. Lu  <hjl@gnu.org>
1428         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
1429         if it is defined in <linux/limits.h>.
1431 1998-11-09 13:07 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1433         * include/protocols/routed.h: Include the real header with
1434         a full path from the top of the source tree.
1435         * include/protocols/rwhod.h: Likewise.
1436         * include/protocols/talkd.h: Likewise.
1437         * include/protocols/timed.h: Likewise.
1439         * timezone/Makefile: Don't include z.ZONE files if no_deps
1440         is set, not if avoid-generated is set.
1442 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1444         * signal/signal.h: Undo last change.  Get definition of timespec
1445         if __USE_POSIX199309.
1447         * string/bits/string2.h (__strpbrk_c2): Add intermediate cast to
1448         size_t to prevent gcc warning when using -Wqual-cast.
1449         (__strpbrk_c3): Likewise.
1450         Suggested by Alan Curry <pacman@cqc.com>.
1452 1998-11-11  Roland McGrath  <roland@baalperazim.frob.com>
1454         * hurd/hurdsig.c (_hurdsig_init): Add assertion that no pending,
1455         unblocked signals are set in the startup masks.
1457         * hurd/hurdsig.c (_hurdsig_init): Take new args, INTARRAY and
1458         INTARRAYSIZE.  Initialize main thread's sigstate from INIT_SIG* ints.
1460         * hurd/hurd/signal.h: Update _hurdsig_init decl.
1461         * hurd/hurdinit.c (_hurd_proc_init): Take new args, INTARRAY and
1462         INTARRAYSIZE, pass them down to _hurdsig_init.
1463         * hurd/hurd.h: Update _hurd_proc_init decl.
1465 1998-11-10  Ulrich Drepper  <drepper@cygnus.com>
1467         * math/cabs.c: Replace complex by _Complex.
1468         * math/cabsf.c: Likewise.
1469         * math/cabsl.c: Likewise.
1470         * math/cimag.c: Likewise.
1471         * math/cimagf.c: Likewise.
1472         * math/cimagl.c: Likewise.
1473         * math/conj.c: Likewise.
1474         * math/conjf.c: Likewise.
1475         * math/conjl.c: Likewise.
1476         * math/creal.c: Likewise.
1477         * math/crealf.c: Likewise.
1478         * math/creall.c: Likewise.
1480         * sysdeps/alpha/fpu/bits/mathdef.h: Define ISO C 9X stuff only if
1481         included from math.h and __USE_ISOC9X is defined.
1482         * sysdeps/generic/bits/mathdef.h: Likewise.
1483         * sysdeps/generic/i386/fpu/mathdef.h: Likewise.
1484         * sysdeps/generic/m68k/fpu/mathdef.h: Likewise.
1485         * sysdeps/generic/powerpc/bits/mathdef.h: Likewise.
1486         * sysdeps/generic/sparc/fpu/bits/mathdef.h: Likewise.
1488 1998-11-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1490         * sysdeps/i386/fpu/bits/mathdef.h: Allow direct inclusion by
1491         <complex.h>.
1492         * sysdeps/alpha/fpu/bits/mathdef.h: Likewise.
1493         * sysdeps/generic/bits/mathdef.h: Likewise.
1494         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1495         * sysdeps/powerpc/bits/mathdef.h: Likewise.
1496         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1498 1998-11-09  Ulrich Drepper  <drepper@cygnus.com>
1500         * extra-lib.mk: Fix typo in last change.
1502         * math/complex.h: Include bits/mathdef.h to get __NO_LONG_DOUBLE_MATH
1503         is needed.
1504         Don't define long double functions if __NO_LONG_DOUBLE_MATH is defined.
1505         Don't define `complex' but instead `_Complex'.  The later is the
1506         reserved keyword.
1507         * math/bits/cmathcalls.c: Define _Mdouble_complex_ using _Complex,
1508         not complex.
1510 1998-11-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1512         * manual/libc.texinfo: Remove colon from category name.
1513         * manual/Makefile (dir-add.info): Likewise.
1515 1998-11-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1517         * configure.in: Avoid autoconf bug.
1519 1998-10-28  H.J. Lu  <hjl@gnu.org>
1521         * posix/getopt.h: Add "__" to arguments in prototypes.
1523 1998-11-05  H.J. Lu  <hjl@gnu.org>
1525         * libio/iofgets.c (_IO_fgets): Don't report error
1526         if something was read in and errno is set to
1527         EAGAIN.
1528         * libio/iofgets_u.c (fgets_unlocked): Likewise.
1530 1998-11-05  Philip Blundell  <philb@gnu.org>
1532         * sysdeps/unix/sysv/linux/net/if_packet.h: Don't include kernel
1533         header; it defines too much.  Provide a local definition of struct
1534         sockaddr_pkt and a comment advising against its use.
1536 1998-11-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1538         * extra-lib.mk: Avoid empty include list.
1540 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1542         * extra-lib.mk: Add support for $(lib)-shared-only-routines.
1544         * elf/Makefile (libdl-routines): Add dlopenold only if doing
1545         versioning.
1546         (libdl-shared-only-routines): New variable.
1548 1998-11-06  Paul Eggert  <eggert@twinsun.com>
1550         Don't invoke localtime_r or gmtime_r unless it's the GNU C
1551         library's localtime_r and gmtime_r; there are too many buggy
1552         implementations of localtime_r and gmtime_r out there, and
1553         it's not worth keeping track of all the different bugs.
1555         * time/mktime.c (__EXTENSIONS__): Remove.
1556         (<unistd.h>): No need to include.
1557         * time/strftime.c: Likewise.
1559         * time/mktime.c (_POSIX_THREAD_SAFE_FUNCTIONS, HAVE_LOCALTIME_R):
1560         Remove.
1561         (my_mktime_localtime_r): Renamed from localtime_r; all uses changed.
1562         Base it on localtime unless _LIBC.
1564         * time/strftime.c (my_strftime_gmtime_r): Renamed from gmtime_r;
1565         all uses changed.
1566         (my_strftime_localtime_r): Renamed from localtime_r; all uses changed.
1567         Base them on localtime/gmtime if not _LIBC.
1569 1998-11-07  Ulrich Drepper  <drepper@cygnus.com>
1571         * sysdeps/generic/isastream.c: Always return 0 unless it is an invalid
1572         file descriptor.  This makes this function actually usable.
1573         Proposed by Mark Kettenis <kettenis@phys.uva.nl>.
1575 1998-11-05  Ulrich Drepper  <drepper@cygnus.com>
1577         * math/math.h: Unconditionally include bits/mathdef.h.  Declare
1578         long double functions only if __NO_LONG_DOUBLE_MATH is not
1579         defined.
1580         * sysdeps/generic/bits/mathdef.h: Define only if __USE_ISOC9X.
1581         Define __NO_LONG_DOUBLE_MATH.
1582         * sysdeps/m68k/fpu/bits/mathdef.h: Define only if __USE_ISOC9X.
1583         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1585         * elf/rtld.c: Add a few __builtin_expects where they will improve
1586         a lot.
1588 1998-11-05  Ulrich Drepper  <drepper@cygnus.com>
1590         * version.h (VERSION): Bump to 2.0.100.
1592         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Fix fldl -> fld.
1594         * sysdeps/libm-i387/s_fma.S: Optimize a bit.
1595         * sysdeps/libm-i387/s_fmaf.S: Likewise.
1597 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1599         * libio/genops.c (_IO_least_marker): Add additional parameter
1600         end_p replacing fp->_IO_read_end.
1601         (save_for_backup): Likewise.  All callers changed.  Use _IO_size_t
1602         and _IO_ssize_t instead of int.
1603         (_IO_switch_to_main_get_area): Remove use of _IO_save_ptr.
1604         (_IO_switch_to_backup_area): Likewise.  Fix comments.
1605         (_IO_seekmark): Undo last change.
1606         (_IO_default_pbackfail): Correct use of backup area.
1607         * libio/libio.h (_IO_FILE_complete): Remove _IO_save_ptr.
1609 1998-11-04 19:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1611         * configure.in: Search for install-info and substitute it.
1612         Determine whether install-info is the buggy Debian version
1613         that doesn't understand INFO-DIR-SECTION.
1614         * config.make.in: Add INSTALL_INFO and OLD_DEBIAN_INSTALL_INFO
1615         to be substituted.
1616         * manual/Makefile: If OLD_DEBIAN_INSTALL_INFO, give
1617         install-info the --section argument it needs to work properly.
1618         (dir-add.texinfo): Delete target.
1619         (dir-add.info): Generate this directly.  Sort entries.  Put a
1620         colon at the end of the INFO-DIR-SECTION line.
1621         * manual/libc.texinfo: Put a colon at the end of the
1622         @dircategory line.
1624 1998-11-05  Paul Eggert  <eggert@twinsun.com>
1626         * time/mktime.c (__mktime_internal): Adopt the traditional (and
1627         problematic) notion of what to do when tm_isdst doesn't match.
1629 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1631         * posix/PTESTS: Fix spelling.
1633 1998-11-04  Ulrich Drepper  <drepper@cygnus.com>
1635         * misc/efgcvt_r.c (fcvt_r): Remove code which tries to use libm
1636         functions.  Reduce error in computing normalized value by multiplying
1637         factor in loop and compute result in one step.
1638         Reported by Christian Gafton.
1640         * sysdeps/libm-i387/e_hypot.S: New file.
1641         * sysdeps/libm-i387/e_hypotf.S: New file.
1643 1998-11-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1645         * elf/dlopenold.c: Compile only if DO_VERSIONING is also defined.
1647 1998-11-03  H.J. Lu  <hjl@gnu.org>
1649         * libio/fileops.c (new_do_write): New function.
1650         (_IO_new_do_write): Call new_do_write.
1651         (_IO_new_file_xsputn): Likewise.
1653         * libio/oldfileops.c (old_do_write): New function.
1654         (_IO_old_do_write): Call old_do_write.
1655         (_IO_old_file_xsputn): Likewise.
1657 1998-11-04  Ulrich Drepper  <drepper@cygnus.com>
1659         * time/mktime.c (__mktime_internal): Correct last change.  We must
1660         stop searching for the right isdst value before stepping to the
1661         initial value.
1663         * malloc/malloc.c: Make sure calloc really returned zeroed memory.
1664         Patch by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>.
1666 1998-11-02 16:12 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1668         * sysdeps/generic/bits/signum.h: Define signals with their
1669         historical numbers when those are in the 1-15 range and
1670         consistent across platforms.
1671         Define compatibility aliases (SIGIOT, SIGCLD) if __USE_MISC.
1672         Define SIG_DFL, SIG_IGN, SIG_ERR as numeric constants cast
1673         appropriately instead of with fake function declarations
1674         (would cause link errors).
1675         If __USE_UNIX98, define SIG_HOLD.
1677 1998-10-29  H.J. Lu  <hjl@gnu.org>
1679         * sysdeps/unix/sysv/linux/bits/sigaction.h (sigaction): Use
1680         union only if __USE_POSIX199309 is defined.
1682         * misc/sys/select.h (pselect): Declared only if __USE_GNU is
1683         defined.
1685 1998-11-03  Ulrich Drepper  <drepper@cygnus.com>
1687         * time/mktime.c (__mktime_internal): Handle broken down times
1688         around the time of the DST switches more correctly.
1690 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1692         * elf/Makefile (libdl-routines): Add dlopenold.
1693         * elf/Versions [libdl, GLIBC_2.1]: Add dlopen.
1694         * elf/dl-open.c (_dl_open): Check whether RTLD_LAZY or RTLD_GLOBAL
1695         is set and bounce otherwise.
1696         * elf/dlopen.c: Rename function to __dlopen_check and make version
1697         named dlopen.
1698         * elf/dlopenold.c: New file.
1700 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1702         * elf/Versions [libc, GLIBC_2.01]: Add _dl_global_scope_alloc.
1703         * elf/dl-open.c (_dl_global_scope_alloc): Move definition to
1704         * elf/dl-deps.c: ...here.
1705         * elf/dl-open.c (dl_open_worker): Call _dl_map_object_deps with
1706         new parameter and expect result.  Remove code handling RTLD_GLOBAL.
1707         Add return value of _dl_map_object_deps to
1708         _dl_main_searchlist->r_nlist.
1709         * elf/dl-deps.c (_dl_map_object_deps): Change to return value.
1710         If we parameter GLOBAL is nonzero add object and dependencies to
1711         the global scope.
1712         * elf/ldsodefs.h: Adapt prototype for _dl_map_object_deps.
1713         * elf/rtld.c (dl_main): Call _dl_map_object_deps with new parameter.
1714         Mark all objects as in global scope.
1715         * elf/dl-object.c (_dl_new_object): Initialize l_global to zero.
1717         * sysdeps/unix/sysv/linux/bits/sockunion.h: Add Econet support.
1719         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add .L prefix to symbols
1720         used in macro magic.
1722 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1724         * sysdeps/unix/sysv/linux/netatalk/at.h: Include <linux/atalk.h>
1725         before <sys/socket.h> to make sockaddr_at available to
1726         <sys/socket.h>.
1728         * posix/glob.h: Remove __P from parameter lists of declarations.
1730 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1732         * time/tzset.c (tz_compute): Remove unused parameter timer.
1733         Change caller.
1735 1998-11-02  Mark Kettenis  <kettenis@phys.uva.nl>
1737         * sysdeps/generic/bits/types.h (__ipc_pid_t): New typedef.
1739 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1741         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Remove
1742         unnecessary test and add cast.
1744 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1746         * posix/getconf.c: Add initializer SYSCONF for CHARCLASS_NAME_MAX.
1748         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Remove unused
1749         parameter fd.
1750         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
1752 1998-11-02  Mark Kettenis  <kettenis@phys.uva.nl>
1754         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
1755         fds_bits member.
1756         (__FDMASK): Use __fd_mask instead of unsigned long int in cast.
1758 1998-10-31  Richard Henderson  <rth@cygnus.com>
1760         * math/Makefile (gmp-objs): Add udiv_qrnnd.
1762         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL*): New.
1763         (inline_syscall*): New.
1764         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): New.
1765         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Kill __syscall* bits.
1767 1998-10-31  Ulrich Drepper  <drepper@cygnus.com>
1769         * aclocal.m4 (LIBC_PROG_FOO_GNU): Name output file using -o to
1770         avoid ld test generating an unwanted file.
1772         * posix/PTESTS: Remove comment about incorrect test (it is correct).
1774 1998-10-30  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1776         * sunrpc/Versions: Add xdr_uint32_t and xdr_int32_t.
1777         * sunrpc/pmap_rmt.c: Initialize clnt_stat variable.
1778         * sunrpc/rpc/auth_des.h: Use uint32_t for time values.
1779         * sunrpc/rpc/xdr.h: Add INT32 support.
1780         * sunrpc/xdr.c: Implement xdr_int32_t and xdr_uint32_t .
1782         * nis/nis_call.c: Changes for new 64bit clean NIS+ interface.
1783         * nis/nis_callback.c: Likewise.
1784         * nis/nis_creategroup.c: Likewise.
1785         * nis/nis_defaults.c: Likewise.
1786         * nis/nis_intern.h: Likewise.
1787         * nis/nis_lookup.c: Likewise.
1788         * nis/nis_ping.c: Likewise.
1789         * nis/nis_print.c: Likewise.
1790         * nis/nis_table.c: Likewise.
1791         * nis/nis_util.c: Likewise.
1792         * nis/nis_xdr.c: Likewise.
1793         * nis/rpcsvc/nis.h: Likewise.
1794         * nis/rpcsvc/nis.x: Likewise.
1795         * nis/rpcsvc/nis_callback.h: Likewise.
1796         * nis/rpcsvc/nis_object.x: Likewise.
1797         * nis/rpcsvc/nislib.h: Likewise.
1799         * nis/rpcsvc/yp.h: Remove casts to (u_long).
1800         * nis/rpcsvc/yp_prot.h: Likewise.
1801         * nis/rpcsvc/ypupd.h: Likewise.
1802         * nis/ypclnt.c: Change %ld to %d in sprintf.
1804 1998-10-29  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1806         * manual/locale.texi (Formatting Numbers): Fix strfmon examples.
1808 1998-10-28  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1810         * sysdeps/generic/bits/select.h (__FD_ZERO): Change '\0' to plain
1811         0, __fd_mask is usually not a char.
1813 1998-10-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1815         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Allow
1816         compilation on systems without rt_* syscalls (e.g. on Linux 2.0).
1817         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
1818         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1819         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1820         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise
1821         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
1822         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1824         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Allow
1825         compiling on systems without rt_sigaction syscall.
1826         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction):
1827         Likewise.
1829 1998-10-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1831         * time/strptime.c (HERE_D_FMT): Fix typo.
1832         Reported by Claus Heine <heine@math1.rwth-aachen.de>, PR libc/842.
1834 1998-10-30  Ulrich Drepper  <drepper@cygnus.com>
1836         * catgets/Makefile (tests): Add rules to run gencat on test1.msg.
1837         (generate): Add test1.cat and test1.h.
1838         (distribute): Add test1.msg.
1839         * catgets/test1.msg: New file.
1841         * catgets/gencat.c: Do a better job in initializing dynamic
1842         memory [PR libc/844].
1844 1998-10-30 18:11  Ulrich Drepper  <drepper@cygnus.com>
1846         * iconv/gconv_conf.c (__gconv_read_conf): Don't define as
1847         internal_function since it is called through a pointer.
1848         * iconv/gconv_db.c (free_derivation): Likewise.
1849         * iconv/gconv_int.h: Adjust prototype od __gconv_read_conf.
1851         * posix/wordexp.c: Add internal_function to parse_backtick definition.
1852         * rt/aio_misc.c: Add internal_function to __aio_free_request,
1853         __aio_find_req, __aio_find_req_fd, and __aio_enqueue_request
1854         definitions.
1855         * rt/aio_notify.c: Add internal_function to __aio_notify_only and
1856         __aio_notify definitions.
1857         * wcsmbsload.c: Add internal_function to __wcsmbs_load_conv definition.
1859 1998-10-30  Ulrich Drepper  <drepper@cygnus.com>
1861         * Makerules (build-shlib): Add -O to generate optimized shared
1862         objects.
1864 1998-10-30 11:15  Ulrich Drepper  <drepper@cygnus.com>
1866         * sysdeps/libm-i387/e_fmod.S: Remove invalid operand size suffix.
1867         * sysdeps/libm-i387/e_fmodf.S: Likewise.
1868         * sysdeps/libm-i387/e_fmodl.S: Likewise.
1869         * sysdeps/libm-i387/s_ilogb.S: Likewise.
1870         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
1871         * sysdeps/libm-i387/s_logb.S: Likewise.
1872         * sysdeps/libm-i387/s_logbf.S: Likewise.
1873         * sysdeps/libm-i387/s_remquo.S: Likewise.
1874         * sysdeps/libm-i387/s_remquof.S: Likewise.
1875         * sysdeps/libm-i387/s_remquol.S: Likewise.
1876         * sysdeps/libm-i387/s_significand.S: Likewise.
1877         * sysdeps/libm-i387/s_significandf.S: Likewise.
1879 1998-10-30  Geoff Keating  <geoffk@ozemail.com.au>
1881         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Really correct
1882         _llseek.
1884 1998-10-30  Geoff Keating  <geoffk@ozemail.com.au>
1886         * math/libm-test.c: Loosen deltas for sin(0.9)^2+cos(0.9)^2.
1888 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
1890         * stdio-common/vfprintf.c (vfprintf): Fix the remaining premature
1891         returns without cleaning up the lock.
1892         (printf_unknown): Add label all_done.
1894         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Keep Linux 2.0
1895         kernels in mind when reading /proc/self/fd/FD.
1896         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
1898         * nscd/nscd.c (doc): It's "Name Service" not "Name Switch".
1900         * malloc/mtrace.c (tr_where): Replace snprintf call by mempcpy and
1901         _fitoa.
1903         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Try reading
1904         /prof/self/fd/FD first.
1905         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
1907         * stdio-common/_itoa.h (_fitoa_word): New inline function.  Write
1908         formatted number starting at given position and return pointer to
1909         following byte.
1910         (_fitoa): Likewise, for long long.
1912 1998-10-29  Roland McGrath  <roland@baalperazim.frob.com>
1914         * sysdeps/unix/sysv/linux/bits/sem.h,
1915         sysdeps/unix/sysv/linux/bits/ipc.h,
1916         sysdeps/unix/sysv/linux/bits/shm.h,
1917         sysdeps/unix/sysv/linux/bits/msq.h: Moved to ...
1918         * sysdeps/gnu/bits/sem.h, sysdeps/gnu/bits/ipc.h,
1919         sysdeps/gnu/bits/shm.h, sysdeps/gnu/bits/msq.h: ... here,
1920         so the same bits will be used for the Hurd.
1922 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
1924         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Allow
1925         compiling on systems without rt_sigaction syscall.
1927 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
1929         * Makeconfig (sysdep-subdirs): Allow Subdirs files to remove
1930         directories as well as add them.
1932 1998-10-28  Philip Blundell  <pb@nexus.co.uk>
1934         * sysdeps/unix/sysv/linux/neteconet/ec.h: New file.  Support for
1935         AF_ECONET sockets as found in recent Linux 2.1 kernels.
1936         * sysdeps/unix/sysv/linux/Dist: Distribute it.
1937         * sysdeps/unix/sysv/linux/Makefile: Install it.
1939 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1941         * string/bits/string2.h: __USE_GNU already implies __USE_MISC.
1943 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1945         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
1946         fds_bits member.
1947         * sysdeps/unix/sysv/linux/alpha/bits/types.h (__FDS_BITS): Likewise.
1948         * sysdeps/unix/sysv/linux/bits/types.h (__FDS_BITS): Likewise.
1949         * sysdeps/unix/sysv/linux/mips/bits/types.h (__FDS_BITS): Likewise.
1950         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h (__FDS_BITS):
1951         Likewise.
1952         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h (__FDS_BITS):
1953         Likewise.
1954         * sysdeps/generic/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
1955         __FD_ISSET): Use it.
1956         * sysdeps/i386/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
1957         __FD_ISSET): Likewise.
1959 1998-10-28  Geoff Keating  <geoffk@ozemail.com.au>
1961         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Tidy up, correct
1962         llseek.
1964         * sysdeps/unix/sysv/linux/powerpc/pread.c: Do not use the i386 version.
1965         Instead call the system call wrapper function using an 64bit argument.
1966         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1967         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
1968         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1970 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
1972         * signal/signal.h: Don't include <time.h> for timespec, add
1973         forward declaration.
1975         * sysdeps/i386/bits/select.h [!__USE_XOPEN]: Add special version
1976         of __FD_* macros which use __fds_bits.
1977         * sysdeps/generic/bits/select.h: Likewise.
1978         Reported by Matt McLean <keys@yikes.com>.
1980 1998-10-27  Philip Blundell  <pb@nexus.co.uk>
1982         * elf/elf.h: Update ARM definitions.
1984 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
1986         * signal/signal.h: Include bits/sigthread.h only for Unix98.
1988 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
1990         * include/libc-symbols.h: If HAVE_BUILTIN_EXPECT is not defined
1991         define __builtin_expect as a macro substituting to the first
1992         argument.
1993         * config.h.in: Define HAVE_BUILTIN_EXPECT.
1994         * configure.in: Add test for __builtin_expect.
1996         * sysdeps/unix/sysv/linux/bits/types.h: Include
1997         bits/pthreadtypes.h only not for POSIX 199506.
1998         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
1999         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2000         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
2002 1998-10-26  Mark Kettenis  <kettenis@phys.uva.nl>
2004         * sysdeps/unix/sysv/linux/Versions: Move shutdown ...
2005         * socket/Versions [libc, GLIBC_2.0]: ... to here.
2007 1998-10-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2009         * include/stdio.h: Included <stddef.h> for size_t.
2011         * stdio/stdio.h: Move __path_search, __gen_tempname, __libc_fatal
2012         to ...
2013         * include/stdio.h: ...here.
2014         * libio/stdio.h: Removed __path_search, __gen_tempname, __libc_fatal.
2016 1998-10-26 11:09  Ulrich Drepper  <drepper@cygnus.com>
2018         * time/Makefile (tests): Add tst-posixtz.
2019         * time/tst-posixtz.c: New file.
2021 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2023         * elf/rtld.c (process_envvars): Accept any non-null value of
2024         LD_BIND_NOW, as mandated by the ABI.
2026 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2028         * sysdeps/unix/sysv/linux/pread.c: Rename __syscall_pread64 to
2029         __syscall_pread.
2030         * sysdeps/unix/sysv/linux/pwrite.c: Rename __syscall_pwrite64 to
2031         __syscall_pwrite.
2032         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2033         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2034         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2035         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2036         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.  Remove
2037         duplicate entries.
2038         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Remove
2039         s_pread64 and s_pwrite64.
2040         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2042 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2044         * sysdeps/unix/sysv/linux/llseek.c: Use INLINE_SYSCALL.
2045         * sysdeps/unix/sysv/linux/arm/syscalls.list: Rename __sys_llseek
2046         to __syscall__llseek.
2047         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2048         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2049         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove entry for
2050         __sys_llseek.
2052 1998-10-26  Cristian Gafton  <gafton@redhat.com>
2054         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add s_setfsgid
2055         and s_setfsuid.
2057 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
2059         * time/tzset.c (tz_compute): Correct last patch and describe this
2060         in a comment.
2062 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2064         * sysdeps/unix/sysv/linux/m68k/Makefile [subdir=signal]: Remove
2065         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo,
2066         rt_sigaction and rt_sigpending.
2067         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Remove all entries
2068         for __syscall_* functions.
2069         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Implement INLINE_SYSCALL.
2071 1998-10-26  Roland McGrath  <roland@baalperazim.frob.com>
2073         * hurd/Versions: Add _hurd_dtable, _hurd_dtablesize,
2074         _hurd_dtable_lock, _hurd_intern_fd.
2076         * sysdeps/mach/hurd/Versions: Add cthread_keycreate,
2077         cthread_getspecific, cthread_setspecific, __libc_getspecific.
2079         * mach/Versions: Fix typo in last change.
2081 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
2083         * time/tzset.c (tz_compute): If time to switch to DST is later in
2084         the year switch back in the next year.
2085         Reported by jwitford@hutch.com.au.
2087 1998-10-24  Mark Kettenis  <kettenis@phys.uva.nl>
2089         * mach/Versions: Add evc_wait, mach_error, mach_error_string,
2090         mach_error_type, mach_msg_destroy, mig_deallocate_reply_port.
2091         Remove __mach_host_self, __mach_reply_port, __mach_setup_thread,
2092         __mach_port_allocate, __mach_port_allocate_name,
2093         __mach_port_insert_right __mutex_trylock, __mutex_lock,
2094         __mutex_unlock, __swtch, __switch, __task_create, __task_suspend,
2095         __task_set_special_port, __task_terminate, __thread_depress_abort,
2096         __thread_switch, __vm_allocate, __vm_deallocate, __vm_map.  These
2097         functions are not used outside libc.
2099         * sysdeps/mach/hurd/Versions: New file.
2100         [libc, GLIBC_2.0]: Add _cthread_exit_routine and
2101         _cthread_init_routine.  These are set by the Hurd cthreads library.
2102         Add __getcwd, __mmap.  If we don't add these, the weak definitions in
2103         the dynamic linker will not be replaced by the corresponding shared
2104         library routines once they are loaded.
2106 1998-10-21  Mark Kettenis  <kettenis@phys.uva.nl>
2108         * sysdeps/mach/hurd/i386/init-first.c: Only define
2109         __libc_enable_secure if PIC is not defined.
2111 1998-10-25  Roland McGrath  <roland@baalperazim.frob.com>
2113         * argp/Versions: Add _argp_unlock_xxx.  Lock-savvy functions call this
2114         to recurse into argp.
2116 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
2118         * include/features.h: Define __USE_POSIS199506 is _POSIX_C_SOURCE is
2119         greater or equal than 199506L.
2121         * sysdeps/generic/bits/types.h (__fd_set): Define element as fds_bits
2122         only is __USE_XOPEN.  Otherwise use __fds_bits.
2123         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2124         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2125         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
2126         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2127         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
2129 1998-10-24  H.J. Lu  <hjl@gnu.org>
2131         * locale/programs/charmap.c (parse_charmap): Accept tok_string
2132         for <code_set_name>.
2134 1998-10-25  H.J. Lu  <hjl@gnu.org>
2136         * locale/programs/ld-ctype.c (ctype_finish): Also check
2137         <space>.
2139 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
2141         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX199506.
2143         * sysdeps/unix/sysv/linux/bits/types.h: Include pthreadtypes.h only
2144         if __USE_POSIX199506 or __USE_UNIX98.
2146 1998-10-24 22:34 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2148         * string/bits/string2.h: Inline strdup+friends only if
2149         __USE_MISC || __USE_GNU (prevents namespace pollution).
2151 1998-10-24  H.J. Lu  <hjl@gnu.org>
2153         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (LOCK_SH,
2154         LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD.
2155         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (LOCK_SH, LOCK_EX,
2156         LOCK_NB, LOCK_UN): Likewise.
2157         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (LOCK_SH, LOCK_EX,
2158         LOCK_NB, LOCK_UN): Likewise.
2159         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (LOCK_SH, LOCK_EX,
2160         LOCK_NB, LOCK_UN): Likewise.
2161         * sysdeps/unix/sysv/linux/bits/fcntl.h (LOCK_SH, LOCK_EX,
2162         LOCK_NB, LOCK_UN): Likewise.
2164 1998-10-24  H.J. Lu  <hjl@gnu.org>
2166         * libio/ioseekoff.c (_IO_seekoff): Check the valid dir value.
2168         * libio/rewind.c (rewind): Clear the error.
2170 1998-10-24  H.J. Lu  <hjl@gnu.org>
2172         * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to
2173         "buffer".
2175 1998-10-24  H.J. Lu  <hjl@gnu.org>
2177         * sysdeps/unix/sysv/linux/alpha/bits/time.h (timeval): Protect
2178         with __need_timeval.
2179         * sysdeps/unix/sysv/linux/mips/bits/time.h (timeval): Likewise.
2180         * sysdeps/unix/sysv/linux/bits/time.h (timeval): Likewise.
2182 1998-10-24  H.J. Lu  <hjl@gnu.org>
2184         * signal/signal.h (timespec, siginfo_t, sigwaitinfo, sigtimedwait,
2185         sigqueue): Protect with __USE_POSIX199309.
2187 1998-10-24  H.J. Lu  <hjl@gnu.org>
2189         * time/time.h (timespec): Protect with __USE_POSIX199309 instead of
2190         __USE_POSIX.
2192 1998-10-24  H.J. Lu  <hjl@gnu.org>
2194         * libio/fileops.c (_IO_new_file_seekoff): Always resync with
2195         the kernel file offset.
2196         * libio/oldfileops.c (_IO_old_file_seekoff): Likewise.
2198 1998-10-24  H.J. Lu  <hjl@gnu.org>
2200         * time/tzfile.c (__tzfile_default): Set num_types to 2.
2202 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2204         * rt/aio.h: Move __aio_init to...
2205         * include/aio.h: ...here.
2207 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2209         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate
2210         definition of O_LARGEFILE.
2212 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2214         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path
2215         as first argument to statfs.
2217 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2219         * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else.
2221 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2223         * malloc/mtrace.c: Include <string.h> for strlen.
2225 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
2227         * sysdeps/mach/hurd/bits/environments.h: New file.
2229         * sysdeps/mach/hurd/dl-sysdep.c (__getcwd): New weak function.
2231         * mach/Versions, hurd/Versions: Add numerous symbols.
2232         Remove libmachuser and libhurduser sections, punt
2233         versioning for those libraries for now.
2235         * misc/Versions: Add reboot here; it exists on all platforms.
2236         * sysdeps/unix/sysv/linux/Versions: Remove reboot here.
2238 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
2240         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOFOLLOW): New
2241         macro.
2242         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2243         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2244         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_LARGEFILE,
2245         O_NOFOLLOW, O_DIRECT): New macros.
2246         (O_DIRECTORY): Correct definition according to official 2.1.126.
2247         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECTORY,
2248         O_NOFOLLOW): New macros.
2250 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
2252         * include/ldsodefs.h: Test HAVE_ELF instead of __ELF__.
2254         * sysdeps/mach/hurd/opendir.c (__opendir): Return ENOENT for "".
2255         (__opendir): Add trailing slash to name for open, for ENOTDIR check.
2257 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
2259         * sysdeps/unix/sysv/linux/i386/Dist: Add setresuid.c, setresgid.c,
2260         setfsuid.c, and setfsgid.c.
2261         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2262         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
2263         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
2265         * version.h (VERSION): Bump to 2.0.99.
2267         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove duplicate
2268         ustat definition.
2270         * sysdeps/unix/sysv/linux/i386/Dist: Remove s_pread64.c and
2271         s_pwrite64.c.
2273         * posix/fnmath.h: Don't redefine __P when used in glibc.
2274         * posix/glob.h: Likewise.
2276         * inet/rcmd.c (__ivaliduser2): Fix memory leak.
2277         Patch by Dick Streefland <dick_streefland@tasking.com>.
2279         * stdio-common/tst-ungetc.c: Add more test cases.
2281         * sysdeps/unix/sysv/linux/Dist: Add linux_fsinfo.h.
2282         * sysdeps/unix/sysv/linux/fstatvfs.c: Move filesystem magic number
2283         definitions to ...
2284         * sysdeps/unix/sysv/linux/linux_fsinfo.h: ...here.  New file.
2285         * sysdeps/unix/sysv/linux/fpathconf.c: New file.
2286         * sysdeps/unix/sysv/linux/pathconf.c: New file.
2287         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Handle _PC_LINK_MAX here.
2288         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
2290 1998-10-20  Philip Blundell  <pb@nexus.co.uk>
2292         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: Include
2293         <asm/ptrace.h> to define struct pt_regs.
2294         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Don't bother
2295         including <asm/ptrace.h> here.
2297         * sysdeps/unix/sysv/linux/arm/sysdep.S: Remove spurious call to
2298         C_SYMBOL_NAME macro.
2300 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2302         * sysdeps/generic/sys/ptrace.h (__ptrace_request): Remove comma at
2303         end of enumerator list.
2304         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Likewise.
2305         * posix/wordexp.h: Likewise.
2307         * db/db.h: Use __PMT instead of __P in typedefs.
2308         * db/mpool.h: Likewise.
2309         * sysdeps/generic/bits/siginfo.h: Likewise.
2310         * nis/rpcsvc/ypclnt.h: Likewise.
2312 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
2314         * libio/genops.c (_IO_seekmark): When switching to backup buffer
2315         make sure all characters from the read buffer are read after
2316         switching back to it.
2318 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
2320         * configure.in: Add support for Cygnus GNUPro compilers.
2322 1998-10-22  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2324         * stdio/stdio.h: Use __PMT instead of __P in typedefs.
2326         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use __PMT instead
2327         of __P for sa_restorer.
2328         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
2329         * sysdeps/unix/sysv/linux/kernel_sigaction.h (struct
2330         kernel_sigaction, old_kernel_sigaction): Likewise.
2332 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
2334         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add __syscall_pread
2335         and __syscall_pwrite aliases.
2337         * sunrpc/rpc/auth.h (AUTH_DH): New macro.  Alias for AUTH_DES.
2339         * sysdeps/unix/sysv/linux/i386/sysdep.h: Drastically simplify and
2340         improve INLINE_SYSCALL using macro assembler magic.
2342 1998-10-22  H.J. Lu  <hjl@gnu.org>
2344         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Add
2345         sanity check for n.
2346         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Likewise.
2348         * sysdeps/posix/fpathconf.c (__fpathconf): Set errno to
2349         EINVAL if errno == ENODEV.  Tested by VSX-PCT.
2351         * sysdeps/posix/isatty.c (__isatty): Don't reset errno.  Tested
2352         by VSX-PCT.
2354         * posix/execvp.c (execvp): Check "".  Tested by VSX-PCT.
2356 1998-10-22  Philip Blundell  <pb@nexus.co.uk>
2358         * sysdeps/unix/arm/sysdep.h: Wrap assembler macros in #ifdef
2359         __ASSEMBLER__.
2361 1998-10-21  Ulrich Drepper  <drepper@cygnus.com>
2363         * sysdeps/unix/sysv/linux/i386/sysdep.h: Remove EXTRAVARS_* macros
2364         and adjust formats.
2366 1998-10-21 14:38  Ulrich Drepper  <drepper@cygnus.com>
2368         * sysdeps/unix/sysdep.h (INLINE_SYSCALL): New macro.  Simply call
2369         __syscall_* function.
2370         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Use INLINE_SYSCALL instead
2371         of calling __syscall_* function.
2372         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2373         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2374         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2375         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2376         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
2377         * sysdeps/unix/sysv/linux/getresgid.c: Likewise.
2378         * sysdeps/unix/sysv/linux/getresuid.c: Likewise.
2379         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2380         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2381         * sysdeps/unix/sysv/linux/poll.c: Likewise.
2382         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2383         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2384         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2385         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2386         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2387         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2388         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
2389         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2390         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
2391         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2392         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2393         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2394         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2395         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2396         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2397         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2398         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2399         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2400         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2401         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2402         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2403         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2404         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2405         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2406         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2407         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2408         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
2409         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
2410         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2411         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2412         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2413         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
2415         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INLINE_SYSCALL using
2416         inline assembler.
2417         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove various
2418         __syscall_* definitions.
2420         * sysdeps/unix/sysv/linux/syscalls.list: Move various __syscall_*
2421         definitions to...
2422         * sysdeps/unix/sysv/linux/alpha/syscalls.list: ...here...
2423         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
2424         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
2425         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
2426         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
2427         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
2428         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
2430         * sysdeps/unix/sysv/linux/Makefile [subdir=signal] (sysdep_routines):
2431         Move definition to...
2432         * sysdeps/unix/sysv/linux/alpha/Makefile: ...here...
2433         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
2434         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
2435         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
2436         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
2437         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
2438         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
2440         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
2441         (sysdep_routines): Remove s_pread64 and s_pwrite64.
2443         * sysdeps/unix/sysv/linux/i386/pread.c: New file.
2444         * sysdeps/unix/sysv/linux/i386/pread64.c: New file.
2445         * sysdeps/unix/sysv/linux/i386/pwrite.c: New file.
2446         * sysdeps/unix/sysv/linux/i386/pwrite64.c: New file.
2447         * sysdeps/unix/sysv/linux/i386/s_pread64.S: Removed.
2448         * sysdeps/unix/sysv/linux/i386/s_pwrite64.S: Removed.
2450 1998-10-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2452         * sysdeps/unix/sysv/linux/siglist.h: Fix some typos in these files
2453         and bring them in synch.
2454         * sysdeps/unix/siglist.c: Likewise.
2455         Reported by Vladimir Michl <michlv@risc.upol.cz> [PR libc/832].
2457 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2459         * sysdeps/unix/sysv/linux/i386/setresuid.c: Allow -1 as arguments.
2460         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2462         * sysdeps/unix/sysv/linux/i386/setreuid.c: New file.
2463         * sysdeps/unix/sysv/linux/i386/setregid.c: New file.
2464         * sysdeps/unix/sysv/linux/m68k/setreuid.c: New file.
2465         * sysdeps/unix/sysv/linux/m68k/setregid.c: New file.
2466         * sysdeps/unix/sysv/linux/arm/setreuid.c: New file.
2467         * sysdeps/unix/sysv/linux/arm/setregid.c: New file.
2468         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: New file.
2469         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: New file.
2470         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add s_setreuid and
2471         s_setregid.
2472         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
2473         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2474         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2476 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2478         * sunrpc/rpc_main.c (close_output, close_input): New functions.
2479         (c_output, h_output, s_output, l_output, t_output, svc_output,
2480         clnt_output, mkfile_output): Call them at the end.
2482 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2484         * db/Makefile (LDFLAGS-db1.so): New variable, to avoid duplicating
2485         link command.
2487 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2489         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Add real contents.
2490         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add s_setfs[ug]id.
2492 1998-10-20  Ulrich Drepper  <drepper@cygnus.com>
2494         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_pread64 and
2495         s_pwrite64.
2496         * sysdeps/unix/sysv/linux/powerpc/pread.c: New file.
2497         * sysdeps/unix/sysv/linux/powerpc/pread64.c: New file.
2498         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: New file.
2499         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: New file.
2500         Patch by Geoffrey KEATING <geoffk@discus.anu.edu.au>.
2502 1998-10-18  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2504         * sysdeps/unix/opendir.c: Check at runtime for kernel support for
2505         O_DIRECTORY.
2507 1998-10-20  H.J. Lu  <hjl@gnu.org>
2509         * sysdeps/unix/sysv/linux/i386/setresuid.c (__setresuid): Fix
2510         argument types.
2512 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2514         * math/tgmath.h: Make nested function calls work.
2516         * include/ldsodefs.h: Fix typo.
2518         * posix/Makefile (tests): Add tst-preadwrite.
2519         * posix/tst-preadwrite.c: New file.
2521         * sysdeps/unix/opendir.c (__opendir): Add back fstat call to make
2522         sure that descriptor is in any case for a directory.
2524 1998-10-19 18:59 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2526         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val.
2527         (atan2): Takes two arguments.
2529 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2531         * include/ldsodefs.h: New file.
2533         * iconv/gconv.c: Include ldsodefs.h, not elf/ldsodefs.h.
2534         Remove change to avoid using _CALL_DL_FCT.
2535         * iconv/gconv_db.c: Likewise.
2536         * iconv/gconv_dl.c: Likewise.
2537         * iconv/skeleton.c: Likewise, here for DL_CALL_FCT.
2538         * malloc/mtrace.c: Include ldsodefs.h, not elf/ldsodefs.h.
2539         * nss/nsswitch.c: Likewise.
2540         * nss/nsswitch.h: Likewise.
2542 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2544         * sunrpc/Makefile (otherlibs): If static NSS is in use, set to the
2545         required libraries.
2546         * login/Makefile (otherlibs): Likewise.
2547         * nscd/Makefile (otherlibs): Likewise.
2548         * Makeconfig (link-libc) [! build_shared]: Add $(otherlibs).
2550         * debug/Makefile (install-bin): Only build catchsegv if using ELF.
2552         * inet/Makefile: Add -DSTATIC_NSS to CFLAGS.
2554 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2556         * sysdeps/unix/sysv/linux/arm/syscalls.list: Added setfsgid
2557         and setfsuid.
2559 1998-10-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2561         * nscd/connections.c: Fix typos in comments and strings.
2563         * nscd/nscd.conf: Update according to recent changes to nscd.
2565         * nscd/cache.c (prune_cache): Remove wrong comment.
2567 1998-10-19 13:24  Ulrich Drepper  <drepper@cygnus.com>
2569         * locale/programs/ld-collate.c (collate_startup): Clear bit for this
2570         category in copy_posix.
2571         (collate_finish): Don't warn about UNDEFINED not being defined.
2572         * locale/programs/ld-ctype.c (ctype_startup): Clear bit for this
2573         category in copy_posix.
2574         * locale/programs/ld-messages.c (messages_startup): Likewise.
2575         * locale/programs/ld-monetary.c (monetary_startup): Likewise.
2576         * locale/programs/ld-numeric.c (numeric_startup): Likewise.
2577         * locale/programs/ld-time.c (time_startup): Likewise.
2578         * locale/programs/localedef.c: Move copy_def_list_t definition into
2579         locales.h.  Define copy_posix variable.
2580         (main): Before processing copy list add &copy_posix to copy_list.
2581         * locale/programs/locales.h: Add definition of copy_def_list_t.
2582         * locale/programs/locfile.c: Clear bit for appropriate category in
2583         copy_posix.mask for copy instruction.
2585 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2587         * sysdeps/unix/sysv/linux/i386/setresgid.c: Remove #include of
2588         non-existing file with generic implementation.
2589         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2591 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2593         * iconv/gconv_db.c: Include ELF header only if STATIC_GCONV is not
2594         defined.  Avoid using _CALL_DL_FCT if it is not defined.
2595         * iconv/gconv.c: Likewise.
2597 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2599         * nscd/connections.c (dbs): Define defualt values for timeouts and
2600         set enabled to 0 by default.
2601         (CACHE_PRUNE_INTERVAL): New constant.  Use it instead of magical 15 in
2602         nscd_run.
2604         * locale/C-ctype.c (_nl_C_LC_CTYPE_class): Clear ISCNTRL bit for
2605         character >= 0x80.
2606         (_nl_C_LC_CTYPE_class32): Likewise.
2607         Reported by HJ Lu.
2609 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2611         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2612         _HURD_THREADVAR_DL_ERROR.
2614         * hurd/Makefile (user-interfaces): Add login, password.
2616         * sysdeps/mach/hurd/Makefile (+cflags): Append -Wno-parentheses.
2618 1998-08-06  Mark Kettenis  <kettenis@phys.uva.nl>
2620         [submitted 1998-08-06]
2621         * mach/Machrules: Create target directory and force re-evaluation
2622         of Makefile to prevent `make' from optimizing away most of the
2623         implicit rules and `vpath' directives.
2625 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2627         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): If _hurd_msgport_thread
2628         is null, short-circuit to __mach_msg.
2630         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): New function,
2631         broken out of init1.
2632         (init1) [PIC]: Call it.
2633         (__libc_init_first) [! PIC]: Call it.
2635         * sysdeps/mach/hurd/i386/init-first.c (init1): Don't call
2636         __libc_init_secure.  Instead set __libc_enable_secure here from
2637         the exec flags.
2638         (__libc_enable_secure): New variable it.
2639         * sysdeps/mach/hurd/enbl-secure.c: New file, empty placeholder module.
2641 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2643         * nscd/nscd-client.h: New file, broken out of "nscd.h".
2644         * nscd/nscd.h: Move defns needed by clients to "nscd-client.h",
2645         and #include that.
2646         * nscd/Makefile (distribute): Add nscd-client.h.
2647         * nscd/nscd_getgr_r.c, nscd/nscd_gethst_r.c, nscd/nscd_getpw_r.c:
2648         Include "nscd-client.h" instead of "nscd.h"
2650 1998-10-18  Ulrich Drepper  <drepper@cygnus.com>
2652         * sysdeps/posix/getcwd.c (__getcwd): Don't stop processing
2653         directory entries when a lstat call fails.
2654         Patch by Colin Plumb <colin@nyx.net>.
2656         * resolv/nss_dns/dns-host.c: Add missing errnop parameter to the
2657         NSS functions.
2658         * resolv/nss_dns/dns-network.c: Likewise.
2660         * grp/Makefile: Don't search for linuxthreads in add-ons, use
2661         have-thread-library to determine whether threads are available.
2662         * pwd/Makefile: Remove wrong comment.
2664         * inet/Makefile: Define CFLAGS-gethstbyad_r.c, CFLAGS-gethstbynm_r.c,
2665         and CFLAGS-gethstbynm2_r.c to -DUSE_NSCD=1.
2667         * locale/C-messages.c: Define default strings for YESTR and NOSTR.
2669         * nss/Versions: Add __nss_hosts_lookup.
2671         * nss/getXXbyYY.c: Remove unneeded assignment.
2673         * nss/getXXbyYY_r.c: Include nscd/nscd_proto.h only if needed.
2675         Almost complete rewrite of the NSCD to make it smaller, faster,
2676         add more functionnality and make it easier to extend.
2677         * nscd/Makfile (routines): Add nscd_gethst_r.
2678         (nscd-modules): Add hstcache, gethstbyad_r, gethstbynm2_r, and cache.
2679         * nscd/cache.c: New file.
2680         * nscd/gethstbyad_r.c: New file.
2681         * nscd/gethstbynm2_r.c: New file.
2682         * nscd/hstcache.c: New file.
2683         * nscd/nscd_gethst_r.c: New file.
2684         * nscd/connections.c: Rewritten.  Don't start new thread for every
2685         new connection.  Use a fixed set of threads which handle all
2686         connections and also the cache cleanup.
2687         * nscd/grpcache.c: Rewritten to use generic cache handling functions
2688         in cache.c.
2689         * nscd/nscd.c: Recognize new parameter nthreads.  Adjust initialization
2690         for rewrite.  Remove handle_requests function.
2691         * nscd/nscd.h (NSCD_VERSION): Bump to 2.
2692         Define new data structure for the new unified cache and the host
2693         database entries.
2694         * nscd/nscd_conf.c: Rewrite parsing partly to allow adding of more
2695         databases easily.  Recognize check-files and threads definitions.
2696         * nscd/nscd.conf: Add definition of enable-cache and check-files to
2697         passwd and group definitions.  Add new set of definitions for hosts.
2698         * nscd/nscd_getgr_r.c: Rewrite for new protocol.
2699         * nscd/nscd_getpw_r.c: Likewise.
2700         * nscd/nscd_proto.h: Add prototype for host database functions.
2701         * nscd/nscd_stat.c: Rewrite to simplify printing of information
2702         for many databases.
2703         * nscd/dbg_log.c: Remove unnecessary variable initializations.
2704         Global variable debug_flag is renamed to dbg_level.
2705         * nscd/dbg_log.h: Declare set_logfile.
2707 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2709         * sysdeps/unix/sysv/linux/bits/fcntl.h: Add dummy definition of
2710         O_LARGEFILE back.
2712 1998-10-16  Paul Eggert  <eggert@shade.twinsun.com>
2714         * time/mktime.c: Some systems require <unistd.h> to be
2715         included before <time.h> for localtime_r to be declared
2716         properly.
2717         * time/strftime.c: Likewise.
2719 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2721         * db/Makefile: Add rule to generate shared object with the soname
2722         from glibc 2.0.
2724         * sysdeps/unix/opendir.c: Use O_DIRECTORY if available.  If not
2725         available double check to verify it's a directory.
2727         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add O_DIRECTORY.
2728         * sysdeps/unix/sysv/linux/mips/bits/fcntl: Likewise.
2729         * sysdeps/unix/sysv/linux/bits/fcntl.h: Remove O_* constants which
2730         are not generally available.
2731         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: New file.
2733         * sysdeps/unix/sysv/linux/i386/setgroups.c: Add range check for values.
2734         * sysdeps/unix/sysv/linux/arm/Makefile: New file.
2735         * sysdeps/unix/sysv/linux/arm/setegid.c: New file.
2736         * sysdeps/unix/sysv/linux/arm/seteuid.c: New file.
2737         * sysdeps/unix/sysv/linux/arm/setfsgid.c: New file.
2738         * sysdeps/unix/sysv/linux/arm/setfsuid.c: New file.
2739         * sysdeps/unix/sysv/linux/arm/setgid.c: New file.
2740         * sysdeps/unix/sysv/linux/arm/setgroups.c: New file.
2741         * sysdeps/unix/sysv/linux/arm/setresgid.c: New file.
2742         * sysdeps/unix/sysv/linux/arm/setresuid.c: New file.
2743         * sysdeps/unix/sysv/linux/arm/setuid.c: New file.
2744         * sysdeps/unix/sysv/linux/i386/setegid.c: New file.
2745         * sysdeps/unix/sysv/linux/i386/seteuid.c: New file.
2746         * sysdeps/unix/sysv/linux/i386/setfsgid.c: New file.
2747         * sysdeps/unix/sysv/linux/i386/setfsuid.c: New file.
2748         * sysdeps/unix/sysv/linux/i386/setgid.c: New file.
2749         * sysdeps/unix/sysv/linux/i386/setgroups.c: New file.
2750         * sysdeps/unix/sysv/linux/i386/setresgid.c: New file.
2751         * sysdeps/unix/sysv/linux/i386/setresuid.c: New file.
2752         * sysdeps/unix/sysv/linux/i386/setuid.c: New file.
2753         * sysdeps/unix/sysv/linux/m68k/setegid.c: New file.
2754         * sysdeps/unix/sysv/linux/m68k/seteuid.c: New file.
2755         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: New file.
2756         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: New file.
2757         * sysdeps/unix/sysv/linux/m68k/setgid.c: New file.
2758         * sysdeps/unix/sysv/linux/m68k/setgroups.c: New file.
2759         * sysdeps/unix/sysv/linux/m68k/setresgid.c: New file.
2760         * sysdeps/unix/sysv/linux/m68k/setresuid.c: New file.
2761         * sysdeps/unix/sysv/linux/m68k/setuid.c: New file.
2762         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: New file.
2763         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: New file.
2764         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: New file.
2765         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: New file.
2766         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: New file.
2767         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: New file.
2768         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
2769         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
2770         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: New file.
2772         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add s_setgid, s_setresuid,
2773         s_setresgid, and s_setuid.
2774         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2775         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
2776         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2777         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
2778         (sysdep_routines): Add setfsgid, setfsuid, setresgid, and setresuid.
2779         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2780         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
2782 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2784         * time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
2785         localtime_t declaration on some systems.
2787 1998-10-16 10:07  Ulrich Drepper  <drepper@cygnus.com>
2789         * iconv/Makefile [! elf]: Define CFLAGS-gconv_simple.c to
2790         -DSTATIC_GCONV.
2791         * iconv/skeleton.c: Include ELF header only of STATIC_GCONV is not
2792         defined.  Avoid using DL_CLL_FCT if it is not defined.
2794 1998-10-16 10:40 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2796         * resolv/arpa/nameser.h: Include sys/types.h unconditionally.
2797         Include endian.h unconditionally.  Remove portability goop
2798         depending on #ifdef linux, #ifdef BSD, #ifdef machine-type.
2800 1998-10-16 11:39 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2802         * sunrpc/rpc/types.h: Mark file so fixincludes won't modify it.
2804 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
2806         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Remove __kernel_termios
2807         again.  Use char[44] to define size of the struct.
2809         * sysdeps/unix/sysv/linux/arm/Dist: Add bits/armsigctx.h.
2811 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2813         * string/bits/string2.h (strcmp): Don't cache the result of
2814         __builtin_constant_p in variables, otherwise constant folding
2815         can fail in big functions.
2817 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2819         * string/bits/string2.h: Add prototypes for the new inline
2820         functions.
2822 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
2824         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Include termios.h to
2825         have all types defined.
2826         Patch by Matti Aarnio <matti.aarnio@sonera.fi>.
2828 1998-10-08  Paul Eggert  <eggert@twinsun.com>
2830         * time/mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
2831         Define also if HAVE_LOCALTIME_R && defined localtime_r, with
2832         a body that merely expands localtime_r; this works around a
2833         bug in Digital Unix 4.0A and 4.0D.
2835 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
2837         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_ioctl.
2838         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: New file. Define
2839         __ioctl to __syscall_ioctl and include Linux version of this file.
2840         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2841         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: New file.  Redirect
2842         ioctl calls which handle struct termios.
2843         Based on a patch by Dan Jacobowitz <drow@false.org>.
2845 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
2847         * version.h (VERSION): Bump to 2.0.98.
2849         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Define __kernel_termios
2850         here instead of including kernel_termios.h.
2852 1998-10-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2854         * sysdeps/unix/opendir.c (__opendir): Remove label lose2 which is
2855         unnecessary after the changes of 1998-10-12.
2857 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
2859         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
2860         parameter format string.
2861         (inline_outw): Likewise.
2863         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
2864         string.h to get memcpy prototype and NULL definition.
2866 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2868         * misc/sys/cdefs.h (__THROW): New macro.
2869         * argp/argp.h: Use it to replace the kludgey __P in inline
2870         function definitions.
2871         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2872         * stdlib/stdlib.h: Likewise.
2873         * wcsmbs/wchar.h: Likewise.
2874         * libio/stdio.h: Likewise.
2875         * stdio/stdio.h: Likewise.
2876         * sysdeps/wordsize-64/inttypes.h: Likewise.
2877         * sysdeps/wordsize-32/inttypes.h: Likewise.
2878         * string/argz.h: Likewise.
2879         * io/sys/stat.h: Likewise.
2881 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2883         * Rules (stdio_lim): New variable.
2884         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
2885         on Rules and config.make, use $(move-if-change) to avoid unnessary
2886         recompilations, and cleanup command.
2887         (common-generated): Add bits/stdio_lim.st.
2889 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
2891         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
2892         variable to prevent warnings from use of modern CPU instructions.
2893         Patch by Richard Henderson <rth@cygnus.com>.
2895         * sysdeps/unix/opendir.c: Test whether NAME is directory before
2896         opening it.
2898 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
2900         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
2901         semicolon so that profiling works.
2903 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
2905         * sysdeps/generic/glob.c: #undef mempcpy before #define.
2907         * sysdeps/unix/bsd/clock.c: Use prototype defns.
2909 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
2911         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
2912         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
2914         * string/bits/string2.h [!_STRING_ARCH_unaligned]
2915         (__mempcpy_small): Add parameter for 1 byte copy and use it.
2916         Reported by Geoff Keating <geoffk@ozemail.com.au>.
2918 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
2920         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
2921         it is already defined in <bits/environments.h>.
2923 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
2925         * posix/ptestcases.h: Fix typo.
2927 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2929         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
2930         (regexec): Allocate regs.start and regs.end as one block.
2932 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2934         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
2935         enum decl.
2937 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
2939         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
2940         sigcontext union to ...
2941         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
2942         file.
2943         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
2944         version 2.0 kernels.
2946 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
2948         * malloc/mtrace.c (tr_reallochook): Produce better output for real
2949         reallocation case.
2951         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
2952         * argp/argp-xinl.c: Likewise.
2954         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
2955         Ruffian entry back.
2956         Patch by Christian Gafton.
2958 1998-10-08  Paul Eggert  <eggert@twinsun.com>
2960         * time/mktime.c (__mktime_internal): When the requested time falls
2961         in a spring-forward gap of size DT, return a time that is DT away
2962         from the requested time, preferring a time whose tm_isdst differs
2963         from the requested value.  Bump the max number of probes from 4 to
2964         6 to account for the extra probes needed to discover a
2965         spring-forward gap in the worst case.
2967 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
2969         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
2970         of the weird alpha architectures.
2971         Patch by Cristian Gafton <gafton@redhat.com>.
2973 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
2975         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
2976         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
2978 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
2980         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
2981         (dl_open_worker): Use realloc, not malloc to resize array.
2982         * elf/rtld.c (_dl_initial_searchlist): New variable.
2983         (_dl_main): Copy content of _dl_main_searchlist to
2984         _dl_initial_searchlist.
2985         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
2986         _dl_global_scope_alloc.
2987         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
2988         * elf/dl-close.c (_dl_close): When removing object with global
2989         scope remove allocated searchlist if no dynamically loaded object
2990         is on it anymore.
2991         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
2992         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
2994         * malloc/mtrace.c (tr_where): Don't print space in location string,
2995         print it afterwards.  Print better symbol name information.
2997 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2999         * manual/filesys.texi (Setting Permissions): Fix example for
3000         reading umask.
3002 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3004         * elf/sprof.c (load_profdata): Fix typo in error message.
3006 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
3008         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
3009         flag.
3011 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
3013         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
3015 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
3017         * version.h (VERSION): Bump to 2.0.97.
3019 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3021         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
3022         in definitions of inline stat functions so that they match the
3023         declaration.
3024         * stdlib/stdlib.h: Likewise.
3025         * wcsmbs/wchar.h: Likewise.
3026         * libio/stdio.h: Likewise.
3027         * stdio/stdio.h: Likewise.
3028         * sysdeps/wordsize-64/inttypes.h: Likewise.
3029         * sysdeps/wordsize-32/inttypes.h: Likewise.
3030         * string/argz.h: Likewise.
3031         * argp/argp.h: Likewise.
3033 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
3035         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
3036         netinet/in.h.
3038 1998-10-05  Philip Blundell  <philb@gnu.org>
3040         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
3041         and constants.  Tidy up formatting a little.
3043         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
3044         Move definitions to in.h.
3046 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3048         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
3049         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
3050         Remove inclusion of <linux/swap.h>.
3052 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
3054         * io/sys/stat.h: Use __P in definitions of inline stat functions
3055         so that they match the declaration.
3057 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3059         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
3061 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3063         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
3064         linux 2.1 version.
3066 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
3068         * sysdeps/arm/dl-machine.h: Fix typo in last change.
3070         * sysdeps/arm/bits/huge_val.h: New file.
3072 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3074         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
3076         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
3077         define.
3079 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
3081         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
3082         store result of realloc instead of using BUF.
3084 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3086         * misc/sgtty.h (_SGTTY_H): Correct spelling.
3087         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
3089 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3091         * manual/memory.texi (Obstacks): Document
3092         obstack_alloc_failed_handler usage.
3094         * malloc/obstack.h: Enhance comment about
3095         obstack_alloc_failed_handler usage.
3096         * malloc/obstack.c: Likewise.
3098 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
3100         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
3101         gcc before 2.8 is used.
3103 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
3105         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
3106         from Scott Bambrough.
3108         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
3110         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
3111         include the lock member.
3113 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
3115         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
3117 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
3119         * timezone/zic.c: Update from tzcode1998h.
3120         * timezone/europe: Update from tzdata1998i.
3121         * timezone/southamerica: Likewise.
3123         * sys/types.h: Protect use of long long by __extension__.
3124         * stdlib/stdlib.h: Likewise.
3125         * string/string.h: Likewise.
3126         * sysdeps/i386/bits/byteswap.h: Likewise.
3127         * sysdeps/geeric/bits/byteswap.h: Likewise.
3128         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3129         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
3130         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
3131         * sysdeps/wordsize-32/inttypes.h: Likewise.
3132         * sysdeps/wordsize-32/stdint.h: Likewise.
3133         * wcsmbs/wchar.h: Likewise.
3135 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3137         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
3138         expression.
3139         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
3140         __strsep): Greatly reduce size of expansion by combining common
3141         expressions.
3142         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
3143         inline function.
3144         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
3145         by the above definitions.
3147 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
3149         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
3150         correct struct ipc_perm definition.
3152 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3154         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
3156 1998-09-29  Cristian Gafton  <gafton@redhat.com>
3158         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
3159         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
3160         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
3161         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
3162         Add net/if_shaper.h.
3164 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
3166         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
3168         * nis/ypclnt.c: Remove not needed close calls.
3170 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
3172         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
3173         check a bit.  Also close socket of domain client.  Close socket
3174         in IPPORT_RESERVED error case.
3176 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
3178         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
3179         CMSG_ALIGN (fixes a bug) and correct test for availability of
3180         another entry.
3181         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
3182         Linux version.
3183         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
3184         availability of another entry.
3185         Patch by ak@muc.de.
3187         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
3188         Patch by ak@muc.de.
3190         * libio/libio.h [!__STDC__]: Define const only if not defined.
3192 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3194         * posix/annexc.c (xsystem): New function.  Use it instead of
3195         system.
3197 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
3199         * stdlib/longlong.h: Remove #endif for #if removed in last change.
3201 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
3203         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
3204         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
3205         allow using `ut' parameter.
3206         [!emacs]: Define ut_argument, ut_argument_spec, and
3207         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
3208         argument_spec to prototypes and definitions.
3209         (my_strftime): Don't call tzset of ut != 0.
3210         Compute diff as 0 is ut != 0;
3211         [emacs]: Define new emacs_strftime function.
3212         Based on a patch by Paul Eggert.
3214 1998-09-24  Paul Eggert  <eggert@twinsun.com>
3216         * time/strftime.c (my_strftime): When asking for the length of the
3217         subformatted buffer, do not limit the length to look for;
3218         otherwise, we have no reliable way to distinguish between the
3219         empty buffer and an error.
3221 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
3223         * math/Makefile (gmp-objs): Add mp_clz_tab.
3225 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
3227         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
3228         set them.
3229         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
3230         cpus lacking hardware multiply and divide.
3232 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3234         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
3235         $(<F), not $(^F).
3237 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3239         * db/btree/bt_delete.c: Fix -Wparentheses warning.
3241 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3243         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
3244         $(do-install).
3246 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
3248         * debug/catchsegv.sh: Also produce output if clone process died.
3250 1998-09-24  Paul Eggert  <eggert@twinsun.com>
3252         * time/strftime.c (f_wkday): Remove duplicate definition.
3253         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
3254         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
3255         1998-09-11 fix to this case.
3256         (wkday_len, month_len): Remove these macros; they're no longer needed.
3258 1998-09-24  Paul Eggert  <eggert@twinsun.com>
3260         * time/strftime.c (my_strftime): Don't store past the end of a
3261         zero-sized buffer.
3263 1998-09-24  Paul Eggert  <eggert@twinsun.com>
3265         * time/strftime.c (underlying_strftime):
3266         Set the buffer to a nonzero value before calling
3267         strftime, and check to see whether strftime has set the buffer to zero.
3268         This lets us distinguish between an empty buffer and an error.
3270 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
3272         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
3273         This fix is propagated from tzcode1998g.tar.gz.
3275 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
3277         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
3278         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
3279         sys_siglist.  This is handled correctly by the weak_alias macro.
3281 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
3283         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
3284         of mempcpy.  Reported by Andreas Jaeger.
3286         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
3287         pollute the namespace since the compiler will resolve it inline.
3288         Reported by Florian La Roche <florian@suse.de>.
3290 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
3292         * timezone/private.h: Update from tzcode1998g.
3294         * timezone/africa: Update from tzdata1998h.
3295         * timezone/asia: Likewise.
3296         * timezone/australasia: Likewise.
3297         * timezone/europe: Likewise.
3298         * timezone/northamerica: Likewise.
3299         * timezone/southamerica: Likewise.
3300         * timezone/zone.tab: Likewise.
3302 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3304         * misc/sys/mman.h: New file.
3306         * sysdeps/generic/bits/mman.h: New file.
3307         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
3308         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
3309         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
3310         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
3312         * sysdeps/generic/sys/mman.h: Removed.
3313         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
3314         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
3315         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
3316         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
3317         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
3319         * include/sys/mman.h: Look directly for misc/sys/mman.h.
3320         * misc/Makefile (headers): Add bits/mman.h.
3321         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
3322         bits/mman.h.
3324         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
3325         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
3326         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
3327         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
3328         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
3329         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
3330         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
3331         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
3333 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3335         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
3336         * sysdeps/mach/alpha/thread_state.h: Likewise.
3337         * sysdeps/mach/i386/sysdep.h: Likewise.
3338         * sysdeps/mach/i386/thread_state.h: Likewise.
3339         * sysdeps/mach/mips/sysdep.h: Likewise.
3340         * sysdeps/mach/mips/thread_state.h: Likewise.
3341         * sysdeps/posix/profil.c: Likewise.
3342         * sysdeps/i386/i586/memcopy.h: Likewise.
3343         * sysdeps/mach/pagecopy.h: Likewise.
3345 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
3347         * libio/stdio.h: Define __need_getopt and include getopt.h to define
3348         getopt stuff.
3349         * posix/unistd.h: Likewise.
3350         * stdio/stdio.h: Likewise.
3351         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
3352         define only getopt and the variables.
3354 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3356         * scripts/test-installation.pl (installation_problem): Don't link
3357         the test program against libdb1.
3359 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
3361         * Makeconfig (all-subdirs): Add db.
3362         * Versions.def: Add definition for libdb1.
3363         * shlib-versions: Add definitions for libdb1.
3364         * db/Makefile (extra-libs): Replace by libdb1.
3365         (libdb-routines): Rename to libdb1-routines.
3366         (headers): Rename to db1-headers.
3367         (distribute): Add $(db1-headers).
3368         (install-others): Define to install symlink libdb.so.NN and the
3369         $(db1-headers).
3370         (CPPFLAGS): Add -DUSE_LIBDB1
3371         Remove rules to build makedb.
3372         * db/Versions: Rename libdb to libdb1.
3373         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
3374         * db/makedb.c: Removed.
3376         * scripts/versions.awk: Recognize digits in library names.
3378         * db/btree/bt_open.c: Fix compiler warnings.
3379         * db/btree/bt_put.c: Likewise.
3380         * db/btree/bt_split.c: Likewise.
3381         * db/hash/hash.c: Likewise.
3382         * db/hash/hash_bigkey.c: Likewise.
3383         * db/recno/rec_close.c: Likewise.
3385         * Makefile: Add localedata/% goal.
3387 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3389         * posix/execvp.c: Don't give up searching the PATH if execve
3390         returns ENOTDIR.
3392 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
3394         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
3395         if _dl_fpu_control_set is set.
3396         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
3397         * elf/rtld.c: Don't define _dl_fpu_control_set.
3398         * elf/Versions: Remove _dl_fpu_control_set.
3400 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
3402         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
3403         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
3404         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
3405         Correct values of other SA_* macros according to kernel headers.
3407 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3409         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
3410         variable l.
3411         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
3412         old.
3414 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3416         * elf/ldsodefs.h: Fix typo in comment.
3418 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3420         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
3421         char when comparing buffer contents with putback character.
3423 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3425         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
3426         Undo last change.
3427         * elf/Versions: Undo last change.  Export _dl_fpu_control and
3428         _dl_fpu_control_set.
3429         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
3430         variables.  Include <fpu_control.h>.
3431         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
3432         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
3433         to indicate that is was seen.
3434         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
3435         only if _dl_fpu_control was set and is equal to desired value.
3436         * math/Makefile (aux): Undo last change.
3437         * math/Versions: Export __fpu_control with version GLIBC_2.0.
3439 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3441         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
3442         optimized.
3444 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
3446         * string/bits/string2.h: Add mempcpy optimization.
3447         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
3448         * intl/localealias.c: Define mempcpy only if not already defined.
3450         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
3451         defined.
3453 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3455         * csu/abi-note.S: Emit the note directly instead of defining
3456         a preprocessor macro that's only used once.  Don't include sysdep.h.
3457         * abi-tags: Generalize Solaris entry.
3459 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3461         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
3462         Change to array to avoid runtime relocation.
3463         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
3465 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3467         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
3468         * math/Makefile ($(objpfx)libieee.a): Likewise.
3470 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
3472         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
3473         Patch by John Tobey <jtobey@banta-im.com>.
3475 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
3477         * login/Makefile (distribute): Remove pty-internal.h, add
3478         pty-private.h.
3480         * stdlib/tst-strtol.c: Add more checks.
3481         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
3483 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
3485         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
3486         * elf/elf.h: Add AT_FPUCW.
3487         * elf/Makefile (dl-routines): Add fpu_control.
3488         (elide-routines.os): Add fpu_control.
3489         (rtld-routines): Add fpu_control.
3490         * math/Makefile (aux): Remove fpu_control.
3491         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
3492         (_dl_show_auxv): Likewise.
3493         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
3494         if different from OS default.
3496         * stdio-common/tstscanf.c: Add test case for (nil).
3498 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
3500         * libio/fileops.c (_IO_new_file_underflow): Before allocating
3501         buffer make sure the pushback buffer is destroyed.
3502         (_IO_new_file_seekoff): Likewise.
3503         If mode==0 quit early with the result.
3504         Clear OEF flag after successful fseek.
3505         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
3506         * libio/ftello.c (ftello): Add offset from original buffer if
3507         stream has pushed back characters.
3508         * libio/ftello64.c (ftello64): Likewise.
3509         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
3510         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
3511         * libio/ioftell.c (_IO_ftell): Likewise.
3512         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
3513         and _IO_save_ptr.
3514         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
3515         (_IO_default_pbackfail): Only stored push back character in original
3516         buffer if it is the same as the one in the file at this position.
3517         * libio/iofclose.c: Free backup buffer if one is available.
3518         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
3519         mode!=0.
3521         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
3523         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
3525         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
3527 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
3529         * login/programs/pt_chown.c (more_help): Correct message that
3530         describes the purpose of the program.
3532         * login/openpty.c: Do not include pty-private.h.
3533         (pts_name): New function.  Return name of slave pseudo terminal in
3534         an allocated buffer if necessary.
3535         (openpty): Use pts_name to get name of the slave end of the pseudo
3536         terminal pair.
3538         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
3539         pts_name before return.
3541 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
3543         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
3545 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3547         * login/openpty.c: Include pty-private.h instead of
3548         pty-internal.h.
3550 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
3552         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
3554 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
3556         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
3557         recent ld.so changes.
3558         (elf_machine_runtime_setup): Correct behaviour when profiling.
3560 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
3562         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
3563         Patch by John Tobey <jtobey@banta-im.com>.
3565 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
3567         * login/pty-internal.h: Removed.  Moved constants related to the
3568         `grantpt' helper program protocol to ...
3569         * login/pty-private.h: ... here.  New file.
3570         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
3571         to make the function work with kernels >= 2.1.115.
3572         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
3573         version if using the cloning device fails.
3574         * sysdeps/unix/sysv/linux/grantpt.c: New file.
3575         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
3576         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
3577         use by Linux specific code.
3578         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
3579         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
3580         function.  (grantpt): Use pts_name, check group and permission
3581         mode in addition to owner.  Try to set the owner, group and
3582         permission mode first without invoking the helper program.
3583         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
3584         internationalization support.  Use symbolic constants instead of
3585         hardwired numbers for permission mode.
3586         * sysdeps/unix/bsd/ptsname.c: New file.
3588 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
3590         * posix/wordexp-test.c: Undo last change.
3592         * posix/wordexp.c: Undo last change.
3594 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
3596         * nscd/grpcache.c (save_grp): Partly undo last change.
3598         * nscd/pwdcache.c (save_pwd): Undo last change.
3600 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3602         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
3603         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
3605 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
3607         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
3608         Add profiling support.
3609         (TRAMPOLINE_TEMPLATE): New macro.
3610         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
3611         (RTLD_START): Prettify, and set __libc_stack_end properly.
3612         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
3613         and check for sym being NULL instead.
3614         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
3615         of stack space.
3616         * sysdeps/sparc/sparc64/lshift.S: Likewise.
3617         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
3618         * sysdeps/sparc/sparc64/rshift.S: Likewise.
3619         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
3620         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
3621         MEDANY code model %g4 usage.
3622         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
3623         MEDANY code model %g4 usage.
3624         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
3625         code model address formation.
3626         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
3627         include elf/ldsodefs.h
3628         (DT_SPARC): Remove.
3629         (elf_machine_matches_host): It is now EM_SPARCV9.
3630         (elf_machine_dynamic): Clean up to remove ugly cast.
3631         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
3632         new PLT formats.
3633         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
3634         Prettify rest of function.
3635         [R_SPARC_COPY]: Check for sym being NULL.
3636         [R_SPARC_32]: Handle it.
3637         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
3638         MEDMID code model.
3639         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
3640         MEDANY code model.
3641         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
3642         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
3643         Add profiling support.
3644         (TRAMPOLINE_TEMPLATE): New macro.
3645         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
3646         (RTLD_START): Prettify and set __libc_stack_end.
3647         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
3648         Define.
3649         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
3650         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
3651         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
3652         unused variable scratch.
3653         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3654         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
3655         Declare.
3656         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
3657         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
3658         old format kernel sigaction structures.
3659         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
3660         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
3661         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
3662         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
3663         ucontext include.
3664         (_JMPBUF_UNWINDS): Define.
3665         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
3666         statfs64 structure, which is exactly the same as the normal one.
3667         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
3668         of stack.  Use correct syscall trap number.  Add branch prediction
3669         settings to branch instructions.  Remove old MEDANY code model %g4
3670         referneces for non-PIC.
3671         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
3672         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
3673         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
3674         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3675         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3676         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
3677         __libc_longjmp and __libc_siglongjmp strong aliases.
3678         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
3679         Also define to __no__readdir64_decl around readdir.c inclusion.
3680         (__readdir64): Add strong alias.
3681         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
3682         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
3683         Set strong and weak names properly.
3685 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3687         * manual/Makefile (AWK): Default to gawk if standalone.
3689 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3691         * Makefile (distribute): Undo last change.
3692         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
3693         for sysdep headers.
3694         (+subdir-headers): Removed, unused.
3696 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3698         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
3699         $(do-install).
3701 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3703         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
3704         absolute name in $(config-sysdirs), can never happen.
3705         ($(+sysdir_pfx)sysd-rules): Likewise.
3706         * Makeconfig (full-config-sysdirs): Likewise.
3707         (all-Subdirs-files): Prepend $(..).
3709         * configure.in: Don't check for absolute name in $add_ons_pfx, can
3710         not happen.  Let --enable-add-ons=yes work if no add-ons actually
3711         exist.
3713 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3715         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
3716         continuations in command.
3718 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3720         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
3722 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
3724         * posix/wordexp-test.c: If expansion or substitution occurs
3725         anywhere in a word, the entire word is subject to field-splitting.
3727         * posix/wordexp.c (parse_glob): Look for end of word instead of
3728         end of field when deciding what to glob.
3729         (field_split_word): New function, now the only place where
3730         field-splitting is performed.
3731         (parse_dollars): New parameter - tell the caller if
3732         field-splitting should be performed on this word.
3734         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
3735         succeeded (or failed with WRDE_NOSPACE).
3737 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
3739         * posix/wordexp.c (wordexp): Don't convert IFS characters to
3740         blanks.
3742         * posix/wordexp-test.c: Words not the result of expansion or
3743         substitution should remain unchanged.
3745 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
3747         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
3748         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
3750 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3752         * stdio-common/Makefile: Include Makeconfig so that
3753         $(inst_includedir) is defined.
3755 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3757         * io/pwd.c: Include <mcheck.h>.
3759 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
3761         * nscd/pwdcache.c (save_pwd): Correct copying.
3762         * nscd/grpcache.c (save_grp): Likewise.
3764 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
3766         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
3767         (free_pwd): Adjust for this change.
3768         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
3769         (free_grp): Adjust for this change.
3771 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
3773         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
3775 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
3777         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
3778         (install-others): Add bits/stdio_lim.h.
3779         Add rule to install bits/stdio_lim.h.
3781         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
3783         * Makefile (distribute): Add include/sys/mman.h.
3785         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
3786         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
3787         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
3789         * grp/initgroups.c: Include stdlib.h.
3790         Patch by Zack Weinberg.
3792 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
3794         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
3795         for field-splitting :abc: is correct, and that two fields should
3796         result. Revert tests to reflect this.
3798         * posix/wordexp.c (w_emptyword): Remove function.
3799         (exec_comm): Don't use w_emptyword.
3800         (parse_param): Likewise.
3802 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
3804         * sysdeps/arm/fpu/Dist: Moved to...
3805         * sysdeps/arm/Dist: ...here.
3806         * sysdeps/posix/Dist: Removed.
3807         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
3808         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
3810 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
3812         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
3814 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
3816         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
3818 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3820         * libc-work/nis/nss_nisplus/nisplus-service.c
3821         (_nss_nisplus_parse_servent): Convert port in network byte order.
3823 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3825         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
3826         to provide only malloc and calloc.
3827         * include/stdlib.h: Support the above.
3828         * string/bits/string2.h: Use __need_malloc_and_calloc when
3829         including stdlib.h.
3830         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
3832         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
3833         * iconvdata/iso646.c: Include <stdlib.h>.
3835 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3837         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
3838         * sysdeps/libm-ieee754/w_pow.c: Likewise.
3839         * sysdeps/libm-ieee754/w_powf.c: Likewise.
3840         * sysdeps/libm-ieee754/w_powl.c: Likewise.
3842 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3844         * stdio-common/stdio_lim.h.in: New file.  All parameters
3845         are adjustable at build time.
3846         * Rules: Add a rule to build bits/stdio_lim.h from
3847         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
3848         all subdirectories know how to make the file.  It can't be
3849         in Makerules because then it gets built at top level and the
3850         dependencies are wrong.)
3852         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
3853         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
3854         stdio_lim.h.
3855         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
3856         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
3857         * sysdeps/posix/Makefile: Removed.
3858         * sysdeps/posix/mk-stdiolim.c: Removed.
3859         * sysdeps/generic/bits/stdio_lim.h: Removed.
3861 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3863         * argp/argp-help.c: Fixup indentation.
3864         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
3865         * resolv/nss_dns/dns-network.c: Likewise.
3866         * resolv/res_send.c: Likewise.
3867         * rt/aio_cancel.c: Likewise.
3868         * rt/aio_misc.c: Likewise.
3870 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3872         * Makefile (install-symbolic-link): Remove the link list file at last.
3873         * Makerules (install-clean-symbolic-link-list): Removed.
3875 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3877         * timezone/tst-timezone.c: Print time in UTC to get consistent
3878         output.
3880 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3882         * elf/rtld.c (_dl_rpath): Removed.
3883         * elf/dl-support.c (_dl_path): Removed.
3884         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
3885         (CFLAGS-dl-support.c): Removed.
3887         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
3888         uses changed.
3889         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
3890         instead of appending it to the main map's rpath info.
3891         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
3892         DT_RPATHs.  This makes it effective again.
3893         (decompose_rpath): Remove second parameter, callers changed.
3894         (fillin_rpath): Allocate enough space in curwd.
3895         (expand_dynamic_string_token): Cope with get_origin returning -1.
3897 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3899         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
3900         passwd.adjunct.
3902         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
3903         invalid password.
3905 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
3907         * locale/programs/locale.c: Update dates.
3909 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
3911         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
3912         size_t is defined.  Some reordering of definitions to make
3913         maintaining this file in parallel with the linux-specific file easier.
3915 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
3917         * io/pwd.c (main): Add call to mtrace.
3919         * malloc/mtrace.pl: Quote @ in string.
3921 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
3923         * posix/wordexp.c (parse_arith): Fix memory leaks.
3924         (exec_comm): Likewise.
3925         (parse_param): Likewise.
3926         (wordexp): Likewise.
3927         (exec_comm): Reduce number of function return points.
3928         (parse_param): Likewise.
3929         (wordexp): Likewise.
3931 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
3933         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
3934         yield three fields, not two.  Test both parameter expansion and
3935         command substitution for correct field-splitting behaviour.
3937         * posix/wordexp.c (w_emptyword): New function.
3938         (parse_param): Use it.
3939         (exec_comm): Likewise, for consistency with the way parse_param
3940         splits fields.
3941         (parse_param): Fix some memory leaks.
3943 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
3945         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
3946         Don't mark asm `volatile'.
3947         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
3948         from the data cache too.  Assume it isn't in the instruction cache yet.
3949         (__elf_machine_fixup_plt): Clear the modified address from the caches.
3951 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
3953         * sysdeps/generic/segfault.c (install_handler): Install signal
3954         handler with SA_ONSTACK instead of setting the stack flags to
3955         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
3956         defined.
3958 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3960         * signal/signal.h: Fix multiple inclusion guard to cover the
3961         entire file.
3962         * wcsmbs/wchar.h: Remove prototype of internal function
3963         __mbsrtowcs.
3964         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
3965         arithmetic on `void *'.
3967 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
3969         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
3971         * posix/wordexp.c (wordexp): Perform word-splitting instead of
3972         field-splitting here.
3973         (wordexp): If out of memory mid-word, free the word (but still
3974         leave pwordexp alone for caller to see).
3975         (parse_param): Allow for zero-length fields (smarter checking of
3976         memory allocation failure).
3977         (w_addword): Convert NULL words to "".
3978         (wordexp): Convert left-over IFS characters to blanks (like bash).
3980 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
3982         * configure.in: Use test -f instead of test -e.
3983         Patch by John Tobey <jtobey@banta-im.com>.
3985         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
3986         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
3987         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
3988         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
3989         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
3990         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
3991         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
3992         Patches by John Tobey <jtobey@banta-im.com>.
3994         * time/strftime.c (my_strftime): Delay use of *tp values until
3995         latest possible point to allow partly initialized structures
3996         (e.g., from strptime).
3998         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
3999         and NATS-SEFI.
4000         Define *-routines variables for new modules.
4001         (distribute): Add .c files for new modules.
4002         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
4003         and nats-sefi.h.
4004         Add rules for header generation.
4005         * iconvdata/gconv-modules: Add entries for new modules.
4006         * iconvdata/iso_10367-box.c: New file.
4007         * iconvdata/mac-is.c: New file.
4008         * iconvdata/nats-dano.c: New file.
4009         * iconvdata/nats-sefi.c: New file.
4011 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
4013         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
4014         loader if PIC is not defined.
4016 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
4018         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
4019         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
4020         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
4021         and ISO_5428.
4022         Define *-routines variables for new modules.
4023         (distribute): Add .c files for new modules.
4024         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
4025         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
4026         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
4027         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
4028         Add rules for header generation.
4029         * iconvdata/gconv-modules: Add entries for new modules.
4030         * iconvdata/csn_369103.c: New file.
4031         * iconvdata/cwi.c: New file.
4032         * iconvdata/dec-mcs.c: New file.
4033         * iconvdata/ecma-cyrillic.c: New file.
4034         * iconvdata/gost_19768-74.c: New file.
4035         * iconvdata/greek-ccitt.c: New file.
4036         * iconvdata/greek7-old.c: New file.
4037         * iconvdata/greek7.c: New file.
4038         * iconvdata/inis-8.c: New file.
4039         * iconvdata/inis-cyrillic.c: New file.
4040         * iconvdata/inis.c: New file.
4041         * iconvdata/iso6937-2.c: New file.
4042         * iconvdata/iso_2033.c: New file.
4043         * iconvdata/iso_5427-ext.c: New file.
4044         * iconvdata/iso_5427.c: New file.
4045         * iconvdata/iso_5428.c: New file.
4047         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
4048         entries.
4049         Convert U02dd correctly.
4051 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
4053         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
4054         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
4055         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
4056         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
4058 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
4060         * resolv/res_init.c (res_init): Handle resolv.conf file with only
4061         one nameserver correctly.  Patch by HJ Lu.
4063         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
4064         and ANSI_X3.110.
4065         Define *-routines variables for new modules.
4066         (distribute): Add .c files for new modules.
4067         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
4068         Add rules for hedaer generation.
4069         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
4070         * iconvdata/ansi_x3.110.c: New file.
4071         * iconvdata/asmo_449.c: New file.
4072         * iconvdata/baltic.c: New file.
4073         * iconvdata/iec_p27-1.c: New file.
4075         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
4076         entries.
4077         Convert U02dc correctly.
4079         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
4080         * math/atest-exp2.c: Likewise.
4081         * math/atest-sincos.c: Likewise.
4083         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
4084         is defined.
4086 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4088         * string/strcoll.c: Optimize a few expressions.
4089         * string/strxfrm.c: Likewise.
4091 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4093         * manual/locale.texi: Fix typos.
4095 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
4097         * stdlib/random_r.c (__setstate_r): Allow call with same state
4098         array as currently used (PR libc/774).
4100         * include/limits.h: Include gcc's header even if this file is
4101         found more than once before it (PR libc/778)
4103         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
4104         (sysdep_headers): Remove sys/debugreg.h.
4105         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
4106         (sysdep_headers): Add sys/debugreg.h.
4107         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
4108         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
4110         * stdio-common/tmpnam.c: Move local static variable buf to
4111         toplevel and rename to tmpnam_buffer to ease debugging.
4112         Patch by Joe Keane <jgk@jgk.org>.
4113         Optimize s == NULL case a bit.
4115         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
4116         correction.
4118 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
4120         * resolv/res_init.c (res_init): Initialize _res.nscount and
4121         _res.nsaddr.sin_port differently for the can when no loopback
4122         is available to allow immediate timeout in non-networking environments.
4123         Patch by Cristian Gafton <gafton@redhat.com>.
4125 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4127         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
4128         BAR and not EM DASH.
4129         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
4130         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
4131         Fixes PR libc/717.
4133 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
4135         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
4136         for test.
4137         * timezone/tst-timezone.c (tests): Fix typo in last patch.
4139         * time/tzfile.c (__tzfile_read): Handle case when there are no
4140         transitions.  Set __timezone based on computed offset.
4141         * time/tzset.c (tzset_internal): Set __timezone before returning.
4143         * time/tzset.c (tzset_internal): Optimize handling of local string
4144         copy.
4146 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4148         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
4149         libc/776).
4151 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
4153         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
4154         (csqrt_test): Likewise.
4155         * sysdeps/powerpc/bits/fenv.h: Add parens.
4157 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
4159         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
4160         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
4161         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
4163 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
4165         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
4166         the special `-1' pointer.
4168 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
4170         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
4171         inline.
4173 1998-09-07  Paul Eggert  <eggert@twinsun.com>
4175         * time/mktime.c (__EXTENSIONS__): Define if not defined.
4176         (_REENTRANT): Remove.  It has undesirable consequences in
4177         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
4178         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
4179         is what we want.
4180         * time/strftime.c: Likewise.
4182 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4184         * elf/dl-error.c: Fix spelling.
4186 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4188         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
4189         * stdio-common/_itoa.c: Likewise.
4190         * stdio-common/printf_fp.c: Likewise.
4191         * stdio-common/vfscanf.c: Likewise.
4192         * wcsmbs/wcstok.c: Likewise.
4193         * sysdeps/generic/glob.c: Likewise.
4194         * posix/getopt.c: Likewise.
4195         * sysdeps/posix/getaddrinfo.c: Likewise.
4196         * posix/wordexp.c: Likewise.
4197         * io/ftw.c: Likewise.
4198         * io/fts.c: Likewise.
4199         * misc/getpass.c: Likewise.
4200         * iconv/gconv_conf.c: Likewise.
4201         * argp/argp-fmtstream.c: Likewise.
4202         * argp/argp-help.c: Likewise.
4203         * elf/dl-load.c: Likewise.
4204         * locale/programs/stringtrans.c: Likewise.
4205         * catgets/gencat.c: Likewise.
4206         * posix/getconf.c: Likewise.
4207         * iconv/gconv_conf.c: Likewise.
4208         * iconv/iconv_prog.c: Likewise.
4210         * string/strcoll.c: Optimize a few expressions.
4211         * string/strxfrm.c: Likewise.
4213 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4215         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
4216         level to avoid uninit variable warning.
4218 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4220         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
4221         instead of _dl_default_scope[2] as argument to _dl_init_next.
4223         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
4224         C9x macro.
4226 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
4228         Fix compatibility problems introduced in last change.
4229         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
4230         defined.
4231         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
4232         -DWEAK_GMON_START to CFLAGS-initfini.s.
4234         * elf/dl-object.c (_dl_new_object): Store map address in
4235         _dl_loaded if _dl_loaded is NULL.
4236         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
4238         * sysdeps/generic/setrlimit64.c: Remove stub warning.
4240 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
4242         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
4243         quiet.
4244         * db2/btree/bt_cursor.c: Likewise.
4245         * db2/common/db_region.db_c: Likewise.
4246         * db2/common/db_salloc.db_c: Likewise.
4247         * db2/db/db.c: Likewise.
4248         * db2/db/db_rec.c: Likewise.
4249         * db2/hash/hash.c: Likewise.
4250         * db2/hash/hash_page.c: Likewise.
4251         * db2/hash/hash_rec.c: Likewise.
4252         * db2/log/log_findckp.c: Likewise.
4253         * db2/log/log_get.c: Likewise.
4254         * db2/log/log_put.c: Likewise.
4255         * db2/mp/mp_fget.c: Likewise.
4256         * db2/mp/mp_fput.c: Likewise.
4257         * db2/mp/mp_region.c: Likewise.
4258         * stdlib/strtol.c: Likewise.
4259         * string/strcoll.c: Likewise.
4260         * string/strxfrm.c: Likewise.
4261         * argp/argp-help.c: Likewise.
4262         * argp/argp-parse.c: Likewise.
4263         * resolv/res_debug.c: Likewise.
4265 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
4267         * math/tgmath.h (scalb): Only define for __USE_MISC or
4268         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
4270 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4272         * libio/stdio.h: Fix comment.
4274         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
4275         __USE_ISOC9X.
4277 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
4279         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
4281         * elf/dl-open.c: Quiet -Wparentheses warnings.
4282         * iconvdata/johab.c: Likewise.
4283         * iconvdata/uhc.c: Likewise.
4284         * inet/inet_net.c: Likewise.
4285         * io/fts.c: Likewise.
4286         * locale/newlocale.c: Likewise.
4287         * misc/getttyent.c: Likewise.
4288         * misc/mntent_r.c: Likewise.
4289         * misc/ttyslot.c: Likewise.
4290         * nscd/nscd_conf.c: Likewise.
4291         * nss/nsswitch.c: Likewise.
4292         * resolv/gethnamaddr.c: Likewise.
4293         * resolv/nsap_addr.c: Likewise.
4294         * resolv/res_debug.c: Likewise.
4295         * stdio-common/_itoa.c: Likewise.
4296         * stdlib/strtod.c: Likewise.
4297         * string/strverscmp.c: Likewise.
4298         * sunrpc/svc.c: Likewise.
4299         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
4300         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
4301         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
4302         * sysdeps/posix/getaddrinfo.c: Likewise.
4304 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
4306         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
4307         for use of global scope.
4308         * elf/dlvsym.c (dlvsym_doit): Likewise.
4310 1998-09-02  Paul Eggert  <eggert@twinsun.com>
4312         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
4313         copy the redundant bytes at the end of the format as-is; don't
4314         just copy their first byte and then rescan, as that might get
4315         us an encoding error.
4316         Account correctly for the length of multibyte sequences in the
4317         format.
4319 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
4321         * posix/wordexp-test.c: Add tests for different IFS values.
4322         Change unquoted-newline test so that newline is not in IFS.
4324         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
4325         determining IFS characters.  Return WRDE_BADCHAR for unquoted
4326         special characters _except_ if they are separators.
4328 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
4330         * include/tgmath.h: New file.
4332         * libio/stdio.h: Correct reversed #ifs.
4333         Patch by Zack Weinberg.
4335         * manual/creature.texi: Better explain reason for feature select
4336         macros.
4337         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
4339 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
4341         * include/alloca.h: Add multiple-inclusion guard.
4342         * include/db.h: Likewise.
4343         * include/db_185.h: Likewise.
4344         * include/dlfcn.h: Likewise.
4345         * include/fcntl.h: Likewise.
4346         * include/grp.h: Likewise.
4347         * include/libintl.h: Likewise.
4348         * include/mntent.h: Likewise.
4349         * include/pwd.h: Likewise.
4350         * include/sched.h: Likewise.
4351         * include/search.h: Likewise.
4352         * include/setjmp.h: Likewise.
4353         * include/shadow.h: Likewise.
4354         * include/signal.h: Likewise.
4355         * include/stdio.h: Likewise.
4356         * include/stdlib.h: Likewise.
4357         * include/string.h: Likewise.
4358         * include/termios.h: Likewise.
4359         * include/time.h: Likewise.
4360         * include/ulimit.h: Likewise.
4361         * include/utmp.h: Likewise.
4362         * include/wchar.h: Likewise.
4363         * include/sys/file.h: Likewise.
4364         * include/sys/gmon.h: Likewise.
4365         * include/sys/ioctl.h: Likewise.
4366         * include/sys/mman.h: Likewise.
4367         * include/sys/resource.h: Likewise.
4368         * include/sys/select.h: Likewise.
4369         * include/sys/socket.h: Likewise.
4370         * include/sys/statfs.h: Likewise.
4371         * include/sys/time.h: Likewise.
4372         * include/sys/times.h: Likewise.
4373         * include/sys/wait.h: Likewise.
4375 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
4377         * version.h (VERSION): Bump to 2.0.96.
4379         Rewrite runtime linker to be truly thread-safe.  There is now no
4380         global variable specifying the scope.  We create all needed
4381         scopes at the time the link maps are created.
4382         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
4383         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
4384         l_symbolic_searchlist, l_scope, and l_local_scope elements in
4385         struct link_map.
4386         * elf/dl-close.c: Rewritten accordingly.
4387         * elf/dl-deps.c: Likewise.
4388         * elf/dl-error.c: Likewise.
4389         * elf/dl-init.c: Likewise.
4390         * elf/dl-load.c: Likewise.
4391         * elf/dl-lookup.c: Likewise.
4392         * elf/dl-object.c: Likewise.
4393         * elf/dl-open.c: Likewise.
4394         * elf/dl-reloc.c: Likewise.
4395         * elf/dl-runtime.c: Likewise.
4396         * elf/dl-support.c: Likewise.
4397         * elf/dl-symbol.c: Likewise.
4398         * elf/dl-version.c: Likewise.
4399         * elf/dlsym.c: Likewise.
4400         * elf/dlvsym.c: Likewise.
4401         * elf/ldsodefs.h: Likewise.
4402         * elf/rtld.c: Likewise.
4403         * iconv/gconv_dl.c: Likewise.
4404         * nss/nsswitch.c: Likewise.
4405         * sysdeps/i386/dl-machine.h: Likewise.
4406         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4408         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
4409         Define RTLD_DEFAULT.
4411 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
4413         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
4414         __getopt_clean_environment with __environ instead of envp.
4416 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
4418         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
4420         * string/argz-extract.c (__argz_extract): Add de-consting cast for
4421         setting results.
4423         * string/argz.h (argz_next): Add de-consting cast for return.
4424         * string/argz-next.c (__argz_next): Likewise.
4426         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
4427         Don't add netinet/udp.h, netinet/ip_icmp.h here.
4428         * sysdeps/gnu/Makefile: Do it here instead.
4429         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
4430         * sysdeps/gnu/Dist: ... to here.
4432         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
4433         sysdeps/unix/sysv/linux/netinet/tcp.h,
4434         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
4436 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
4438         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
4439         * string/argz-next.c, string/argz-extract.c: Fix defns.
4441 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
4443         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
4445         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
4446         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
4447         * sysdeps/generic/sysd-stdio.c: Likewise.
4449 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
4451         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
4452         (_dl_map_object_from_fd): Make NAME argument const.
4453         Remove last parameter in _dl_new_object call.
4454         (print_search_path): Correct construction of composed path name.
4455         (_dl_map_object): Prevent looking at RPATH of the main map twice.
4456         Remove last parameter in _dl_new_object call.
4457         * elf/dl-object.c: Remove last parameter.  Determine whether create
4458         origin entry based on empty realname.  Handle file in root directory
4459         correctly.
4460         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
4461         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
4462         Remove last parameter in _dl_new_object call.
4463         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
4464         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
4466 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
4468         * elf/dl-close.c (_dl_close): Add more comments and correct some.
4469         Free l_searchlist and l_dupsearchlist.
4471         * debug/catchsegv.sh: Add one more pair of quotes.
4473 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
4475         * elf/dl-load.c (add_name_to_object): Change return type to void and
4476         make NAME parameter const.  Allocate room for NAME in same memory
4477         block used for l_libname entry.
4478         (_dl_map_object_from_fd): Don't free NAME on failure.
4479         (map_segment): Pass SONAME to add_name_to_object, not a copy.
4480         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
4481         _dl_map_object_from_fd.
4482         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
4483         memory block used for l_libname entry.
4484         * elf/dl-close.c: Adjust free()ing for this change.
4486 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
4488         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
4490         * malloc/mtrace.c: Add bug report address.  Update email address.
4491         Add more @XXX@ to print correct address size.
4493         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
4494         really initialized.
4496         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
4497         for munmap call instead of examining phdr again.
4498         Free all malloc()ed strings and arrays.
4500 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
4502         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
4503         dl-machine.h.
4504         * sysdeps/powerpc/dl-machine.c: New file.
4505         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
4506         files.  Revise ELF_PREFERRED_ADDRESS to take account of
4507         the new mapping information (fixes bug involving huge bloated
4508         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
4509         * sysdeps/powerpc/dl-start.S: New file.
4511         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
4512         l_map_end.
4513         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
4514         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
4515         others.  Call elf_dynamic_do_##reloc only once (to save even more
4516         space).
4517         * elf/link.h: Add new members l_map_start and l_map_end to keep
4518         track of the memory map.
4519         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
4520         the executable.
4522 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
4524         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
4525         Reported by Andreas Jaeger.
4527         * posix/glob.h: Use __size_t instead of size_t in definitions and
4528         make sure this is defined.
4530 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
4532         * manual/locale.texi: Almost complete rewrite.  Document more functions
4533         and functionality.
4534         * manual/arith.texi: Correct reference.
4535         * manual/string.texi: Pretty printing.
4537         * manual/texinfo.tex: Update from last available version.
4539 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
4541         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
4542         invalid password.
4543         (_nss_nis_getpwuid_r): Likewise.
4544         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
4546         * inet/rcmd.c: Implement netgroup support.
4547         Patch by Dick Streefland <dick_streefland@tasking.com>.
4549 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4551         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
4552         object on the list is removed.  Don't use this code for PIC.
4553         Reported by HJ Lu [PR libc/770].
4555 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
4557         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
4559         * include/stdio.h: Add __vsscanf.
4561         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
4562         __USE_ISOC9X.
4563         Remove __vsscanf declaration.
4564         Always declare fgetpos and fsetpos.
4566         * math/math.h: Define isinf as macro.
4567         * math/bits/mathcalls.h: Change to declare __isinf all the time.
4568         Don't declare scalb for ISO C 9x.
4570         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
4572         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
4574         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
4575         sys/ucontext.h.
4577         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
4578         macros.
4580 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4582         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
4583         Reported by jreising@frequentis.com [PR libc/767].
4585 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4587         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
4588         fl.l_start at beginning of function.
4589         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
4591 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4593         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
4594         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
4596         * nscd/nscd.init: Make it work in RedHat systems.
4597         Patch by Christian Gafton.
4599 1998-08-29  Philip Blundell  <philb@gnu.org>
4601         * catgets/Makefile: Don't try to run test programs when
4602         cross-compiling.
4604 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4606         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
4607         Reported by Zack Weinberg.
4609 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4611         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
4612         * elf/Makefile (distribute): Remove ldd.sh.in.
4614 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4616         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
4617         variable.
4619 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
4621         * sysdeps/i386/register-dump.h: Move to ...
4622         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
4624 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
4626         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
4627         with load address, not map address.
4628         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
4629         parameter and use this value.
4630         * sysdeps/arm/dl-machine.h: Likewise.
4631         * sysdeps/i386/dl-machine.h: Likewise.
4632         * sysdeps/m68k/dl-machine.h: Likewise.
4633         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
4634         parameter.
4635         * sysdeps/powerpc/dl-machine.h: Likewise
4636         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
4637         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
4639 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
4641         * elf/rtld.c (process_envvars): Fix copy&paste error.
4643         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
4644         memalign hook.
4645         (realloc_hook_ini): Don't overwrite memalign hook.
4646         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
4647         Reported by Philippe Troin <phil@fifi.org>.
4649         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
4650         Patch by Philippe Troin <phil@fifi.org>.
4652 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4654         * sysdeps/generic/segfault.c (install_handler): Protect the
4655         non-POSIX signals with #ifdef.
4656         (catch_segfault): Add missing mode parameter for open.
4657         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
4658         other termination signals.
4660 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4662         * debug/Makefile (distribute): Add register-dump.h.
4664 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4666         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
4668 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
4670         * elf/Makefile (distribute): Add dl-origin.h.
4671         * sysdeps/generic/dl-origin.h: New file.
4672         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
4673         * elf/link.h (struct link_map): Add l_origin field.
4674         * elf/dl-load.c (expand_dynamic_string_token): New function.
4675         (decompose_path): Remove WHERE argument, take link map pointer instead.
4676         Call expand_dynamic_string_token instead of local_strdup to make copy
4677         of rpath.
4678         (_dl_init_paths): Call decompose_path with correct argument.
4679         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
4680         not defined.
4681         Check EI_OSABI and EI_ABIVERSION fields in header.
4682         Call _dl_new_object with extra argument.
4683         (_dl_map_object): Call decompose_path with correct argument.
4684         Call expand_dynamic_string_token instead of local_strdup to also
4685         expand DST.
4686         Call _dl_new_object with extra argument.
4687         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
4688         but the main one if new argument is nonzero.
4689         * elf/ldsodefs.h: Adjust for _dl_new_object change.
4690         * elf/dl-support.c: Define _dl_origin_path.
4691         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
4692         (dl_main): Call _dl_new_object with extra argument.
4694         * elf/dl-close (_dl_close): Free l_name and l_origin.
4696         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
4697         modifier in asm, not c.
4699         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
4700         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
4702 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
4704         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
4705         variable so that map can be freed.
4706         Reported by Philippe Troin <phil@fifi.org>.
4708         * elf/dl-open.c (dl_open_worker): Correct test for extending global
4709         scope array.
4710         Patch by Philippe Troin <phil@fifi.org>.
4712 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
4714         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
4715         Don't call writev() with a 100-element vector.
4716         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
4717         return address.
4719         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
4720         In particular, set __libc_stack_end.
4721         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
4722         undefined.  Fix copyright notice.
4724 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4726         * math/Makefile (gmp-objs): New variable.
4727         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
4728         Depend on it.
4729         (tests): Add atest-exp atest-sincos atest-exp2.
4730         (tests-static): Remove atest-exp atest-sincos atest-exp2.
4732 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
4734         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
4735         to toplevel.
4736         (_dl_unload_cache): New function.
4737         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
4738         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
4739         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
4741         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
4742         Correct comment for O_LARGEFILE.
4743         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
4744         Change O_LARGEFILE to correct value.
4746 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
4748         * libio/iogetline.c (_IO_getline_info): Don't read anything for
4749         N == 0.  Patch by HJ Lu.
4751 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
4753         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
4755 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
4757         * argp/argp.h: Use __inline__ not inline.
4759         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
4760         an input register as being clobbered.
4761         * sysdeps/i386/memset.c (memset): Likewise.
4762         * sysdeps/i386/bzero.c (__bzero): Likewise.
4763         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
4765 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4767         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
4768         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
4770 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
4772         * debug/catchsegv.sh: Handle text preceding backtrace better.
4773         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
4774         to be installed for other signals than SIGSEGV.
4775         * sysdeps/generic/register-dump.h: New file.
4776         * sysdeps/i386/register-dump.h: New file.
4777         * sysdeps/powerpc/register-dump.h: New file.
4779         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
4780         sigcontextinfo.h.
4781         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
4783 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
4785         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
4787 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
4789         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
4790         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
4791         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
4792         getresuid, getresgid.
4794 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
4796         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
4797         pointer in userland.
4799 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4801         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
4802         and fix value.
4804 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4806         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
4807         over arguments Bourne shell compatible.  Don't exit unsuccessfully
4808         if nonelf returns successfully.  Avoid duplicating most of the
4809         script.
4810         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
4811         around $file.
4813 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4815         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
4816         sys/reg.h.
4817         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
4818         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
4820 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
4822         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
4823         __modify_ldt and modify_ldt.
4824         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
4826         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4827         Use orl $-1 instead of movl $-1 to save two bytes.
4828         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
4829         Likewise.
4831 1998-08-17  H.J. Lu  <hjl@gnu.org>
4833         * libio/Versions (_IO_do_write, _IO_file_attach,
4834         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4835         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4836         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4837         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
4839         * libio/fileops.c (_IO_do_write, _IO_file_attach,
4840         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4841         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4842         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4843         _IO_file_write, _IO_file_xsputn): Change the prefix to
4844         "_IO_new_". Added to GLIBC_2.1.
4846         * libio/libioP.h (_IO_do_write, _IO_file_attach,
4847         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4848         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4849         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4850         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
4851         "_IO_new_".
4853         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
4854         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4855         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4856         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4857         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
4859 1998-08-23  Richard Henderson  <rth@cygnus.com>
4861         * Makeconfig (LDFLAGS): Remove.
4863         * csu/initfini.c: Return to .text before __gmon_start__.
4865         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
4866         (STO_MIPS_*): Rename from STO_*.
4867         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
4868         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
4870         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
4871         (main): e3s is negative on zero.
4872         * math/atest-exp2.c: Likewise.
4873         * math/atest-sincos.c: Likewise.
4875 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4877         * Makerules (install): Add comment about absolute paths.
4879 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
4881         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
4882         array to NUL to handle maxlen==1 case correctly.
4883         Patch by HJ Lu.
4885 1998-08-23  Richard Henderson  <rth@cygnus.com>
4887         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
4888         * sysdeps/alpha/elf/crtend.S: Likewise.
4889         * sysdeps/alpha/elf/start.S: Likewise.
4891         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
4892         non-standard pv usage.
4894         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
4895         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
4896         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4897         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4898         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
4899         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4900         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4901         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4902         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4903         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4904         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4906         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
4907         a finite non-denormal, deferring to the full IEEE version otherwise.
4909         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
4910         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
4911         * sysdeps/alpha/fpu/s_floor.c: New.
4912         * sysdeps/alpha/fpu/s_floorf.c: New.
4913         * sysdeps/alpha/fpu/s_ceil.c: New.
4914         * sysdeps/alpha/fpu/s_ceilf.c: New.
4916 1998-08-22  Philip Blundell  <philb@gnu.org>
4918         * sysdeps/arm/bits/string.h: New file.
4920 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4922         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
4923         document it.
4925         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
4926         test for recent Linux 2.1.100+ headers.
4928 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
4930         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
4932 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
4934         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
4936 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4938         * Makefile (elf/ldso_install): Put back.  The problem still persists.
4939         * elf/Makefile (ldso_install): Likewise.
4941 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4943         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
4944         create weak alias.
4945         * include/db.h: Declare __nss_db_open.
4946         * db2/Versions: Export it.
4948         * db2/makedb.c: Convert to use db2 API.
4949         * nss/nss_db/db-XXX.c: Likewise.
4950         * nss/nss_db/db-netgrp.c: Likewise.
4951         * nss/nss_db/db-alias.c: Likewise.
4952         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
4954 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4956         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
4957         sys_setresuid, already built automatically (or not).
4958         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
4959         instead of __syscall_setresuid and add back setresuid.
4960         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
4961         __syscall_setresuid.
4963 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4965         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
4967 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
4969         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
4970         BASH-ONLY marked region.
4971         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
4973 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
4975         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
4976         _IO_SYSSEEK fails.
4978         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
4980         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
4981         element.
4983 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
4985         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
4986         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
4987         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
4988         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
4989         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
4990         those magic comments, and to use /bin/sh for @BASH@.
4991         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
4992         * elf/ldd.sh.in: File removed.
4994 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
4996         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
4997         cast them to unsigned long int.
4998         * pwd/putpwent.c (putpwent): Likewise.
4999         Patch by John Tobey <jtobey@banta-im.com>.
5001 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
5003         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
5004         _IO_pos_BAD.
5006 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
5008         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
5009         _IO_SYSSEEK fails.
5011 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
5013         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
5014         Add umount and umount2.
5015         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
5016         * sysdeps/unix/sysv/linux/umount.S: New file.
5017         * sysdeps/unix/sysv/linux/umount2.S: New file.
5018         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
5019         Define MNT_FORCE.
5021         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
5022         Add sys/sendfile.h.
5023         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
5024         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
5026         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
5028         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
5029         sendfile.
5031 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
5033         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
5034         * elf/ldd.bash.in: Likewise.
5036         * elf/sln.c: Avoid warning for no main prototype.
5038         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
5039         O_WRITE.
5040         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5041         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5043         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
5044         F_GETSIG.
5045         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
5046         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5047         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5049 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
5051         * sysdeps/arm/fpu/ieee754.h: Move to...
5052         * sysdeps/arm/ieee754.h: ... here.
5054         * sysdeps/arm/__longjmp.S: Put return value in correct register.
5055         Don't set the condition flags unnecessarily.
5056         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
5057         registers correctly.
5059         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
5060         (patch from Scott Bambrough).
5062         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
5064         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
5065         NULL, just call it unconditionally.
5066         (__gmon_start__): Provide stub version as a weak symbol.
5068 1998-07-30  Philip Blundell  <philb@gnu.org>
5070         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
5071         by Scott Bambrough)
5073         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
5074         like `@' in .type directives.
5076         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
5077         * sysdeps/arm/bsd-_setjmp.S: Likewise.
5079         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
5081 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
5083         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
5084         (F_GETOWN): Likewise.
5086         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
5087         Linux 2.1.117).
5089 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
5091         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
5092         already defined.
5094 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
5096         * include/features.h: Define __USE_EXTERN_INLINES for recent
5097         enough gcc.
5098         * argp/argp.h: Define extern inline functions only if
5099         __USE_EXTERN_INLINES is defined.
5100         * libio/stdio.h: Likewise.
5101         * math/math.h: Likewise.
5102         * stdlib/stdlib.h: Likewise.
5103         * string/argz.h: Likewise.
5104         * sysdeps/generic/bits/sigset.h: Likewise.
5105         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5106         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
5107         * sysdeps/wordsize-32/inttypes.h: Likewise.
5108         * sysdeps/wordsize-64/inttypes.h: Likewise.
5109         * wcsmbs/wchar.h: Likewise.
5111         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
5112         to allow compilation without optimization.
5114 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
5116         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
5117         more entries.
5118         * nis/nss_compat/compat-initgroups.c: Likewise.
5119         * nis/nss_compat/compat-pwd.c: Likewise.
5120         * nis/nss_compat/compat-spwd.c: Likewise.
5121         * nis/nss_nis/nis-alias.c: Likewise.
5122         * nis/nss_nis/nis-ethers.c: Likewise.
5123         * nis/nss_nis/nis-grp.c: Likewise.
5124         * nis/nss_nis/nis-hosts.c: Likewise.
5125         * nis/nss_nis/nis-initgroups.c: Likewise.
5126         * nis/nss_nis/nis-network.c: Likewise.
5127         * nis/nss_nis/nis-proto.c: Likewise.
5128         * nis/nss_nis/nis-pwd.c: Likewise.
5129         * nis/nss_nis/nis-rpc.c: Likewise.
5130         * nis/nss_nis/nis-service.c: Likewise.
5131         * nis/nss_nis/nis-spwd.c: Likewise.
5133         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
5135         * nis/ypclnt.c: Try binding dir only first time, could be to old.
5137         * nis/yp_xdr.c: Remove 1024 byte limit.
5138         * nis/ypupdate_xdr.c: Likewise.
5140         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
5141         wrong data.
5143 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
5145         * Rules (binaries-static, binaries-shared static pattern rules):
5146         Depend on lib%, not just libc%, from $(link-libc{,-static}).
5148         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
5149         this here, overriding Makeconfig generic value so we link against
5150         the RPC libs.
5152 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
5154         * posix/tstgetopt.c (options): Add NULL entry at end
5155         Patch by Adrian Miranda <ade@psg.com>.
5157 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
5159         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
5160         to 9.
5162 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
5164         * elf/elf.h: Add PPC Diab relocations.
5166         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
5168 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
5170         * manual/texinfo.tex: Update.
5172 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
5174         * sysdeps/powerpc/backtrace.c: New file.
5176 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
5178         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
5179         sigjmp_save.
5180         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
5182 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5184         * Makefile (install-symbolic-link): Fix spelling.
5186 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5188         * elf/elf.h (SHT_HIOS): Fix value.
5190 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5192         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
5193         part of the expansion, this is undefined by the standard.
5195 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
5197         * posix/getconf.c: Add support for systems with incomplete confname.h.
5199         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
5201         * sysdeps/posix/wait3.c: Make it work.
5203 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
5205         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
5206         (elf/ldso_install): Remove.
5208         * elf/Makefile (distribute): Add sln.c.
5209         (others): Add sln.
5210         (others-static): Add sln.
5211         (install-rootsbin): Add sln.
5212         (others-static): Add sln.
5213         (ldso_install): Remove.
5215 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5217         * Makerules (install-clean-symbolic-link-list): Make phony.
5218         * Makefile (install-symbolic-link): Make phony.  Depend on
5219         subdir_install for parallel makes.
5222 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
5224         * elf/Makefile (distribute): Add sln.c
5226 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
5228         * elf/sln.c: New file.
5230         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
5231         (install-clean-symbolic-link-list): New target.
5232         (install): Depend on install-clean-symbolic-link-list.
5233         (make-shlib-link): Changed for $(symbolic-link-list).
5235         * Makefile (install-symbolic-link): New target.
5236         (install): Depend on install-symbolic-link.
5238 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
5240         * include/unistd.h: Protect against multiple inclusion.
5242         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
5243         is defined, not is glob is defined.
5244         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
5246 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
5248         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
5249         xdr_string for ut_line, ut_name and ut_host.
5251 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
5253         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
5254         /var/mail in accordance with FHS 2.0.
5255         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
5257 1998-08-12  Richard Henderson  <rth@cygnus.com>
5259         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
5260         Update aliases for cancelation.
5262         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
5263         playing with symbol versions.
5265 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
5267         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
5268         multiple inclusion protection.
5269         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
5270         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
5271         define all these to 1.
5272         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
5274 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
5276         * sysdeps/mach/usleep.c: Include <unistd.h>.
5277         (usleep): Return void.
5279 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
5281         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
5282         decl to inhibit warning in if_freenameindex defn.
5284         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
5286         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
5288         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
5289         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
5290         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
5291         * sysdeps/mach/usleep.c: Likewise.
5293         * sysdeps/mach/hurd/bind.c (bind): Add a const.
5295         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
5296         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
5297         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
5298         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
5299         * sysdeps/mach/usleep.c (usleep): Likewise.
5300         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
5301         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
5302         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
5303         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
5305 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
5307         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
5308         (glob64): Fix typo.
5310         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
5311         %p arg to fprintf, since `void *' is the right type already.
5313 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
5315         * sysdeps/mach/hurd/getcwd.c
5316         (_hurd_canonicalize_directory_name_internal): Do not loop forever
5317         for unknown root directories.
5318         (__getcwd): Return NULL when the current root directory could not
5319         be reached.
5321 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
5323         * string/strsignal.c (strsignal): Count real-time signals from zero.
5326 See ChangeLog.8 for earlier changes.