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