Update.
[glibc.git] / ChangeLog
blob19f5b14edd4cbf8a0a46fb5db2012beb15075f76
1 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
3         * login/Makefile (distribute): Remove pty-internal.h, add
4         pty-private.h.
6         * stdlib/tst-strtol.c: Add more checks.
7         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
9 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
11         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
12         * elf/elf.h: Add AT_FPUCW.
13         * elf/Makefile (dl-routines): Add fpu_control.
14         (elide-routines.os): Add fpu_control.
15         (rtld-routines): Add fpu_control.
16         * math/Makefile (aux): Remove fpu_control.
17         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
18         (_dl_show_auxv): Likewise.
19         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
20         if different from OS default.
22         * stdio-common/tstscanf.c: Add test case for (nil).
24 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
26         * libio/fileops.c (_IO_new_file_underflow): Before allocating
27         buffer make sure the pushback buffer is destroyed.
28         (_IO_new_file_seekoff): Likewise.
29         If mode==0 quit early with the result.
30         Clear OEF flag after successful fseek.
31         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
32         * libio/ftello.c (ftello): Add offset from original buffer if
33         stream has pushed back characters.
34         * libio/ftello64.c (ftello64): Likewise.
35         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
36         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
37         * libio/ioftell.c (_IO_ftell): Likewise.
38         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
39         and _IO_save_ptr.
40         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
41         (_IO_default_pbackfail): Only stored push back character in original
42         buffer if it is the same as the one in the file at this position.
43         * libio/iofclose.c: Free backup buffer if one is available.
44         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
45         mode!=0.
47         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
49         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
51         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
53 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
55         * login/programs/pt_chown.c (more_help): Correct message that
56         describes the purpose of the program.
58         * login/openpty.c: Do not include pty-private.h.
59         (pts_name): New function.  Return name of slave pseudo terminal in
60         an allocated buffer if necessary.
61         (openpty): Use pts_name to get name of the slave end of the pseudo
62         terminal pair.
64         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
65         pts_name before return.
67 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
69         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
71 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
73         * login/openpty.c: Include pty-private.h instead of
74         pty-internal.h.
76 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
78         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
80 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
82         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
83         recent ld.so changes.
84         (elf_machine_runtime_setup): Correct behaviour when profiling.
86 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
88         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
89         Patch by John Tobey <jtobey@banta-im.com>.
91 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
93         * login/pty-internal.h: Removed.  Moved constants related to the
94         `grantpt' helper program protocol to ...
95         * login/pty-private.h: ... here.  New file.
96         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
97         to make the function work with kernels >= 2.1.115.
98         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
99         version if using the cloning device fails.
100         * sysdeps/unix/sysv/linux/grantpt.c: New file.
101         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
102         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
103         use by Linux specific code.
104         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
105         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
106         function.  (grantpt): Use pts_name, check group and permission
107         mode in addition to owner.  Try to set the owner, group and
108         permission mode first without invoking the helper program.
109         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
110         internationalization support.  Use symbolic constants instead of
111         hardwired numbers for permission mode.
112         * sysdeps/unix/bsd/ptsname.c: New file.
114 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
116         * posix/wordexp-test.c: Undo last change.
118         * posix/wordexp.c: Undo last change.
120 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
122         * nscd/grpcache.c (save_grp): Partly undo last change.
124         * nscd/pwdcache.c (save_pwd): Undo last change.
126 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
128         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
129         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
131 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
133         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
134         Add profiling support.
135         (TRAMPOLINE_TEMPLATE): New macro.
136         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
137         (RTLD_START): Prettify, and set __libc_stack_end properly.
138         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
139         and check for sym being NULL instead.
140         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
141         of stack space.
142         * sysdeps/sparc/sparc64/lshift.S: Likewise.
143         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
144         * sysdeps/sparc/sparc64/rshift.S: Likewise.
145         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
146         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
147         MEDANY code model %g4 usage.
148         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
149         MEDANY code model %g4 usage.
150         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
151         code model address formation.
152         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
153         include elf/ldsodefs.h
154         (DT_SPARC): Remove.
155         (elf_machine_matches_host): It is now EM_SPARCV9.
156         (elf_machine_dynamic): Clean up to remove ugly cast.
157         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
158         new PLT formats.
159         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
160         Prettify rest of function.
161         [R_SPARC_COPY]: Check for sym being NULL.
162         [R_SPARC_32]: Handle it.
163         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
164         MEDMID code model.
165         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
166         MEDANY code model.
167         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
168         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
169         Add profiling support.
170         (TRAMPOLINE_TEMPLATE): New macro.
171         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
172         (RTLD_START): Prettify and set __libc_stack_end.
173         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
174         Define.
175         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
176         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
177         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
178         unused variable scratch.
179         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
180         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
181         Declare.
182         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
183         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
184         old format kernel sigaction structures.
185         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
186         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
187         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
188         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
189         ucontext include.
190         (_JMPBUF_UNWINDS): Define.
191         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
192         statfs64 structure, which is exactly the same as the normal one.
193         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
194         of stack.  Use correct syscall trap number.  Add branch prediction
195         settings to branch instructions.  Remove old MEDANY code model %g4
196         referneces for non-PIC.
197         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
198         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
199         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
200         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
201         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
202         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
203         __libc_longjmp and __libc_siglongjmp strong aliases.
204         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
205         Also define to __no__readdir64_decl around readdir.c inclusion.
206         (__readdir64): Add strong alias.
207         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
208         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
209         Set strong and weak names properly.
211 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
213         * manual/Makefile (AWK): Default to gawk if standalone.
215 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
217         * Makefile (distribute): Undo last change.
218         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
219         for sysdep headers.
220         (+subdir-headers): Removed, unused.
222 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
224         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
225         $(do-install).
227 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
229         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
230         absolute name in $(config-sysdirs), can never happen.
231         ($(+sysdir_pfx)sysd-rules): Likewise.
232         * Makeconfig (full-config-sysdirs): Likewise.
233         (all-Subdirs-files): Prepend $(..).
235         * configure.in: Don't check for absolute name in $add_ons_pfx, can
236         not happen.  Let --enable-add-ons=yes work if no add-ons actually
237         exist.
239 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
241         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
242         continuations in command.
244 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
246         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
248 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
250         * posix/wordexp-test.c: If expansion or substitution occurs
251         anywhere in a word, the entire word is subject to field-splitting.
253         * posix/wordexp.c (parse_glob): Look for end of word instead of
254         end of field when deciding what to glob.
255         (field_split_word): New function, now the only place where
256         field-splitting is performed.
257         (parse_dollars): New parameter - tell the caller if
258         field-splitting should be performed on this word.
260         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
261         succeeded (or failed with WRDE_NOSPACE).
263 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
265         * posix/wordexp.c (wordexp): Don't convert IFS characters to
266         blanks.
268         * posix/wordexp-test.c: Words not the result of expansion or
269         substitution should remain unchanged.
271 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
273         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
274         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
276 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
278         * stdio-common/Makefile: Include Makeconfig so that
279         $(inst_includedir) is defined.
281 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
283         * io/pwd.c: Include <mcheck.h>.
285 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
287         * nscd/pwdcache.c (save_pwd): Correct copying.
288         * nscd/grpcache.c (save_grp): Likewise.
290 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
292         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
293         (free_pwd): Adjust for this change.
294         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
295         (free_grp): Adjust for this change.
297 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
299         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
301 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
303         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
304         (install-others): Add bits/stdio_lim.h.
305         Add rule to install bits/stdio_lim.h.
307         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
309         * Makefile (distribute): Add include/sys/mman.h.
311         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
312         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
313         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
315         * grp/initgroups.c: Include stdlib.h.
316         Patch by Zack Weinberg.
318 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
320         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
321         for field-splitting :abc: is correct, and that two fields should
322         result. Revert tests to reflect this.
324         * posix/wordexp.c (w_emptyword): Remove function.
325         (exec_comm): Don't use w_emptyword.
326         (parse_param): Likewise.
328 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
330         * sysdeps/arm/fpu/Dist: Moved to...
331         * sysdeps/arm/Dist: ...here.
332         * sysdeps/posix/Dist: Removed.
333         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
334         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
336 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
338         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
340 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
342         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
344 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
346         * libc-work/nis/nss_nisplus/nisplus-service.c
347         (_nss_nisplus_parse_servent): Convert port in network byte order.
349 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
351         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
352         to provide only malloc and calloc.
353         * include/stdlib.h: Support the above.
354         * string/bits/string2.h: Use __need_malloc_and_calloc when
355         including stdlib.h.
356         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
358         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
359         * iconvdata/iso646.c: Include <stdlib.h>.
361 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
363         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
364         * sysdeps/libm-ieee754/w_pow.c: Likewise.
365         * sysdeps/libm-ieee754/w_powf.c: Likewise.
366         * sysdeps/libm-ieee754/w_powl.c: Likewise.
368 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
370         * stdio-common/stdio_lim.h.in: New file.  All parameters
371         are adjustable at build time.
372         * Rules: Add a rule to build bits/stdio_lim.h from
373         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
374         all subdirectories know how to make the file.  It can't be
375         in Makerules because then it gets built at top level and the
376         dependencies are wrong.)
378         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
379         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
380         stdio_lim.h.
381         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
382         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
383         * sysdeps/posix/Makefile: Removed.
384         * sysdeps/posix/mk-stdiolim.c: Removed.
385         * sysdeps/generic/bits/stdio_lim.h: Removed.
387 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
389         * argp/argp-help.c: Fixup indentation.
390         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
391         * resolv/nss_dns/dns-network.c: Likewise.
392         * resolv/res_send.c: Likewise.
393         * rt/aio_cancel.c: Likewise.
394         * rt/aio_misc.c: Likewise.
396 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
398         * Makefile (install-symbolic-link): Remove the link list file at last.
399         * Makerules (install-clean-symbolic-link-list): Removed.
401 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
403         * timezone/tst-timezone.c: Print time in UTC to get consistent
404         output.
406 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
408         * elf/rtld.c (_dl_rpath): Removed.
409         * elf/dl-support.c (_dl_path): Removed.
410         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
411         (CFLAGS-dl-support.c): Removed.
413         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
414         uses changed.
415         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
416         instead of appending it to the main map's rpath info.
417         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
418         DT_RPATHs.  This makes it effective again.
419         (decompose_rpath): Remove second parameter, callers changed.
420         (fillin_rpath): Allocate enough space in curwd.
421         (expand_dynamic_string_token): Cope with get_origin returning -1.
423 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
425         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
426         passwd.adjunct.
428         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
429         invalid password.
431 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
433         * locale/programs/locale.c: Update dates.
435 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
437         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
438         size_t is defined.  Some reordering of defenitions to make
439         maintaining this file in parallel with the linux-specific file easier.
441 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
443         * io/pwd.c (main): Add call to mtrace.
445         * malloc/mtrace.pl: Quote @ in string.
447 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
449         * posix/wordexp.c (parse_arith): Fix memory leaks.
450         (exec_comm): Likewise.
451         (parse_param): Likewise.
452         (wordexp): Likewise.
453         (exec_comm): Reduce number of function return points.
454         (parse_param): Likewise.
455         (wordexp): Likewise.
457 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
459         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
460         yield three fields, not two.  Test both parameter expansion and
461         command substitution for correct field-splitting behaviour.
463         * posix/wordexp.c (w_emptyword): New function.
464         (parse_param): Use it.
465         (exec_comm): Likewise, for consistency with the way parse_param
466         splits fields.
467         (parse_param): Fix some memory leaks.
469 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
471         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
472         Don't mark asm `volatile'.
473         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
474         from the data cache too.  Assume it isn't in the instruction cache yet.
475         (__elf_machine_fixup_plt): Clear the modified address from the caches.
477 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
479         * sysdeps/generic/segfault.c (install_handler): Install signal
480         handler with SA_ONSTACK instead of setting the stack flags to
481         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
482         defined.
484 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
486         * signal/signal.h: Fix multiple inclusion guard to cover the
487         entire file.
488         * wcsmbs/wchar.h: Remove prototype of internal function
489         __mbsrtowcs.
490         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
491         arithmetic on `void *'.
493 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
495         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
497         * posix/wordexp.c (wordexp): Perform word-splitting instead of
498         field-splitting here.
499         (wordexp): If out of memory mid-word, free the word (but still
500         leave pwordexp alone for caller to see).
501         (parse_param): Allow for zero-length fields (smarter checking of
502         memory allocation failure).
503         (w_addword): Convert NULL words to "".
504         (wordexp): Convert left-over IFS characters to blanks (like bash).
506 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
508         * configure.in: Use test -f instead of test -e.
509         Patch by John Tobey <jtobey@banta-im.com>.
511         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
512         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
513         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
514         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
515         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
516         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
517         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
518         Patches by John Tobey <jtobey@banta-im.com>.
520         * time/strftime.c (my_strftime): Delay use of *tp values until
521         latest possible point to allow partly initialized structures
522         (e.g., from strptime).
524         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
525         and NATS-SEFI.
526         Define *-routines variables for new modules.
527         (distribute): Add .c files for new modules.
528         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
529         and nats-sefi.h.
530         Add rules for header generation.
531         * iconvdata/gconv-modules: Add entries for new modules.
532         * iconvdata/iso_10367-box.c: New file.
533         * iconvdata/mac-is.c: New file.
534         * iconvdata/nats-dano.c: New file.
535         * iconvdata/nats-sefi.c: New file.
537 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
539         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
540         loader if PIC is not defined.
542 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
544         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
545         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
546         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
547         and ISO_5428.
548         Define *-routines variables for new modules.
549         (distribute): Add .c files for new modules.
550         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
551         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
552         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
553         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
554         Add rules for header generation.
555         * iconvdata/gconv-modules: Add entries for new modules.
556         * iconvdata/csn_369103.c: New file.
557         * iconvdata/cwi.c: New file.
558         * iconvdata/dec-mcs.c: New file.
559         * iconvdata/ecma-cyrillic.c: New file.
560         * iconvdata/gost_19768-74.c: New file.
561         * iconvdata/greek-ccitt.c: New file.
562         * iconvdata/greek7-old.c: New file.
563         * iconvdata/greek7.c: New file.
564         * iconvdata/inis-8.c: New file.
565         * iconvdata/inis-cyrillic.c: New file.
566         * iconvdata/inis.c: New file.
567         * iconvdata/iso6937-2.c: New file.
568         * iconvdata/iso_2033.c: New file.
569         * iconvdata/iso_5427-ext.c: New file.
570         * iconvdata/iso_5427.c: New file.
571         * iconvdata/iso_5428.c: New file.
573         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
574         entries.
575         Convert U02dd correctly.
577 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
579         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
580         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
581         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
582         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
584 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
586         * resolv/res_init.c (res_init): Handle resolv.conf file with only
587         one nameserver correctly.  Patch by HJ Lu.
589         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
590         and ANSI_X3.110.
591         Define *-routines variables for new modules.
592         (distribute): Add .c files for new modules.
593         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
594         Add rules for hedaer generation.
595         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
596         * iconvdata/ansi_x3.110.c: New file.
597         * iconvdata/asmo_449.c: New file.
598         * iconvdata/baltic.c: New file.
599         * iconvdata/iec_p27-1.c: New file.
601         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
602         entries.
603         Convert U02dc correctly.
605         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
606         * math/atest-exp2.c: Likewise.
607         * math/atest-sincos.c: Likewise.
609         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
610         is defined.
612 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
614         * string/strcoll.c: Optimize a few expressions.
615         * string/strxfrm.c: Likewise.
617 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
619         * manual/locale.texi: Fix typos.
621 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
623         * stdlib/random_r.c (__setstate_r): Allow call with same state
624         array as currently used (PR libc/774).
626         * include/limits.h: Include gcc's header even if this file is
627         found more than once before it (PR libc/778)
629         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
630         (sysdep_headers): Remove sys/debugreg.h.
631         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
632         (sysdep_headers): Add sys/debugreg.h.
633         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
634         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
636         * stdio-common/tmpnam.c: Move local static variable buf to
637         toplevel and rename to tmpnam_buffer to ease debugging.
638         Patch by Joe Keane <jgk@jgk.org>.
639         Optimize s == NULL case a bit.
641         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
642         correction.
644 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
646         * resolv/res_init.c (res_init): Initialize _res.nscount and
647         _res.nsaddr.sin_port differently for the can when no loopback
648         is available to allow immediate timeout in non-networking environments.
649         Patch by Cristian Gafton <gafton@redhat.com>.
651 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
653         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
654         BAR and not EM DASH.
655         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
656         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
657         Fixes PR libc/717.
659 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
661         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
662         for test.
663         * timezone/tst-timezone.c (tests): Fix typo in last patch.
665         * time/tzfile.c (__tzfile_read): Handle case when there are no
666         transitions.  Set __timezone based on computed offset.
667         * time/tzset.c (tzset_internal): Set __timezone before returning.
669         * time/tzset.c (tzset_internal): Optimize handling of local string
670         copy.
672 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
674         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
675         libc/776).
677 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
679         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
680         (csqrt_test): Likewise.
681         * sysdeps/powerpc/bits/fenv.h: Add parens.
683 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
685         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
686         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
687         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
689 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
691         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
692         the special `-1' pointer.
694 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
696         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
697         inline.
699 1998-09-07  Paul Eggert  <eggert@twinsun.com>
701         * time/mktime.c (__EXTENSIONS__): Define if not defined.
702         (_REENTRANT): Remove.  It has undesirable consequences in
703         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
704         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
705         is what we want.
706         * time/strftime.c: Likewise.
708 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
710         * elf/dl-error.c: Fix spelling.
712 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
714         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
715         * stdio-common/_itoa.c: Likewise.
716         * stdio-common/printf_fp.c: Likewise.
717         * stdio-common/vfscanf.c: Likewise.
718         * wcsmbs/wcstok.c: Likewise.
719         * sysdeps/generic/glob.c: Likewise.
720         * posix/getopt.c: Likewise.
721         * sysdeps/posix/getaddrinfo.c: Likewise.
722         * posix/wordexp.c: Likewise.
723         * io/ftw.c: Likewise.
724         * io/fts.c: Likewise.
725         * misc/getpass.c: Likewise.
726         * iconv/gconv_conf.c: Likewise.
727         * argp/argp-fmtstream.c: Likewise.
728         * argp/argp-help.c: Likewise.
729         * elf/dl-load.c: Likewise.
730         * locale/programs/stringtrans.c: Likewise.
731         * catgets/gencat.c: Likewise.
732         * posix/getconf.c: Likewise.
733         * iconv/gconv_conf.c: Likewise.
734         * iconv/iconv_prog.c: Likewise.
736         * string/strcoll.c: Optimize a few expressions.
737         * string/strxfrm.c: Likewise.
739 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
741         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
742         level to avoid uninit variable warning.
744 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
746         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
747         instead of _dl_default_scope[2] as argument to _dl_init_next.
749         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
750         C9x macro.
752 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
754         Fix compatibility problems introduced in last change.
755         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
756         defined.
757         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
758         -DWEAK_GMON_START to CFLAGS-initfini.s.
760         * elf/dl-object.c (_dl_new_object): Store map address in
761         _dl_loaded if _dl_loaded is NULL.
762         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
764         * sysdeps/generic/setrlimit64.c: Remove stub warning.
766 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
768         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
769         quiet.
770         * db2/btree/bt_cursor.c: Likewise.
771         * db2/common/db_region.db_c: Likewise.
772         * db2/common/db_salloc.db_c: Likewise.
773         * db2/db/db.c: Likewise.
774         * db2/db/db_rec.c: Likewise.
775         * db2/hash/hash.c: Likewise.
776         * db2/hash/hash_page.c: Likewise.
777         * db2/hash/hash_rec.c: Likewise.
778         * db2/log/log_findckp.c: Likewise.
779         * db2/log/log_get.c: Likewise.
780         * db2/log/log_put.c: Likewise.
781         * db2/mp/mp_fget.c: Likewise.
782         * db2/mp/mp_fput.c: Likewise.
783         * db2/mp/mp_region.c: Likewise.
784         * stdlib/strtol.c: Likewise.
785         * string/strcoll.c: Likewise.
786         * string/strxfrm.c: Likewise.
787         * argp/argp-help.c: Likewise.
788         * argp/argp-parse.c: Likewise.
789         * resolv/res_debug.c: Likewise.
791 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
793         * math/tgmath.h (scalb): Only define for __USE_MISC or
794         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
796 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
798         * libio/stdio.h: Fix comment.
800         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
801         __USE_ISOC9X.
803 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
805         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
807         * elf/dl-open.c: Quiet -Wparentheses warnings.
808         * iconvdata/johab.c: Likewise.
809         * iconvdata/uhc.c: Likewise.
810         * inet/inet_net.c: Likewise.
811         * io/fts.c: Likewise.
812         * locale/newlocale.c: Likewise.
813         * misc/getttyent.c: Likewise.
814         * misc/mntent_r.c: Likewise.
815         * misc/ttyslot.c: Likewise.
816         * nscd/nscd_conf.c: Likewise.
817         * nss/nsswitch.c: Likewise.
818         * resolv/gethnamaddr.c: Likewise.
819         * resolv/nsap_addr.c: Likewise.
820         * resolv/res_debug.c: Likewise.
821         * stdio-common/_itoa.c: Likewise.
822         * stdlib/strtod.c: Likewise.
823         * string/strverscmp.c: Likewise.
824         * sunrpc/svc.c: Likewise.
825         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
826         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
827         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
828         * sysdeps/posix/getaddrinfo.c: Likewise.
830 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
832         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
833         for use of global scope.
834         * elf/dlvsym.c (dlvsym_doit): Likewise.
836 1998-09-02  Paul Eggert  <eggert@twinsun.com>
838         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
839         copy the redundant bytes at the end of the format as-is; don't
840         just copy their first byte and then rescan, as that might get
841         us an encoding error.
842         Account correctly for the length of multibyte sequences in the
843         format.
845 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
847         * posix/wordexp-test.c: Add tests for different IFS values.
848         Change unquoted-newline test so that newline is not in IFS.
850         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
851         determining IFS characters.  Return WRDE_BADCHAR for unquoted
852         special characters _except_ if they are separators.
854 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
856         * include/tgmath.h: New file.
858         * libio/stdio.h: Correct reversed #ifs.
859         Patch by Zack Weinberg.
861         * manual/creature.texi: Better explain reason for feature select
862         macros.
863         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
865 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
867         * include/alloca.h: Add multiple-inclusion guard.
868         * include/db.h: Likewise.
869         * include/db_185.h: Likewise.
870         * include/dlfcn.h: Likewise.
871         * include/fcntl.h: Likewise.
872         * include/grp.h: Likewise.
873         * include/libintl.h: Likewise.
874         * include/mntent.h: Likewise.
875         * include/pwd.h: Likewise.
876         * include/sched.h: Likewise.
877         * include/search.h: Likewise.
878         * include/setjmp.h: Likewise.
879         * include/shadow.h: Likewise.
880         * include/signal.h: Likewise.
881         * include/stdio.h: Likewise.
882         * include/stdlib.h: Likewise.
883         * include/string.h: Likewise.
884         * include/termios.h: Likewise.
885         * include/time.h: Likewise.
886         * include/ulimit.h: Likewise.
887         * include/utmp.h: Likewise.
888         * include/wchar.h: Likewise.
889         * include/sys/file.h: Likewise.
890         * include/sys/gmon.h: Likewise.
891         * include/sys/ioctl.h: Likewise.
892         * include/sys/mman.h: Likewise.
893         * include/sys/resource.h: Likewise.
894         * include/sys/select.h: Likewise.
895         * include/sys/socket.h: Likewise.
896         * include/sys/statfs.h: Likewise.
897         * include/sys/time.h: Likewise.
898         * include/sys/times.h: Likewise.
899         * include/sys/wait.h: Likewise.
901 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
903         * version.h (VERSION): Bump to 2.0.96.
905         Rewrite runtime linker to be truly thread-safe.  There is now no
906         global variable specifying the scope.  We create all needed
907         scopes at the time the link maps are created.
908         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
909         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
910         l_symbolic_searchlist, l_scope, and l_local_scope elements in
911         struct link_map.
912         * elf/dl-close.c: Rewritten accordingly.
913         * elf/dl-deps.c: Likewise.
914         * elf/dl-error.c: Likewise.
915         * elf/dl-init.c: Likewise.
916         * elf/dl-load.c: Likewise.
917         * elf/dl-lookup.c: Likewise.
918         * elf/dl-object.c: Likewise.
919         * elf/dl-open.c: Likewise.
920         * elf/dl-reloc.c: Likewise.
921         * elf/dl-runtime.c: Likewise.
922         * elf/dl-support.c: Likewise.
923         * elf/dl-symbol.c: Likewise.
924         * elf/dl-version.c: Likewise.
925         * elf/dlsym.c: Likewise.
926         * elf/dlvsym.c: Likewise.
927         * elf/ldsodefs.h: Likewise.
928         * elf/rtld.c: Likewise.
929         * iconv/gconv_dl.c: Likewise.
930         * nss/nsswitch.c: Likewise.
931         * sysdeps/i386/dl-machine.h: Likewise.
932         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
934         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
935         Define RTLD_DEFAULT.
937 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
939         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
940         __getopt_clean_environment with __environ instead of envp.
942 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
944         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
946         * string/argz-extract.c (__argz_extract): Add de-consting cast for
947         setting results.
949         * string/argz.h (argz_next): Add de-consting cast for return.
950         * string/argz-next.c (__argz_next): Likewise.
952         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
953         Don't add netinet/udp.h, netinet/ip_icmp.h here.
954         * sysdeps/gnu/Makefile: Do it here instead.
955         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
956         * sysdeps/gnu/Dist: ... to here.
958         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
959         sysdeps/unix/sysv/linux/netinet/tcp.h,
960         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
962 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
964         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
965         * string/argz-next.c, string/argz-extract.c: Fix defns.
967 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
969         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
971         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
972         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
973         * sysdeps/generic/sysd-stdio.c: Likewise.
975 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
977         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
978         (_dl_map_object_from_fd): Make NAME argument const.
979         Remove last parameter in _dl_new_object call.
980         (print_search_path): Correct construction of composed path name.
981         (_dl_map_object): Prevent looking at RPATH of the main map twice.
982         Remove last parameter in _dl_new_object call.
983         * elf/dl-object.c: Remove last parameter.  Determine whether create
984         origin entry based on empty realname.  Handle file in root directory
985         correctly.
986         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
987         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
988         Remove last parameter in _dl_new_object call.
989         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
990         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
992 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
994         * elf/dl-close.c (_dl_close): Add more comments and correct some.
995         Free l_searchlist and l_dupsearchlist.
997         * debug/catchsegv.sh: Add one more pair of quotes.
999 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
1001         * elf/dl-load.c (add_name_to_object): Change return type to void and
1002         make NAME parameter const.  Allocate room for NAME in same memory
1003         block used for l_libname entry.
1004         (_dl_map_object_from_fd): Don't free NAME on failure.
1005         (map_segment): Pass SONAME to add_name_to_object, not a copy.
1006         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
1007         _dl_map_object_from_fd.
1008         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
1009         memory block used for l_libname entry.
1010         * elf/dl-close.c: Adjust free()ing for this change.
1012 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
1014         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
1016         * malloc/mtrace.c: Add bug report address.  Update email address.
1017         Add more @XXX@ to print correct address size.
1019         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
1020         really initialized.
1022         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
1023         for munmap call instead of examining phdr again.
1024         Free all malloc()ed strings and arrays.
1026 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1028         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
1029         dl-machine.h.
1030         * sysdeps/powerpc/dl-machine.c: New file.
1031         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
1032         files.  Revise ELF_PREFERRED_ADDRESS to take account of
1033         the new mapping information (fixes bug involving huge bloated
1034         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
1035         * sysdeps/powerpc/dl-start.S: New file.
1037         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
1038         l_map_end.
1039         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
1040         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
1041         others.  Call elf_dynamic_do_##reloc only once (to save even more
1042         space).
1043         * elf/link.h: Add new members l_map_start and l_map_end to keep
1044         track of the memory map.
1045         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
1046         the executable.
1048 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
1050         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
1051         Reported by Andreas Jaeger.
1053         * posix/glob.h: Use __size_t instead of size_t in definitions and
1054         make sure this is defined.
1056 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
1058         * manual/locale.texi: Almost complete rewrite.  Document more functions
1059         and functionality.
1060         * manual/arith.texi: Correct reference.
1061         * manual/string.texi: Pretty printing.
1063         * manual/texinfo.tex: Update from last available version.
1065 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
1067         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
1068         invalid password.
1069         (_nss_nis_getpwuid_r): Likewise.
1070         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
1072         * inet/rcmd.c: Implement netgroup support.
1073         Patch by Dick Streefland <dick_streefland@tasking.com>.
1075 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1077         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
1078         object on the list is removed.  Don't use this code for PIC.
1079         Reported by HJ Lu [PR libc/770].
1081 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
1083         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
1085         * include/stdio.h: Add __vsscanf.
1087         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
1088         __USE_ISOC9X.
1089         Remove __vsscanf declaration.
1090         Always declare fgetpos and fsetpos.
1092         * math/math.h: Define isinf as macro.
1093         * math/bits/mathcalls.h: Change to declare __isinf all the time.
1094         Don't declare scalb for ISO C 9x.
1096         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
1098         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
1100         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
1101         sys/ucontext.h.
1103         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
1104         macros.
1106 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1108         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
1109         Reported by jreising@frequentis.com [PR libc/767].
1111 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1113         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
1114         fl.l_start at beginning of function.
1115         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
1117 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1119         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
1120         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
1122         * nscd/nscd.init: Make it work in RedHat systems.
1123         Patch by Christian Gafton.
1125 1998-08-29  Philip Blundell  <philb@gnu.org>
1127         * catgets/Makefile: Don't try to run test programs when
1128         cross-compiling.
1130 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1132         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
1133         Reported by Zack Weinberg.
1135 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1137         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
1138         * elf/Makefile (distribute): Remove ldd.sh.in.
1140 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1142         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
1143         variable.
1145 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
1147         * sysdeps/i386/register-dump.h: Move to ...
1148         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
1150 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
1152         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
1153         with load address, not map address.
1154         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
1155         parameter and use this value.
1156         * sysdeps/arm/dl-machine.h: Likewise.
1157         * sysdeps/i386/dl-machine.h: Likewise.
1158         * sysdeps/m68k/dl-machine.h: Likewise.
1159         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
1160         parameter.
1161         * sysdeps/powerpc/dl-machine.h: Likewise
1162         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
1163         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
1165 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
1167         * elf/rtld.c (process_envvars): Fix copy&paste error.
1169         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
1170         memalign hook.
1171         (realloc_hook_ini): Don't overwrite memalign hook.
1172         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
1173         Reported by Philippe Troin <phil@fifi.org>.
1175         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
1176         Patch by Philippe Troin <phil@fifi.org>.
1178 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1180         * sysdeps/generic/segfault.c (install_handler): Protect the
1181         non-POSIX signals with #ifdef.
1182         (catch_segfault): Add missing mode parameter for open.
1183         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
1184         other termination signals.
1186 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1188         * debug/Makefile (distribute): Add register-dump.h.
1190 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1192         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
1194 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
1196         * elf/Makefile (distribute): Add dl-origin.h.
1197         * sysdeps/generic/dl-origin.h: New file.
1198         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
1199         * elf/link.h (struct link_map): Add l_origin field.
1200         * elf/dl-load.c (expand_dynamic_string_token): New function.
1201         (decompose_path): Remove WHERE argument, take link map pointer instead.
1202         Call expand_dynamic_string_token instead of local_strdup to make copy
1203         of rpath.
1204         (_dl_init_paths): Call decompose_path with correct argument.
1205         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
1206         not defined.
1207         Check EI_OSABI and EI_ABIVERSION fields in header.
1208         Call _dl_new_object with extra argument.
1209         (_dl_map_object): Call decompose_path with correct argument.
1210         Call expand_dynamic_string_token instead of local_strdup to also
1211         expand DST.
1212         Call _dl_new_object with extra argument.
1213         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
1214         but the main one if new argument is nonzero.
1215         * elf/ldsodefs.h: Adjust for _dl_new_object change.
1216         * elf/dl-support.c: Define _dl_origin_path.
1217         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
1218         (dl_main): Call _dl_new_object with extra argument.
1220         * elf/dl-close (_dl_close): Free l_name and l_origin.
1222         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
1223         modifier in asm, not c.
1225         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
1226         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
1228 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
1230         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
1231         variable so that map can be freed.
1232         Reported by Philippe Troin <phil@fifi.org>.
1234         * elf/dl-open.c (dl_open_worker): Correct test for extending global
1235         scope array.
1236         Patch by Philippe Troin <phil@fifi.org>.
1238 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1240         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
1241         Don't call writev() with a 100-element vector.
1242         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
1243         return address.
1245         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
1246         In particular, set __libc_stack_end.
1247         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
1248         undefined.  Fix copyright notice.
1250 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1252         * math/Makefile (gmp-objs): New variable.
1253         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
1254         Depend on it.
1255         (tests): Add atest-exp atest-sincos atest-exp2.
1256         (tests-static): Remove atest-exp atest-sincos atest-exp2.
1258 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
1260         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
1261         to toplevel.
1262         (_dl_unload_cache): New function.
1263         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
1264         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
1265         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
1267         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
1268         Correct comment for O_LARGEFILE.
1269         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
1270         Change O_LARGEFILE to correct value.
1272 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
1274         * libio/iogetline.c (_IO_getline_info): Don't read anything for
1275         N == 0.  Patch by HJ Lu.
1277 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
1279         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
1281 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
1283         * argp/argp.h: Use __inline__ not inline.
1285         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
1286         an input register as being clobbered.
1287         * sysdeps/i386/memset.c (memset): Likewise.
1288         * sysdeps/i386/bzero.c (__bzero): Likewise.
1289         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
1291 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1293         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
1294         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
1296 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
1298         * debug/catchsegv.sh: Handle text preceding backtrace better.
1299         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
1300         to be installed for other signals than SIGSEGV.
1301         * sysdeps/generic/register-dump.h: New file.
1302         * sysdeps/i386/register-dump.h: New file.
1303         * sysdeps/powerpc/register-dump.h: New file.
1305         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
1306         sigcontextinfo.h.
1307         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
1309 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
1311         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
1313 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1315         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
1316         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
1317         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
1318         getresuid, getresgid.
1320 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
1322         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
1323         pointer in userland.
1325 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1327         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
1328         and fix value.
1330 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1332         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
1333         over arguments Bourne shell compatible.  Don't exit unsuccessfully
1334         if nonelf returns successfully.  Avoid duplicating most of the
1335         script.
1336         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
1337         around $file.
1339 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1341         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
1342         sys/reg.h.
1343         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
1344         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
1346 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1348         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
1349         __modify_ldt and modify_ldt.
1350         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
1352         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1353         Use orl $-1 instead of movl $-1 to save two bytes.
1354         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
1355         Likewise.
1357 1998-08-17  H.J. Lu  <hjl@gnu.org>
1359         * libio/Versions (_IO_do_write, _IO_file_attach,
1360         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1361         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1362         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1363         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
1365         * libio/fileops.c (_IO_do_write, _IO_file_attach,
1366         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1367         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1368         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1369         _IO_file_write, _IO_file_xsputn): Change the prefix to
1370         "_IO_new_". Added to GLIBC_2.1.
1372         * libio/libioP.h (_IO_do_write, _IO_file_attach,
1373         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1374         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1375         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1376         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
1377         "_IO_new_".
1379         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
1380         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1381         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1382         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1383         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
1385 1998-08-23  Richard Henderson  <rth@cygnus.com>
1387         * Makeconfig (LDFLAGS): Remove.
1389         * csu/initfini.c: Return to .text before __gmon_start__.
1391         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
1392         (STO_MIPS_*): Rename from STO_*.
1393         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
1394         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
1396         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
1397         (main): e3s is negative on zero.
1398         * math/atest-exp2.c: Likewise.
1399         * math/atest-sincos.c: Likewise.
1401 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1403         * Makerules (install): Add comment about absolute paths.
1405 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1407         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
1408         array to NUL to handle maxlen==1 case correctly.
1409         Patch by HJ Lu.
1411 1998-08-23  Richard Henderson  <rth@cygnus.com>
1413         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
1414         * sysdeps/alpha/elf/crtend.S: Likewise.
1415         * sysdeps/alpha/elf/start.S: Likewise.
1417         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
1418         non-standard pv usage.
1420         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
1421         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
1422         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1423         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1424         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
1425         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1426         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1427         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1428         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1429         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1430         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1432         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
1433         a finite non-denormal, deferring to the full IEEE version otherwise.
1435         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
1436         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
1437         * sysdeps/alpha/fpu/s_floor.c: New.
1438         * sysdeps/alpha/fpu/s_floorf.c: New.
1439         * sysdeps/alpha/fpu/s_ceil.c: New.
1440         * sysdeps/alpha/fpu/s_ceilf.c: New.
1442 1998-08-22  Philip Blundell  <philb@gnu.org>
1444         * sysdeps/arm/bits/string.h: New file.
1446 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1448         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
1449         document it.
1451         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
1452         test for recent Linux 2.1.100+ headers.
1454 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1456         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
1458 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
1460         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
1462 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1464         * Makefile (elf/ldso_install): Put back.  The problem still persists.
1465         * elf/Makefile (ldso_install): Likewise.
1467 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1469         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
1470         create weak alias.
1471         * include/db.h: Declare __nss_db_open.
1472         * db2/Versions: Export it.
1474         * db2/makedb.c: Convert to use db2 API.
1475         * nss/nss_db/db-XXX.c: Likewise.
1476         * nss/nss_db/db-netgrp.c: Likewise.
1477         * nss/nss_db/db-alias.c: Likewise.
1478         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
1480 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1482         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1483         sys_setresuid, already built automatically (or not).
1484         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
1485         instead of __syscall_setresuid and add back setresuid.
1486         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
1487         __syscall_setresuid.
1489 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1491         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
1493 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
1495         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
1496         BASH-ONLY marked region.
1497         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
1499 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
1501         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
1502         _IO_SYSSEEK fails.
1504         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
1506         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
1507         element.
1509 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
1511         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
1512         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
1513         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
1514         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
1515         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
1516         those magic comments, and to use /bin/sh for @BASH@.
1517         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
1518         * elf/ldd.sh.in: File removed.
1520 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
1522         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
1523         cast them to unsigned long int.
1524         * pwd/putpwent.c (putpwent): Likewise.
1525         Patch by John Tobey <jtobey@banta-im.com>.
1527 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
1529         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
1530         _IO_pos_BAD.
1532 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
1534         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
1535         _IO_SYSSEEK fails.
1537 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
1539         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
1540         Add umount and umount2.
1541         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
1542         * sysdeps/unix/sysv/linux/umount.S: New file.
1543         * sysdeps/unix/sysv/linux/umount2.S: New file.
1544         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
1545         Define MNT_FORCE.
1547         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
1548         Add sys/sendfile.h.
1549         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
1550         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
1552         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
1554         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
1555         sendfile.
1557 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
1559         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
1560         * elf/ldd.bash.in: Likewise.
1562         * elf/sln.c: Avoid warning for no main prototype.
1564         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
1565         O_WRITE.
1566         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1567         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1569         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
1570         F_GETSIG.
1571         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
1572         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1573         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1575 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
1577         * sysdeps/arm/fpu/ieee754.h: Move to...
1578         * sysdeps/arm/ieee754.h: ... here.
1580         * sysdeps/arm/__longjmp.S: Put return value in correct register.
1581         Don't set the condition flags unnecessarily.
1582         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
1583         registers correctly.
1585         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
1586         (patch from Scott Bambrough).
1588         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
1590         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
1591         NULL, just call it unconditionally.
1592         (__gmon_start__): Provide stub version as a weak symbol.
1594 1998-07-30  Philip Blundell  <philb@gnu.org>
1596         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
1597         by Scott Bambrough)
1599         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
1600         like `@' in .type directives.
1602         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
1603         * sysdeps/arm/bsd-_setjmp.S: Likewise.
1605         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
1607 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1609         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
1610         (F_GETOWN): Likewise.
1612         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
1613         Linux 2.1.117).
1615 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
1617         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
1618         already defined.
1620 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
1622         * include/features.h: Define __USE_EXTERN_INLINES for recent
1623         enough gcc.
1624         * argp/argp.h: Define extern inline functions only if
1625         __USE_EXTERN_INLINES is defined.
1626         * libio/stdio.h: Likewise.
1627         * math/math.h: Likewise.
1628         * stdlib/stdlib.h: Likewise.
1629         * string/argz.h: Likewise.
1630         * sysdeps/generic/bits/sigset.h: Likewise.
1631         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
1632         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
1633         * sysdeps/wordsize-32/inttypes.h: Likewise.
1634         * sysdeps/wordsize-64/inttypes.h: Likewise.
1635         * wcsmbs/wchar.h: Likewise.
1637         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
1638         to allow compilation without optimization.
1640 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1642         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
1643         more entries.
1644         * nis/nss_compat/compat-initgroups.c: Likewise.
1645         * nis/nss_compat/compat-pwd.c: Likewise.
1646         * nis/nss_compat/compat-spwd.c: Likewise.
1647         * nis/nss_nis/nis-alias.c: Likewise.
1648         * nis/nss_nis/nis-ethers.c: Likewise.
1649         * nis/nss_nis/nis-grp.c: Likewise.
1650         * nis/nss_nis/nis-hosts.c: Likewise.
1651         * nis/nss_nis/nis-initgroups.c: Likewise.
1652         * nis/nss_nis/nis-network.c: Likewise.
1653         * nis/nss_nis/nis-proto.c: Likewise.
1654         * nis/nss_nis/nis-pwd.c: Likewise.
1655         * nis/nss_nis/nis-rpc.c: Likewise.
1656         * nis/nss_nis/nis-service.c: Likewise.
1657         * nis/nss_nis/nis-spwd.c: Likewise.
1659         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
1661         * nis/ypclnt.c: Try binding dir only first time, could be to old.
1663         * nis/yp_xdr.c: Remove 1024 byte limit.
1664         * nis/ypupdate_xdr.c: Likewise.
1666         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
1667         wrong data.
1669 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
1671         * Rules (binaries-static, binaries-shared static pattern rules):
1672         Depend on lib%, not just libc%, from $(link-libc{,-static}).
1674         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
1675         this here, overriding Makeconfig generic value so we link against
1676         the RPC libs.
1678 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
1680         * posix/tstgetopt.c (options): Add NULL entry at end
1681         Patch by Adrian Miranda <ade@psg.com>.
1683 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
1685         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
1686         to 9.
1688 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
1690         * elf/elf.h: Add PPC Diab relocations.
1692         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
1694 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
1696         * manual/texinfo.tex: Update.
1698 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
1700         * sysdeps/powerpc/backtrace.c: New file.
1702 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
1704         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
1705         sigjmp_save.
1706         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
1708 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1710         * Makefile (install-symbolic-link): Fix spelling.
1712 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1714         * elf/elf.h (SHT_HIOS): Fix value.
1716 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1718         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
1719         part of the expansion, this is undefined by the standard.
1721 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
1723         * posix/getconf.c: Add support for systems with incomplete confname.h.
1725         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
1727         * sysdeps/posix/wait3.c: Make it work.
1729 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1731         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
1732         (elf/ldso_install): Remove.
1734         * elf/Makefile (distribute): Add sln.c.
1735         (others): Add sln.
1736         (others-static): Add sln.
1737         (install-rootsbin): Add sln.
1738         (others-static): Add sln.
1739         (ldso_install): Remove.
1741 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1743         * Makerules (install-clean-symbolic-link-list): Make phony.
1744         * Makefile (install-symbolic-link): Make phony.  Depend on
1745         subdir_install for parallel makes.
1748 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
1750         * elf/Makefile (distribute): Add sln.c
1752 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
1754         * elf/sln.c: New file.
1756         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
1757         (install-clean-symbolic-link-list): New target.
1758         (install): Depend on install-clean-symbolic-link-list.
1759         (make-shlib-link): Changed for $(symbolic-link-list).
1761         * Makefile (install-symbolic-link): New target.
1762         (install): Depend on install-symbolic-link.
1764 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
1766         * include/unistd.h: Protect against multiple inclusion.
1768         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
1769         is defined, not is glob is defined.
1770         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
1772 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
1774         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
1775         xdr_string for ut_line, ut_name and ut_host.
1777 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1779         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
1780         /var/mail in accordance with FHS 2.0.
1781         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
1783 1998-08-12  Richard Henderson  <rth@cygnus.com>
1785         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
1786         Update aliases for cancelation.
1788         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
1789         playing with symbol versions.
1791 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
1793         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
1794         multiple inclusion protection.
1795         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
1796         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
1797         define all these to 1.
1798         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
1800 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
1802         * sysdeps/mach/usleep.c: Include <unistd.h>.
1803         (usleep): Return void.
1805 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
1807         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
1808         decl to inhibit warning in if_freenameindex defn.
1810         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
1812         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
1814         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
1815         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
1816         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
1817         * sysdeps/mach/usleep.c: Likewise.
1819         * sysdeps/mach/hurd/bind.c (bind): Add a const.
1821         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
1822         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
1823         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
1824         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
1825         * sysdeps/mach/usleep.c (usleep): Likewise.
1826         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
1827         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
1828         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1829         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
1831 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
1833         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
1834         (glob64): Fix typo.
1836         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
1837         %p arg to fprintf, since `void *' is the right type already.
1839 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
1841         * sysdeps/mach/hurd/getcwd.c
1842         (_hurd_canonicalize_directory_name_internal): Do not loop forever
1843         for unknown root directories.
1844         (__getcwd): Return NULL when the current root directory could not
1845         be reached.
1847 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
1849         * string/strsignal.c (strsignal): Count real-time signals from zero.
1852 See ChangeLog.8 for earlier changes.