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