Update.
[glibc.git] / ChangeLog
blob152d76720b7c84df6df3d200079d22649c199d13
1 1998-12-23  Ulrich Drepper  <drepper@cygnus.com>
3         * locale/programs/ld-collate.c: Unify messages and correct typos.
4         * locale/programs/ld-monetary.c: Likewise.
5         * locale/programs/ld-numeric.c: Likewise.
6         * locale/programs/ld-time.c: Likewise.
7         * manual/errno.texi: Likewise.
8         * nis/nis_error.c: Likewise.
9         * nis/nis_print.c: Likewise.
10         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11         * sunrpc/rpc_main.c: Likewise.
13 1998-12-20  Philip Blundell  <philb@gnu.org>
15         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
16         implementation.
17         * sysdeps/unix/sysv/linux/arm/syscalls.list: Remove wrappers for
18         now-inlined calls.
20 1998-12-22  Philip Blundell  <pb@nexus.co.uk>
22         * sysdeps/unix/sysv/linux/arm/ioperm.c: New file.
23         Implementation of inb, outb etc for ARM systems.
24         * sysdeps/unix/sysv/linux/arm/sys/io.h: Likewise.
25         * sysdeps/unix/sysv/linux/arm/Versions: Add appropriate
26         entries for the above.
28 1998-12-21  Ulrich Drepper  <drepper@cygnus.com>
30         * nss/db-Makefile (shadow.db): Create file with correct protections.
31         Based on a patch by Joel Klecker <espy@debian.org>.
33         * inet/gethstbynm_r.c: Remove NEED__RES definition since we do this
34         anyway for digits_dots.c.
35         * nss/getXXbyYY.c: Initialize _res before using digits_dots.c
36         functions.
37         * nss/getXXbyYY_r.c: Likewise.
39 1998-12-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de> 
41         * sunrpc/key_call.c (getkeyserv_handle): Use __fcntl instead of 
42         fcntl.
44 1998-12-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de> 
46         * locale/weight.h (get_weight): Extract string elements as 
47         unsigned values. 
49 1998-12-06  Mark Kettenis  <kettenis@phys.uva.nl>
51         Reverse the change of 1998-04-22.  Providing a struct dirent with
52         different members when __USE_FILE_OFFSET64 is defined is asking
53         for trouble.  Instead add the necessary LFS magic to the 4.4BSD
54         header.
55         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Add LFS definitions.
56         * sysdeps/mach/hurd/bits/dirent.h: Removed.
57         * sysdeps/mach/hurd/readdir64.c: Removed.
58         * sysdeps/mach/hurd/readdir64_r.c: Removed.
60 1998-12-20  Roland McGrath  <roland@baalperazim.frob.com>
62         * sysdeps/generic/bits/mman.h [__USE_MISC] (MAP_ANONYMOUS): Define as
63         alias for MAP_ANON.
65         * stdio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
66         Remove decls.  They don't exist at all on the Hurd.
68         * sunrpc/svc_unix.c, sunrpc/clnt_unix.c: Avoid using `struct cmsghdr'
69         and `struct ucred' #ifndef SCM_CREDENTIALS.
71         * sunrpc/publickey.c (getsecretkey): Use `&errno' instead of
72         `__errno_location ()'; means the same, works for Hurd.
74         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide sunrpc.
76 1998-12-18  Ulrich Drepper  <drepper@cygnus.com>
78         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Include
79         features.h and stddef.h.
80         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h (struct
81         sigaltstack): Move ss_size field at the end.
82         Patches by Jeff Bailey <jbailey@nisa.net>.
84         * time/getdate.c (check_mday): tm_mon contains values from 0 to 11,
85         not 1 to 12.
87         * manual/texinfo.tex: Update to latest version.
89         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add ipc.
90         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
91         Patch by Cristian Gafton <gafton@redhat.com>.
93 1998-12-17  Ulrich Drepper  <drepper@cygnus.com>
95         * iconvdata/gconv-modules: Add remaining aliases from Internet
96         standards.
98         * iconv/gconv_int.h (gconv_module): Add new element from_regex_mem.
99         * iconv/gconv_conf.c (module_compare): Make s1 and s2 const.
100         (detect_conflict): New function.
101         (add_alias): Call detect_conflict to see whether there is already
102         a module for the new name.
103         (add_module): Make sure there is no alias for the new name.
104         (read_conf_file): Call add_alias with new argument.
105         (__gconv_read_conf): Don't destroy module tree immediately after
106         walking it.  We need it to test the internal conversions for
107         conflicts.
108         * iconv/gconv_db.c (find_derivation): Don't allocate memory for
109         regular expression.  There is now room in the module descriptor.
110         (free_mem): Don't free memory for regular expression.
112         * sysdeps/unix/sysv/linux/bits/socket.h: Add AF_IRDA, PF_IRDA and
113         MSG_TRYHARD.
115         * sunrpc/clnt_unix.c (clntunix_destroy): Use __close not close.
116         * libio/oldtmpfile.c: Likewise.
117         * libio/oldiofdopen.c: Use __fcntl instead fcntl.
118         * sysdeps/posix/profil.c: Use __sigaction instead of sigaction.
120         * iconvdata/iso646.c (gconv_init): Return correct error value if we
121         run out of memory.
122         * iconvdata/iso-2022-jp.c: Likewise.
124         * iconv/gconv_db.c (gen_steps): Respect error return value from
125         init functions and abort.
127         * iconvdata/iso646.c: Recognize NF_Z_62-010_1973 as charset name.
129 1998-12-17  H.J. Lu  <hjl@gnu.org>
131         * sunrpc/rpc/xdr.h (XDR_DESTROY): Add ';'.
132         (xdr_destroy): Likewise.
134 1998-12-17  Ulrich Drepper  <drepper@cygnus.com>
136         * login/login.c: Determine pts/3 as terminal name if path is
137         /dev/pts/3.  This is consistent with getlogin.  [PR libc/906]
139 1998-12-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
141         * sysdeps/posix/tempname.c (__path_search): Add casts for format
142         string.
144 1998-12-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
146         * sunrpc/rpc/xdr.h (XDR_DESTROY, xdr_destroy): Avoid dangling else
147         problem.
148         (IXDR_PUT_INT32): Fully parenthesize parameters.
149         (IXDR_GET_LONG, IXDR_PUT_LONG): Mark GCC extension.  Fully
150         parenthesize parameter.
152 1998-12-16  Ulrich Drepper  <drepper@cygnus.com>
154         * iconvdata/gconv-modules: Add some of the charset name aliases
155         used in Internet standards.
157 1998-12-16  Ulrich Drepper  <drepper@cygnus.com>
159         * version.h (VERSION): Bump to 2.0.107.
161         * sysdeps/i386/i486/bits/string.h: Pretty printing.
163 1998-12-16  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
165         * sunrpc/rpc/xdr.h: Revert patch from 1998-12-14, partly revert
166         patch from 1998-12-01.
168 1998-12-16  Roland McGrath  <roland@baalperazim.frob.com>
170         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Define this #ifdef
171         __USE_BSD as well as #ifdef __USE_GNU, so MAXSYMLINKS can use it.
172         Reported by UCHIYAMA Yasushi <uch@nop.or.jp>
174 1998-12-16  Ulrich Drepper  <drepper@cygnus.com>
176         * iconvdata/ibm866.c: New file.
177         * iconvdata/cp1258.c: New file.
178         * iconvdata/cp1258.h: New file.
179         * iconvdata/mac-uk.c: New file.
180         * iconvdata/gconv-modules: Add rules for new modules.
181         * iconvdata/Makefile: Likewise.
183         * sysdeps/gnu/bits/ipc.h: Move libc internal bits to...
184         * include/bits/ipc.h: ..here.  New file.
186 1998-12-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
188         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Don't change
189         read-only struct termios_p* but change k_termios member directly.
191 1998-12-15  H.J. Lu  <hjl@gnu.org>
193         * sysdeps/posix/tempname.c (__path_search): Fix the maximum
194         string length.
196 1998-12-15  Ulrich Drepper  <drepper@cygnus.com>
198         * sysdeps/unix/sysv/linux/msgctl.c: Use INLINE_SYSCALL.
199         * sysdeps/unix/sysv/linux/msgget.c: Likewise.
200         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
201         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
202         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
203         * sysdeps/unix/sysv/linux/semget.c: Likewise.
204         * sysdeps/unix/sysv/linux/semop.c: Likewise.
205         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
206         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
207         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
208         * sysdeps/unix/sysv/linux/shmget.c: Likewise.
209         * sysdeps/unix/sysv/linux/syscalls.list: Remove ipc syscall here.
210         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add ipc syscall here.
212         * time/strftime.c: Remove 'f' format.
214         * time/strptime.c (get_number): Ignore trailing whitespace.
215         (strptime_internal): Handle 'F' and 'k' formats.
217         * sysdeps/posix/tempname.c (__path_search): Add second part of the
218         patch by Andreas Jaeger.
220 1998-12-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
222         * stdio-common/tst-tmpnam.c (main): Use void as parameter to avoid
223         warnings about unused args.  Fix comment.
225 1998-12-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
227         * sysdeps/posix/tempname.c (__path_search): Correct last patch.
229 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
231         * sunrpc/rpc/xdr.h (IXDR_GET_INT32): Case pointer before reading from
232         it.
233         (IXDR_PUT_INT32): Likewise for writing.
234         Patch by Bruce Elliott <bde@nwlink.com>.
236 1998-12-08  H.J. Lu  <hjl@gnu.org>
238         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Don't clear
239         the IBAUD0 bit in c_iflag.
241         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Clear the
242         the IBAUD0 bit in c_iflag.
244 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
246         * time/Makefile (tests): Add tst-strptime.
247         * time/tst-strptime.c: New file.
248         * time/strptime.c: Correct bugs in weekday and yearday computation.
250 1998-12-14  Ulrich Drepper  <drepper@cygnus.com>
252         * time/strptime.c (strptime_internal): Set tm_wday and tm_yday in
253         any of tm_year, tm_mon, or tm_mday was changed and the value
254         itself wasn't specified.
256         * include/stdio.h: Add new parameter to __path_search.
257         * libio/oldtmpfile.c: Add 0 as new parameter to __path_search.
258         * stdio-common/tmpfile.c: Likewise.
259         * stdio-common/tmpfile64.c: Likewise.
260         * stdio-common/tmpnam.c: Likewise.
261         * stdio-common/tmpnam_r.c: Likewise.
262         * stdio-common/tempnam.c: Add 1 as new parameter to __path_search.
263         * sysdeps/posix/tempname.c: Add new parameter.  If value is nonzero
264         consider TMPDIR environment variable and dir parameter.  Otherwise not.
265         * stdio-common/Makefile (tests): Add tst-tmpnam.
266         * stdio-common/tst-tmpnam.c: New file.
268         * po/es.po: Update from translation team.
270 1998-12-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
272         * timezone/Makefile: Protect inclusion of z.* by avoid-generated
273         and inhibit_timezone_rules instead of no_deps.
274         * Make-dist: Pass inhibit_timezone_rules=t when making
275         echo-distinfo.
277 1998-12-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
279         * manual/Makefile (distribute): Remove dir-add.texinfo.
281         * sysdeps/unix/sysv/linux/powerpc/Dist: Add sys/procfs.h and
282         sys/user.h.
284 1998-12-11  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
286         * manual/Makefile (stamp-summary): Use ^L as separator for
287         sorting.
288         * manual/arith.texi: Add comments before all @deffoox lines to get
289         them added to the summary.
290         * manual/creature.texi: Likewise.
291         * manual/math.texi: Likewise.
293 1998-12-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
295         * math/libm-test.c: Remove macro ISINF.  Change all usages of
296         ISINF to isinf.
298 1998-12-13  Ulrich Drepper  <drepper@cygnus.com>
300         * sysdeps/posix/tempname.c: Use __xstat instead of __stat.
301         * sysdeps/unix/grantpt.c: Likewise.
302         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
303         * sysvipc/ftok.c: Likewise.
304         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
306         * stdlib/test-canon.c: Define PATH_MAX if the system does not.
307         * string/stratcliff.c: Use MAP_ANON instead of MAP_ANONYMOUS.
308         Patch by UCHIYAMA Yasushi <uch@nop.or.jp>.
310 1998-12-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
312         * sysdeps/alpha/fpu/fsetexcptflg.c: Avoid -Wparentheses warning.
314         * sysdeps/libm-ieee754/s_expm1.c (__expm1): Avoid -Wparentheses
315         warning.
316         * sysdeps/libm-ieee754/s_log1p.c (__log1p): Likewise.
317         * sysdeps/libm-ieee754/e_logf.c (__ieee754_logf): Likewise.
318         * sysdeps/libm-ieee754/s_expm1f.c (__expm1f): Likewise.
319         * sysdeps/libm-ieee754/e_log.c (__ieee754_log): Likewise.
320         * sysdeps/libm-ieee754/s_log1pf.c (__log1pf): Likewise.
322 1998-12-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
324         * sunrpc/svc_udp.c (svcudp_bufcreate): Declare len as socklen_t.
325         (svcudp_recv): Likewise.
327 1998-12-13  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
329         * nis/nss-nisplus.h: Change some mappings of NIS+ errors to
330         NSS error codes to avoid endless loops.
332 1998-12-13  Ulrich Drepper  <drepper@cygnus.com>
334         * iconvdata/gconv-modules: Correct aliases for ISO-8859-13 and add
335         aliases for ISO-8859-14.
337 1998-12-12  Geoff Keating  <geoffk@ozemail.com.au>
339         * posix/fnmatch.c (fnmatch): Arguments to FOLD must not have
340         side-effects.
342 1998-12-12  Ulrich Drepper  <drepper@cygnus.com>
344         * iconvdata/iso-8859-11.h: ISO 8859-11 conversion data.
345         * iconvdata/iso-8859-11.c: ISO 8859-11 conversion module.
346         * iconvdata/iso-8859-13.c: Likewise for 8859-13.
347         * iconvdata/iso-8859-14.c: Likewise for 8859-14.
348         * iconvdata/iso-8859-15.c: Likewise for 8859-15.
349         * iconvdata/gconv-modules: Add rules for new modules.
350         * iconvdata/Makefile: Likewise.
352 1998-12-12  Ulrich Drepper  <drepper@cygnus.com>
354         * stdio-common/printf_fp.c: #ifdef out long double handling code if
355         __NO_LONG_DOUBLE_MATH is defined to avoid warnings.
356         * stdio-common/printf_fphex.c: Likewise.
357         * stdio-common/printf-size.c: Likewise.
359 1998-12-12  Ulrich Drepper  <drepper@cygnus.com>
361         * login/Makefile: Install pt_chown using INSTALL_PROGRAM.
362         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
364 1998-12-11  Ulrich Drepper  <drepper@cygnus.com>
366         * sysdeps/powerpc/dl-machine.h (elf_machine_matches_host): Mark
367         static inline, not extern inline.
368         (elf_machine_dynamic): Likewise.
369         (elf_machine_lazy_rel): Likewise.
370         (elf_machine_plt_value): Likewise.
371         * sysdeps/powerpc/backtrace.c: Include stddef.h to get NULL
372         definition.
373         Patchess by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
375         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fixl_addr parameter
376         type.  Reported by job bogan <job@piquin.uchicago.edu>.
378         * sysdeps/unix/opendir.c (__opendir): Use __xstat instead of
379         __stat.
381 1998-12-11  Kunihiro Ishiguro  <kunihiro@zebra.org>
383         * inet/netinet/in.h: Change obsolete structure member
384         ipv6mr_ifindex to new ipv6mr_interface.
386 1998-12-11  Ulrich Drepper  <drepper@cygnus.com>
388         * sysdeps/ieee754/dbl2mpn.c: Changed '#include "ieee754.h"' to
389         '#include <ieee754.h>'.  ARM port has its own version of 'ieee754.h'
390         due to its big endian floating point format.
391         * sysdeps/ieee754/ldbl2mpn.c: Likewise.
392         * sysdeps/ieee754/mpn2dbl.c: Likewise.
393         * sysdeps/ieee754/mpn2ldbl.c: Likewise.
394         * sysdeps/ieee754/mpn2flt.c: Likewise.
395         Patch by Scott Bambrough <scottb@corelcomputer.com>.
397 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
399         * sysdeps/unix/sysv/linux/adjtime.c: Undo last change.
401         * posix/PTESTS: Fix typo.
403         * po/es.po: Update from translation team.
404         * po/fr.po: Likewise.
406 1998-12-10  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
408         * nis/nss_compat/compat-pwd.c: Fix handling of +/- entries.
410 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
412         * sunrpc/Makefile: Call rpcgen program which -Y parameter so that
413         it can find the preprocessor.
415 1998-12-09  Geoff Keating  <geoffk@ozemail.com.au>
417         * sysdeps/unix/sysv/linux/sys/procfs.h: Use sys/user.h not
418         asm/user.h.
419         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
421         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: New file,
422         like linux/sys/procfs.h but uses uid_t and gid_t.
423         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: New file,
424         don't include <linux/ptrace.h>.
426 1998-12-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
428         * posix/runptests.c (main): Check that regcomp did not succeed
429         unexpectedly.
430         * posix/runtests.c (run_a_test): Likewise.  Return appropriate
431         exit code.
432         * posix/TESTS: Regexp "a[b-a]" should not compile.
433         * posix/PTESTS: Comment out bogus tests GA113(2), GA145(2) and
434         GA147(2).
436 1998-12-09  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
438         * locale/programs/ld-ctype.c (allocate_arrays): Don't crash if
439         there is no codeset name.
440         * locale/programs/ld-collate.c (collate_output): Don't crash if a
441         character has no weight.
443 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
445         * inet/getnetgrent_r.c (innetgr): Check host and domain name with
446         strcasecmp, not strcmp.  [PR libc/894].
448 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
450         * posix/regex.h: Declare re_comp, re_exec if compiling for libc to
451         get prototypes.
453         * wctype/wctype.h: Add prototypes for __iswblank_l and iswblank.
455 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
457         * sysdeps/unix/sysv/linux/gethostid.c: Include <netdb.h> to get
458         prototype for __gethostbyname_r.
460         * include/time.h: Add declarations of internal interfaces.
462         * time/tzset.c: Remove declarations of internal interfaces.
463         * time/gmtime.c: Likewise.
464         * time/localtime.c: Likewise.
465         * time/offtime.c: Likewise.
466         * time/tzfile.c: Likewise.
468 1998-12-01 09:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
470         * sysdeps/unix/sysv/linux/sys/timex.h: Copy out
471         user-space-relevant definitions from linux/timex.h of kernel
472         2.1.130 and remove include of kernel header.
474         * sysdeps/unix/sysv/linux/adjtime.c: Remove portability crud.
476 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
478         * posix/regex.c: Get regex.h from system path, not from local
479         directory.
481         * posix/regex.h: Move internal interfaces to ...
482         * include/regex.h: ...here.
484         * posix/unistd.h: Move internal interfaces to ...
485         * include/unistd.h: ...here.
487         * math/math.h: Move internal interfaces to ...
488         * include/math.h: ...here.
490         * posix/glob.h: Move internal interfaces to ...
491         * include/glob.h: ...here.
493         * string/string.h: Move internal interfaces to ...
494         * include/string.h: ...here.
496         * time/sys/time.h: Move internal interfaces to ...
497         * include/sys/time.h: ...here.
499         * resolv/netdb.h: Move internal interfaces to ...
500         * include/netdb.h: ...here.
502 1998-12-08  Ulrich Drepper  <drepper@cygnus.com>
504         * iconvdata/eucjp.c: Handle Yen in overscore conversion from ISO 10646
505         correctly.
506         * iconvdata/iso-2022-jp.c: Handle Kana in 2022-JP2 correctly
507         Fix various bugs in conversion routine.
508         * iconvdata/jis0201.h: Correct variable name.
509         * iconvdata/jis0208.c: Correct script to generate tables and regenerate
510         them.
511         * iconvdata/jis0208.h: Likewise.
512         * iconvdata/jis0212.c: Likewise.
513         * iconvdata/sjis.c: Likewise.
514         Patch by HANATAKA Shinya <hanataka@abyss.rim.or.jp>.
516 1998-12-07  Ulrich Drepper  <drepper@cygnus.com>
518         * sysdeps/unix/sysv/linux/speed.c (IBAUD0): New definition.  Bit
519         set in c_iflag if cfsetispeed is call with SPEED set to zero.
520         (cfgetispeed): Return zero if prior if IBAUD0 is set.
521         (cfsetospeed): Clear IBAUD0 bit.
522         (cfgetispeed): Set IBAUD0 bit if necessary.
523         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Clear
524         the IBAUD0 bit in c_iflag when making the system call.
525         Work around a Linux kernel bug which silently changes the
526         PARENB/CREAD/CSIZE bits in c_cflag on pty.
527         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed): Make a real
528         function.  Don't set speed is SPEED parameter is zero since this
529         means set it to the output speed.
530         Based on a patch by H.J. Lu <hjl@gnu.org>.
532         * version.h (VERSION): Bump to 2.0.106.
534         * Makeconfig (link-libc-static): Don't use link-libc since this
535         includes the shared object.  Use gnulib only.
537         * configure.in: Disable --disable-static.
539 1998-12-07 12:06  Ulrich Drepper  <drepper@cygnus.com>
541         * po/de.po: Update from translation team.
542         * po/ko.po: Likewise.
544 1998-12-07  Richard Henderson  <rth@cygnus.com>
546         * sysdeps/unix/sysv/linux/alpha/select.S: Save a4 through
547         both paths.
549 1998-12-05  Roland McGrath  <roland@baalperazim.frob.com>
551         * sysdeps/mach/hurd/pselect.c: New file.
553         * sysdeps/mach/hurd/poll.c: New file.
555         * hurd/Makefile (routines): Add hurdselect.
556         * hurd/hurdselect.c: New file.
557         (_hurd_select): New function, guts taken from ...
558         * sysdeps/mach/hurd/select.c (__select): ... here.
559         Now work by just calling _hurd_select.
560         * hurd/hurd/fd.h: Declare _hurd_select.
562 1998-12-05  Roland McGrath  <roland@baalperazim.frob.com>
564         * time/strptime.c: Fix unterminated comment in last change.
566 1998-12-05  Ulrich Drepper  <drepper@cygnus.com>
568         * ctype/ctype.h (_ISbit): Protect use of parameter with
569         parentheses.
570         * wctype/wctype.h (_ISwbit): Likewise.
572         * locale/Versions: Make experimental locale interface available in
573         GLIBC_2.1.
575         * sysdeps/gnu/bits/utmp.h (struct exit_status): Define members
576         without leading __ only for __USE_GNU.
577         * sysdeps/gnu/bits/utmpx.h (struct __exit_status): Likewise.
579 1998-12-04  Ulrich Drepper  <drepper@cygnus.com>
581         * argp/argp.h: Add __restrict.
582         * dirent/dirent.h: Likewise.
583         * elf/dlfcn.h: Likewise.
584         * grp/grp.h: Likewise.
585         * iconv/iconv.h: Likewise.
586         * inet/aliases.h: Likewise.
587         * libio/libio.h: Likewise.
588         * libio/stdio.h: Likewise.
589         * locale/locale.h: Likewise.
590         * misc/mntent.h: Likewise.
591         * posix/wordexp.h: Likewise.
592         * pwd/pwd.h: Likewise.
593         * resolv/netdb.h: Likewise.
594         * rt/aio.h: Likewise.
595         * stdio-common/printf.h: Likewise.
596         * stdlib/monetary.h: Likewise.
597         * stdlib/stdlib.h: Likewise.
598         * string/argz.h: Likewise.
599         * string/envz.h: Likewise.
600         * string/string.h: Likewise.
601         * time/time.h: Likewise.
603 1998-12-04  Zack Weinberg  <zack@rabi.phys.columbia.edu>
605         * misc/sys/cdefs.h: Only include features.h if _FEATURES_H isn't
606         defined.  gcc's redundant include optimizer isn't clever enough to
607         prevent a reinclusion here.
608         Define __restrict to the empty string only if not GCC or
609         GCC version less than 2.92.
611 1998-12-03  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
613         * sysdeps/unix/sysv/linux/configure.in: Fix last change.
615 1998-12-03  Mark Kettenis  <kettenis@phys.uva.nl>
617         * time/strptime.c (strptime_internal): Make use of `%C' format
618         specifier if it is seen together with the `%y' specifier.
620 1998-12-04  Ulrich Drepper  <drepper@cygnus.com>
622         * po/sk.po: New file.
624 1998-12-03  Scott Bambrough  <scottb@corelcomputer.com>
626         * sysdeps/arm/dl-machine.h (dl_start_user): Incorrect address
627         for _dl_main_searchlist passed to _dl_init_next.
629 1998-12-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
631         * math/libm-test.c: Expand literal tabs in strings.  Normalize
632         whitespace.
634 1998-12-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
636         * sysdeps/unix/sysv/linux/sys/fsuid.h: Fix spelling.
638 1998-12-04  Mark Kettenis  <kettenis@phys.uva.nl>
640         Provide backwards binary compatibility for the Hurd.
641         * hurd/geteuids.c [PIC && DO_VERSIONING]: Make __getuids a weak
642         alias for geteuids.
643         * hurd/Versions [GLIBC_2.0]: Add __getuids,
644         __hurd_file_name_lookup and _hurd_umask.
645         [GLIBC_2.1]: Add _hurd_proc_init.
646         * hurd/Makefile [versioning] (routines): Add compat-20.
647         (shared-only-routines): Likewise.
648         * hurd/hurdinit.c (_hurd_new_proc_init): Renamed from
649         _hurd_proc_init.  Use it as the default _hurd_proc_init version
650         for GLIBC_2.1.
651         * hurd/compat-20.c: New file.
652         * mach/Versions [GLIBC_2.0]: Add __vm_allocate.
654 1998-12-02  Ulrich Drepper  <drepper@cygnus.com>
656         * elf/elf.h: Add R_MIPS_JALR and adjust R_MIPS_NUM appropriately.
658 1998-12-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
660         * inet/Versions: Remove inet6_isipv4mapped.
662 1998-12-02  Philip Blundell  <pb@nexus.co.uk>
664         * inet/in6_addr.c (inet6_isipv4mapped): Obsolete, deleted.
666 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
668         * manual/time.texi (Formatting Date and Time): Fix typo.
670 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
672         * sysdeps/unix/sysv/linux/configure.in: Only check for symlinks
673         when configuring natively.  Use autoconf macros instead of rolling
674         our own.  Handle defaulted prefix.
676 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
678         * version.h (VERSION): Bump to 2.0.105.
680         * sysdeps/generic/Dist: Add bits/libc-tsd.h.
682         * sysdeps/mach/hurd/Dist: Add bits/libc-tsd.h.
684         * sysdeps/unix/sysv/linux/mips/Dist: Add xstatconv.c.
686 1998-11-29 1998  H.J. Lu  <hjl@gnu.org>
688         * libio/genops.c (_IO_unbuffer_write): Renamed from
689         _IO_unbuffer_all.
690         (_IO_cleanup): Call _IO_unbuffer_write instead of
691         _IO_unbuffer_all.
693 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
695         * intl/localealias.c: Use *_unlocked version of stdio function if
696         _LIBC_REENTRANT is defined, not _LIBC.
698 1998-12-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
700         * include/grp.h: Add prototypes for internal functions
701         __getgrgid_r and __getgrnam_r.
703         * inet/herrno.c: Include <netdb.h> for prototype, undef h_errno.
705         * resolv/nsap_addr.c: Include <arpa/inet.h> for inet_nsap_addr and
706         inet_nsap_ntoa prototypes.
708 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
710         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Pass -I option
711         to gcc to have it find the correct system header.
712         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
714         * Makefile (postclean): Add sysd-sorted.
715         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
717 1998-12-01  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
719         * sunrpc/auth_des.c: Use new XDR int32 functions for integers.
720         * sunrpc/rpc/xdr.h: Add IXDR INT32 functions.
721         * sunrpc/rpc_hout.c: Remove (u_long) casts in defines to avoid
722         conflicts with new solaris version.
723         * sunrpc/rpc_main.c: Fix bug in generating Makefile name (malloc
724         doesn't zero allocated memory).
725         * sunrpc/rpc_svcout.c: Local variables now starts with a _ to avoid
726         conflicts with xdr functions.  Solves PR libc/877.
727         * nis/rpcsvc/nis.x: Use always uint32_t.
728         * nis/rpcsvc/nis.h: Likewise.
729         * nis/rpcsvc/nis_object.x: Likewise.
731 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
733         * math/libm-test.c: Various cleanups.  Patch by Zack Weinberg.
735         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use correct type for
736         parameter.  Patch by Christian Gafton.
738         * string/envz.h: Add prototype for envz_remove.
739         Reported by Andreas Jaeger.
741 1998-11-30  Mark Kettenis  <kettenis@phys.uva.nl>
743         * mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
744         __spin_lock_init,  __mutex_lock, __mutex_trylock,
745         __mutex_unlock.
746         Remove get_priviliged_ports.  Moved to hurd/Versions.
748         * hurd/Versions [libc, GLIBC_2.0]: Add _end.  This makes the Hurd
749         brk implementation see the end of the data segment of the program
750         instead of the shared library.
751         Add __hurd_errno_location.  This inline function is used in user
752         programs.
753         Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
754         _hurd_fd_get, _hurd_port_free, _hurd_port_get,
755         _hurd_port_locked_get.  These inline functions are used by macros
756         used in mail.local in the Hurd distribution.
757         Add get_privileged_ports.  Moved here from mach/Versions.
758         Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
759         __hurd_file_name_split, __hurd_file_name_path_lookup.  These are
760         not used outside libc.
762 1998-11-30  Mark Kettenis  <kettenis@phys.uva.nl>
764         * hurd/hurdstartup.c: Really include set-hooks.h with <> instead
765         of "".
767 1998-11-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
769         * sunrpc/Makefile: Add xdr_intXX_t to routines.
770         * sunrpc/Versions: Add xdr_int8_t, xdr_uint8_t, xdr_in16_t and
771           xdr_uint16_t.
772         * sunrpc/rpc/xdr.h: Add prototypes for new xdr_intXX_t functions.
773         * sunrpc/xdr.c: Remove xdr_int32_t and xdr_uint32_t.
774         * sunrpc/xdr_intXX_t.c: New, contains all xdr_intXX_t functions.
776         * nis/Depend: New.
777         * nis/nss_nis/nis-service.c: Include generated prototype for parser.
779 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
781         * nscd/nscd_getpw_r.c: Include nscd_proto.h for prototypes.
783         * sysdeps/generic/errno-loc.c: Include <errno.h> for prototype,
784         undefine errno to get variable.
786         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Include <sys/fsuid.h>
787         instead of <unistd.h> for prototype.
788         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
790 1998-11-30  Ulrich Drepper  <drepper@cygnus.com>
792         * misc/err.h: Correct comments and use protected attribute keywords.
793         Reported by Joseph Myers <jsm28@cam.ac.uk>.
795 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
797         * malloc/thread-m.h [_LIBC]: Include <bits/libc-tsd.h>, and
798         remove tsd stuff from pthreads/cthreads libc sections.
799         Use __libc_tsd_define for MALLOC key.
800         [_LIBC] (tsd_key_t, tsd_key_create): Define to a zero-size type and a
801         no-op, respectively.
802         [_LIBC] (tsd_setspecific, tsd_getspecific): Use __libc_tsd_get/set.
804         * elf/dl-error.c: Include <bits/libc-tsd.h>.
805         Use __libc_tsd_define for DL_ERROR key.
806         (tsd_setspecific, tsd_getspecific): Rewritten using __libc_tsd_get/set.
808         * sysdeps/mach/hurd/bits/libc-tsd.h: New file.
809         * sysdeps/generic/bits/libc-tsd.h: New file.
810         * Makefile (distribute): Add bits/libc-tsd.h.
812 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
814         * elf/dl-error.c: Remove kludge to check for ld.so load address.
815         There is no need if weak undefined symbols are not used in ld.so;
816         see linuxthreads/ChangeLog for changes to files
817         linuxthreads/sysdeps/pthread/bits/libc-lock.h and
818         linuxthreads/sysdeps/pthread/bits/libc-tsd.h.
820 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
822         * sysdeps/i386/bits/string.h (__memset_cc): Fix typo (s->__s).
824         * sysdeps/i386/i486/bits/string.h: Add prototypes for all new
825         inline functions.
826         * sysdeps/i386/bits/string.h: Likewise.
828 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
830         * sysdeps/unix/sysv/linux/alpha/bits/ipc.h: Remove ipc_kludge.
832 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
834         * db2/progs/db_load/db_load.c (main): Avoid -Wparentheses warning.
836 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
838         * sysdeps/mach/hurd/dl-sysdep.c: Do not define
839         __hurd_threadvar_max.  Add comment explaining why we define
840         __hurd_threadvar_stack_offset and __hurd_threadvar_stack_mask here.
842 1998-07-29  Mark Kettenis  <kettenis@phys.uva.nl>
844         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
845         __hurd_sigthread_stack_end, __hurd_sigthread_variables): Define to
846         prevent inclusion of Hurd signal handling code.
847         (__libc_write): New function.
848         (_dl_sysdep_output): Removed.  The implementation in
849         `elf/dl-misc.c' now also works for the Hurd.
851 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
853         * hurd/hurdstartup.c: Do not include hurdmalloc.h; _hurd_startup
854         does not use any of malloc/realloc/free anymore.  Include
855         set-hooks.h with <> instead of "".
857 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
859         * sunrpc/svc_unix.c (__msgread): Move ON local var inside block
860         within #ifdef SO_PASSCRED.  Avoids unused var when no SO_PASSCRED.
861         * sunrpc/clnt_unix.c (__msgread): Likewise.
863 1998-11-28  Roland McGrath  <roland@baalperazim.frob.com>
865         * hurd/setuids.c: Renamed to ...
866         * hurd/seteuids.c: this.
867         (setuids): Renamed to seteuids.
868         * hurd/getuids.c: Renamed to ...
869         * hurd/geteuids.c: this.
870         (__getuids): Renamed to geteuids, no aliases.
871         * hurd/hurd.h (geteuids, seteuids): Declare them.
872         * hurd/Versions: Replace getuids; __getuids with geteuids; seteuids.
873         * hurd/Makefile (routines): Updated.
875 1998-11-29  Ulrich Drepper  <drepper@cygnus.com>
877         * sysdeps/generic/segfault.c (install_handler): Correct test for
878         SEGFAULT_HANDLER=all.
879         Patch by Zack Weinberg.
881 1998-11-28 23:23 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
883         * sysdeps/unix/sysv/linux/configure.in: Test for symlinks in
884         $prefix/include that may be clobbered on installation.
886 1998-11-27  Philip Blundell  <pb@nexus.co.uk>
888         Fixes to allow compilation with static NSS:
889         * nss/Makefile: Make explicit the dependency of getent on
890         libnss_files.a.
891         [build_static_nss]: Define $(otherlibs) appropriately.
892         * nss/Depend: Add a dependency on `resolv'.
894 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
896         Partial support for MIPS ISO C 9x exception handling:
897         * sysdeps/mips/fclrexcpt.c: New file.
898         * sysdeps/mips/ftestexcept.c: New file.
899         * sysdeps/mips/fgetexcptflg.c: New file.
900         * sysdeps/mips/fesetround.c: New file.
901         * sysdeps/mips/fegetround.c: New file.
902         * sysdeps/mips/fegetenv.c: New file.
903         * sysdeps/mips/fesetenv.c: New file.
904         * sysdeps/mips/feupdateenv.c: Likewise.
905         * sysdeps/mips/bits/fenv.h: New file.
907 1998-11-28  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
909         * sysdeps/unix/sysv/linux/mips/bits/signum.h: Remove inclusion of
910         <asm/signal.h> and add needed symbols from <asm/signal.h>; bring
911         in sync with linux specific version.
913         Patches by Ralf Baechle <ralf@uni-koblenz.de> for mips-linux:
915         * sysdeps/unix/mips/sysdep.S: Define _errno as weak_alias, rewrite
916         errno declaration.
918         * sysdeps/unix/sysv/linux/mips/ustat.c: Use INLINE_SYSCALL instead
919         of calling __syscall_*.
920         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
922         * sysdeps/unix/sysv/linux/mips/syscalls.list: Update entries.
924         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Add missing SYS_*
925         constants, correct values according to Linux 2.1.130.
927         * sysdeps/unix/sysv/linux/mips/pwrite.c: New file.
928         * sysdeps/unix/sysv/linux/mips/pwrite64.c: New file.
929         * sysdeps/unix/sysv/linux/mips/pread.c: New file.
930         * sysdeps/unix/sysv/linux/mips/pread64.c: New file.
932         * sysdeps/mips/Makefile (sysdep_routines): Use += instead of a
933         :=.
935         * sysdeps/unix/sysv/linux/mips/bits/ipc.h: Remove ipc_kludge.
937         * sysdeps/unix/sysv/linux/mips/xstatconv.c: New file.
939         * sysdeps/unix/sysv/linux/mips/xstat.c: Removed.
941         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: New file.
943         * sysdeps/unix/sysv/linux/mips/kernel_termios.h: Add copyright
944         message, change name of include protection, remove inclusion of
945         <bits/termios.h>.
947         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
948         (old_kernel_sigaction): Define.
949         (struct kernel_sigaction): Rename sa_handler to k_sa_handler.
951         * sysdeps/unix/sysv/linux/mips/bits/time.h: Removed, we can use
952         the general linux version.
953         * sysdeps/unix/sysv/linux/mips/bits/stat.h (_STAT_VER_KERNEL): Added.
955         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Update file.
957 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
959         * sysdeps/arm/bits/endian.h (__FLOAT_WORD_ORDER): Define to big
960         endian.
961         * math/math_private.h: Use __FLOAT_WORD_ORDER rather than
962         BYTE_ORDER.
963         * string/endian.h: If __FLOAT_WORD_ORDER wasn't defined by
964         <bits/endian.h>, make it the same as __BYTE_ORDER.
966 1998-11-27  Ulrich Drepper  <drepper@cygnus.com>
968         * math/math.h: Avoid using long double functions in generic macros
969         if __NO_LONG_DOUBLE_MATH.
971         * sysdeps/arm/dl-machine.h: Fix handling of weak undefined symbols
972         during bootstrapping.
973         * scripts/config.sub: Add Netwinder specific matches.
974         Patch by Scott Bambrough <scottb@corelcomputer.com>.
976 1998-11-26  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
978         * Makeconfig ($(common-objpfx)sysd-dirs): Use automatic variables
979         if possible.
980         ($(common-objpfx)sysd-sorted): Likewise.
982 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
984         * sysdeps/libm-ieee754/e_log.c (__ieee754_log): Add declaration of
985         local variables t1,t2 only if needed.
987         * sysdeps/libm-ieee754/e_atan2.c: Added braces to avoid compiler
988         warnings.
989         * sysdeps/libm-ieee754/s_truncf.c (__truncf): Likewise.
990         * sysdeps/libm-ieee754/s_trunc.c (__trunc): Likewise.
992         * sysdeps/mips/mul_1.S (Loop): Add closing comment to avoid
993         warning.
995 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
997         * math/math.h: Add brace to correct #if expression.
999 1998-11-26  Philip Blundell  <philb@gnu.org>
1001         Undo change of 1998-11-12:
1002         * sysdeps/unix/sysv/linux/netlink/netlink.h: Deleted.
1003         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
1004         netlink/netlink.h.
1005         * sysdeps/unix/sysv/linux/Dist: Likewise.
1007 1998-11-22  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1009         * nis/nis_print.c (nis_print_entry): Changes to match Solaris output.
1011 1998-11-26  Ulrich Drepper  <drepper@cygnus.com>
1013         * sysdeps/mips/dl-machine.h (ELF_MACHINE_NO_PLT): New defined macro.
1014         (elf_machine_got_rel): Remove scope variable.  Use scope from the map.
1015         Don't modify _dl_global_scope_end in the end.
1016         (__dl_runtime_resolv): Also use scope from the map.
1017         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1018         * elf/dl-runtime.c: Don't define fixup and profile_fixup if
1019         ELF_MACHINE_NO_PLT is defined.
1020         * sysdeps/mips/sys/ucontext.h: New file.
1021         Patches by kaz Kojima <kkojima@rr.iij4u.or.jp>.
1023 1998-11-26  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1025         * sysdeps/generic/pselect.c (__pselect): Change interface,
1026         set/restore sigmask.
1028         * misc/sys/select.h: Change declaration according to Stevens' Unix
1029         Network Programming.
1030         * include/sys/select.h (__pselect): Likewise.
1031         Reported by <bwelling@anomaly.munge.com> [PR libc/872].
1033         * include/fpu_control.h: New file, contains __setfpucw
1034         declaration.
1036         * sysdeps/generic/fpu_control.h: Remove __setfpucw declaration,
1037         it's an internal symbol.
1038         * sysdeps/alpha/fpu/fpu_control.h: Likewise.
1039         * sysdeps/arm/fpu/fpu_control.h: Likewise.
1040         * sysdeps/i386/fpu_control.h: Likewise.
1041         * sysdeps/m68k/fpu_control.h: Likewise.
1042         * sysdeps/powerpc/fpu_control.h: Likewise.
1043         * sysdeps/sparc/sparc32/fpu/fpu_control.h: Likewise.
1044         * sysdeps/sparc/sparc64/fpu/fpu_control.h: Likewise.
1046 1998-11-25  Ulrich Drepper  <drepper@cygnus.com>
1048         * version.h (VERSION): Bump to 2.0.104.
1050 1998-11-25  Mark Kettenis  <kettenis@phys.uva.nl>
1052         * libio/bits/stdio.h (fread_unlocked): Add missing parentheses
1053         around parameter n.
1055 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1057         * time/tzfile.c (__tzfile_read): Fix comment.
1059 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1061         * Makerules (build-shlib): Pass -O1 down to linker to get
1062         optimized shared libraries.
1064 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1066         * Makeconfig ($(common-objpfx)sysd-dirs): Cope with no Subdirs
1067         file.  Strip "-" from inhibited subdir name.  Combine into a
1068         single awk program.
1069         ($(common-objpfx)sysd-sorted): Fix sed command.
1071 1998-11-25  Roland McGrath  <roland@baalperazim.frob.com>
1073         * sysdeps/mach/hurd/i386/init-first.c (init): Restored as inline fn.
1074         Use constant _HURD_THREADVARS_MAX for temporary array size.
1076         * Makeconfig ($(common-objpfx)sysd-sorted): Use @ instead of / as sed
1077         s separator, since $(..) might contain a /.
1079 1998-11-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1081         * configure.in (mips): Fix typo (Replace ,, by ;;).
1083         * libio/Versions: Clean up entries.
1085 1998-11-23  Ulrich Drepper  <drepper@cygnus.com>
1087         * sysdeps/i386/fpu/bits/mathinline.h: Add optimizations for lrint
1088         and llrint.
1090 1998-11-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1092         * sysdeps/unix/sysv/linux/netinet/ip_fw.h: Removed.  There are too
1093         many differences between the Linux 2.0 and 2.1 versions of this
1094         file and it's too difficult to convert all calls.  The file should
1095         only be needed by the ipfw program which has to take care of the
1096         correct kernel version and include files.
1098         * sysdeps/unix/sysv/linux/Dist: Remove netinet/ip_fw.h.
1099         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Likewise.
1101 1998-11-23  Ulrich Drepper  <drepper@cygnus.com>
1103         * Makeconfig: Don't read sysd-sorted unless sysd-dirs is read.
1104         Patch by Zack Weinberg.
1106         * math/bits/mathcalls.h: Adjust comments.  Remove gamma_r prototype.
1108         * sysdeps/i386/fpu/bits/mathinline.h: Make log2 only available if
1109         __USE_ISOC9X is defined.  Provide rint optimization.
1111 1998-11-21  H.J. Lu  <hjl@gnu.org>
1113         * libio/Versions (_IO_popen, _IO_proc_open, _IO_proc_close,
1114         popen, pclose): Add to GLIBC_2.1.
1116         * libio/Makefile (routines): Add oldiopopen and oldpclose.
1117         (shared-only-routines): Likewise.
1119         * libio/pclose.c (pclose): Make it default for GLIBC_2.1.
1120         * libio/iopopen.c (_IO_proc_open, _IO_popen, popen,
1121         _IO_proc_close): Likewise.
1123         * libio/iolibio.h (_IO_new_popen, _IO_old_popen, __new_pclose,
1124         __old_pclose): New prototypes.
1126         * libio/libioP.h (_IO_new_file_jumps): Removed.
1127         (_IO_old_proc_jumps): Added.
1128         (_IO_new_proc_open, _IO_old_proc_open): New prototypes.
1130         * libio/oldiopopen.c: New file.
1132         * libio/oldpclose.c: New file.
1134 1998-11-22  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1136         * nss/Makefile: Build and install getent.
1137         * nss/getent.c: New, get entries from administrative database.
1139 1998-11-22  Roland McGrath  <roland@baalperazim.frob.com>
1141         * sysdeps/mach/hurd/i386/init-first.c (init): Provide temporary storage
1142         for the per-thread variables of the main user thread to make it
1143         possible to use malloc as soon as _hurd_preinit_hook has been run.
1144         For cthreads, copy values to new stack from there.
1145         For non-cthreads, malloc threadvar array here and copy from temp space.
1146         (init1): No longer initialize threadvars here.
1147         (doinit1): Made static void at top level.
1148         (init): Folded into [PIC] _init or [!PIC] doinit1, since GCC cannot
1149         inline a function that uses dynamic auto arrays.
1151 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
1153         * version.h (VERSION): Bump to 2.0.103.
1155         * aclocal.m4 (LIBC_PROG_BINUTILS): Also add AR and RANLIB using the
1156         same method.
1157         * configure.in: Don't define AR and RANLIB here.
1159         * inet/gethstbyad_r.c: Define NEED__RES_HCONV and POSTPROCESS for
1160         host name res_hconf code.
1161         * inet/gethstbynm_r.c: Likewise.
1162         * nss/getXXbyYY_r.c: Include resolv/res_hconf.h if NEED__RES_HCONF
1163         is defined.  Call res_hconf_init if necessary.  If POSTPROCESS is
1164         defined execute the code.
1165         * resolv/Makefile (routines): Add res_hconf.
1166         (headers): Add res_hconf.h.
1167         * resolv/res_hconf.c: Pretty print.
1168         * resolv/res_hconf.h: Likewise.
1170 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
1172         * sysdeps/generic/bits/byteswap.h: Fix typos in non-GCC
1173         definitions.  Reported by Scott Bambrough <scottb@corelcomputer.com>.
1175 1998-11-20 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1177         * math/libm-test.c: Raise some epsilons a bit.
1179 1998-11-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1181         * Makeconfig ($(common-objpfx)sysd-sorted): Fix portability problems.
1183 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
1185         * Makefile (distribute): Add scripts/gen-sorted.awk.
1187 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
1189         * posix/regex.c (regex_compile): Handle extra long class names
1190         correctly.
1192 1998-11-19  Geoff Keating  <geoffk@ozemail.com.au>
1194         * elf/rtld.c (_dl_start): Handle weak undefined symbols in ld.so
1195         correctly.
1197 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
1199         * misc/error.c: Undo last change.
1201         * ctype/Versions: Add _tolower and _toupper.
1203 1998-11-19  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1205         * sunrpc/svc_unix.c (readunix): Check for POLLERR, POLLHUP and
1206         POLLNVAL.
1208 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
1210         * Makeconfig: Add comment to all-subdirs definition.
1211         Add rule to generate sysd-sorted.  Include this file and and set
1212         subdirs value to $(sorted-subdirs).
1213         * scripts/gen-sorted.awk: New file.
1214         * Make-dist (+tsrcs): Add Depend.
1215         * nscd/Depend: New file.
1216         * nss/Depend: New file.
1217         * rt/Depend: New file.
1219 1998-11-18  Ulrich Drepper  <drepper@cygnus.com>
1221         * sysdeps/unix/bsd/poll.c (__poll): Add code to extend sets if any
1222         passed file descriptor exceeds the size determined by
1223         getdtablesize.
1225         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Update
1226         from inline version in bits/socket.h.
1228         * sysdeps/unix/sysv/linux/bits/socket.h: Define __cmsg_nxthdr as
1229         inline function only is __USE_EXTERN_INLINES is defined.
1231         * time/strftime.c (my_strftime): Make code a bit clearer.
1232         Patch by Paul Eggert <eggert@twinsun.com>.
1234         * io/Makefile (CFLAGS-ftw.c): Removed.
1236         * manual/errno.texi: Change the short text for ENODEV to
1237         "No such device".
1239 1998-11-18  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1241         * io/Makefile (tests): Make sure that the test program has an
1242         explicit directory part.
1244 1998-11-18  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1246         * configure.in: Fix last change.
1248 1998-11-18  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1250         * sunrpc/Makefile (routines): Add create_xid.
1252         * sunrpc/clnt_tcp.c: Use non-guessable xid.
1253         * sunrpc/clnt_udp.c: Likewise.
1254         * sunrpc/clnt_unix.c: Likewise.
1255         * sunrpc/pmap_rmt.c: Likewise.
1256         * sunrpc/create_xid.c: New, create non-guessable xid.
1258         * sunrpc/svc_tcp.c: Remove patch from 1998-06-15, use poll instead
1259         of select.
1260         * sunrpc/svc_unix.c: Use poll instead of select.
1262 1998-11-17  Ulrich Drepper  <drepper@cygnus.com>
1264         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Make Unix98 compliant
1265         by removing SIG_IGN handler for SIGCHLD if necessary.
1266         Patch by H.J. Lu <hjl@lucon.org>.
1268         * stdio-common/printf_fphex.c (__printf_fphex): Correct printing
1269         of denormalized numbers.
1271 1998-10-06  Geoff Keating  <geoffk@ozemail.com.au>
1273         * sysdeps/powerpc/dl-machine.h (elf_machine_load_address): Suppress
1274         another parentheses warning, make nano-optimisation.
1276         * sysdeps/powerpc/dl-machine.h (_dl_runtime_resolve): Preserve
1277         saved LR on stack so _mcount works.
1278         (_dl_prof_resolve): Likewise.
1279         * sysdeps/powerpc/register-dump.h: Print FPRs.  Adjust for correct
1280         signal handler calling convention.
1281         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Adjust for
1282         correct signal handler calling convention---more like x86 linux and
1283         mklinux, less like linux-ppc versions between 2.1 and 2.1.126.
1285 1998-11-17  Ulrich Drepper  <drepper@cygnus.com>
1287         * configure.in: Correct allowed makeinfo version.
1289 1998-11-17  Philip Blundell  <pb@nexus.co.uk>
1291         * sysdeps/generic/bits/mathdef.h: Fix typo.
1293 1998-11-17  Geoff Keating  <geoffk@ozemail.com.au>
1295         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Prototype the syscall
1296         under the right name (squish warning).
1297         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1299 1998-11-17  Geoff Keating  <geoffk@ozemail.com.au>
1301         * stdio-common/_itoa.c (_itoa): Add redundant parentheses to
1302         prevent warnings.
1304 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
1306         * intl/locale.alias: Change `japanese' alias to match X11R6's.
1307         Add `japanese.euc' alias.
1309         * manual/Makefile (%.info): Set LANGUAGE and LC_ALL explicitly to C
1310         before running makeinfo.
1312         * math/Makefile (libm-routines): $(strip) entire value.
1314         * nss/nss_db/db-XXX.c (internal_setent): Rewrite to avoid warning.
1316 1998-10-24  H.J. Lu  <hjl@gnu.org>
1318         * libio/libio.h (_IO_cookie_io_functions_t): Protect with __USE_GNU.
1319         (_IO_cookie_file): Likewise.
1321 1998-11-16  Philip Blundell  <philb@gnu.org>
1323         * inet/netinet/icmp6.h: Correct naming of constants.
1325 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
1327         * sysdeps/unix/opendir.c: Use o_directory_works differently.  Treat
1328         zero value as uninitialized so that variable can go into .bss.
1330         * dirent/opendir-tst1.c: Print error strings to stdout.
1332         * sysdeps/unix/sysv/linux/mmap64.c: New file.  Empty.
1333         * sysdeps/unix/sysv/linux/syscalls.list: Add mmap with mmap64 alias.
1334         * sysdeps/unix/sysv/linux/arm/mmap.S: Add mmap64 alias.
1335         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1336         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
1338 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1340         * time/tzfile.c (__tzfile_read): Check that types[i].isdst is in
1341         range.
1343 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
1345         * libio/bits/stdio.h (fread_unlocked): Do handle zero size and number.
1346         (fwrite_unlocked): Likewise.
1348 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1350         * libio/bits/stdio.h (fread_unlocked): Don't evaluate non-constant
1351         twice.  Don't bother handling zero size.
1352         (fwrite_unlocked): Likewise.
1354 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1356         * configure.in: Fix regex for makeinfo version string.
1358 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1360         * sunrpc/rpc_sample.c (write_sample_server): Avoid -Wparentheses
1361         warning.
1362         * sunrpc/rpc_svcout.c (write_program): Likewise.
1364 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1366         * time/Makefile (CFLAGS-test_time.c): Add -Wno-format.
1368 1998-11-16  Ulrich Drepper  <drepper@cygnus.com
1370         * misc/sys/mman.h: Pretty print prototypes.
1372 1998-11-15  Ulrich Drepper  <drepper@cygnus.com
1374         * misc/error.c (error): Don't use result of strerror_r call directly
1375         since at least DEC Unix has a wrong return type.
1376         Patch by Johan Danielsson <joda@pdc.kth.se>.
1378 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1380         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Undo
1381         last change.
1383 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
1385         * stdio-common/vfscanf.c: Don't return -1 in case of an invalid
1386         format, just stop.
1388         * version.h (VERSION): Bump to 2.0.102.
1390         * stdio-common/tstdiomisc.c (t2): Update test case for last scanf
1391         change.
1392         * stdio-common/scanf7.c (main): Likewise.
1394 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
1396         * stdio-common/vfscanf.c: Return EOF for invalid format
1397         characters.
1399         * version.h (VERSION): Bump to 2.0.101.
1401         * Makerules (Versions.all): Generate this file from all Versions.def
1402         files.
1403         (sysd-versions): Use Versions.all instead of Versions.def.
1405 1998-11-13  Philip Blundell  <philb@gnu.org>
1407         * sysdeps/arm/fpu/bits/setjmp.h (__JMP_BUF_SP): Correct value.
1408         Reported by Scott Bambrough.
1410 1998-11-11  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1412         * locale/programs/config.h: Define HAVE_STRING_H for xstrdup.c.
1414 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
1416         * libio/bits/stdio.h: Correct and improve fread_unlocked and
1417         fwrite_unlocked optimizations.
1419         * time/tzfile.c (__tzfile_read): Set __tzname based on last names
1420         in time not to last entries in the file.
1421         (__tzfile_compute): Likewise.  Fix for PR libc/863.
1423         * timezone/Makefile: Generate GB timezone data for test.
1424         * timezone/tst-timezone.c: More tests for DST switching time (disabled
1425         for now).
1427 1998-11-13  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1429         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Remove
1430         d0 from clobber list.
1432 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1434         * inet/netinet/in.h: Add a few more IPPROTO_* macros.
1436         * libio/Makefile (headers): Add bits/stdio.h.
1437         * libio/iofread_u.c: Undefine fread_unlocked before definition.
1438         * libio/iofwrite_u.c: Undefine fwrite_unlocked before definition.
1439         * libio/stdio.h: Move optimizations into ...
1440         * libio/bits/stdio.h: ...here.  New file.
1442         * libio/iofread.c: Pretty print.
1444 1998-11-12  Mark Kettenis  <kettenis@phys.uva.nl>
1446         * sysdeps/gnu/bits/utmpx.h: Protect members of struct
1447         __exit_status with `__'.  Rename pad member of struct utmpx to
1448         __unused.
1449         (RUN_LVL): Define unconditionally.
1450         * sysdeps/gnu/bits/utmp.h: Rename pad member of struct utmp to
1451         __unused.
1453 1998-11-12  Philip Blundell  <philb@gnu.org>
1455         * sysdeps/unix/sysv/linux/netlink/netlink.h: New file, support for
1456         Linux AF_NETLINK sockets (needed since the kernel version is
1457         unusable).
1458         * sysdeps/unix/sysv/linux/Makefile: Install it.
1459         * sysdeps/unix/sysv/linux/Dist: Distribute it.
1461 1998-11-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1463         * timezone/tst-timezone.c (tests): Add entry for America/Chicago
1464         to test for bug in PR libc/863.
1466 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1468         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Cleanup comment.
1470         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Rename macro
1471         parameter lazy to do_lazy to avoid clashing with struct member name.
1472         Reported by Ralf Baechle <ralf@uni-koblenz.de>.
1474 1998-11-10  H.J. Lu  <hjl@gnu.org>
1476         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
1477         if it is defined in <linux/limits.h>.
1479 1998-11-09 13:07 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1481         * include/protocols/routed.h: Include the real header with
1482         a full path from the top of the source tree.
1483         * include/protocols/rwhod.h: Likewise.
1484         * include/protocols/talkd.h: Likewise.
1485         * include/protocols/timed.h: Likewise.
1487         * timezone/Makefile: Don't include z.ZONE files if no_deps
1488         is set, not if avoid-generated is set.
1490 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1492         * signal/signal.h: Undo last change.  Get definition of timespec
1493         if __USE_POSIX199309.
1495         * string/bits/string2.h (__strpbrk_c2): Add intermediate cast to
1496         size_t to prevent gcc warning when using -Wqual-cast.
1497         (__strpbrk_c3): Likewise.
1498         Suggested by Alan Curry <pacman@cqc.com>.
1500 1998-11-11  Roland McGrath  <roland@baalperazim.frob.com>
1502         * hurd/hurdsig.c (_hurdsig_init): Add assertion that no pending,
1503         unblocked signals are set in the startup masks.
1505         * hurd/hurdsig.c (_hurdsig_init): Take new args, INTARRAY and
1506         INTARRAYSIZE.  Initialize main thread's sigstate from INIT_SIG* ints.
1508         * hurd/hurd/signal.h: Update _hurdsig_init decl.
1509         * hurd/hurdinit.c (_hurd_proc_init): Take new args, INTARRAY and
1510         INTARRAYSIZE, pass them down to _hurdsig_init.
1511         * hurd/hurd.h: Update _hurd_proc_init decl.
1513 1998-11-10  Ulrich Drepper  <drepper@cygnus.com>
1515         * math/cabs.c: Replace complex by _Complex.
1516         * math/cabsf.c: Likewise.
1517         * math/cabsl.c: Likewise.
1518         * math/cimag.c: Likewise.
1519         * math/cimagf.c: Likewise.
1520         * math/cimagl.c: Likewise.
1521         * math/conj.c: Likewise.
1522         * math/conjf.c: Likewise.
1523         * math/conjl.c: Likewise.
1524         * math/creal.c: Likewise.
1525         * math/crealf.c: Likewise.
1526         * math/creall.c: Likewise.
1528         * sysdeps/alpha/fpu/bits/mathdef.h: Define ISO C 9X stuff only if
1529         included from math.h and __USE_ISOC9X is defined.
1530         * sysdeps/generic/bits/mathdef.h: Likewise.
1531         * sysdeps/generic/i386/fpu/mathdef.h: Likewise.
1532         * sysdeps/generic/m68k/fpu/mathdef.h: Likewise.
1533         * sysdeps/generic/powerpc/bits/mathdef.h: Likewise.
1534         * sysdeps/generic/sparc/fpu/bits/mathdef.h: Likewise.
1536 1998-11-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1538         * sysdeps/i386/fpu/bits/mathdef.h: Allow direct inclusion by
1539         <complex.h>.
1540         * sysdeps/alpha/fpu/bits/mathdef.h: Likewise.
1541         * sysdeps/generic/bits/mathdef.h: Likewise.
1542         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1543         * sysdeps/powerpc/bits/mathdef.h: Likewise.
1544         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1546 1998-11-09  Ulrich Drepper  <drepper@cygnus.com>
1548         * extra-lib.mk: Fix typo in last change.
1550         * math/complex.h: Include bits/mathdef.h to get __NO_LONG_DOUBLE_MATH
1551         is needed.
1552         Don't define long double functions if __NO_LONG_DOUBLE_MATH is defined.
1553         Don't define `complex' but instead `_Complex'.  The later is the
1554         reserved keyword.
1555         * math/bits/cmathcalls.c: Define _Mdouble_complex_ using _Complex,
1556         not complex.
1558 1998-11-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1560         * manual/libc.texinfo: Remove colon from category name.
1561         * manual/Makefile (dir-add.info): Likewise.
1563 1998-11-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1565         * configure.in: Avoid autoconf bug.
1567 1998-10-28  H.J. Lu  <hjl@gnu.org>
1569         * posix/getopt.h: Add "__" to arguments in prototypes.
1571 1998-11-05  H.J. Lu  <hjl@gnu.org>
1573         * libio/iofgets.c (_IO_fgets): Don't report error
1574         if something was read in and errno is set to
1575         EAGAIN.
1576         * libio/iofgets_u.c (fgets_unlocked): Likewise.
1578 1998-11-05  Philip Blundell  <philb@gnu.org>
1580         * sysdeps/unix/sysv/linux/net/if_packet.h: Don't include kernel
1581         header; it defines too much.  Provide a local definition of struct
1582         sockaddr_pkt and a comment advising against its use.
1584 1998-11-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1586         * extra-lib.mk: Avoid empty include list.
1588 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1590         * extra-lib.mk: Add support for $(lib)-shared-only-routines.
1592         * elf/Makefile (libdl-routines): Add dlopenold only if doing
1593         versioning.
1594         (libdl-shared-only-routines): New variable.
1596 1998-11-06  Paul Eggert  <eggert@twinsun.com>
1598         Don't invoke localtime_r or gmtime_r unless it's the GNU C
1599         library's localtime_r and gmtime_r; there are too many buggy
1600         implementations of localtime_r and gmtime_r out there, and
1601         it's not worth keeping track of all the different bugs.
1603         * time/mktime.c (__EXTENSIONS__): Remove.
1604         (<unistd.h>): No need to include.
1605         * time/strftime.c: Likewise.
1607         * time/mktime.c (_POSIX_THREAD_SAFE_FUNCTIONS, HAVE_LOCALTIME_R):
1608         Remove.
1609         (my_mktime_localtime_r): Renamed from localtime_r; all uses changed.
1610         Base it on localtime unless _LIBC.
1612         * time/strftime.c (my_strftime_gmtime_r): Renamed from gmtime_r;
1613         all uses changed.
1614         (my_strftime_localtime_r): Renamed from localtime_r; all uses changed.
1615         Base them on localtime/gmtime if not _LIBC.
1617 1998-11-07  Ulrich Drepper  <drepper@cygnus.com>
1619         * sysdeps/generic/isastream.c: Always return 0 unless it is an invalid
1620         file descriptor.  This makes this function actually usable.
1621         Proposed by Mark Kettenis <kettenis@phys.uva.nl>.
1623 1998-11-05  Ulrich Drepper  <drepper@cygnus.com>
1625         * math/math.h: Unconditionally include bits/mathdef.h.  Declare
1626         long double functions only if __NO_LONG_DOUBLE_MATH is not
1627         defined.
1628         * sysdeps/generic/bits/mathdef.h: Define only if __USE_ISOC9X.
1629         Define __NO_LONG_DOUBLE_MATH.
1630         * sysdeps/m68k/fpu/bits/mathdef.h: Define only if __USE_ISOC9X.
1631         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1633         * elf/rtld.c: Add a few __builtin_expects where they will improve
1634         a lot.
1636 1998-11-05  Ulrich Drepper  <drepper@cygnus.com>
1638         * version.h (VERSION): Bump to 2.0.100.
1640         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Fix fldl -> fld.
1642         * sysdeps/libm-i387/s_fma.S: Optimize a bit.
1643         * sysdeps/libm-i387/s_fmaf.S: Likewise.
1645 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1647         * libio/genops.c (_IO_least_marker): Add additional parameter
1648         end_p replacing fp->_IO_read_end.
1649         (save_for_backup): Likewise.  All callers changed.  Use _IO_size_t
1650         and _IO_ssize_t instead of int.
1651         (_IO_switch_to_main_get_area): Remove use of _IO_save_ptr.
1652         (_IO_switch_to_backup_area): Likewise.  Fix comments.
1653         (_IO_seekmark): Undo last change.
1654         (_IO_default_pbackfail): Correct use of backup area.
1655         * libio/libio.h (_IO_FILE_complete): Remove _IO_save_ptr.
1657 1998-11-04 19:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1659         * configure.in: Search for install-info and substitute it.
1660         Determine whether install-info is the buggy Debian version
1661         that doesn't understand INFO-DIR-SECTION.
1662         * config.make.in: Add INSTALL_INFO and OLD_DEBIAN_INSTALL_INFO
1663         to be substituted.
1664         * manual/Makefile: If OLD_DEBIAN_INSTALL_INFO, give
1665         install-info the --section argument it needs to work properly.
1666         (dir-add.texinfo): Delete target.
1667         (dir-add.info): Generate this directly.  Sort entries.  Put a
1668         colon at the end of the INFO-DIR-SECTION line.
1669         * manual/libc.texinfo: Put a colon at the end of the
1670         @dircategory line.
1672 1998-11-05  Paul Eggert  <eggert@twinsun.com>
1674         * time/mktime.c (__mktime_internal): Adopt the traditional (and
1675         problematic) notion of what to do when tm_isdst doesn't match.
1677 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1679         * posix/PTESTS: Fix spelling.
1681 1998-11-04  Ulrich Drepper  <drepper@cygnus.com>
1683         * misc/efgcvt_r.c (fcvt_r): Remove code which tries to use libm
1684         functions.  Reduce error in computing normalized value by multiplying
1685         factor in loop and compute result in one step.
1686         Reported by Christian Gafton.
1688         * sysdeps/libm-i387/e_hypot.S: New file.
1689         * sysdeps/libm-i387/e_hypotf.S: New file.
1691 1998-11-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1693         * elf/dlopenold.c: Compile only if DO_VERSIONING is also defined.
1695 1998-11-03  H.J. Lu  <hjl@gnu.org>
1697         * libio/fileops.c (new_do_write): New function.
1698         (_IO_new_do_write): Call new_do_write.
1699         (_IO_new_file_xsputn): Likewise.
1701         * libio/oldfileops.c (old_do_write): New function.
1702         (_IO_old_do_write): Call old_do_write.
1703         (_IO_old_file_xsputn): Likewise.
1705 1998-11-04  Ulrich Drepper  <drepper@cygnus.com>
1707         * time/mktime.c (__mktime_internal): Correct last change.  We must
1708         stop searching for the right isdst value before stepping to the
1709         initial value.
1711         * malloc/malloc.c: Make sure calloc really returned zeroed memory.
1712         Patch by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>.
1714 1998-11-02 16:12 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1716         * sysdeps/generic/bits/signum.h: Define signals with their
1717         historical numbers when those are in the 1-15 range and
1718         consistent across platforms.
1719         Define compatibility aliases (SIGIOT, SIGCLD) if __USE_MISC.
1720         Define SIG_DFL, SIG_IGN, SIG_ERR as numeric constants cast
1721         appropriately instead of with fake function declarations
1722         (would cause link errors).
1723         If __USE_UNIX98, define SIG_HOLD.
1725 1998-10-29  H.J. Lu  <hjl@gnu.org>
1727         * sysdeps/unix/sysv/linux/bits/sigaction.h (sigaction): Use
1728         union only if __USE_POSIX199309 is defined.
1730         * misc/sys/select.h (pselect): Declared only if __USE_GNU is
1731         defined.
1733 1998-11-03  Ulrich Drepper  <drepper@cygnus.com>
1735         * time/mktime.c (__mktime_internal): Handle broken down times
1736         around the time of the DST switches more correctly.
1738 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1740         * elf/Makefile (libdl-routines): Add dlopenold.
1741         * elf/Versions [libdl, GLIBC_2.1]: Add dlopen.
1742         * elf/dl-open.c (_dl_open): Check whether RTLD_LAZY or RTLD_GLOBAL
1743         is set and bounce otherwise.
1744         * elf/dlopen.c: Rename function to __dlopen_check and make version
1745         named dlopen.
1746         * elf/dlopenold.c: New file.
1748 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1750         * elf/Versions [libc, GLIBC_2.01]: Add _dl_global_scope_alloc.
1751         * elf/dl-open.c (_dl_global_scope_alloc): Move definition to
1752         * elf/dl-deps.c: ...here.
1753         * elf/dl-open.c (dl_open_worker): Call _dl_map_object_deps with
1754         new parameter and expect result.  Remove code handling RTLD_GLOBAL.
1755         Add return value of _dl_map_object_deps to
1756         _dl_main_searchlist->r_nlist.
1757         * elf/dl-deps.c (_dl_map_object_deps): Change to return value.
1758         If we parameter GLOBAL is nonzero add object and dependencies to
1759         the global scope.
1760         * elf/ldsodefs.h: Adapt prototype for _dl_map_object_deps.
1761         * elf/rtld.c (dl_main): Call _dl_map_object_deps with new parameter.
1762         Mark all objects as in global scope.
1763         * elf/dl-object.c (_dl_new_object): Initialize l_global to zero.
1765         * sysdeps/unix/sysv/linux/bits/sockunion.h: Add Econet support.
1767         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add .L prefix to symbols
1768         used in macro magic.
1770 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1772         * sysdeps/unix/sysv/linux/netatalk/at.h: Include <linux/atalk.h>
1773         before <sys/socket.h> to make sockaddr_at available to
1774         <sys/socket.h>.
1776         * posix/glob.h: Remove __P from parameter lists of declarations.
1778 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1780         * time/tzset.c (tz_compute): Remove unused parameter timer.
1781         Change caller.
1783 1998-11-02  Mark Kettenis  <kettenis@phys.uva.nl>
1785         * sysdeps/generic/bits/types.h (__ipc_pid_t): New typedef.
1787 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1789         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Remove
1790         unnecessary test and add cast.
1792 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1794         * posix/getconf.c: Add initializer SYSCONF for CHARCLASS_NAME_MAX.
1796         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Remove unused
1797         parameter fd.
1798         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
1800 1998-11-02  Mark Kettenis  <kettenis@phys.uva.nl>
1802         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
1803         fds_bits member.
1804         (__FDMASK): Use __fd_mask instead of unsigned long int in cast.
1806 1998-10-31  Richard Henderson  <rth@cygnus.com>
1808         * math/Makefile (gmp-objs): Add udiv_qrnnd.
1810         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL*): New.
1811         (inline_syscall*): New.
1812         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): New.
1813         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Kill __syscall* bits.
1815 1998-10-31  Ulrich Drepper  <drepper@cygnus.com>
1817         * aclocal.m4 (LIBC_PROG_FOO_GNU): Name output file using -o to
1818         avoid ld test generating an unwanted file.
1820         * posix/PTESTS: Remove comment about incorrect test (it is correct).
1822 1998-10-30  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1824         * sunrpc/Versions: Add xdr_uint32_t and xdr_int32_t.
1825         * sunrpc/pmap_rmt.c: Initialize clnt_stat variable.
1826         * sunrpc/rpc/auth_des.h: Use uint32_t for time values.
1827         * sunrpc/rpc/xdr.h: Add INT32 support.
1828         * sunrpc/xdr.c: Implement xdr_int32_t and xdr_uint32_t .
1830         * nis/nis_call.c: Changes for new 64bit clean NIS+ interface.
1831         * nis/nis_callback.c: Likewise.
1832         * nis/nis_creategroup.c: Likewise.
1833         * nis/nis_defaults.c: Likewise.
1834         * nis/nis_intern.h: Likewise.
1835         * nis/nis_lookup.c: Likewise.
1836         * nis/nis_ping.c: Likewise.
1837         * nis/nis_print.c: Likewise.
1838         * nis/nis_table.c: Likewise.
1839         * nis/nis_util.c: Likewise.
1840         * nis/nis_xdr.c: Likewise.
1841         * nis/rpcsvc/nis.h: Likewise.
1842         * nis/rpcsvc/nis.x: Likewise.
1843         * nis/rpcsvc/nis_callback.h: Likewise.
1844         * nis/rpcsvc/nis_object.x: Likewise.
1845         * nis/rpcsvc/nislib.h: Likewise.
1847         * nis/rpcsvc/yp.h: Remove casts to (u_long).
1848         * nis/rpcsvc/yp_prot.h: Likewise.
1849         * nis/rpcsvc/ypupd.h: Likewise.
1850         * nis/ypclnt.c: Change %ld to %d in sprintf.
1852 1998-10-29  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1854         * manual/locale.texi (Formatting Numbers): Fix strfmon examples.
1856 1998-10-28  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1858         * sysdeps/generic/bits/select.h (__FD_ZERO): Change '\0' to plain
1859         0, __fd_mask is usually not a char.
1861 1998-10-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1863         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Allow
1864         compilation on systems without rt_* syscalls (e.g. on Linux 2.0).
1865         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
1866         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1867         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1868         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise
1869         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
1870         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1872         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Allow
1873         compiling on systems without rt_sigaction syscall.
1874         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction):
1875         Likewise.
1877 1998-10-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1879         * time/strptime.c (HERE_D_FMT): Fix typo.
1880         Reported by Claus Heine <heine@math1.rwth-aachen.de>, PR libc/842.
1882 1998-10-30  Ulrich Drepper  <drepper@cygnus.com>
1884         * catgets/Makefile (tests): Add rules to run gencat on test1.msg.
1885         (generate): Add test1.cat and test1.h.
1886         (distribute): Add test1.msg.
1887         * catgets/test1.msg: New file.
1889         * catgets/gencat.c: Do a better job in initializing dynamic
1890         memory [PR libc/844].
1892 1998-10-30 18:11  Ulrich Drepper  <drepper@cygnus.com>
1894         * iconv/gconv_conf.c (__gconv_read_conf): Don't define as
1895         internal_function since it is called through a pointer.
1896         * iconv/gconv_db.c (free_derivation): Likewise.
1897         * iconv/gconv_int.h: Adjust prototype od __gconv_read_conf.
1899         * posix/wordexp.c: Add internal_function to parse_backtick definition.
1900         * rt/aio_misc.c: Add internal_function to __aio_free_request,
1901         __aio_find_req, __aio_find_req_fd, and __aio_enqueue_request
1902         definitions.
1903         * rt/aio_notify.c: Add internal_function to __aio_notify_only and
1904         __aio_notify definitions.
1905         * wcsmbsload.c: Add internal_function to __wcsmbs_load_conv definition.
1907 1998-10-30  Ulrich Drepper  <drepper@cygnus.com>
1909         * Makerules (build-shlib): Add -O to generate optimized shared
1910         objects.
1912 1998-10-30 11:15  Ulrich Drepper  <drepper@cygnus.com>
1914         * sysdeps/libm-i387/e_fmod.S: Remove invalid operand size suffix.
1915         * sysdeps/libm-i387/e_fmodf.S: Likewise.
1916         * sysdeps/libm-i387/e_fmodl.S: Likewise.
1917         * sysdeps/libm-i387/s_ilogb.S: Likewise.
1918         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
1919         * sysdeps/libm-i387/s_logb.S: Likewise.
1920         * sysdeps/libm-i387/s_logbf.S: Likewise.
1921         * sysdeps/libm-i387/s_remquo.S: Likewise.
1922         * sysdeps/libm-i387/s_remquof.S: Likewise.
1923         * sysdeps/libm-i387/s_remquol.S: Likewise.
1924         * sysdeps/libm-i387/s_significand.S: Likewise.
1925         * sysdeps/libm-i387/s_significandf.S: Likewise.
1927 1998-10-30  Geoff Keating  <geoffk@ozemail.com.au>
1929         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Really correct
1930         _llseek.
1932 1998-10-30  Geoff Keating  <geoffk@ozemail.com.au>
1934         * math/libm-test.c: Loosen deltas for sin(0.9)^2+cos(0.9)^2.
1936 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
1938         * stdio-common/vfprintf.c (vfprintf): Fix the remaining premature
1939         returns without cleaning up the lock.
1940         (printf_unknown): Add label all_done.
1942         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Keep Linux 2.0
1943         kernels in mind when reading /proc/self/fd/FD.
1944         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
1946         * nscd/nscd.c (doc): It's "Name Service" not "Name Switch".
1948         * malloc/mtrace.c (tr_where): Replace snprintf call by mempcpy and
1949         _fitoa.
1951         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Try reading
1952         /prof/self/fd/FD first.
1953         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
1955         * stdio-common/_itoa.h (_fitoa_word): New inline function.  Write
1956         formatted number starting at given position and return pointer to
1957         following byte.
1958         (_fitoa): Likewise, for long long.
1960 1998-10-29  Roland McGrath  <roland@baalperazim.frob.com>
1962         * sysdeps/unix/sysv/linux/bits/sem.h,
1963         sysdeps/unix/sysv/linux/bits/ipc.h,
1964         sysdeps/unix/sysv/linux/bits/shm.h,
1965         sysdeps/unix/sysv/linux/bits/msq.h: Moved to ...
1966         * sysdeps/gnu/bits/sem.h, sysdeps/gnu/bits/ipc.h,
1967         sysdeps/gnu/bits/shm.h, sysdeps/gnu/bits/msq.h: ... here,
1968         so the same bits will be used for the Hurd.
1970 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
1972         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Allow
1973         compiling on systems without rt_sigaction syscall.
1975 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
1977         * Makeconfig (sysdep-subdirs): Allow Subdirs files to remove
1978         directories as well as add them.
1980 1998-10-28  Philip Blundell  <pb@nexus.co.uk>
1982         * sysdeps/unix/sysv/linux/neteconet/ec.h: New file.  Support for
1983         AF_ECONET sockets as found in recent Linux 2.1 kernels.
1984         * sysdeps/unix/sysv/linux/Dist: Distribute it.
1985         * sysdeps/unix/sysv/linux/Makefile: Install it.
1987 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1989         * string/bits/string2.h: __USE_GNU already implies __USE_MISC.
1991 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1993         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
1994         fds_bits member.
1995         * sysdeps/unix/sysv/linux/alpha/bits/types.h (__FDS_BITS): Likewise.
1996         * sysdeps/unix/sysv/linux/bits/types.h (__FDS_BITS): Likewise.
1997         * sysdeps/unix/sysv/linux/mips/bits/types.h (__FDS_BITS): Likewise.
1998         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h (__FDS_BITS):
1999         Likewise.
2000         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h (__FDS_BITS):
2001         Likewise.
2002         * sysdeps/generic/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
2003         __FD_ISSET): Use it.
2004         * sysdeps/i386/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
2005         __FD_ISSET): Likewise.
2007 1998-10-28  Geoff Keating  <geoffk@ozemail.com.au>
2009         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Tidy up, correct
2010         llseek.
2012         * sysdeps/unix/sysv/linux/powerpc/pread.c: Do not use the i386 version.
2013         Instead call the system call wrapper function using an 64bit argument.
2014         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2015         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2016         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2018 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
2020         * signal/signal.h: Don't include <time.h> for timespec, add
2021         forward declaration.
2023         * sysdeps/i386/bits/select.h [!__USE_XOPEN]: Add special version
2024         of __FD_* macros which use __fds_bits.
2025         * sysdeps/generic/bits/select.h: Likewise.
2026         Reported by Matt McLean <keys@yikes.com>.
2028 1998-10-27  Philip Blundell  <pb@nexus.co.uk>
2030         * elf/elf.h: Update ARM definitions.
2032 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
2034         * signal/signal.h: Include bits/sigthread.h only for Unix98.
2036 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
2038         * include/libc-symbols.h: If HAVE_BUILTIN_EXPECT is not defined
2039         define __builtin_expect as a macro substituting to the first
2040         argument.
2041         * config.h.in: Define HAVE_BUILTIN_EXPECT.
2042         * configure.in: Add test for __builtin_expect.
2044         * sysdeps/unix/sysv/linux/bits/types.h: Include
2045         bits/pthreadtypes.h only not for POSIX 199506.
2046         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2047         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2048         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
2050 1998-10-26  Mark Kettenis  <kettenis@phys.uva.nl>
2052         * sysdeps/unix/sysv/linux/Versions: Move shutdown ...
2053         * socket/Versions [libc, GLIBC_2.0]: ... to here.
2055 1998-10-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2057         * include/stdio.h: Included <stddef.h> for size_t.
2059         * stdio/stdio.h: Move __path_search, __gen_tempname, __libc_fatal
2060         to ...
2061         * include/stdio.h: ...here.
2062         * libio/stdio.h: Removed __path_search, __gen_tempname, __libc_fatal.
2064 1998-10-26 11:09  Ulrich Drepper  <drepper@cygnus.com>
2066         * time/Makefile (tests): Add tst-posixtz.
2067         * time/tst-posixtz.c: New file.
2069 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2071         * elf/rtld.c (process_envvars): Accept any non-null value of
2072         LD_BIND_NOW, as mandated by the ABI.
2074 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2076         * sysdeps/unix/sysv/linux/pread.c: Rename __syscall_pread64 to
2077         __syscall_pread.
2078         * sysdeps/unix/sysv/linux/pwrite.c: Rename __syscall_pwrite64 to
2079         __syscall_pwrite.
2080         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2081         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2082         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2083         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2084         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.  Remove
2085         duplicate entries.
2086         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Remove
2087         s_pread64 and s_pwrite64.
2088         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
2090 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2092         * sysdeps/unix/sysv/linux/llseek.c: Use INLINE_SYSCALL.
2093         * sysdeps/unix/sysv/linux/arm/syscalls.list: Rename __sys_llseek
2094         to __syscall__llseek.
2095         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2096         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2097         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove entry for
2098         __sys_llseek.
2100 1998-10-26  Cristian Gafton  <gafton@redhat.com>
2102         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add s_setfsgid
2103         and s_setfsuid.
2105 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
2107         * time/tzset.c (tz_compute): Correct last patch and describe this
2108         in a comment.
2110 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2112         * sysdeps/unix/sysv/linux/m68k/Makefile [subdir=signal]: Remove
2113         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo,
2114         rt_sigaction and rt_sigpending.
2115         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Remove all entries
2116         for __syscall_* functions.
2117         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Implement INLINE_SYSCALL.
2119 1998-10-26  Roland McGrath  <roland@baalperazim.frob.com>
2121         * hurd/Versions: Add _hurd_dtable, _hurd_dtablesize,
2122         _hurd_dtable_lock, _hurd_intern_fd.
2124         * sysdeps/mach/hurd/Versions: Add cthread_keycreate,
2125         cthread_getspecific, cthread_setspecific, __libc_getspecific.
2127         * mach/Versions: Fix typo in last change.
2129 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
2131         * time/tzset.c (tz_compute): If time to switch to DST is later in
2132         the year switch back in the next year.
2133         Reported by jwitford@hutch.com.au.
2135 1998-10-24  Mark Kettenis  <kettenis@phys.uva.nl>
2137         * mach/Versions: Add evc_wait, mach_error, mach_error_string,
2138         mach_error_type, mach_msg_destroy, mig_deallocate_reply_port.
2139         Remove __mach_host_self, __mach_reply_port, __mach_setup_thread,
2140         __mach_port_allocate, __mach_port_allocate_name,
2141         __mach_port_insert_right __mutex_trylock, __mutex_lock,
2142         __mutex_unlock, __swtch, __switch, __task_create, __task_suspend,
2143         __task_set_special_port, __task_terminate, __thread_depress_abort,
2144         __thread_switch, __vm_allocate, __vm_deallocate, __vm_map.  These
2145         functions are not used outside libc.
2147         * sysdeps/mach/hurd/Versions: New file.
2148         [libc, GLIBC_2.0]: Add _cthread_exit_routine and
2149         _cthread_init_routine.  These are set by the Hurd cthreads library.
2150         Add __getcwd, __mmap.  If we don't add these, the weak definitions in
2151         the dynamic linker will not be replaced by the corresponding shared
2152         library routines once they are loaded.
2154 1998-10-21  Mark Kettenis  <kettenis@phys.uva.nl>
2156         * sysdeps/mach/hurd/i386/init-first.c: Only define
2157         __libc_enable_secure if PIC is not defined.
2159 1998-10-25  Roland McGrath  <roland@baalperazim.frob.com>
2161         * argp/Versions: Add _argp_unlock_xxx.  Lock-savvy functions call this
2162         to recurse into argp.
2164 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
2166         * include/features.h: Define __USE_POSIS199506 is _POSIX_C_SOURCE is
2167         greater or equal than 199506L.
2169         * sysdeps/generic/bits/types.h (__fd_set): Define element as fds_bits
2170         only is __USE_XOPEN.  Otherwise use __fds_bits.
2171         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2172         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2173         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
2174         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2175         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
2177 1998-10-24  H.J. Lu  <hjl@gnu.org>
2179         * locale/programs/charmap.c (parse_charmap): Accept tok_string
2180         for <code_set_name>.
2182 1998-10-25  H.J. Lu  <hjl@gnu.org>
2184         * locale/programs/ld-ctype.c (ctype_finish): Also check
2185         <space>.
2187 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
2189         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX199506.
2191         * sysdeps/unix/sysv/linux/bits/types.h: Include pthreadtypes.h only
2192         if __USE_POSIX199506 or __USE_UNIX98.
2194 1998-10-24 22:34 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2196         * string/bits/string2.h: Inline strdup+friends only if
2197         __USE_MISC || __USE_GNU (prevents namespace pollution).
2199 1998-10-24  H.J. Lu  <hjl@gnu.org>
2201         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (LOCK_SH,
2202         LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD.
2203         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (LOCK_SH, LOCK_EX,
2204         LOCK_NB, LOCK_UN): Likewise.
2205         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (LOCK_SH, LOCK_EX,
2206         LOCK_NB, LOCK_UN): Likewise.
2207         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (LOCK_SH, LOCK_EX,
2208         LOCK_NB, LOCK_UN): Likewise.
2209         * sysdeps/unix/sysv/linux/bits/fcntl.h (LOCK_SH, LOCK_EX,
2210         LOCK_NB, LOCK_UN): Likewise.
2212 1998-10-24  H.J. Lu  <hjl@gnu.org>
2214         * libio/ioseekoff.c (_IO_seekoff): Check the valid dir value.
2216         * libio/rewind.c (rewind): Clear the error.
2218 1998-10-24  H.J. Lu  <hjl@gnu.org>
2220         * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to
2221         "buffer".
2223 1998-10-24  H.J. Lu  <hjl@gnu.org>
2225         * sysdeps/unix/sysv/linux/alpha/bits/time.h (timeval): Protect
2226         with __need_timeval.
2227         * sysdeps/unix/sysv/linux/mips/bits/time.h (timeval): Likewise.
2228         * sysdeps/unix/sysv/linux/bits/time.h (timeval): Likewise.
2230 1998-10-24  H.J. Lu  <hjl@gnu.org>
2232         * signal/signal.h (timespec, siginfo_t, sigwaitinfo, sigtimedwait,
2233         sigqueue): Protect with __USE_POSIX199309.
2235 1998-10-24  H.J. Lu  <hjl@gnu.org>
2237         * time/time.h (timespec): Protect with __USE_POSIX199309 instead of
2238         __USE_POSIX.
2240 1998-10-24  H.J. Lu  <hjl@gnu.org>
2242         * libio/fileops.c (_IO_new_file_seekoff): Always resync with
2243         the kernel file offset.
2244         * libio/oldfileops.c (_IO_old_file_seekoff): Likewise.
2246 1998-10-24  H.J. Lu  <hjl@gnu.org>
2248         * time/tzfile.c (__tzfile_default): Set num_types to 2.
2250 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2252         * rt/aio.h: Move __aio_init to...
2253         * include/aio.h: ...here.
2255 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2257         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate
2258         definition of O_LARGEFILE.
2260 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2262         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path
2263         as first argument to statfs.
2265 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2267         * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else.
2269 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2271         * malloc/mtrace.c: Include <string.h> for strlen.
2273 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
2275         * sysdeps/mach/hurd/bits/environments.h: New file.
2277         * sysdeps/mach/hurd/dl-sysdep.c (__getcwd): New weak function.
2279         * mach/Versions, hurd/Versions: Add numerous symbols.
2280         Remove libmachuser and libhurduser sections, punt
2281         versioning for those libraries for now.
2283         * misc/Versions: Add reboot here; it exists on all platforms.
2284         * sysdeps/unix/sysv/linux/Versions: Remove reboot here.
2286 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
2288         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOFOLLOW): New
2289         macro.
2290         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2291         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2292         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_LARGEFILE,
2293         O_NOFOLLOW, O_DIRECT): New macros.
2294         (O_DIRECTORY): Correct definition according to official 2.1.126.
2295         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECTORY,
2296         O_NOFOLLOW): New macros.
2298 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
2300         * include/ldsodefs.h: Test HAVE_ELF instead of __ELF__.
2302         * sysdeps/mach/hurd/opendir.c (__opendir): Return ENOENT for "".
2303         (__opendir): Add trailing slash to name for open, for ENOTDIR check.
2305 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
2307         * sysdeps/unix/sysv/linux/i386/Dist: Add setresuid.c, setresgid.c,
2308         setfsuid.c, and setfsgid.c.
2309         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2310         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
2311         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
2313         * version.h (VERSION): Bump to 2.0.99.
2315         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove duplicate
2316         ustat definition.
2318         * sysdeps/unix/sysv/linux/i386/Dist: Remove s_pread64.c and
2319         s_pwrite64.c.
2321         * posix/fnmath.h: Don't redefine __P when used in glibc.
2322         * posix/glob.h: Likewise.
2324         * inet/rcmd.c (__ivaliduser2): Fix memory leak.
2325         Patch by Dick Streefland <dick_streefland@tasking.com>.
2327         * stdio-common/tst-ungetc.c: Add more test cases.
2329         * sysdeps/unix/sysv/linux/Dist: Add linux_fsinfo.h.
2330         * sysdeps/unix/sysv/linux/fstatvfs.c: Move filesystem magic number
2331         definitions to ...
2332         * sysdeps/unix/sysv/linux/linux_fsinfo.h: ...here.  New file.
2333         * sysdeps/unix/sysv/linux/fpathconf.c: New file.
2334         * sysdeps/unix/sysv/linux/pathconf.c: New file.
2335         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Handle _PC_LINK_MAX here.
2336         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
2338 1998-10-20  Philip Blundell  <pb@nexus.co.uk>
2340         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: Include
2341         <asm/ptrace.h> to define struct pt_regs.
2342         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Don't bother
2343         including <asm/ptrace.h> here.
2345         * sysdeps/unix/sysv/linux/arm/sysdep.S: Remove spurious call to
2346         C_SYMBOL_NAME macro.
2348 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2350         * sysdeps/generic/sys/ptrace.h (__ptrace_request): Remove comma at
2351         end of enumerator list.
2352         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Likewise.
2353         * posix/wordexp.h: Likewise.
2355         * db/db.h: Use __PMT instead of __P in typedefs.
2356         * db/mpool.h: Likewise.
2357         * sysdeps/generic/bits/siginfo.h: Likewise.
2358         * nis/rpcsvc/ypclnt.h: Likewise.
2360 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
2362         * libio/genops.c (_IO_seekmark): When switching to backup buffer
2363         make sure all characters from the read buffer are read after
2364         switching back to it.
2366 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
2368         * configure.in: Add support for Cygnus GNUPro compilers.
2370 1998-10-22  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2372         * stdio/stdio.h: Use __PMT instead of __P in typedefs.
2374         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use __PMT instead
2375         of __P for sa_restorer.
2376         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
2377         * sysdeps/unix/sysv/linux/kernel_sigaction.h (struct
2378         kernel_sigaction, old_kernel_sigaction): Likewise.
2380 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
2382         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add __syscall_pread
2383         and __syscall_pwrite aliases.
2385         * sunrpc/rpc/auth.h (AUTH_DH): New macro.  Alias for AUTH_DES.
2387         * sysdeps/unix/sysv/linux/i386/sysdep.h: Drastically simplify and
2388         improve INLINE_SYSCALL using macro assembler magic.
2390 1998-10-22  H.J. Lu  <hjl@gnu.org>
2392         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Add
2393         sanity check for n.
2394         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Likewise.
2396         * sysdeps/posix/fpathconf.c (__fpathconf): Set errno to
2397         EINVAL if errno == ENODEV.  Tested by VSX-PCT.
2399         * sysdeps/posix/isatty.c (__isatty): Don't reset errno.  Tested
2400         by VSX-PCT.
2402         * posix/execvp.c (execvp): Check "".  Tested by VSX-PCT.
2404 1998-10-22  Philip Blundell  <pb@nexus.co.uk>
2406         * sysdeps/unix/arm/sysdep.h: Wrap assembler macros in #ifdef
2407         __ASSEMBLER__.
2409 1998-10-21  Ulrich Drepper  <drepper@cygnus.com>
2411         * sysdeps/unix/sysv/linux/i386/sysdep.h: Remove EXTRAVARS_* macros
2412         and adjust formats.
2414 1998-10-21 14:38  Ulrich Drepper  <drepper@cygnus.com>
2416         * sysdeps/unix/sysdep.h (INLINE_SYSCALL): New macro.  Simply call
2417         __syscall_* function.
2418         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Use INLINE_SYSCALL instead
2419         of calling __syscall_* function.
2420         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2421         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2422         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2423         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2424         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
2425         * sysdeps/unix/sysv/linux/getresgid.c: Likewise.
2426         * sysdeps/unix/sysv/linux/getresuid.c: Likewise.
2427         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2428         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2429         * sysdeps/unix/sysv/linux/poll.c: Likewise.
2430         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2431         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2432         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2433         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2434         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2435         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2436         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
2437         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2438         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
2439         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2440         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2441         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2442         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2443         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2444         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2445         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2446         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2447         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2448         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2449         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2450         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2451         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2452         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2453         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2454         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2455         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2456         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
2457         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
2458         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2459         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2460         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2461         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
2463         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INLINE_SYSCALL using
2464         inline assembler.
2465         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove various
2466         __syscall_* definitions.
2468         * sysdeps/unix/sysv/linux/syscalls.list: Move various __syscall_*
2469         definitions to...
2470         * sysdeps/unix/sysv/linux/alpha/syscalls.list: ...here...
2471         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
2472         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
2473         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
2474         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
2475         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
2476         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
2478         * sysdeps/unix/sysv/linux/Makefile [subdir=signal] (sysdep_routines):
2479         Move definition to...
2480         * sysdeps/unix/sysv/linux/alpha/Makefile: ...here...
2481         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
2482         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
2483         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
2484         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
2485         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
2486         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
2488         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
2489         (sysdep_routines): Remove s_pread64 and s_pwrite64.
2491         * sysdeps/unix/sysv/linux/i386/pread.c: New file.
2492         * sysdeps/unix/sysv/linux/i386/pread64.c: New file.
2493         * sysdeps/unix/sysv/linux/i386/pwrite.c: New file.
2494         * sysdeps/unix/sysv/linux/i386/pwrite64.c: New file.
2495         * sysdeps/unix/sysv/linux/i386/s_pread64.S: Removed.
2496         * sysdeps/unix/sysv/linux/i386/s_pwrite64.S: Removed.
2498 1998-10-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2500         * sysdeps/unix/sysv/linux/siglist.h: Fix some typos in these files
2501         and bring them in synch.
2502         * sysdeps/unix/siglist.c: Likewise.
2503         Reported by Vladimir Michl <michlv@risc.upol.cz> [PR libc/832].
2505 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2507         * sysdeps/unix/sysv/linux/i386/setresuid.c: Allow -1 as arguments.
2508         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2510         * sysdeps/unix/sysv/linux/i386/setreuid.c: New file.
2511         * sysdeps/unix/sysv/linux/i386/setregid.c: New file.
2512         * sysdeps/unix/sysv/linux/m68k/setreuid.c: New file.
2513         * sysdeps/unix/sysv/linux/m68k/setregid.c: New file.
2514         * sysdeps/unix/sysv/linux/arm/setreuid.c: New file.
2515         * sysdeps/unix/sysv/linux/arm/setregid.c: New file.
2516         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: New file.
2517         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: New file.
2518         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add s_setreuid and
2519         s_setregid.
2520         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
2521         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2522         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2524 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2526         * sunrpc/rpc_main.c (close_output, close_input): New functions.
2527         (c_output, h_output, s_output, l_output, t_output, svc_output,
2528         clnt_output, mkfile_output): Call them at the end.
2530 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2532         * db/Makefile (LDFLAGS-db1.so): New variable, to avoid duplicating
2533         link command.
2535 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2537         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Add real contents.
2538         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add s_setfs[ug]id.
2540 1998-10-20  Ulrich Drepper  <drepper@cygnus.com>
2542         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_pread64 and
2543         s_pwrite64.
2544         * sysdeps/unix/sysv/linux/powerpc/pread.c: New file.
2545         * sysdeps/unix/sysv/linux/powerpc/pread64.c: New file.
2546         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: New file.
2547         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: New file.
2548         Patch by Geoffrey KEATING <geoffk@discus.anu.edu.au>.
2550 1998-10-18  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2552         * sysdeps/unix/opendir.c: Check at runtime for kernel support for
2553         O_DIRECTORY.
2555 1998-10-20  H.J. Lu  <hjl@gnu.org>
2557         * sysdeps/unix/sysv/linux/i386/setresuid.c (__setresuid): Fix
2558         argument types.
2560 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2562         * math/tgmath.h: Make nested function calls work.
2564         * include/ldsodefs.h: Fix typo.
2566         * posix/Makefile (tests): Add tst-preadwrite.
2567         * posix/tst-preadwrite.c: New file.
2569         * sysdeps/unix/opendir.c (__opendir): Add back fstat call to make
2570         sure that descriptor is in any case for a directory.
2572 1998-10-19 18:59 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2574         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val.
2575         (atan2): Takes two arguments.
2577 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2579         * include/ldsodefs.h: New file.
2581         * iconv/gconv.c: Include ldsodefs.h, not elf/ldsodefs.h.
2582         Remove change to avoid using _CALL_DL_FCT.
2583         * iconv/gconv_db.c: Likewise.
2584         * iconv/gconv_dl.c: Likewise.
2585         * iconv/skeleton.c: Likewise, here for DL_CALL_FCT.
2586         * malloc/mtrace.c: Include ldsodefs.h, not elf/ldsodefs.h.
2587         * nss/nsswitch.c: Likewise.
2588         * nss/nsswitch.h: Likewise.
2590 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2592         * sunrpc/Makefile (otherlibs): If static NSS is in use, set to the
2593         required libraries.
2594         * login/Makefile (otherlibs): Likewise.
2595         * nscd/Makefile (otherlibs): Likewise.
2596         * Makeconfig (link-libc) [! build_shared]: Add $(otherlibs).
2598         * debug/Makefile (install-bin): Only build catchsegv if using ELF.
2600         * inet/Makefile: Add -DSTATIC_NSS to CFLAGS.
2602 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2604         * sysdeps/unix/sysv/linux/arm/syscalls.list: Added setfsgid
2605         and setfsuid.
2607 1998-10-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2609         * nscd/connections.c: Fix typos in comments and strings.
2611         * nscd/nscd.conf: Update according to recent changes to nscd.
2613         * nscd/cache.c (prune_cache): Remove wrong comment.
2615 1998-10-19 13:24  Ulrich Drepper  <drepper@cygnus.com>
2617         * locale/programs/ld-collate.c (collate_startup): Clear bit for this
2618         category in copy_posix.
2619         (collate_finish): Don't warn about UNDEFINED not being defined.
2620         * locale/programs/ld-ctype.c (ctype_startup): Clear bit for this
2621         category in copy_posix.
2622         * locale/programs/ld-messages.c (messages_startup): Likewise.
2623         * locale/programs/ld-monetary.c (monetary_startup): Likewise.
2624         * locale/programs/ld-numeric.c (numeric_startup): Likewise.
2625         * locale/programs/ld-time.c (time_startup): Likewise.
2626         * locale/programs/localedef.c: Move copy_def_list_t definition into
2627         locales.h.  Define copy_posix variable.
2628         (main): Before processing copy list add &copy_posix to copy_list.
2629         * locale/programs/locales.h: Add definition of copy_def_list_t.
2630         * locale/programs/locfile.c: Clear bit for appropriate category in
2631         copy_posix.mask for copy instruction.
2633 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2635         * sysdeps/unix/sysv/linux/i386/setresgid.c: Remove #include of
2636         non-existing file with generic implementation.
2637         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2639 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2641         * iconv/gconv_db.c: Include ELF header only if STATIC_GCONV is not
2642         defined.  Avoid using _CALL_DL_FCT if it is not defined.
2643         * iconv/gconv.c: Likewise.
2645 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2647         * nscd/connections.c (dbs): Define defualt values for timeouts and
2648         set enabled to 0 by default.
2649         (CACHE_PRUNE_INTERVAL): New constant.  Use it instead of magical 15 in
2650         nscd_run.
2652         * locale/C-ctype.c (_nl_C_LC_CTYPE_class): Clear ISCNTRL bit for
2653         character >= 0x80.
2654         (_nl_C_LC_CTYPE_class32): Likewise.
2655         Reported by HJ Lu.
2657 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2659         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2660         _HURD_THREADVAR_DL_ERROR.
2662         * hurd/Makefile (user-interfaces): Add login, password.
2664         * sysdeps/mach/hurd/Makefile (+cflags): Append -Wno-parentheses.
2666 1998-08-06  Mark Kettenis  <kettenis@phys.uva.nl>
2668         [submitted 1998-08-06]
2669         * mach/Machrules: Create target directory and force re-evaluation
2670         of Makefile to prevent `make' from optimizing away most of the
2671         implicit rules and `vpath' directives.
2673 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2675         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): If _hurd_msgport_thread
2676         is null, short-circuit to __mach_msg.
2678         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): New function,
2679         broken out of init1.
2680         (init1) [PIC]: Call it.
2681         (__libc_init_first) [! PIC]: Call it.
2683         * sysdeps/mach/hurd/i386/init-first.c (init1): Don't call
2684         __libc_init_secure.  Instead set __libc_enable_secure here from
2685         the exec flags.
2686         (__libc_enable_secure): New variable it.
2687         * sysdeps/mach/hurd/enbl-secure.c: New file, empty placeholder module.
2689 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2691         * nscd/nscd-client.h: New file, broken out of "nscd.h".
2692         * nscd/nscd.h: Move defns needed by clients to "nscd-client.h",
2693         and #include that.
2694         * nscd/Makefile (distribute): Add nscd-client.h.
2695         * nscd/nscd_getgr_r.c, nscd/nscd_gethst_r.c, nscd/nscd_getpw_r.c:
2696         Include "nscd-client.h" instead of "nscd.h"
2698 1998-10-18  Ulrich Drepper  <drepper@cygnus.com>
2700         * sysdeps/posix/getcwd.c (__getcwd): Don't stop processing
2701         directory entries when a lstat call fails.
2702         Patch by Colin Plumb <colin@nyx.net>.
2704         * resolv/nss_dns/dns-host.c: Add missing errnop parameter to the
2705         NSS functions.
2706         * resolv/nss_dns/dns-network.c: Likewise.
2708         * grp/Makefile: Don't search for linuxthreads in add-ons, use
2709         have-thread-library to determine whether threads are available.
2710         * pwd/Makefile: Remove wrong comment.
2712         * inet/Makefile: Define CFLAGS-gethstbyad_r.c, CFLAGS-gethstbynm_r.c,
2713         and CFLAGS-gethstbynm2_r.c to -DUSE_NSCD=1.
2715         * locale/C-messages.c: Define default strings for YESTR and NOSTR.
2717         * nss/Versions: Add __nss_hosts_lookup.
2719         * nss/getXXbyYY.c: Remove unneeded assignment.
2721         * nss/getXXbyYY_r.c: Include nscd/nscd_proto.h only if needed.
2723         Almost complete rewrite of the NSCD to make it smaller, faster,
2724         add more functionnality and make it easier to extend.
2725         * nscd/Makfile (routines): Add nscd_gethst_r.
2726         (nscd-modules): Add hstcache, gethstbyad_r, gethstbynm2_r, and cache.
2727         * nscd/cache.c: New file.
2728         * nscd/gethstbyad_r.c: New file.
2729         * nscd/gethstbynm2_r.c: New file.
2730         * nscd/hstcache.c: New file.
2731         * nscd/nscd_gethst_r.c: New file.
2732         * nscd/connections.c: Rewritten.  Don't start new thread for every
2733         new connection.  Use a fixed set of threads which handle all
2734         connections and also the cache cleanup.
2735         * nscd/grpcache.c: Rewritten to use generic cache handling functions
2736         in cache.c.
2737         * nscd/nscd.c: Recognize new parameter nthreads.  Adjust initialization
2738         for rewrite.  Remove handle_requests function.
2739         * nscd/nscd.h (NSCD_VERSION): Bump to 2.
2740         Define new data structure for the new unified cache and the host
2741         database entries.
2742         * nscd/nscd_conf.c: Rewrite parsing partly to allow adding of more
2743         databases easily.  Recognize check-files and threads definitions.
2744         * nscd/nscd.conf: Add definition of enable-cache and check-files to
2745         passwd and group definitions.  Add new set of definitions for hosts.
2746         * nscd/nscd_getgr_r.c: Rewrite for new protocol.
2747         * nscd/nscd_getpw_r.c: Likewise.
2748         * nscd/nscd_proto.h: Add prototype for host database functions.
2749         * nscd/nscd_stat.c: Rewrite to simplify printing of information
2750         for many databases.
2751         * nscd/dbg_log.c: Remove unnecessary variable initializations.
2752         Global variable debug_flag is renamed to dbg_level.
2753         * nscd/dbg_log.h: Declare set_logfile.
2755 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2757         * sysdeps/unix/sysv/linux/bits/fcntl.h: Add dummy definition of
2758         O_LARGEFILE back.
2760 1998-10-16  Paul Eggert  <eggert@shade.twinsun.com>
2762         * time/mktime.c: Some systems require <unistd.h> to be
2763         included before <time.h> for localtime_r to be declared
2764         properly.
2765         * time/strftime.c: Likewise.
2767 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2769         * db/Makefile: Add rule to generate shared object with the soname
2770         from glibc 2.0.
2772         * sysdeps/unix/opendir.c: Use O_DIRECTORY if available.  If not
2773         available double check to verify it's a directory.
2775         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add O_DIRECTORY.
2776         * sysdeps/unix/sysv/linux/mips/bits/fcntl: Likewise.
2777         * sysdeps/unix/sysv/linux/bits/fcntl.h: Remove O_* constants which
2778         are not generally available.
2779         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: New file.
2781         * sysdeps/unix/sysv/linux/i386/setgroups.c: Add range check for values.
2782         * sysdeps/unix/sysv/linux/arm/Makefile: New file.
2783         * sysdeps/unix/sysv/linux/arm/setegid.c: New file.
2784         * sysdeps/unix/sysv/linux/arm/seteuid.c: New file.
2785         * sysdeps/unix/sysv/linux/arm/setfsgid.c: New file.
2786         * sysdeps/unix/sysv/linux/arm/setfsuid.c: New file.
2787         * sysdeps/unix/sysv/linux/arm/setgid.c: New file.
2788         * sysdeps/unix/sysv/linux/arm/setgroups.c: New file.
2789         * sysdeps/unix/sysv/linux/arm/setresgid.c: New file.
2790         * sysdeps/unix/sysv/linux/arm/setresuid.c: New file.
2791         * sysdeps/unix/sysv/linux/arm/setuid.c: New file.
2792         * sysdeps/unix/sysv/linux/i386/setegid.c: New file.
2793         * sysdeps/unix/sysv/linux/i386/seteuid.c: New file.
2794         * sysdeps/unix/sysv/linux/i386/setfsgid.c: New file.
2795         * sysdeps/unix/sysv/linux/i386/setfsuid.c: New file.
2796         * sysdeps/unix/sysv/linux/i386/setgid.c: New file.
2797         * sysdeps/unix/sysv/linux/i386/setgroups.c: New file.
2798         * sysdeps/unix/sysv/linux/i386/setresgid.c: New file.
2799         * sysdeps/unix/sysv/linux/i386/setresuid.c: New file.
2800         * sysdeps/unix/sysv/linux/i386/setuid.c: New file.
2801         * sysdeps/unix/sysv/linux/m68k/setegid.c: New file.
2802         * sysdeps/unix/sysv/linux/m68k/seteuid.c: New file.
2803         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: New file.
2804         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: New file.
2805         * sysdeps/unix/sysv/linux/m68k/setgid.c: New file.
2806         * sysdeps/unix/sysv/linux/m68k/setgroups.c: New file.
2807         * sysdeps/unix/sysv/linux/m68k/setresgid.c: New file.
2808         * sysdeps/unix/sysv/linux/m68k/setresuid.c: New file.
2809         * sysdeps/unix/sysv/linux/m68k/setuid.c: New file.
2810         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: New file.
2811         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: New file.
2812         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: New file.
2813         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: New file.
2814         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: New file.
2815         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: New file.
2816         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
2817         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
2818         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: New file.
2820         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add s_setgid, s_setresuid,
2821         s_setresgid, and s_setuid.
2822         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2823         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
2824         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2825         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
2826         (sysdep_routines): Add setfsgid, setfsuid, setresgid, and setresuid.
2827         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2828         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
2830 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2832         * time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
2833         localtime_t declaration on some systems.
2835 1998-10-16 10:07  Ulrich Drepper  <drepper@cygnus.com>
2837         * iconv/Makefile [! elf]: Define CFLAGS-gconv_simple.c to
2838         -DSTATIC_GCONV.
2839         * iconv/skeleton.c: Include ELF header only of STATIC_GCONV is not
2840         defined.  Avoid using DL_CLL_FCT if it is not defined.
2842 1998-10-16 10:40 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2844         * resolv/arpa/nameser.h: Include sys/types.h unconditionally.
2845         Include endian.h unconditionally.  Remove portability goop
2846         depending on #ifdef linux, #ifdef BSD, #ifdef machine-type.
2848 1998-10-16 11:39 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2850         * sunrpc/rpc/types.h: Mark file so fixincludes won't modify it.
2852 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
2854         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Remove __kernel_termios
2855         again.  Use char[44] to define size of the struct.
2857         * sysdeps/unix/sysv/linux/arm/Dist: Add bits/armsigctx.h.
2859 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2861         * string/bits/string2.h (strcmp): Don't cache the result of
2862         __builtin_constant_p in variables, otherwise constant folding
2863         can fail in big functions.
2865 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2867         * string/bits/string2.h: Add prototypes for the new inline
2868         functions.
2870 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
2872         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Include termios.h to
2873         have all types defined.
2874         Patch by Matti Aarnio <matti.aarnio@sonera.fi>.
2876 1998-10-08  Paul Eggert  <eggert@twinsun.com>
2878         * time/mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
2879         Define also if HAVE_LOCALTIME_R && defined localtime_r, with
2880         a body that merely expands localtime_r; this works around a
2881         bug in Digital Unix 4.0A and 4.0D.
2883 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
2885         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_ioctl.
2886         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: New file. Define
2887         __ioctl to __syscall_ioctl and include Linux version of this file.
2888         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2889         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: New file.  Redirect
2890         ioctl calls which handle struct termios.
2891         Based on a patch by Dan Jacobowitz <drow@false.org>.
2893 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
2895         * version.h (VERSION): Bump to 2.0.98.
2897         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Define __kernel_termios
2898         here instead of including kernel_termios.h.
2900 1998-10-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2902         * sysdeps/unix/opendir.c (__opendir): Remove label lose2 which is
2903         unnecessary after the changes of 1998-10-12.
2905 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
2907         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
2908         parameter format string.
2909         (inline_outw): Likewise.
2911         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
2912         string.h to get memcpy prototype and NULL definition.
2914 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2916         * misc/sys/cdefs.h (__THROW): New macro.
2917         * argp/argp.h: Use it to replace the kludgey __P in inline
2918         function definitions.
2919         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2920         * stdlib/stdlib.h: Likewise.
2921         * wcsmbs/wchar.h: Likewise.
2922         * libio/stdio.h: Likewise.
2923         * stdio/stdio.h: Likewise.
2924         * sysdeps/wordsize-64/inttypes.h: Likewise.
2925         * sysdeps/wordsize-32/inttypes.h: Likewise.
2926         * string/argz.h: Likewise.
2927         * io/sys/stat.h: Likewise.
2929 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2931         * Rules (stdio_lim): New variable.
2932         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
2933         on Rules and config.make, use $(move-if-change) to avoid unnessary
2934         recompilations, and cleanup command.
2935         (common-generated): Add bits/stdio_lim.st.
2937 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
2939         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
2940         variable to prevent warnings from use of modern CPU instructions.
2941         Patch by Richard Henderson <rth@cygnus.com>.
2943         * sysdeps/unix/opendir.c: Test whether NAME is directory before
2944         opening it.
2946 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
2948         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
2949         semicolon so that profiling works.
2951 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
2953         * sysdeps/generic/glob.c: #undef mempcpy before #define.
2955         * sysdeps/unix/bsd/clock.c: Use prototype defns.
2957 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
2959         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
2960         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
2962         * string/bits/string2.h [!_STRING_ARCH_unaligned]
2963         (__mempcpy_small): Add parameter for 1 byte copy and use it.
2964         Reported by Geoff Keating <geoffk@ozemail.com.au>.
2966 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
2968         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
2969         it is already defined in <bits/environments.h>.
2971 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
2973         * posix/ptestcases.h: Fix typo.
2975 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2977         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
2978         (regexec): Allocate regs.start and regs.end as one block.
2980 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2982         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
2983         enum decl.
2985 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
2987         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
2988         sigcontext union to ...
2989         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
2990         file.
2991         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
2992         version 2.0 kernels.
2994 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
2996         * malloc/mtrace.c (tr_reallochook): Produce better output for real
2997         reallocation case.
2999         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
3000         * argp/argp-xinl.c: Likewise.
3002         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
3003         Ruffian entry back.
3004         Patch by Christian Gafton.
3006 1998-10-08  Paul Eggert  <eggert@twinsun.com>
3008         * time/mktime.c (__mktime_internal): When the requested time falls
3009         in a spring-forward gap of size DT, return a time that is DT away
3010         from the requested time, preferring a time whose tm_isdst differs
3011         from the requested value.  Bump the max number of probes from 4 to
3012         6 to account for the extra probes needed to discover a
3013         spring-forward gap in the worst case.
3015 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
3017         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
3018         of the weird alpha architectures.
3019         Patch by Cristian Gafton <gafton@redhat.com>.
3021 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
3023         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
3024         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
3026 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
3028         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
3029         (dl_open_worker): Use realloc, not malloc to resize array.
3030         * elf/rtld.c (_dl_initial_searchlist): New variable.
3031         (_dl_main): Copy content of _dl_main_searchlist to
3032         _dl_initial_searchlist.
3033         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
3034         _dl_global_scope_alloc.
3035         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
3036         * elf/dl-close.c (_dl_close): When removing object with global
3037         scope remove allocated searchlist if no dynamically loaded object
3038         is on it anymore.
3039         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
3040         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
3042         * malloc/mtrace.c (tr_where): Don't print space in location string,
3043         print it afterwards.  Print better symbol name information.
3045 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3047         * manual/filesys.texi (Setting Permissions): Fix example for
3048         reading umask.
3050 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3052         * elf/sprof.c (load_profdata): Fix typo in error message.
3054 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
3056         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
3057         flag.
3059 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
3061         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
3063 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
3065         * version.h (VERSION): Bump to 2.0.97.
3067 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3069         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
3070         in definitions of inline stat functions so that they match the
3071         declaration.
3072         * stdlib/stdlib.h: Likewise.
3073         * wcsmbs/wchar.h: Likewise.
3074         * libio/stdio.h: Likewise.
3075         * stdio/stdio.h: Likewise.
3076         * sysdeps/wordsize-64/inttypes.h: Likewise.
3077         * sysdeps/wordsize-32/inttypes.h: Likewise.
3078         * string/argz.h: Likewise.
3079         * argp/argp.h: Likewise.
3081 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
3083         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
3084         netinet/in.h.
3086 1998-10-05  Philip Blundell  <philb@gnu.org>
3088         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
3089         and constants.  Tidy up formatting a little.
3091         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
3092         Move definitions to in.h.
3094 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3096         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
3097         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
3098         Remove inclusion of <linux/swap.h>.
3100 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
3102         * io/sys/stat.h: Use __P in definitions of inline stat functions
3103         so that they match the declaration.
3105 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3107         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
3109 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3111         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
3112         linux 2.1 version.
3114 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
3116         * sysdeps/arm/dl-machine.h: Fix typo in last change.
3118         * sysdeps/arm/bits/huge_val.h: New file.
3120 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3122         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
3124         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
3125         define.
3127 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
3129         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
3130         store result of realloc instead of using BUF.
3132 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3134         * misc/sgtty.h (_SGTTY_H): Correct spelling.
3135         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
3137 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3139         * manual/memory.texi (Obstacks): Document
3140         obstack_alloc_failed_handler usage.
3142         * malloc/obstack.h: Enhance comment about
3143         obstack_alloc_failed_handler usage.
3144         * malloc/obstack.c: Likewise.
3146 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
3148         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
3149         gcc before 2.8 is used.
3151 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
3153         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
3154         from Scott Bambrough.
3156         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
3158         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
3159         include the lock member.
3161 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
3163         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
3165 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
3167         * timezone/zic.c: Update from tzcode1998h.
3168         * timezone/europe: Update from tzdata1998i.
3169         * timezone/southamerica: Likewise.
3171         * sys/types.h: Protect use of long long by __extension__.
3172         * stdlib/stdlib.h: Likewise.
3173         * string/string.h: Likewise.
3174         * sysdeps/i386/bits/byteswap.h: Likewise.
3175         * sysdeps/geeric/bits/byteswap.h: Likewise.
3176         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3177         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
3178         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
3179         * sysdeps/wordsize-32/inttypes.h: Likewise.
3180         * sysdeps/wordsize-32/stdint.h: Likewise.
3181         * wcsmbs/wchar.h: Likewise.
3183 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3185         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
3186         expression.
3187         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
3188         __strsep): Greatly reduce size of expansion by combining common
3189         expressions.
3190         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
3191         inline function.
3192         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
3193         by the above definitions.
3195 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
3197         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
3198         correct struct ipc_perm definition.
3200 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3202         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
3204 1998-09-29  Cristian Gafton  <gafton@redhat.com>
3206         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
3207         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
3208         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
3209         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
3210         Add net/if_shaper.h.
3212 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
3214         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
3216         * nis/ypclnt.c: Remove not needed close calls.
3218 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
3220         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
3221         check a bit.  Also close socket of domain client.  Close socket
3222         in IPPORT_RESERVED error case.
3224 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
3226         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
3227         CMSG_ALIGN (fixes a bug) and correct test for availability of
3228         another entry.
3229         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
3230         Linux version.
3231         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
3232         availability of another entry.
3233         Patch by ak@muc.de.
3235         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
3236         Patch by ak@muc.de.
3238         * libio/libio.h [!__STDC__]: Define const only if not defined.
3240 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3242         * posix/annexc.c (xsystem): New function.  Use it instead of
3243         system.
3245 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
3247         * stdlib/longlong.h: Remove #endif for #if removed in last change.
3249 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
3251         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
3252         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
3253         allow using `ut' parameter.
3254         [!emacs]: Define ut_argument, ut_argument_spec, and
3255         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
3256         argument_spec to prototypes and definitions.
3257         (my_strftime): Don't call tzset of ut != 0.
3258         Compute diff as 0 is ut != 0;
3259         [emacs]: Define new emacs_strftime function.
3260         Based on a patch by Paul Eggert.
3262 1998-09-24  Paul Eggert  <eggert@twinsun.com>
3264         * time/strftime.c (my_strftime): When asking for the length of the
3265         subformatted buffer, do not limit the length to look for;
3266         otherwise, we have no reliable way to distinguish between the
3267         empty buffer and an error.
3269 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
3271         * math/Makefile (gmp-objs): Add mp_clz_tab.
3273 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
3275         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
3276         set them.
3277         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
3278         cpus lacking hardware multiply and divide.
3280 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3282         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
3283         $(<F), not $(^F).
3285 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3287         * db/btree/bt_delete.c: Fix -Wparentheses warning.
3289 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3291         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
3292         $(do-install).
3294 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
3296         * debug/catchsegv.sh: Also produce output if clone process died.
3298 1998-09-24  Paul Eggert  <eggert@twinsun.com>
3300         * time/strftime.c (f_wkday): Remove duplicate definition.
3301         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
3302         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
3303         1998-09-11 fix to this case.
3304         (wkday_len, month_len): Remove these macros; they're no longer needed.
3306 1998-09-24  Paul Eggert  <eggert@twinsun.com>
3308         * time/strftime.c (my_strftime): Don't store past the end of a
3309         zero-sized buffer.
3311 1998-09-24  Paul Eggert  <eggert@twinsun.com>
3313         * time/strftime.c (underlying_strftime):
3314         Set the buffer to a nonzero value before calling
3315         strftime, and check to see whether strftime has set the buffer to zero.
3316         This lets us distinguish between an empty buffer and an error.
3318 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
3320         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
3321         This fix is propagated from tzcode1998g.tar.gz.
3323 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
3325         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
3326         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
3327         sys_siglist.  This is handled correctly by the weak_alias macro.
3329 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
3331         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
3332         of mempcpy.  Reported by Andreas Jaeger.
3334         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
3335         pollute the namespace since the compiler will resolve it inline.
3336         Reported by Florian La Roche <florian@suse.de>.
3338 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
3340         * timezone/private.h: Update from tzcode1998g.
3342         * timezone/africa: Update from tzdata1998h.
3343         * timezone/asia: Likewise.
3344         * timezone/australasia: Likewise.
3345         * timezone/europe: Likewise.
3346         * timezone/northamerica: Likewise.
3347         * timezone/southamerica: Likewise.
3348         * timezone/zone.tab: Likewise.
3350 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3352         * misc/sys/mman.h: New file.
3354         * sysdeps/generic/bits/mman.h: New file.
3355         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
3356         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
3357         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
3358         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
3360         * sysdeps/generic/sys/mman.h: Removed.
3361         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
3362         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
3363         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
3364         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
3365         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
3367         * include/sys/mman.h: Look directly for misc/sys/mman.h.
3368         * misc/Makefile (headers): Add bits/mman.h.
3369         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
3370         bits/mman.h.
3372         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
3373         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
3374         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
3375         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
3376         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
3377         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
3378         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
3379         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
3381 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3383         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
3384         * sysdeps/mach/alpha/thread_state.h: Likewise.
3385         * sysdeps/mach/i386/sysdep.h: Likewise.
3386         * sysdeps/mach/i386/thread_state.h: Likewise.
3387         * sysdeps/mach/mips/sysdep.h: Likewise.
3388         * sysdeps/mach/mips/thread_state.h: Likewise.
3389         * sysdeps/posix/profil.c: Likewise.
3390         * sysdeps/i386/i586/memcopy.h: Likewise.
3391         * sysdeps/mach/pagecopy.h: Likewise.
3393 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
3395         * libio/stdio.h: Define __need_getopt and include getopt.h to define
3396         getopt stuff.
3397         * posix/unistd.h: Likewise.
3398         * stdio/stdio.h: Likewise.
3399         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
3400         define only getopt and the variables.
3402 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3404         * scripts/test-installation.pl (installation_problem): Don't link
3405         the test program against libdb1.
3407 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
3409         * Makeconfig (all-subdirs): Add db.
3410         * Versions.def: Add definition for libdb1.
3411         * shlib-versions: Add definitions for libdb1.
3412         * db/Makefile (extra-libs): Replace by libdb1.
3413         (libdb-routines): Rename to libdb1-routines.
3414         (headers): Rename to db1-headers.
3415         (distribute): Add $(db1-headers).
3416         (install-others): Define to install symlink libdb.so.NN and the
3417         $(db1-headers).
3418         (CPPFLAGS): Add -DUSE_LIBDB1
3419         Remove rules to build makedb.
3420         * db/Versions: Rename libdb to libdb1.
3421         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
3422         * db/makedb.c: Removed.
3424         * scripts/versions.awk: Recognize digits in library names.
3426         * db/btree/bt_open.c: Fix compiler warnings.
3427         * db/btree/bt_put.c: Likewise.
3428         * db/btree/bt_split.c: Likewise.
3429         * db/hash/hash.c: Likewise.
3430         * db/hash/hash_bigkey.c: Likewise.
3431         * db/recno/rec_close.c: Likewise.
3433         * Makefile: Add localedata/% goal.
3435 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3437         * posix/execvp.c: Don't give up searching the PATH if execve
3438         returns ENOTDIR.
3440 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
3442         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
3443         if _dl_fpu_control_set is set.
3444         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
3445         * elf/rtld.c: Don't define _dl_fpu_control_set.
3446         * elf/Versions: Remove _dl_fpu_control_set.
3448 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
3450         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
3451         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
3452         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
3453         Correct values of other SA_* macros according to kernel headers.
3455 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3457         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
3458         variable l.
3459         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
3460         old.
3462 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3464         * elf/ldsodefs.h: Fix typo in comment.
3466 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3468         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
3469         char when comparing buffer contents with putback character.
3471 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3473         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
3474         Undo last change.
3475         * elf/Versions: Undo last change.  Export _dl_fpu_control and
3476         _dl_fpu_control_set.
3477         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
3478         variables.  Include <fpu_control.h>.
3479         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
3480         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
3481         to indicate that is was seen.
3482         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
3483         only if _dl_fpu_control was set and is equal to desired value.
3484         * math/Makefile (aux): Undo last change.
3485         * math/Versions: Export __fpu_control with version GLIBC_2.0.
3487 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3489         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
3490         optimized.
3492 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
3494         * string/bits/string2.h: Add mempcpy optimization.
3495         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
3496         * intl/localealias.c: Define mempcpy only if not already defined.
3498         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
3499         defined.
3501 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3503         * csu/abi-note.S: Emit the note directly instead of defining
3504         a preprocessor macro that's only used once.  Don't include sysdep.h.
3505         * abi-tags: Generalize Solaris entry.
3507 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3509         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
3510         Change to array to avoid runtime relocation.
3511         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
3513 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3515         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
3516         * math/Makefile ($(objpfx)libieee.a): Likewise.
3518 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
3520         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
3521         Patch by John Tobey <jtobey@banta-im.com>.
3523 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
3525         * login/Makefile (distribute): Remove pty-internal.h, add
3526         pty-private.h.
3528         * stdlib/tst-strtol.c: Add more checks.
3529         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
3531 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
3533         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
3534         * elf/elf.h: Add AT_FPUCW.
3535         * elf/Makefile (dl-routines): Add fpu_control.
3536         (elide-routines.os): Add fpu_control.
3537         (rtld-routines): Add fpu_control.
3538         * math/Makefile (aux): Remove fpu_control.
3539         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
3540         (_dl_show_auxv): Likewise.
3541         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
3542         if different from OS default.
3544         * stdio-common/tstscanf.c: Add test case for (nil).
3546 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
3548         * libio/fileops.c (_IO_new_file_underflow): Before allocating
3549         buffer make sure the pushback buffer is destroyed.
3550         (_IO_new_file_seekoff): Likewise.
3551         If mode==0 quit early with the result.
3552         Clear OEF flag after successful fseek.
3553         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
3554         * libio/ftello.c (ftello): Add offset from original buffer if
3555         stream has pushed back characters.
3556         * libio/ftello64.c (ftello64): Likewise.
3557         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
3558         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
3559         * libio/ioftell.c (_IO_ftell): Likewise.
3560         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
3561         and _IO_save_ptr.
3562         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
3563         (_IO_default_pbackfail): Only stored push back character in original
3564         buffer if it is the same as the one in the file at this position.
3565         * libio/iofclose.c: Free backup buffer if one is available.
3566         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
3567         mode!=0.
3569         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
3571         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
3573         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
3575 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
3577         * login/programs/pt_chown.c (more_help): Correct message that
3578         describes the purpose of the program.
3580         * login/openpty.c: Do not include pty-private.h.
3581         (pts_name): New function.  Return name of slave pseudo terminal in
3582         an allocated buffer if necessary.
3583         (openpty): Use pts_name to get name of the slave end of the pseudo
3584         terminal pair.
3586         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
3587         pts_name before return.
3589 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
3591         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
3593 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3595         * login/openpty.c: Include pty-private.h instead of
3596         pty-internal.h.
3598 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
3600         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
3602 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
3604         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
3605         recent ld.so changes.
3606         (elf_machine_runtime_setup): Correct behaviour when profiling.
3608 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
3610         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
3611         Patch by John Tobey <jtobey@banta-im.com>.
3613 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
3615         * login/pty-internal.h: Removed.  Moved constants related to the
3616         `grantpt' helper program protocol to ...
3617         * login/pty-private.h: ... here.  New file.
3618         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
3619         to make the function work with kernels >= 2.1.115.
3620         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
3621         version if using the cloning device fails.
3622         * sysdeps/unix/sysv/linux/grantpt.c: New file.
3623         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
3624         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
3625         use by Linux specific code.
3626         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
3627         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
3628         function.  (grantpt): Use pts_name, check group and permission
3629         mode in addition to owner.  Try to set the owner, group and
3630         permission mode first without invoking the helper program.
3631         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
3632         internationalization support.  Use symbolic constants instead of
3633         hardwired numbers for permission mode.
3634         * sysdeps/unix/bsd/ptsname.c: New file.
3636 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
3638         * posix/wordexp-test.c: Undo last change.
3640         * posix/wordexp.c: Undo last change.
3642 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
3644         * nscd/grpcache.c (save_grp): Partly undo last change.
3646         * nscd/pwdcache.c (save_pwd): Undo last change.
3648 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3650         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
3651         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
3653 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
3655         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
3656         Add profiling support.
3657         (TRAMPOLINE_TEMPLATE): New macro.
3658         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
3659         (RTLD_START): Prettify, and set __libc_stack_end properly.
3660         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
3661         and check for sym being NULL instead.
3662         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
3663         of stack space.
3664         * sysdeps/sparc/sparc64/lshift.S: Likewise.
3665         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
3666         * sysdeps/sparc/sparc64/rshift.S: Likewise.
3667         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
3668         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
3669         MEDANY code model %g4 usage.
3670         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
3671         MEDANY code model %g4 usage.
3672         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
3673         code model address formation.
3674         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
3675         include elf/ldsodefs.h
3676         (DT_SPARC): Remove.
3677         (elf_machine_matches_host): It is now EM_SPARCV9.
3678         (elf_machine_dynamic): Clean up to remove ugly cast.
3679         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
3680         new PLT formats.
3681         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
3682         Prettify rest of function.
3683         [R_SPARC_COPY]: Check for sym being NULL.
3684         [R_SPARC_32]: Handle it.
3685         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
3686         MEDMID code model.
3687         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
3688         MEDANY code model.
3689         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
3690         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
3691         Add profiling support.
3692         (TRAMPOLINE_TEMPLATE): New macro.
3693         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
3694         (RTLD_START): Prettify and set __libc_stack_end.
3695         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
3696         Define.
3697         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
3698         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
3699         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
3700         unused variable scratch.
3701         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3702         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
3703         Declare.
3704         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
3705         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
3706         old format kernel sigaction structures.
3707         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
3708         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
3709         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
3710         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
3711         ucontext include.
3712         (_JMPBUF_UNWINDS): Define.
3713         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
3714         statfs64 structure, which is exactly the same as the normal one.
3715         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
3716         of stack.  Use correct syscall trap number.  Add branch prediction
3717         settings to branch instructions.  Remove old MEDANY code model %g4
3718         referneces for non-PIC.
3719         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
3720         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
3721         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
3722         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3723         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3724         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
3725         __libc_longjmp and __libc_siglongjmp strong aliases.
3726         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
3727         Also define to __no__readdir64_decl around readdir.c inclusion.
3728         (__readdir64): Add strong alias.
3729         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
3730         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
3731         Set strong and weak names properly.
3733 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3735         * manual/Makefile (AWK): Default to gawk if standalone.
3737 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3739         * Makefile (distribute): Undo last change.
3740         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
3741         for sysdep headers.
3742         (+subdir-headers): Removed, unused.
3744 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3746         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
3747         $(do-install).
3749 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3751         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
3752         absolute name in $(config-sysdirs), can never happen.
3753         ($(+sysdir_pfx)sysd-rules): Likewise.
3754         * Makeconfig (full-config-sysdirs): Likewise.
3755         (all-Subdirs-files): Prepend $(..).
3757         * configure.in: Don't check for absolute name in $add_ons_pfx, can
3758         not happen.  Let --enable-add-ons=yes work if no add-ons actually
3759         exist.
3761 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3763         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
3764         continuations in command.
3766 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3768         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
3770 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
3772         * posix/wordexp-test.c: If expansion or substitution occurs
3773         anywhere in a word, the entire word is subject to field-splitting.
3775         * posix/wordexp.c (parse_glob): Look for end of word instead of
3776         end of field when deciding what to glob.
3777         (field_split_word): New function, now the only place where
3778         field-splitting is performed.
3779         (parse_dollars): New parameter - tell the caller if
3780         field-splitting should be performed on this word.
3782         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
3783         succeeded (or failed with WRDE_NOSPACE).
3785 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
3787         * posix/wordexp.c (wordexp): Don't convert IFS characters to
3788         blanks.
3790         * posix/wordexp-test.c: Words not the result of expansion or
3791         substitution should remain unchanged.
3793 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
3795         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
3796         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
3798 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3800         * stdio-common/Makefile: Include Makeconfig so that
3801         $(inst_includedir) is defined.
3803 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3805         * io/pwd.c: Include <mcheck.h>.
3807 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
3809         * nscd/pwdcache.c (save_pwd): Correct copying.
3810         * nscd/grpcache.c (save_grp): Likewise.
3812 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
3814         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
3815         (free_pwd): Adjust for this change.
3816         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
3817         (free_grp): Adjust for this change.
3819 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
3821         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
3823 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
3825         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
3826         (install-others): Add bits/stdio_lim.h.
3827         Add rule to install bits/stdio_lim.h.
3829         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
3831         * Makefile (distribute): Add include/sys/mman.h.
3833         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
3834         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
3835         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
3837         * grp/initgroups.c: Include stdlib.h.
3838         Patch by Zack Weinberg.
3840 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
3842         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
3843         for field-splitting :abc: is correct, and that two fields should
3844         result. Revert tests to reflect this.
3846         * posix/wordexp.c (w_emptyword): Remove function.
3847         (exec_comm): Don't use w_emptyword.
3848         (parse_param): Likewise.
3850 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
3852         * sysdeps/arm/fpu/Dist: Moved to...
3853         * sysdeps/arm/Dist: ...here.
3854         * sysdeps/posix/Dist: Removed.
3855         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
3856         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
3858 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
3860         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
3862 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
3864         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
3866 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3868         * libc-work/nis/nss_nisplus/nisplus-service.c
3869         (_nss_nisplus_parse_servent): Convert port in network byte order.
3871 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3873         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
3874         to provide only malloc and calloc.
3875         * include/stdlib.h: Support the above.
3876         * string/bits/string2.h: Use __need_malloc_and_calloc when
3877         including stdlib.h.
3878         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
3880         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
3881         * iconvdata/iso646.c: Include <stdlib.h>.
3883 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3885         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
3886         * sysdeps/libm-ieee754/w_pow.c: Likewise.
3887         * sysdeps/libm-ieee754/w_powf.c: Likewise.
3888         * sysdeps/libm-ieee754/w_powl.c: Likewise.
3890 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3892         * stdio-common/stdio_lim.h.in: New file.  All parameters
3893         are adjustable at build time.
3894         * Rules: Add a rule to build bits/stdio_lim.h from
3895         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
3896         all subdirectories know how to make the file.  It can't be
3897         in Makerules because then it gets built at top level and the
3898         dependencies are wrong.)
3900         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
3901         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
3902         stdio_lim.h.
3903         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
3904         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
3905         * sysdeps/posix/Makefile: Removed.
3906         * sysdeps/posix/mk-stdiolim.c: Removed.
3907         * sysdeps/generic/bits/stdio_lim.h: Removed.
3909 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3911         * argp/argp-help.c: Fixup indentation.
3912         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
3913         * resolv/nss_dns/dns-network.c: Likewise.
3914         * resolv/res_send.c: Likewise.
3915         * rt/aio_cancel.c: Likewise.
3916         * rt/aio_misc.c: Likewise.
3918 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3920         * Makefile (install-symbolic-link): Remove the link list file at last.
3921         * Makerules (install-clean-symbolic-link-list): Removed.
3923 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3925         * timezone/tst-timezone.c: Print time in UTC to get consistent
3926         output.
3928 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3930         * elf/rtld.c (_dl_rpath): Removed.
3931         * elf/dl-support.c (_dl_path): Removed.
3932         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
3933         (CFLAGS-dl-support.c): Removed.
3935         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
3936         uses changed.
3937         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
3938         instead of appending it to the main map's rpath info.
3939         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
3940         DT_RPATHs.  This makes it effective again.
3941         (decompose_rpath): Remove second parameter, callers changed.
3942         (fillin_rpath): Allocate enough space in curwd.
3943         (expand_dynamic_string_token): Cope with get_origin returning -1.
3945 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3947         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
3948         passwd.adjunct.
3950         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
3951         invalid password.
3953 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
3955         * locale/programs/locale.c: Update dates.
3957 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
3959         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
3960         size_t is defined.  Some reordering of definitions to make
3961         maintaining this file in parallel with the linux-specific file easier.
3963 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
3965         * io/pwd.c (main): Add call to mtrace.
3967         * malloc/mtrace.pl: Quote @ in string.
3969 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
3971         * posix/wordexp.c (parse_arith): Fix memory leaks.
3972         (exec_comm): Likewise.
3973         (parse_param): Likewise.
3974         (wordexp): Likewise.
3975         (exec_comm): Reduce number of function return points.
3976         (parse_param): Likewise.
3977         (wordexp): Likewise.
3979 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
3981         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
3982         yield three fields, not two.  Test both parameter expansion and
3983         command substitution for correct field-splitting behaviour.
3985         * posix/wordexp.c (w_emptyword): New function.
3986         (parse_param): Use it.
3987         (exec_comm): Likewise, for consistency with the way parse_param
3988         splits fields.
3989         (parse_param): Fix some memory leaks.
3991 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
3993         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
3994         Don't mark asm `volatile'.
3995         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
3996         from the data cache too.  Assume it isn't in the instruction cache yet.
3997         (__elf_machine_fixup_plt): Clear the modified address from the caches.
3999 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
4001         * sysdeps/generic/segfault.c (install_handler): Install signal
4002         handler with SA_ONSTACK instead of setting the stack flags to
4003         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
4004         defined.
4006 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
4008         * signal/signal.h: Fix multiple inclusion guard to cover the
4009         entire file.
4010         * wcsmbs/wchar.h: Remove prototype of internal function
4011         __mbsrtowcs.
4012         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
4013         arithmetic on `void *'.
4015 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
4017         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
4019         * posix/wordexp.c (wordexp): Perform word-splitting instead of
4020         field-splitting here.
4021         (wordexp): If out of memory mid-word, free the word (but still
4022         leave pwordexp alone for caller to see).
4023         (parse_param): Allow for zero-length fields (smarter checking of
4024         memory allocation failure).
4025         (w_addword): Convert NULL words to "".
4026         (wordexp): Convert left-over IFS characters to blanks (like bash).
4028 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
4030         * configure.in: Use test -f instead of test -e.
4031         Patch by John Tobey <jtobey@banta-im.com>.
4033         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
4034         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
4035         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
4036         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
4037         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
4038         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
4039         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
4040         Patches by John Tobey <jtobey@banta-im.com>.
4042         * time/strftime.c (my_strftime): Delay use of *tp values until
4043         latest possible point to allow partly initialized structures
4044         (e.g., from strptime).
4046         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
4047         and NATS-SEFI.
4048         Define *-routines variables for new modules.
4049         (distribute): Add .c files for new modules.
4050         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
4051         and nats-sefi.h.
4052         Add rules for header generation.
4053         * iconvdata/gconv-modules: Add entries for new modules.
4054         * iconvdata/iso_10367-box.c: New file.
4055         * iconvdata/mac-is.c: New file.
4056         * iconvdata/nats-dano.c: New file.
4057         * iconvdata/nats-sefi.c: New file.
4059 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
4061         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
4062         loader if PIC is not defined.
4064 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
4066         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
4067         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
4068         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
4069         and ISO_5428.
4070         Define *-routines variables for new modules.
4071         (distribute): Add .c files for new modules.
4072         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
4073         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
4074         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
4075         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
4076         Add rules for header generation.
4077         * iconvdata/gconv-modules: Add entries for new modules.
4078         * iconvdata/csn_369103.c: New file.
4079         * iconvdata/cwi.c: New file.
4080         * iconvdata/dec-mcs.c: New file.
4081         * iconvdata/ecma-cyrillic.c: New file.
4082         * iconvdata/gost_19768-74.c: New file.
4083         * iconvdata/greek-ccitt.c: New file.
4084         * iconvdata/greek7-old.c: New file.
4085         * iconvdata/greek7.c: New file.
4086         * iconvdata/inis-8.c: New file.
4087         * iconvdata/inis-cyrillic.c: New file.
4088         * iconvdata/inis.c: New file.
4089         * iconvdata/iso6937-2.c: New file.
4090         * iconvdata/iso_2033.c: New file.
4091         * iconvdata/iso_5427-ext.c: New file.
4092         * iconvdata/iso_5427.c: New file.
4093         * iconvdata/iso_5428.c: New file.
4095         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
4096         entries.
4097         Convert U02dd correctly.
4099 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
4101         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
4102         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
4103         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
4104         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
4106 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
4108         * resolv/res_init.c (res_init): Handle resolv.conf file with only
4109         one nameserver correctly.  Patch by HJ Lu.
4111         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
4112         and ANSI_X3.110.
4113         Define *-routines variables for new modules.
4114         (distribute): Add .c files for new modules.
4115         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
4116         Add rules for hedaer generation.
4117         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
4118         * iconvdata/ansi_x3.110.c: New file.
4119         * iconvdata/asmo_449.c: New file.
4120         * iconvdata/baltic.c: New file.
4121         * iconvdata/iec_p27-1.c: New file.
4123         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
4124         entries.
4125         Convert U02dc correctly.
4127         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
4128         * math/atest-exp2.c: Likewise.
4129         * math/atest-sincos.c: Likewise.
4131         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
4132         is defined.
4134 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4136         * string/strcoll.c: Optimize a few expressions.
4137         * string/strxfrm.c: Likewise.
4139 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4141         * manual/locale.texi: Fix typos.
4143 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
4145         * stdlib/random_r.c (__setstate_r): Allow call with same state
4146         array as currently used (PR libc/774).
4148         * include/limits.h: Include gcc's header even if this file is
4149         found more than once before it (PR libc/778)
4151         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
4152         (sysdep_headers): Remove sys/debugreg.h.
4153         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
4154         (sysdep_headers): Add sys/debugreg.h.
4155         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
4156         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
4158         * stdio-common/tmpnam.c: Move local static variable buf to
4159         toplevel and rename to tmpnam_buffer to ease debugging.
4160         Patch by Joe Keane <jgk@jgk.org>.
4161         Optimize s == NULL case a bit.
4163         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
4164         correction.
4166 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
4168         * resolv/res_init.c (res_init): Initialize _res.nscount and
4169         _res.nsaddr.sin_port differently for the can when no loopback
4170         is available to allow immediate timeout in non-networking environments.
4171         Patch by Cristian Gafton <gafton@redhat.com>.
4173 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4175         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
4176         BAR and not EM DASH.
4177         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
4178         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
4179         Fixes PR libc/717.
4181 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
4183         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
4184         for test.
4185         * timezone/tst-timezone.c (tests): Fix typo in last patch.
4187         * time/tzfile.c (__tzfile_read): Handle case when there are no
4188         transitions.  Set __timezone based on computed offset.
4189         * time/tzset.c (tzset_internal): Set __timezone before returning.
4191         * time/tzset.c (tzset_internal): Optimize handling of local string
4192         copy.
4194 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4196         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
4197         libc/776).
4199 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
4201         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
4202         (csqrt_test): Likewise.
4203         * sysdeps/powerpc/bits/fenv.h: Add parens.
4205 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
4207         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
4208         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
4209         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
4211 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
4213         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
4214         the special `-1' pointer.
4216 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
4218         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
4219         inline.
4221 1998-09-07  Paul Eggert  <eggert@twinsun.com>
4223         * time/mktime.c (__EXTENSIONS__): Define if not defined.
4224         (_REENTRANT): Remove.  It has undesirable consequences in
4225         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
4226         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
4227         is what we want.
4228         * time/strftime.c: Likewise.
4230 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4232         * elf/dl-error.c: Fix spelling.
4234 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4236         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
4237         * stdio-common/_itoa.c: Likewise.
4238         * stdio-common/printf_fp.c: Likewise.
4239         * stdio-common/vfscanf.c: Likewise.
4240         * wcsmbs/wcstok.c: Likewise.
4241         * sysdeps/generic/glob.c: Likewise.
4242         * posix/getopt.c: Likewise.
4243         * sysdeps/posix/getaddrinfo.c: Likewise.
4244         * posix/wordexp.c: Likewise.
4245         * io/ftw.c: Likewise.
4246         * io/fts.c: Likewise.
4247         * misc/getpass.c: Likewise.
4248         * iconv/gconv_conf.c: Likewise.
4249         * argp/argp-fmtstream.c: Likewise.
4250         * argp/argp-help.c: Likewise.
4251         * elf/dl-load.c: Likewise.
4252         * locale/programs/stringtrans.c: Likewise.
4253         * catgets/gencat.c: Likewise.
4254         * posix/getconf.c: Likewise.
4255         * iconv/gconv_conf.c: Likewise.
4256         * iconv/iconv_prog.c: Likewise.
4258         * string/strcoll.c: Optimize a few expressions.
4259         * string/strxfrm.c: Likewise.
4261 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4263         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
4264         level to avoid uninit variable warning.
4266 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4268         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
4269         instead of _dl_default_scope[2] as argument to _dl_init_next.
4271         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
4272         C9x macro.
4274 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
4276         Fix compatibility problems introduced in last change.
4277         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
4278         defined.
4279         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
4280         -DWEAK_GMON_START to CFLAGS-initfini.s.
4282         * elf/dl-object.c (_dl_new_object): Store map address in
4283         _dl_loaded if _dl_loaded is NULL.
4284         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
4286         * sysdeps/generic/setrlimit64.c: Remove stub warning.
4288 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
4290         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
4291         quiet.
4292         * db2/btree/bt_cursor.c: Likewise.
4293         * db2/common/db_region.db_c: Likewise.
4294         * db2/common/db_salloc.db_c: Likewise.
4295         * db2/db/db.c: Likewise.
4296         * db2/db/db_rec.c: Likewise.
4297         * db2/hash/hash.c: Likewise.
4298         * db2/hash/hash_page.c: Likewise.
4299         * db2/hash/hash_rec.c: Likewise.
4300         * db2/log/log_findckp.c: Likewise.
4301         * db2/log/log_get.c: Likewise.
4302         * db2/log/log_put.c: Likewise.
4303         * db2/mp/mp_fget.c: Likewise.
4304         * db2/mp/mp_fput.c: Likewise.
4305         * db2/mp/mp_region.c: Likewise.
4306         * stdlib/strtol.c: Likewise.
4307         * string/strcoll.c: Likewise.
4308         * string/strxfrm.c: Likewise.
4309         * argp/argp-help.c: Likewise.
4310         * argp/argp-parse.c: Likewise.
4311         * resolv/res_debug.c: Likewise.
4313 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
4315         * math/tgmath.h (scalb): Only define for __USE_MISC or
4316         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
4318 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4320         * libio/stdio.h: Fix comment.
4322         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
4323         __USE_ISOC9X.
4325 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
4327         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
4329         * elf/dl-open.c: Quiet -Wparentheses warnings.
4330         * iconvdata/johab.c: Likewise.
4331         * iconvdata/uhc.c: Likewise.
4332         * inet/inet_net.c: Likewise.
4333         * io/fts.c: Likewise.
4334         * locale/newlocale.c: Likewise.
4335         * misc/getttyent.c: Likewise.
4336         * misc/mntent_r.c: Likewise.
4337         * misc/ttyslot.c: Likewise.
4338         * nscd/nscd_conf.c: Likewise.
4339         * nss/nsswitch.c: Likewise.
4340         * resolv/gethnamaddr.c: Likewise.
4341         * resolv/nsap_addr.c: Likewise.
4342         * resolv/res_debug.c: Likewise.
4343         * stdio-common/_itoa.c: Likewise.
4344         * stdlib/strtod.c: Likewise.
4345         * string/strverscmp.c: Likewise.
4346         * sunrpc/svc.c: Likewise.
4347         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
4348         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
4349         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
4350         * sysdeps/posix/getaddrinfo.c: Likewise.
4352 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
4354         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
4355         for use of global scope.
4356         * elf/dlvsym.c (dlvsym_doit): Likewise.
4358 1998-09-02  Paul Eggert  <eggert@twinsun.com>
4360         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
4361         copy the redundant bytes at the end of the format as-is; don't
4362         just copy their first byte and then rescan, as that might get
4363         us an encoding error.
4364         Account correctly for the length of multibyte sequences in the
4365         format.
4367 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
4369         * posix/wordexp-test.c: Add tests for different IFS values.
4370         Change unquoted-newline test so that newline is not in IFS.
4372         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
4373         determining IFS characters.  Return WRDE_BADCHAR for unquoted
4374         special characters _except_ if they are separators.
4376 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
4378         * include/tgmath.h: New file.
4380         * libio/stdio.h: Correct reversed #ifs.
4381         Patch by Zack Weinberg.
4383         * manual/creature.texi: Better explain reason for feature select
4384         macros.
4385         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
4387 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
4389         * include/alloca.h: Add multiple-inclusion guard.
4390         * include/db.h: Likewise.
4391         * include/db_185.h: Likewise.
4392         * include/dlfcn.h: Likewise.
4393         * include/fcntl.h: Likewise.
4394         * include/grp.h: Likewise.
4395         * include/libintl.h: Likewise.
4396         * include/mntent.h: Likewise.
4397         * include/pwd.h: Likewise.
4398         * include/sched.h: Likewise.
4399         * include/search.h: Likewise.
4400         * include/setjmp.h: Likewise.
4401         * include/shadow.h: Likewise.
4402         * include/signal.h: Likewise.
4403         * include/stdio.h: Likewise.
4404         * include/stdlib.h: Likewise.
4405         * include/string.h: Likewise.
4406         * include/termios.h: Likewise.
4407         * include/time.h: Likewise.
4408         * include/ulimit.h: Likewise.
4409         * include/utmp.h: Likewise.
4410         * include/wchar.h: Likewise.
4411         * include/sys/file.h: Likewise.
4412         * include/sys/gmon.h: Likewise.
4413         * include/sys/ioctl.h: Likewise.
4414         * include/sys/mman.h: Likewise.
4415         * include/sys/resource.h: Likewise.
4416         * include/sys/select.h: Likewise.
4417         * include/sys/socket.h: Likewise.
4418         * include/sys/statfs.h: Likewise.
4419         * include/sys/time.h: Likewise.
4420         * include/sys/times.h: Likewise.
4421         * include/sys/wait.h: Likewise.
4423 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
4425         * version.h (VERSION): Bump to 2.0.96.
4427         Rewrite runtime linker to be truly thread-safe.  There is now no
4428         global variable specifying the scope.  We create all needed
4429         scopes at the time the link maps are created.
4430         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
4431         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
4432         l_symbolic_searchlist, l_scope, and l_local_scope elements in
4433         struct link_map.
4434         * elf/dl-close.c: Rewritten accordingly.
4435         * elf/dl-deps.c: Likewise.
4436         * elf/dl-error.c: Likewise.
4437         * elf/dl-init.c: Likewise.
4438         * elf/dl-load.c: Likewise.
4439         * elf/dl-lookup.c: Likewise.
4440         * elf/dl-object.c: Likewise.
4441         * elf/dl-open.c: Likewise.
4442         * elf/dl-reloc.c: Likewise.
4443         * elf/dl-runtime.c: Likewise.
4444         * elf/dl-support.c: Likewise.
4445         * elf/dl-symbol.c: Likewise.
4446         * elf/dl-version.c: Likewise.
4447         * elf/dlsym.c: Likewise.
4448         * elf/dlvsym.c: Likewise.
4449         * elf/ldsodefs.h: Likewise.
4450         * elf/rtld.c: Likewise.
4451         * iconv/gconv_dl.c: Likewise.
4452         * nss/nsswitch.c: Likewise.
4453         * sysdeps/i386/dl-machine.h: Likewise.
4454         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4456         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
4457         Define RTLD_DEFAULT.
4459 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
4461         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
4462         __getopt_clean_environment with __environ instead of envp.
4464 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
4466         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
4468         * string/argz-extract.c (__argz_extract): Add de-consting cast for
4469         setting results.
4471         * string/argz.h (argz_next): Add de-consting cast for return.
4472         * string/argz-next.c (__argz_next): Likewise.
4474         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
4475         Don't add netinet/udp.h, netinet/ip_icmp.h here.
4476         * sysdeps/gnu/Makefile: Do it here instead.
4477         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
4478         * sysdeps/gnu/Dist: ... to here.
4480         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
4481         sysdeps/unix/sysv/linux/netinet/tcp.h,
4482         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
4484 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
4486         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
4487         * string/argz-next.c, string/argz-extract.c: Fix defns.
4489 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
4491         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
4493         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
4494         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
4495         * sysdeps/generic/sysd-stdio.c: Likewise.
4497 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
4499         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
4500         (_dl_map_object_from_fd): Make NAME argument const.
4501         Remove last parameter in _dl_new_object call.
4502         (print_search_path): Correct construction of composed path name.
4503         (_dl_map_object): Prevent looking at RPATH of the main map twice.
4504         Remove last parameter in _dl_new_object call.
4505         * elf/dl-object.c: Remove last parameter.  Determine whether create
4506         origin entry based on empty realname.  Handle file in root directory
4507         correctly.
4508         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
4509         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
4510         Remove last parameter in _dl_new_object call.
4511         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
4512         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
4514 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
4516         * elf/dl-close.c (_dl_close): Add more comments and correct some.
4517         Free l_searchlist and l_dupsearchlist.
4519         * debug/catchsegv.sh: Add one more pair of quotes.
4521 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
4523         * elf/dl-load.c (add_name_to_object): Change return type to void and
4524         make NAME parameter const.  Allocate room for NAME in same memory
4525         block used for l_libname entry.
4526         (_dl_map_object_from_fd): Don't free NAME on failure.
4527         (map_segment): Pass SONAME to add_name_to_object, not a copy.
4528         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
4529         _dl_map_object_from_fd.
4530         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
4531         memory block used for l_libname entry.
4532         * elf/dl-close.c: Adjust free()ing for this change.
4534 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
4536         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
4538         * malloc/mtrace.c: Add bug report address.  Update email address.
4539         Add more @XXX@ to print correct address size.
4541         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
4542         really initialized.
4544         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
4545         for munmap call instead of examining phdr again.
4546         Free all malloc()ed strings and arrays.
4548 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
4550         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
4551         dl-machine.h.
4552         * sysdeps/powerpc/dl-machine.c: New file.
4553         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
4554         files.  Revise ELF_PREFERRED_ADDRESS to take account of
4555         the new mapping information (fixes bug involving huge bloated
4556         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
4557         * sysdeps/powerpc/dl-start.S: New file.
4559         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
4560         l_map_end.
4561         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
4562         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
4563         others.  Call elf_dynamic_do_##reloc only once (to save even more
4564         space).
4565         * elf/link.h: Add new members l_map_start and l_map_end to keep
4566         track of the memory map.
4567         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
4568         the executable.
4570 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
4572         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
4573         Reported by Andreas Jaeger.
4575         * posix/glob.h: Use __size_t instead of size_t in definitions and
4576         make sure this is defined.
4578 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
4580         * manual/locale.texi: Almost complete rewrite.  Document more functions
4581         and functionality.
4582         * manual/arith.texi: Correct reference.
4583         * manual/string.texi: Pretty printing.
4585         * manual/texinfo.tex: Update from last available version.
4587 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
4589         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
4590         invalid password.
4591         (_nss_nis_getpwuid_r): Likewise.
4592         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
4594         * inet/rcmd.c: Implement netgroup support.
4595         Patch by Dick Streefland <dick_streefland@tasking.com>.
4597 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4599         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
4600         object on the list is removed.  Don't use this code for PIC.
4601         Reported by HJ Lu [PR libc/770].
4603 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
4605         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
4607         * include/stdio.h: Add __vsscanf.
4609         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
4610         __USE_ISOC9X.
4611         Remove __vsscanf declaration.
4612         Always declare fgetpos and fsetpos.
4614         * math/math.h: Define isinf as macro.
4615         * math/bits/mathcalls.h: Change to declare __isinf all the time.
4616         Don't declare scalb for ISO C 9x.
4618         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
4620         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
4622         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
4623         sys/ucontext.h.
4625         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
4626         macros.
4628 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4630         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
4631         Reported by jreising@frequentis.com [PR libc/767].
4633 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4635         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
4636         fl.l_start at beginning of function.
4637         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
4639 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4641         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
4642         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
4644         * nscd/nscd.init: Make it work in RedHat systems.
4645         Patch by Christian Gafton.
4647 1998-08-29  Philip Blundell  <philb@gnu.org>
4649         * catgets/Makefile: Don't try to run test programs when
4650         cross-compiling.
4652 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4654         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
4655         Reported by Zack Weinberg.
4657 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4659         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
4660         * elf/Makefile (distribute): Remove ldd.sh.in.
4662 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4664         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
4665         variable.
4667 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
4669         * sysdeps/i386/register-dump.h: Move to ...
4670         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
4672 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
4674         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
4675         with load address, not map address.
4676         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
4677         parameter and use this value.
4678         * sysdeps/arm/dl-machine.h: Likewise.
4679         * sysdeps/i386/dl-machine.h: Likewise.
4680         * sysdeps/m68k/dl-machine.h: Likewise.
4681         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
4682         parameter.
4683         * sysdeps/powerpc/dl-machine.h: Likewise
4684         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
4685         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
4687 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
4689         * elf/rtld.c (process_envvars): Fix copy&paste error.
4691         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
4692         memalign hook.
4693         (realloc_hook_ini): Don't overwrite memalign hook.
4694         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
4695         Reported by Philippe Troin <phil@fifi.org>.
4697         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
4698         Patch by Philippe Troin <phil@fifi.org>.
4700 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4702         * sysdeps/generic/segfault.c (install_handler): Protect the
4703         non-POSIX signals with #ifdef.
4704         (catch_segfault): Add missing mode parameter for open.
4705         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
4706         other termination signals.
4708 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4710         * debug/Makefile (distribute): Add register-dump.h.
4712 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4714         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
4716 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
4718         * elf/Makefile (distribute): Add dl-origin.h.
4719         * sysdeps/generic/dl-origin.h: New file.
4720         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
4721         * elf/link.h (struct link_map): Add l_origin field.
4722         * elf/dl-load.c (expand_dynamic_string_token): New function.
4723         (decompose_path): Remove WHERE argument, take link map pointer instead.
4724         Call expand_dynamic_string_token instead of local_strdup to make copy
4725         of rpath.
4726         (_dl_init_paths): Call decompose_path with correct argument.
4727         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
4728         not defined.
4729         Check EI_OSABI and EI_ABIVERSION fields in header.
4730         Call _dl_new_object with extra argument.
4731         (_dl_map_object): Call decompose_path with correct argument.
4732         Call expand_dynamic_string_token instead of local_strdup to also
4733         expand DST.
4734         Call _dl_new_object with extra argument.
4735         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
4736         but the main one if new argument is nonzero.
4737         * elf/ldsodefs.h: Adjust for _dl_new_object change.
4738         * elf/dl-support.c: Define _dl_origin_path.
4739         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
4740         (dl_main): Call _dl_new_object with extra argument.
4742         * elf/dl-close (_dl_close): Free l_name and l_origin.
4744         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
4745         modifier in asm, not c.
4747         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
4748         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
4750 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
4752         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
4753         variable so that map can be freed.
4754         Reported by Philippe Troin <phil@fifi.org>.
4756         * elf/dl-open.c (dl_open_worker): Correct test for extending global
4757         scope array.
4758         Patch by Philippe Troin <phil@fifi.org>.
4760 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
4762         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
4763         Don't call writev() with a 100-element vector.
4764         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
4765         return address.
4767         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
4768         In particular, set __libc_stack_end.
4769         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
4770         undefined.  Fix copyright notice.
4772 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4774         * math/Makefile (gmp-objs): New variable.
4775         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
4776         Depend on it.
4777         (tests): Add atest-exp atest-sincos atest-exp2.
4778         (tests-static): Remove atest-exp atest-sincos atest-exp2.
4780 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
4782         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
4783         to toplevel.
4784         (_dl_unload_cache): New function.
4785         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
4786         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
4787         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
4789         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
4790         Correct comment for O_LARGEFILE.
4791         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
4792         Change O_LARGEFILE to correct value.
4794 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
4796         * libio/iogetline.c (_IO_getline_info): Don't read anything for
4797         N == 0.  Patch by HJ Lu.
4799 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
4801         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
4803 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
4805         * argp/argp.h: Use __inline__ not inline.
4807         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
4808         an input register as being clobbered.
4809         * sysdeps/i386/memset.c (memset): Likewise.
4810         * sysdeps/i386/bzero.c (__bzero): Likewise.
4811         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
4813 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4815         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
4816         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
4818 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
4820         * debug/catchsegv.sh: Handle text preceding backtrace better.
4821         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
4822         to be installed for other signals than SIGSEGV.
4823         * sysdeps/generic/register-dump.h: New file.
4824         * sysdeps/i386/register-dump.h: New file.
4825         * sysdeps/powerpc/register-dump.h: New file.
4827         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
4828         sigcontextinfo.h.
4829         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
4831 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
4833         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
4835 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
4837         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
4838         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
4839         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
4840         getresuid, getresgid.
4842 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
4844         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
4845         pointer in userland.
4847 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4849         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
4850         and fix value.
4852 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4854         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
4855         over arguments Bourne shell compatible.  Don't exit unsuccessfully
4856         if nonelf returns successfully.  Avoid duplicating most of the
4857         script.
4858         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
4859         around $file.
4861 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4863         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
4864         sys/reg.h.
4865         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
4866         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
4868 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
4870         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
4871         __modify_ldt and modify_ldt.
4872         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
4874         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4875         Use orl $-1 instead of movl $-1 to save two bytes.
4876         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
4877         Likewise.
4879 1998-08-17  H.J. Lu  <hjl@gnu.org>
4881         * libio/Versions (_IO_do_write, _IO_file_attach,
4882         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4883         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4884         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4885         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
4887         * libio/fileops.c (_IO_do_write, _IO_file_attach,
4888         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4889         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4890         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4891         _IO_file_write, _IO_file_xsputn): Change the prefix to
4892         "_IO_new_". Added to GLIBC_2.1.
4894         * libio/libioP.h (_IO_do_write, _IO_file_attach,
4895         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4896         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4897         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4898         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
4899         "_IO_new_".
4901         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
4902         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4903         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4904         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4905         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
4907 1998-08-23  Richard Henderson  <rth@cygnus.com>
4909         * Makeconfig (LDFLAGS): Remove.
4911         * csu/initfini.c: Return to .text before __gmon_start__.
4913         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
4914         (STO_MIPS_*): Rename from STO_*.
4915         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
4916         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
4918         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
4919         (main): e3s is negative on zero.
4920         * math/atest-exp2.c: Likewise.
4921         * math/atest-sincos.c: Likewise.
4923 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4925         * Makerules (install): Add comment about absolute paths.
4927 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
4929         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
4930         array to NUL to handle maxlen==1 case correctly.
4931         Patch by HJ Lu.
4933 1998-08-23  Richard Henderson  <rth@cygnus.com>
4935         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
4936         * sysdeps/alpha/elf/crtend.S: Likewise.
4937         * sysdeps/alpha/elf/start.S: Likewise.
4939         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
4940         non-standard pv usage.
4942         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
4943         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
4944         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4945         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4946         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
4947         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4948         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4949         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4950         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4951         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4952         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4954         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
4955         a finite non-denormal, deferring to the full IEEE version otherwise.
4957         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
4958         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
4959         * sysdeps/alpha/fpu/s_floor.c: New.
4960         * sysdeps/alpha/fpu/s_floorf.c: New.
4961         * sysdeps/alpha/fpu/s_ceil.c: New.
4962         * sysdeps/alpha/fpu/s_ceilf.c: New.
4964 1998-08-22  Philip Blundell  <philb@gnu.org>
4966         * sysdeps/arm/bits/string.h: New file.
4968 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4970         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
4971         document it.
4973         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
4974         test for recent Linux 2.1.100+ headers.
4976 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
4978         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
4980 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
4982         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
4984 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4986         * Makefile (elf/ldso_install): Put back.  The problem still persists.
4987         * elf/Makefile (ldso_install): Likewise.
4989 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4991         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
4992         create weak alias.
4993         * include/db.h: Declare __nss_db_open.
4994         * db2/Versions: Export it.
4996         * db2/makedb.c: Convert to use db2 API.
4997         * nss/nss_db/db-XXX.c: Likewise.
4998         * nss/nss_db/db-netgrp.c: Likewise.
4999         * nss/nss_db/db-alias.c: Likewise.
5000         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
5002 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5004         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
5005         sys_setresuid, already built automatically (or not).
5006         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
5007         instead of __syscall_setresuid and add back setresuid.
5008         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
5009         __syscall_setresuid.
5011 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
5013         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
5015 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
5017         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
5018         BASH-ONLY marked region.
5019         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
5021 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
5023         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
5024         _IO_SYSSEEK fails.
5026         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
5028         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
5029         element.
5031 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
5033         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
5034         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
5035         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
5036         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
5037         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
5038         those magic comments, and to use /bin/sh for @BASH@.
5039         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
5040         * elf/ldd.sh.in: File removed.
5042 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
5044         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
5045         cast them to unsigned long int.
5046         * pwd/putpwent.c (putpwent): Likewise.
5047         Patch by John Tobey <jtobey@banta-im.com>.
5049 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
5051         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
5052         _IO_pos_BAD.
5054 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
5056         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
5057         _IO_SYSSEEK fails.
5059 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
5061         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
5062         Add umount and umount2.
5063         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
5064         * sysdeps/unix/sysv/linux/umount.S: New file.
5065         * sysdeps/unix/sysv/linux/umount2.S: New file.
5066         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
5067         Define MNT_FORCE.
5069         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
5070         Add sys/sendfile.h.
5071         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
5072         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
5074         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
5076         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
5077         sendfile.
5079 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
5081         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
5082         * elf/ldd.bash.in: Likewise.
5084         * elf/sln.c: Avoid warning for no main prototype.
5086         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
5087         O_WRITE.
5088         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5089         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5091         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
5092         F_GETSIG.
5093         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
5094         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
5095         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5097 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
5099         * sysdeps/arm/fpu/ieee754.h: Move to...
5100         * sysdeps/arm/ieee754.h: ... here.
5102         * sysdeps/arm/__longjmp.S: Put return value in correct register.
5103         Don't set the condition flags unnecessarily.
5104         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
5105         registers correctly.
5107         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
5108         (patch from Scott Bambrough).
5110         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
5112         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
5113         NULL, just call it unconditionally.
5114         (__gmon_start__): Provide stub version as a weak symbol.
5116 1998-07-30  Philip Blundell  <philb@gnu.org>
5118         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
5119         by Scott Bambrough)
5121         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
5122         like `@' in .type directives.
5124         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
5125         * sysdeps/arm/bsd-_setjmp.S: Likewise.
5127         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
5129 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
5131         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
5132         (F_GETOWN): Likewise.
5134         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
5135         Linux 2.1.117).
5137 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
5139         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
5140         already defined.
5142 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
5144         * include/features.h: Define __USE_EXTERN_INLINES for recent
5145         enough gcc.
5146         * argp/argp.h: Define extern inline functions only if
5147         __USE_EXTERN_INLINES is defined.
5148         * libio/stdio.h: Likewise.
5149         * math/math.h: Likewise.
5150         * stdlib/stdlib.h: Likewise.
5151         * string/argz.h: Likewise.
5152         * sysdeps/generic/bits/sigset.h: Likewise.
5153         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5154         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
5155         * sysdeps/wordsize-32/inttypes.h: Likewise.
5156         * sysdeps/wordsize-64/inttypes.h: Likewise.
5157         * wcsmbs/wchar.h: Likewise.
5159         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
5160         to allow compilation without optimization.
5162 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
5164         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
5165         more entries.
5166         * nis/nss_compat/compat-initgroups.c: Likewise.
5167         * nis/nss_compat/compat-pwd.c: Likewise.
5168         * nis/nss_compat/compat-spwd.c: Likewise.
5169         * nis/nss_nis/nis-alias.c: Likewise.
5170         * nis/nss_nis/nis-ethers.c: Likewise.
5171         * nis/nss_nis/nis-grp.c: Likewise.
5172         * nis/nss_nis/nis-hosts.c: Likewise.
5173         * nis/nss_nis/nis-initgroups.c: Likewise.
5174         * nis/nss_nis/nis-network.c: Likewise.
5175         * nis/nss_nis/nis-proto.c: Likewise.
5176         * nis/nss_nis/nis-pwd.c: Likewise.
5177         * nis/nss_nis/nis-rpc.c: Likewise.
5178         * nis/nss_nis/nis-service.c: Likewise.
5179         * nis/nss_nis/nis-spwd.c: Likewise.
5181         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
5183         * nis/ypclnt.c: Try binding dir only first time, could be to old.
5185         * nis/yp_xdr.c: Remove 1024 byte limit.
5186         * nis/ypupdate_xdr.c: Likewise.
5188         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
5189         wrong data.
5191 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
5193         * Rules (binaries-static, binaries-shared static pattern rules):
5194         Depend on lib%, not just libc%, from $(link-libc{,-static}).
5196         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
5197         this here, overriding Makeconfig generic value so we link against
5198         the RPC libs.
5200 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
5202         * posix/tstgetopt.c (options): Add NULL entry at end
5203         Patch by Adrian Miranda <ade@psg.com>.
5205 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
5207         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
5208         to 9.
5210 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
5212         * elf/elf.h: Add PPC Diab relocations.
5214         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
5216 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
5218         * manual/texinfo.tex: Update.
5220 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
5222         * sysdeps/powerpc/backtrace.c: New file.
5224 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
5226         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
5227         sigjmp_save.
5228         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
5230 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5232         * Makefile (install-symbolic-link): Fix spelling.
5234 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5236         * elf/elf.h (SHT_HIOS): Fix value.
5238 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5240         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
5241         part of the expansion, this is undefined by the standard.
5243 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
5245         * posix/getconf.c: Add support for systems with incomplete confname.h.
5247         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
5249         * sysdeps/posix/wait3.c: Make it work.
5251 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
5253         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
5254         (elf/ldso_install): Remove.
5256         * elf/Makefile (distribute): Add sln.c.
5257         (others): Add sln.
5258         (others-static): Add sln.
5259         (install-rootsbin): Add sln.
5260         (others-static): Add sln.
5261         (ldso_install): Remove.
5263 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5265         * Makerules (install-clean-symbolic-link-list): Make phony.
5266         * Makefile (install-symbolic-link): Make phony.  Depend on
5267         subdir_install for parallel makes.
5270 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
5272         * elf/Makefile (distribute): Add sln.c
5274 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
5276         * elf/sln.c: New file.
5278         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
5279         (install-clean-symbolic-link-list): New target.
5280         (install): Depend on install-clean-symbolic-link-list.
5281         (make-shlib-link): Changed for $(symbolic-link-list).
5283         * Makefile (install-symbolic-link): New target.
5284         (install): Depend on install-symbolic-link.
5286 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
5288         * include/unistd.h: Protect against multiple inclusion.
5290         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
5291         is defined, not is glob is defined.
5292         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
5294 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
5296         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
5297         xdr_string for ut_line, ut_name and ut_host.
5299 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
5301         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
5302         /var/mail in accordance with FHS 2.0.
5303         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
5305 1998-08-12  Richard Henderson  <rth@cygnus.com>
5307         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
5308         Update aliases for cancelation.
5310         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
5311         playing with symbol versions.
5313 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
5315         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
5316         multiple inclusion protection.
5317         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
5318         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
5319         define all these to 1.
5320         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
5322 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
5324         * sysdeps/mach/usleep.c: Include <unistd.h>.
5325         (usleep): Return void.
5327 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
5329         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
5330         decl to inhibit warning in if_freenameindex defn.
5332         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
5334         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
5336         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
5337         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
5338         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
5339         * sysdeps/mach/usleep.c: Likewise.
5341         * sysdeps/mach/hurd/bind.c (bind): Add a const.
5343         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
5344         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
5345         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
5346         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
5347         * sysdeps/mach/usleep.c (usleep): Likewise.
5348         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
5349         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
5350         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
5351         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
5353 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
5355         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
5356         (glob64): Fix typo.
5358         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
5359         %p arg to fprintf, since `void *' is the right type already.
5361 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
5363         * sysdeps/mach/hurd/getcwd.c
5364         (_hurd_canonicalize_directory_name_internal): Do not loop forever
5365         for unknown root directories.
5366         (__getcwd): Return NULL when the current root directory could not
5367         be reached.
5369 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
5371         * string/strsignal.c (strsignal): Count real-time signals from zero.
5374 See ChangeLog.8 for earlier changes.