Update.
[glibc.git] / ChangeLog
blob10b7215b99a8cb5c23a9641031daf0be49ccbf9d
1 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
3         * libio/fileops.c (_IO_new_file_underflow): Before allocating
4         buffer make sure the pushback buffer is destroyed.
5         (_IO_new_file_seekoff): Likewise.
6         If mode==0 quit early with the result.
7         Clear OEF flag after successful fseek.
8         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
9         * libio/ftello.c (ftello): Add offset from original buffer if
10         stream has pushed back characters.
11         * libio/ftello64.c (ftello64): Likewise.
12         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
13         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
14         * libio/ioftell.c (_IO_ftell): Likewise.
15         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
16         and _IO_save_ptr.
17         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
18         (_IO_default_pbackfail): Only stored push back character in original
19         buffer if it is the same as the one in the file at this position.
20         * libio/iofclose.c: Free backup buffer if one is available.
21         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
22         mode!=0.
24         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
26         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
28         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
30 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
32         * login/programs/pt_chown.c (more_help): Correct message that
33         describes the purpose of the program.
35         * login/openpty.c: Do not include pty-private.h.
36         (pts_name): New function.  Return name of slave pseudo terminal in
37         an allocated buffer if necessary.
38         (openpty): Use pts_name to get name of the slave end of the pseudo
39         terminal pair.
41         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
42         pts_name before return.
44 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
46         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
48 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
50         * login/openpty.c: Include pty-private.h instead of
51         pty-internal.h.
53 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
55         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
57 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
59         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
60         recent ld.so changes.
61         (elf_machine_runtime_setup): Correct behaviour when profiling.
63 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
65         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
66         Patch by John Tobey <jtobey@banta-im.com>.
68 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
70         * login/pty-internal.h: Removed.  Moved constants related to the
71         `grantpt' helper program protocol to ...
72         * login/pty-private.h: ... here.  New file.
73         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
74         to make the function work with kernels >= 2.1.115.
75         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
76         version if using the cloning device fails.
77         * sysdeps/unix/sysv/linux/grantpt.c: New file.
78         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
79         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
80         use by Linux specific code.
81         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
82         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
83         function.  (grantpt): Use pts_name, check group and permission
84         mode in addition to owner.  Try to set the owner, group and
85         permission mode first without invoking the helper program.
86         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
87         internationalization support.  Use symbolic constants instead of
88         hardwired numbers for permission mode.
89         * sysdeps/unix/bsd/ptsname.c: New file.
91 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
93         * posix/wordexp-test.c: Undo last change.
95         * posix/wordexp.c: Undo last change.
97 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
99         * nscd/grpcache.c (save_grp): Partly undo last change.
101         * nscd/pwdcache.c (save_pwd): Undo last change.
103 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
105         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
106         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
108 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
110         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
111         Add profiling support.
112         (TRAMPOLINE_TEMPLATE): New macro.
113         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
114         (RTLD_START): Prettify, and set __libc_stack_end properly.
115         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
116         and check for sym being NULL instead.
117         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
118         of stack space.
119         * sysdeps/sparc/sparc64/lshift.S: Likewise.
120         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
121         * sysdeps/sparc/sparc64/rshift.S: Likewise.
122         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
123         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
124         MEDANY code model %g4 usage.
125         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
126         MEDANY code model %g4 usage.
127         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
128         code model address formation.
129         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
130         include elf/ldsodefs.h
131         (DT_SPARC): Remove.
132         (elf_machine_matches_host): It is now EM_SPARCV9.
133         (elf_machine_dynamic): Clean up to remove ugly cast.
134         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
135         new PLT formats.
136         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
137         Prettify rest of function.
138         [R_SPARC_COPY]: Check for sym being NULL.
139         [R_SPARC_32]: Handle it.
140         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
141         MEDMID code model.
142         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
143         MEDANY code model.
144         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
145         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
146         Add profiling support.
147         (TRAMPOLINE_TEMPLATE): New macro.
148         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
149         (RTLD_START): Prettify and set __libc_stack_end.
150         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
151         Define.
152         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
153         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
154         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
155         unused variable scratch.
156         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
157         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
158         Declare.
159         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
160         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
161         old format kernel sigaction structures.
162         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
163         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
164         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
165         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
166         ucontext include.
167         (_JMPBUF_UNWINDS): Define.
168         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
169         statfs64 structure, which is exactly the same as the normal one.
170         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
171         of stack.  Use correct syscall trap number.  Add branch prediction
172         settings to branch instructions.  Remove old MEDANY code model %g4
173         referneces for non-PIC.
174         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
175         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
176         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
177         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
178         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
179         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
180         __libc_longjmp and __libc_siglongjmp strong aliases.
181         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
182         Also define to __no__readdir64_decl around readdir.c inclusion.
183         (__readdir64): Add strong alias.
184         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
185         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
186         Set strong and weak names properly.
188 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
190         * manual/Makefile (AWK): Default to gawk if standalone.
192 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
194         * Makefile (distribute): Undo last change.
195         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
196         for sysdep headers.
197         (+subdir-headers): Removed, unused.
199 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
201         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
202         $(do-install).
204 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
206         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
207         absolute name in $(config-sysdirs), can never happen.
208         ($(+sysdir_pfx)sysd-rules): Likewise.
209         * Makeconfig (full-config-sysdirs): Likewise.
210         (all-Subdirs-files): Prepend $(..).
212         * configure.in: Don't check for absolute name in $add_ons_pfx, can
213         not happen.  Let --enable-add-ons=yes work if no add-ons actually
214         exist.
216 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
218         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
219         continuations in command.
221 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
223         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
225 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
227         * posix/wordexp-test.c: If expansion or substitution occurs
228         anywhere in a word, the entire word is subject to field-splitting.
230         * posix/wordexp.c (parse_glob): Look for end of word instead of
231         end of field when deciding what to glob.
232         (field_split_word): New function, now the only place where
233         field-splitting is performed.
234         (parse_dollars): New parameter - tell the caller if
235         field-splitting should be performed on this word.
237         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
238         succeeded (or failed with WRDE_NOSPACE).
240 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
242         * posix/wordexp.c (wordexp): Don't convert IFS characters to
243         blanks.
245         * posix/wordexp-test.c: Words not the result of expansion or
246         substitution should remain unchanged.
248 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
250         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
251         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
253 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
255         * stdio-common/Makefile: Include Makeconfig so that
256         $(inst_includedir) is defined.
258 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
260         * io/pwd.c: Include <mcheck.h>.
262 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
264         * nscd/pwdcache.c (save_pwd): Correct copying.
265         * nscd/grpcache.c (save_grp): Likewise.
267 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
269         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
270         (free_pwd): Adjust for this change.
271         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
272         (free_grp): Adjust for this change.
274 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
276         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
278 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
280         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
281         (install-others): Add bits/stdio_lim.h.
282         Add rule to install bits/stdio_lim.h.
284         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
286         * Makefile (distribute): Add include/sys/mman.h.
288         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
289         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
290         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
292         * grp/initgroups.c: Include stdlib.h.
293         Patch by Zack Weinberg.
295 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
297         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
298         for field-splitting :abc: is correct, and that two fields should
299         result. Revert tests to reflect this.
301         * posix/wordexp.c (w_emptyword): Remove function.
302         (exec_comm): Don't use w_emptyword.
303         (parse_param): Likewise.
305 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
307         * sysdeps/arm/fpu/Dist: Moved to...
308         * sysdeps/arm/Dist: ...here.
309         * sysdeps/posix/Dist: Removed.
310         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
311         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
313 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
315         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
317 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
319         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
321 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
323         * libc-work/nis/nss_nisplus/nisplus-service.c
324         (_nss_nisplus_parse_servent): Convert port in network byte order.
326 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
328         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
329         to provide only malloc and calloc.
330         * include/stdlib.h: Support the above.
331         * string/bits/string2.h: Use __need_malloc_and_calloc when
332         including stdlib.h.
333         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
335         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
336         * iconvdata/iso646.c: Include <stdlib.h>.
338 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
340         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
341         * sysdeps/libm-ieee754/w_pow.c: Likewise.
342         * sysdeps/libm-ieee754/w_powf.c: Likewise.
343         * sysdeps/libm-ieee754/w_powl.c: Likewise.
345 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
347         * stdio-common/stdio_lim.h.in: New file.  All parameters
348         are adjustable at build time.
349         * Rules: Add a rule to build bits/stdio_lim.h from
350         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
351         all subdirectories know how to make the file.  It can't be
352         in Makerules because then it gets built at top level and the
353         dependencies are wrong.)
355         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
356         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
357         stdio_lim.h.
358         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
359         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
360         * sysdeps/posix/Makefile: Removed.
361         * sysdeps/posix/mk-stdiolim.c: Removed.
362         * sysdeps/generic/bits/stdio_lim.h: Removed.
364 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
366         * argp/argp-help.c: Fixup indentation.
367         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
368         * resolv/nss_dns/dns-network.c: Likewise.
369         * resolv/res_send.c: Likewise.
370         * rt/aio_cancel.c: Likewise.
371         * rt/aio_misc.c: Likewise.
373 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
375         * Makefile (install-symbolic-link): Remove the link list file at last.
376         * Makerules (install-clean-symbolic-link-list): Removed.
378 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
380         * timezone/tst-timezone.c: Print time in UTC to get consistent
381         output.
383 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
385         * elf/rtld.c (_dl_rpath): Removed.
386         * elf/dl-support.c (_dl_path): Removed.
387         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
388         (CFLAGS-dl-support.c): Removed.
390         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
391         uses changed.
392         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
393         instead of appending it to the main map's rpath info.
394         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
395         DT_RPATHs.  This makes it effective again.
396         (decompose_rpath): Remove second parameter, callers changed.
397         (fillin_rpath): Allocate enough space in curwd.
398         (expand_dynamic_string_token): Cope with get_origin returning -1.
400 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
402         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
403         passwd.adjunct.
405         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
406         invalid password.
408 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
410         * locale/programs/locale.c: Update dates.
412 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
414         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
415         size_t is defined.  Some reordering of defenitions to make
416         maintaining this file in parallel with the linux-specific file easier.
418 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
420         * io/pwd.c (main): Add call to mtrace.
422         * malloc/mtrace.pl: Quote @ in string.
424 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
426         * posix/wordexp.c (parse_arith): Fix memory leaks.
427         (exec_comm): Likewise.
428         (parse_param): Likewise.
429         (wordexp): Likewise.
430         (exec_comm): Reduce number of function return points.
431         (parse_param): Likewise.
432         (wordexp): Likewise.
434 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
436         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
437         yield three fields, not two.  Test both parameter expansion and
438         command substitution for correct field-splitting behaviour.
440         * posix/wordexp.c (w_emptyword): New function.
441         (parse_param): Use it.
442         (exec_comm): Likewise, for consistency with the way parse_param
443         splits fields.
444         (parse_param): Fix some memory leaks.
446 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
448         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
449         Don't mark asm `volatile'.
450         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
451         from the data cache too.  Assume it isn't in the instruction cache yet.
452         (__elf_machine_fixup_plt): Clear the modified address from the caches.
454 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
456         * sysdeps/generic/segfault.c (install_handler): Install signal
457         handler with SA_ONSTACK instead of setting the stack flags to
458         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
459         defined.
461 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
463         * signal/signal.h: Fix multiple inclusion guard to cover the
464         entire file.
465         * wcsmbs/wchar.h: Remove prototype of internal function
466         __mbsrtowcs.
467         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
468         arithmetic on `void *'.
470 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
472         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
474         * posix/wordexp.c (wordexp): Perform word-splitting instead of
475         field-splitting here.
476         (wordexp): If out of memory mid-word, free the word (but still
477         leave pwordexp alone for caller to see).
478         (parse_param): Allow for zero-length fields (smarter checking of
479         memory allocation failure).
480         (w_addword): Convert NULL words to "".
481         (wordexp): Convert left-over IFS characters to blanks (like bash).
483 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
485         * configure.in: Use test -f instead of test -e.
486         Patch by John Tobey <jtobey@banta-im.com>.
488         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
489         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
490         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
491         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
492         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
493         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
494         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
495         Patches by John Tobey <jtobey@banta-im.com>.
497         * time/strftime.c (my_strftime): Delay use of *tp values until
498         latest possible point to allow partly initialized structures
499         (e.g., from strptime).
501         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
502         and NATS-SEFI.
503         Define *-routines variables for new modules.
504         (distribute): Add .c files for new modules.
505         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
506         and nats-sefi.h.
507         Add rules for header generation.
508         * iconvdata/gconv-modules: Add entries for new modules.
509         * iconvdata/iso_10367-box.c: New file.
510         * iconvdata/mac-is.c: New file.
511         * iconvdata/nats-dano.c: New file.
512         * iconvdata/nats-sefi.c: New file.
514 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
516         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
517         loader if PIC is not defined.
519 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
521         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
522         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
523         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
524         and ISO_5428.
525         Define *-routines variables for new modules.
526         (distribute): Add .c files for new modules.
527         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
528         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
529         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
530         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
531         Add rules for header generation.
532         * iconvdata/gconv-modules: Add entries for new modules.
533         * iconvdata/csn_369103.c: New file.
534         * iconvdata/cwi.c: New file.
535         * iconvdata/dec-mcs.c: New file.
536         * iconvdata/ecma-cyrillic.c: New file.
537         * iconvdata/gost_19768-74.c: New file.
538         * iconvdata/greek-ccitt.c: New file.
539         * iconvdata/greek7-old.c: New file.
540         * iconvdata/greek7.c: New file.
541         * iconvdata/inis-8.c: New file.
542         * iconvdata/inis-cyrillic.c: New file.
543         * iconvdata/inis.c: New file.
544         * iconvdata/iso6937-2.c: New file.
545         * iconvdata/iso_2033.c: New file.
546         * iconvdata/iso_5427-ext.c: New file.
547         * iconvdata/iso_5427.c: New file.
548         * iconvdata/iso_5428.c: New file.
550         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
551         entries.
552         Convert U02dd correctly.
554 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
556         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
557         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
558         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
559         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
561 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
563         * resolv/res_init.c (res_init): Handle resolv.conf file with only
564         one nameserver correctly.  Patch by HJ Lu.
566         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
567         and ANSI_X3.110.
568         Define *-routines variables for new modules.
569         (distribute): Add .c files for new modules.
570         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
571         Add rules for hedaer generation.
572         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
573         * iconvdata/ansi_x3.110.c: New file.
574         * iconvdata/asmo_449.c: New file.
575         * iconvdata/baltic.c: New file.
576         * iconvdata/iec_p27-1.c: New file.
578         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
579         entries.
580         Convert U02dc correctly.
582         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
583         * math/atest-exp2.c: Likewise.
584         * math/atest-sincos.c: Likewise.
586         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
587         is defined.
589 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
591         * string/strcoll.c: Optimize a few expressions.
592         * string/strxfrm.c: Likewise.
594 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
596         * manual/locale.texi: Fix typos.
598 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
600         * stdlib/random_r.c (__setstate_r): Allow call with same state
601         array as currently used (PR libc/774).
603         * include/limits.h: Include gcc's header even if this file is
604         found more than once before it (PR libc/778)
606         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
607         (sysdep_headers): Remove sys/debugreg.h.
608         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
609         (sysdep_headers): Add sys/debugreg.h.
610         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
611         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
613         * stdio-common/tmpnam.c: Move local static variable buf to
614         toplevel and rename to tmpnam_buffer to ease debugging.
615         Patch by Joe Keane <jgk@jgk.org>.
616         Optimize s == NULL case a bit.
618         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
619         correction.
621 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
623         * resolv/res_init.c (res_init): Initialize _res.nscount and
624         _res.nsaddr.sin_port differently for the can when no loopback
625         is available to allow immediate timeout in non-networking environments.
626         Patch by Cristian Gafton <gafton@redhat.com>.
628 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
630         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
631         BAR and not EM DASH.
632         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
633         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
634         Fixes PR libc/717.
636 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
638         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
639         for test.
640         * timezone/tst-timezone.c (tests): Fix typo in last patch.
642         * time/tzfile.c (__tzfile_read): Handle case when there are no
643         transitions.  Set __timezone based on computed offset.
644         * time/tzset.c (tzset_internal): Set __timezone before returning.
646         * time/tzset.c (tzset_internal): Optimize handling of local string
647         copy.
649 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
651         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
652         libc/776).
654 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
656         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
657         (csqrt_test): Likewise.
658         * sysdeps/powerpc/bits/fenv.h: Add parens.
660 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
662         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
663         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
664         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
666 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
668         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
669         the special `-1' pointer.
671 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
673         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
674         inline.
676 1998-09-07  Paul Eggert  <eggert@twinsun.com>
678         * time/mktime.c (__EXTENSIONS__): Define if not defined.
679         (_REENTRANT): Remove.  It has undesirable consequences in
680         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
681         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
682         is what we want.
683         * time/strftime.c: Likewise.
685 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
687         * elf/dl-error.c: Fix spelling.
689 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
691         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
692         * stdio-common/_itoa.c: Likewise.
693         * stdio-common/printf_fp.c: Likewise.
694         * stdio-common/vfscanf.c: Likewise.
695         * wcsmbs/wcstok.c: Likewise.
696         * sysdeps/generic/glob.c: Likewise.
697         * posix/getopt.c: Likewise.
698         * sysdeps/posix/getaddrinfo.c: Likewise.
699         * posix/wordexp.c: Likewise.
700         * io/ftw.c: Likewise.
701         * io/fts.c: Likewise.
702         * misc/getpass.c: Likewise.
703         * iconv/gconv_conf.c: Likewise.
704         * argp/argp-fmtstream.c: Likewise.
705         * argp/argp-help.c: Likewise.
706         * elf/dl-load.c: Likewise.
707         * locale/programs/stringtrans.c: Likewise.
708         * catgets/gencat.c: Likewise.
709         * posix/getconf.c: Likewise.
710         * iconv/gconv_conf.c: Likewise.
711         * iconv/iconv_prog.c: Likewise.
713         * string/strcoll.c: Optimize a few expressions.
714         * string/strxfrm.c: Likewise.
716 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
718         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
719         level to avoid uninit variable warning.
721 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
723         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
724         instead of _dl_default_scope[2] as argument to _dl_init_next.
726         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
727         C9x macro.
729 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
731         Fix compatibility problems introduced in last change.
732         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
733         defined.
734         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
735         -DWEAK_GMON_START to CFLAGS-initfini.s.
737         * elf/dl-object.c (_dl_new_object): Store map address in
738         _dl_loaded if _dl_loaded is NULL.
739         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
741         * sysdeps/generic/setrlimit64.c: Remove stub warning.
743 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
745         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
746         quiet.
747         * db2/btree/bt_cursor.c: Likewise.
748         * db2/common/db_region.db_c: Likewise.
749         * db2/common/db_salloc.db_c: Likewise.
750         * db2/db/db.c: Likewise.
751         * db2/db/db_rec.c: Likewise.
752         * db2/hash/hash.c: Likewise.
753         * db2/hash/hash_page.c: Likewise.
754         * db2/hash/hash_rec.c: Likewise.
755         * db2/log/log_findckp.c: Likewise.
756         * db2/log/log_get.c: Likewise.
757         * db2/log/log_put.c: Likewise.
758         * db2/mp/mp_fget.c: Likewise.
759         * db2/mp/mp_fput.c: Likewise.
760         * db2/mp/mp_region.c: Likewise.
761         * stdlib/strtol.c: Likewise.
762         * string/strcoll.c: Likewise.
763         * string/strxfrm.c: Likewise.
764         * argp/argp-help.c: Likewise.
765         * argp/argp-parse.c: Likewise.
766         * resolv/res_debug.c: Likewise.
768 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
770         * math/tgmath.h (scalb): Only define for __USE_MISC or
771         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
773 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
775         * libio/stdio.h: Fix comment.
777         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
778         __USE_ISOC9X.
780 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
782         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
784         * elf/dl-open.c: Quiet -Wparentheses warnings.
785         * iconvdata/johab.c: Likewise.
786         * iconvdata/uhc.c: Likewise.
787         * inet/inet_net.c: Likewise.
788         * io/fts.c: Likewise.
789         * locale/newlocale.c: Likewise.
790         * misc/getttyent.c: Likewise.
791         * misc/mntent_r.c: Likewise.
792         * misc/ttyslot.c: Likewise.
793         * nscd/nscd_conf.c: Likewise.
794         * nss/nsswitch.c: Likewise.
795         * resolv/gethnamaddr.c: Likewise.
796         * resolv/nsap_addr.c: Likewise.
797         * resolv/res_debug.c: Likewise.
798         * stdio-common/_itoa.c: Likewise.
799         * stdlib/strtod.c: Likewise.
800         * string/strverscmp.c: Likewise.
801         * sunrpc/svc.c: Likewise.
802         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
803         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
804         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
805         * sysdeps/posix/getaddrinfo.c: Likewise.
807 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
809         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
810         for use of global scope.
811         * elf/dlvsym.c (dlvsym_doit): Likewise.
813 1998-09-02  Paul Eggert  <eggert@twinsun.com>
815         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
816         copy the redundant bytes at the end of the format as-is; don't
817         just copy their first byte and then rescan, as that might get
818         us an encoding error.
819         Account correctly for the length of multibyte sequences in the
820         format.
822 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
824         * posix/wordexp-test.c: Add tests for different IFS values.
825         Change unquoted-newline test so that newline is not in IFS.
827         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
828         determining IFS characters.  Return WRDE_BADCHAR for unquoted
829         special characters _except_ if they are separators.
831 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
833         * include/tgmath.h: New file.
835         * libio/stdio.h: Correct reversed #ifs.
836         Patch by Zack Weinberg.
838         * manual/creature.texi: Better explain reason for feature select
839         macros.
840         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
842 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
844         * include/alloca.h: Add multiple-inclusion guard.
845         * include/db.h: Likewise.
846         * include/db_185.h: Likewise.
847         * include/dlfcn.h: Likewise.
848         * include/fcntl.h: Likewise.
849         * include/grp.h: Likewise.
850         * include/libintl.h: Likewise.
851         * include/mntent.h: Likewise.
852         * include/pwd.h: Likewise.
853         * include/sched.h: Likewise.
854         * include/search.h: Likewise.
855         * include/setjmp.h: Likewise.
856         * include/shadow.h: Likewise.
857         * include/signal.h: Likewise.
858         * include/stdio.h: Likewise.
859         * include/stdlib.h: Likewise.
860         * include/string.h: Likewise.
861         * include/termios.h: Likewise.
862         * include/time.h: Likewise.
863         * include/ulimit.h: Likewise.
864         * include/utmp.h: Likewise.
865         * include/wchar.h: Likewise.
866         * include/sys/file.h: Likewise.
867         * include/sys/gmon.h: Likewise.
868         * include/sys/ioctl.h: Likewise.
869         * include/sys/mman.h: Likewise.
870         * include/sys/resource.h: Likewise.
871         * include/sys/select.h: Likewise.
872         * include/sys/socket.h: Likewise.
873         * include/sys/statfs.h: Likewise.
874         * include/sys/time.h: Likewise.
875         * include/sys/times.h: Likewise.
876         * include/sys/wait.h: Likewise.
878 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
880         * version.h (VERSION): Bump to 2.0.96.
882         Rewrite runtime linker to be truly thread-safe.  There is now no
883         global variable specifying the scope.  We create all needed
884         scopes at the time the link maps are created.
885         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
886         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
887         l_symbolic_searchlist, l_scope, and l_local_scope elements in
888         struct link_map.
889         * elf/dl-close.c: Rewritten accordingly.
890         * elf/dl-deps.c: Likewise.
891         * elf/dl-error.c: Likewise.
892         * elf/dl-init.c: Likewise.
893         * elf/dl-load.c: Likewise.
894         * elf/dl-lookup.c: Likewise.
895         * elf/dl-object.c: Likewise.
896         * elf/dl-open.c: Likewise.
897         * elf/dl-reloc.c: Likewise.
898         * elf/dl-runtime.c: Likewise.
899         * elf/dl-support.c: Likewise.
900         * elf/dl-symbol.c: Likewise.
901         * elf/dl-version.c: Likewise.
902         * elf/dlsym.c: Likewise.
903         * elf/dlvsym.c: Likewise.
904         * elf/ldsodefs.h: Likewise.
905         * elf/rtld.c: Likewise.
906         * iconv/gconv_dl.c: Likewise.
907         * nss/nsswitch.c: Likewise.
908         * sysdeps/i386/dl-machine.h: Likewise.
909         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
911         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
912         Define RTLD_DEFAULT.
914 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
916         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
917         __getopt_clean_environment with __environ instead of envp.
919 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
921         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
923         * string/argz-extract.c (__argz_extract): Add de-consting cast for
924         setting results.
926         * string/argz.h (argz_next): Add de-consting cast for return.
927         * string/argz-next.c (__argz_next): Likewise.
929         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
930         Don't add netinet/udp.h, netinet/ip_icmp.h here.
931         * sysdeps/gnu/Makefile: Do it here instead.
932         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
933         * sysdeps/gnu/Dist: ... to here.
935         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
936         sysdeps/unix/sysv/linux/netinet/tcp.h,
937         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
939 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
941         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
942         * string/argz-next.c, string/argz-extract.c: Fix defns.
944 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
946         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
948         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
949         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
950         * sysdeps/generic/sysd-stdio.c: Likewise.
952 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
954         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
955         (_dl_map_object_from_fd): Make NAME argument const.
956         Remove last parameter in _dl_new_object call.
957         (print_search_path): Correct construction of composed path name.
958         (_dl_map_object): Prevent looking at RPATH of the main map twice.
959         Remove last parameter in _dl_new_object call.
960         * elf/dl-object.c: Remove last parameter.  Determine whether create
961         origin entry based on empty realname.  Handle file in root directory
962         correctly.
963         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
964         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
965         Remove last parameter in _dl_new_object call.
966         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
967         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
969 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
971         * elf/dl-close.c (_dl_close): Add more comments and correct some.
972         Free l_searchlist and l_dupsearchlist.
974         * debug/catchsegv.sh: Add one more pair of quotes.
976 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
978         * elf/dl-load.c (add_name_to_object): Change return type to void and
979         make NAME parameter const.  Allocate room for NAME in same memory
980         block used for l_libname entry.
981         (_dl_map_object_from_fd): Don't free NAME on failure.
982         (map_segment): Pass SONAME to add_name_to_object, not a copy.
983         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
984         _dl_map_object_from_fd.
985         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
986         memory block used for l_libname entry.
987         * elf/dl-close.c: Adjust free()ing for this change.
989 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
991         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
993         * malloc/mtrace.c: Add bug report address.  Update email address.
994         Add more @XXX@ to print correct address size.
996         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
997         really initialized.
999         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
1000         for munmap call instead of examining phdr again.
1001         Free all malloc()ed strings and arrays.
1003 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1005         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
1006         dl-machine.h.
1007         * sysdeps/powerpc/dl-machine.c: New file.
1008         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
1009         files.  Revise ELF_PREFERRED_ADDRESS to take account of
1010         the new mapping information (fixes bug involving huge bloated
1011         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
1012         * sysdeps/powerpc/dl-start.S: New file.
1014         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
1015         l_map_end.
1016         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
1017         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
1018         others.  Call elf_dynamic_do_##reloc only once (to save even more
1019         space).
1020         * elf/link.h: Add new members l_map_start and l_map_end to keep
1021         track of the memory map.
1022         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
1023         the executable.
1025 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
1027         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
1028         Reported by Andreas Jaeger.
1030         * posix/glob.h: Use __size_t instead of size_t in definitions and
1031         make sure this is defined.
1033 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
1035         * manual/locale.texi: Almost complete rewrite.  Document more functions
1036         and functionality.
1037         * manual/arith.texi: Correct reference.
1038         * manual/string.texi: Pretty printing.
1040         * manual/texinfo.tex: Update from last available version.
1042 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
1044         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
1045         invalid password.
1046         (_nss_nis_getpwuid_r): Likewise.
1047         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
1049         * inet/rcmd.c: Implement netgroup support.
1050         Patch by Dick Streefland <dick_streefland@tasking.com>.
1052 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1054         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
1055         object on the list is removed.  Don't use this code for PIC.
1056         Reported by HJ Lu [PR libc/770].
1058 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
1060         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
1062         * include/stdio.h: Add __vsscanf.
1064         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
1065         __USE_ISOC9X.
1066         Remove __vsscanf declaration.
1067         Always declare fgetpos and fsetpos.
1069         * math/math.h: Define isinf as macro.
1070         * math/bits/mathcalls.h: Change to declare __isinf all the time.
1071         Don't declare scalb for ISO C 9x.
1073         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
1075         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
1077         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
1078         sys/ucontext.h.
1080         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
1081         macros.
1083 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1085         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
1086         Reported by jreising@frequentis.com [PR libc/767].
1088 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1090         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
1091         fl.l_start at beginning of function.
1092         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
1094 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1096         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
1097         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
1099         * nscd/nscd.init: Make it work in RedHat systems.
1100         Patch by Christian Gafton.
1102 1998-08-29  Philip Blundell  <philb@gnu.org>
1104         * catgets/Makefile: Don't try to run test programs when
1105         cross-compiling.
1107 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1109         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
1110         Reported by Zack Weinberg.
1112 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1114         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
1115         * elf/Makefile (distribute): Remove ldd.sh.in.
1117 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1119         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
1120         variable.
1122 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
1124         * sysdeps/i386/register-dump.h: Move to ...
1125         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
1127 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
1129         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
1130         with load address, not map address.
1131         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
1132         parameter and use this value.
1133         * sysdeps/arm/dl-machine.h: Likewise.
1134         * sysdeps/i386/dl-machine.h: Likewise.
1135         * sysdeps/m68k/dl-machine.h: Likewise.
1136         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
1137         parameter.
1138         * sysdeps/powerpc/dl-machine.h: Likewise
1139         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
1140         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
1142 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
1144         * elf/rtld.c (process_envvars): Fix copy&paste error.
1146         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
1147         memalign hook.
1148         (realloc_hook_ini): Don't overwrite memalign hook.
1149         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
1150         Reported by Philippe Troin <phil@fifi.org>.
1152         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
1153         Patch by Philippe Troin <phil@fifi.org>.
1155 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1157         * sysdeps/generic/segfault.c (install_handler): Protect the
1158         non-POSIX signals with #ifdef.
1159         (catch_segfault): Add missing mode parameter for open.
1160         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
1161         other termination signals.
1163 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1165         * debug/Makefile (distribute): Add register-dump.h.
1167 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1169         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
1171 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
1173         * elf/Makefile (distribute): Add dl-origin.h.
1174         * sysdeps/generic/dl-origin.h: New file.
1175         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
1176         * elf/link.h (struct link_map): Add l_origin field.
1177         * elf/dl-load.c (expand_dynamic_string_token): New function.
1178         (decompose_path): Remove WHERE argument, take link map pointer instead.
1179         Call expand_dynamic_string_token instead of local_strdup to make copy
1180         of rpath.
1181         (_dl_init_paths): Call decompose_path with correct argument.
1182         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
1183         not defined.
1184         Check EI_OSABI and EI_ABIVERSION fields in header.
1185         Call _dl_new_object with extra argument.
1186         (_dl_map_object): Call decompose_path with correct argument.
1187         Call expand_dynamic_string_token instead of local_strdup to also
1188         expand DST.
1189         Call _dl_new_object with extra argument.
1190         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
1191         but the main one if new argument is nonzero.
1192         * elf/ldsodefs.h: Adjust for _dl_new_object change.
1193         * elf/dl-support.c: Define _dl_origin_path.
1194         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
1195         (dl_main): Call _dl_new_object with extra argument.
1197         * elf/dl-close (_dl_close): Free l_name and l_origin.
1199         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
1200         modifier in asm, not c.
1202         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
1203         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
1205 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
1207         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
1208         variable so that map can be freed.
1209         Reported by Philippe Troin <phil@fifi.org>.
1211         * elf/dl-open.c (dl_open_worker): Correct test for extending global
1212         scope array.
1213         Patch by Philippe Troin <phil@fifi.org>.
1215 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1217         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
1218         Don't call writev() with a 100-element vector.
1219         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
1220         return address.
1222         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
1223         In particular, set __libc_stack_end.
1224         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
1225         undefined.  Fix copyright notice.
1227 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1229         * math/Makefile (gmp-objs): New variable.
1230         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
1231         Depend on it.
1232         (tests): Add atest-exp atest-sincos atest-exp2.
1233         (tests-static): Remove atest-exp atest-sincos atest-exp2.
1235 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
1237         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
1238         to toplevel.
1239         (_dl_unload_cache): New function.
1240         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
1241         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
1242         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
1244         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
1245         Correct comment for O_LARGEFILE.
1246         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
1247         Change O_LARGEFILE to correct value.
1249 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
1251         * libio/iogetline.c (_IO_getline_info): Don't read anything for
1252         N == 0.  Patch by HJ Lu.
1254 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
1256         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
1258 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
1260         * argp/argp.h: Use __inline__ not inline.
1262         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
1263         an input register as being clobbered.
1264         * sysdeps/i386/memset.c (memset): Likewise.
1265         * sysdeps/i386/bzero.c (__bzero): Likewise.
1266         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
1268 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1270         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
1271         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
1273 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
1275         * debug/catchsegv.sh: Handle text preceding backtrace better.
1276         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
1277         to be installed for other signals than SIGSEGV.
1278         * sysdeps/generic/register-dump.h: New file.
1279         * sysdeps/i386/register-dump.h: New file.
1280         * sysdeps/powerpc/register-dump.h: New file.
1282         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
1283         sigcontextinfo.h.
1284         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
1286 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
1288         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
1290 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1292         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
1293         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
1294         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
1295         getresuid, getresgid.
1297 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
1299         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
1300         pointer in userland.
1302 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1304         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
1305         and fix value.
1307 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1309         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
1310         over arguments Bourne shell compatible.  Don't exit unsuccessfully
1311         if nonelf returns successfully.  Avoid duplicating most of the
1312         script.
1313         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
1314         around $file.
1316 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1318         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
1319         sys/reg.h.
1320         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
1321         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
1323 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1325         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
1326         __modify_ldt and modify_ldt.
1327         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
1329         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1330         Use orl $-1 instead of movl $-1 to save two bytes.
1331         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
1332         Likewise.
1334 1998-08-17  H.J. Lu  <hjl@gnu.org>
1336         * libio/Versions (_IO_do_write, _IO_file_attach,
1337         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1338         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1339         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1340         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
1342         * libio/fileops.c (_IO_do_write, _IO_file_attach,
1343         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1344         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1345         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1346         _IO_file_write, _IO_file_xsputn): Change the prefix to
1347         "_IO_new_". Added to GLIBC_2.1.
1349         * libio/libioP.h (_IO_do_write, _IO_file_attach,
1350         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1351         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1352         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1353         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
1354         "_IO_new_".
1356         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
1357         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1358         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1359         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1360         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
1362 1998-08-23  Richard Henderson  <rth@cygnus.com>
1364         * Makeconfig (LDFLAGS): Remove.
1366         * csu/initfini.c: Return to .text before __gmon_start__.
1368         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
1369         (STO_MIPS_*): Rename from STO_*.
1370         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
1371         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
1373         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
1374         (main): e3s is negative on zero.
1375         * math/atest-exp2.c: Likewise.
1376         * math/atest-sincos.c: Likewise.
1378 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1380         * Makerules (install): Add comment about absolute paths.
1382 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1384         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
1385         array to NUL to handle maxlen==1 case correctly.
1386         Patch by HJ Lu.
1388 1998-08-23  Richard Henderson  <rth@cygnus.com>
1390         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
1391         * sysdeps/alpha/elf/crtend.S: Likewise.
1392         * sysdeps/alpha/elf/start.S: Likewise.
1394         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
1395         non-standard pv usage.
1397         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
1398         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
1399         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1400         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1401         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
1402         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1403         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1404         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1405         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1406         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1407         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1409         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
1410         a finite non-denormal, deferring to the full IEEE version otherwise.
1412         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
1413         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
1414         * sysdeps/alpha/fpu/s_floor.c: New.
1415         * sysdeps/alpha/fpu/s_floorf.c: New.
1416         * sysdeps/alpha/fpu/s_ceil.c: New.
1417         * sysdeps/alpha/fpu/s_ceilf.c: New.
1419 1998-08-22  Philip Blundell  <philb@gnu.org>
1421         * sysdeps/arm/bits/string.h: New file.
1423 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1425         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
1426         document it.
1428         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
1429         test for recent Linux 2.1.100+ headers.
1431 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1433         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
1435 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
1437         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
1439 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1441         * Makefile (elf/ldso_install): Put back.  The problem still persists.
1442         * elf/Makefile (ldso_install): Likewise.
1444 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1446         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
1447         create weak alias.
1448         * include/db.h: Declare __nss_db_open.
1449         * db2/Versions: Export it.
1451         * db2/makedb.c: Convert to use db2 API.
1452         * nss/nss_db/db-XXX.c: Likewise.
1453         * nss/nss_db/db-netgrp.c: Likewise.
1454         * nss/nss_db/db-alias.c: Likewise.
1455         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
1457 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1459         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
1460         sys_setresuid, already built automatically (or not).
1461         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
1462         instead of __syscall_setresuid and add back setresuid.
1463         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
1464         __syscall_setresuid.
1466 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1468         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
1470 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
1472         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
1473         BASH-ONLY marked region.
1474         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
1476 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
1478         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
1479         _IO_SYSSEEK fails.
1481         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
1483         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
1484         element.
1486 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
1488         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
1489         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
1490         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
1491         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
1492         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
1493         those magic comments, and to use /bin/sh for @BASH@.
1494         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
1495         * elf/ldd.sh.in: File removed.
1497 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
1499         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
1500         cast them to unsigned long int.
1501         * pwd/putpwent.c (putpwent): Likewise.
1502         Patch by John Tobey <jtobey@banta-im.com>.
1504 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
1506         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
1507         _IO_pos_BAD.
1509 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
1511         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
1512         _IO_SYSSEEK fails.
1514 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
1516         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
1517         Add umount and umount2.
1518         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
1519         * sysdeps/unix/sysv/linux/umount.S: New file.
1520         * sysdeps/unix/sysv/linux/umount2.S: New file.
1521         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
1522         Define MNT_FORCE.
1524         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
1525         Add sys/sendfile.h.
1526         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
1527         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
1529         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
1531         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
1532         sendfile.
1534 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
1536         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
1537         * elf/ldd.bash.in: Likewise.
1539         * elf/sln.c: Avoid warning for no main prototype.
1541         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
1542         O_WRITE.
1543         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1544         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1546         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
1547         F_GETSIG.
1548         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
1549         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1550         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1552 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
1554         * sysdeps/arm/fpu/ieee754.h: Move to...
1555         * sysdeps/arm/ieee754.h: ... here.
1557         * sysdeps/arm/__longjmp.S: Put return value in correct register.
1558         Don't set the condition flags unnecessarily.
1559         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
1560         registers correctly.
1562         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
1563         (patch from Scott Bambrough).
1565         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
1567         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
1568         NULL, just call it unconditionally.
1569         (__gmon_start__): Provide stub version as a weak symbol.
1571 1998-07-30  Philip Blundell  <philb@gnu.org>
1573         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
1574         by Scott Bambrough)
1576         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
1577         like `@' in .type directives.
1579         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
1580         * sysdeps/arm/bsd-_setjmp.S: Likewise.
1582         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
1584 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1586         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
1587         (F_GETOWN): Likewise.
1589         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
1590         Linux 2.1.117).
1592 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
1594         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
1595         already defined.
1597 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
1599         * include/features.h: Define __USE_EXTERN_INLINES for recent
1600         enough gcc.
1601         * argp/argp.h: Define extern inline functions only if
1602         __USE_EXTERN_INLINES is defined.
1603         * libio/stdio.h: Likewise.
1604         * math/math.h: Likewise.
1605         * stdlib/stdlib.h: Likewise.
1606         * string/argz.h: Likewise.
1607         * sysdeps/generic/bits/sigset.h: Likewise.
1608         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
1609         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
1610         * sysdeps/wordsize-32/inttypes.h: Likewise.
1611         * sysdeps/wordsize-64/inttypes.h: Likewise.
1612         * wcsmbs/wchar.h: Likewise.
1614         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
1615         to allow compilation without optimization.
1617 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1619         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
1620         more entries.
1621         * nis/nss_compat/compat-initgroups.c: Likewise.
1622         * nis/nss_compat/compat-pwd.c: Likewise.
1623         * nis/nss_compat/compat-spwd.c: Likewise.
1624         * nis/nss_nis/nis-alias.c: Likewise.
1625         * nis/nss_nis/nis-ethers.c: Likewise.
1626         * nis/nss_nis/nis-grp.c: Likewise.
1627         * nis/nss_nis/nis-hosts.c: Likewise.
1628         * nis/nss_nis/nis-initgroups.c: Likewise.
1629         * nis/nss_nis/nis-network.c: Likewise.
1630         * nis/nss_nis/nis-proto.c: Likewise.
1631         * nis/nss_nis/nis-pwd.c: Likewise.
1632         * nis/nss_nis/nis-rpc.c: Likewise.
1633         * nis/nss_nis/nis-service.c: Likewise.
1634         * nis/nss_nis/nis-spwd.c: Likewise.
1636         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
1638         * nis/ypclnt.c: Try binding dir only first time, could be to old.
1640         * nis/yp_xdr.c: Remove 1024 byte limit.
1641         * nis/ypupdate_xdr.c: Likewise.
1643         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
1644         wrong data.
1646 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
1648         * Rules (binaries-static, binaries-shared static pattern rules):
1649         Depend on lib%, not just libc%, from $(link-libc{,-static}).
1651         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
1652         this here, overriding Makeconfig generic value so we link against
1653         the RPC libs.
1655 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
1657         * posix/tstgetopt.c (options): Add NULL entry at end
1658         Patch by Adrian Miranda <ade@psg.com>.
1660 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
1662         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
1663         to 9.
1665 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
1667         * elf/elf.h: Add PPC Diab relocations.
1669         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
1671 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
1673         * manual/texinfo.tex: Update.
1675 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
1677         * sysdeps/powerpc/backtrace.c: New file.
1679 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
1681         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
1682         sigjmp_save.
1683         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
1685 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1687         * Makefile (install-symbolic-link): Fix spelling.
1689 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1691         * elf/elf.h (SHT_HIOS): Fix value.
1693 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1695         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
1696         part of the expansion, this is undefined by the standard.
1698 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
1700         * posix/getconf.c: Add support for systems with incomplete confname.h.
1702         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
1704         * sysdeps/posix/wait3.c: Make it work.
1706 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1708         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
1709         (elf/ldso_install): Remove.
1711         * elf/Makefile (distribute): Add sln.c.
1712         (others): Add sln.
1713         (others-static): Add sln.
1714         (install-rootsbin): Add sln.
1715         (others-static): Add sln.
1716         (ldso_install): Remove.
1718 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1720         * Makerules (install-clean-symbolic-link-list): Make phony.
1721         * Makefile (install-symbolic-link): Make phony.  Depend on
1722         subdir_install for parallel makes.
1725 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
1727         * elf/Makefile (distribute): Add sln.c
1729 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
1731         * elf/sln.c: New file.
1733         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
1734         (install-clean-symbolic-link-list): New target.
1735         (install): Depend on install-clean-symbolic-link-list.
1736         (make-shlib-link): Changed for $(symbolic-link-list).
1738         * Makefile (install-symbolic-link): New target.
1739         (install): Depend on install-symbolic-link.
1741 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
1743         * include/unistd.h: Protect against multiple inclusion.
1745         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
1746         is defined, not is glob is defined.
1747         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
1749 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
1751         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
1752         xdr_string for ut_line, ut_name and ut_host.
1754 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1756         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
1757         /var/mail in accordance with FHS 2.0.
1758         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
1760 1998-08-12  Richard Henderson  <rth@cygnus.com>
1762         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
1763         Update aliases for cancelation.
1765         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
1766         playing with symbol versions.
1768 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
1770         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
1771         multiple inclusion protection.
1772         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
1773         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
1774         define all these to 1.
1775         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
1777 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
1779         * sysdeps/mach/usleep.c: Include <unistd.h>.
1780         (usleep): Return void.
1782 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
1784         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
1785         decl to inhibit warning in if_freenameindex defn.
1787         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
1789         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
1791         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
1792         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
1793         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
1794         * sysdeps/mach/usleep.c: Likewise.
1796         * sysdeps/mach/hurd/bind.c (bind): Add a const.
1798         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
1799         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
1800         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
1801         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
1802         * sysdeps/mach/usleep.c (usleep): Likewise.
1803         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
1804         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
1805         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1806         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
1808 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
1810         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
1811         (glob64): Fix typo.
1813         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
1814         %p arg to fprintf, since `void *' is the right type already.
1816 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
1818         * sysdeps/mach/hurd/getcwd.c
1819         (_hurd_canonicalize_directory_name_internal): Do not loop forever
1820         for unknown root directories.
1821         (__getcwd): Return NULL when the current root directory could not
1822         be reached.
1824 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
1826         * string/strsignal.c (strsignal): Count real-time signals from zero.
1829 See ChangeLog.8 for earlier changes.