Update.
[glibc.git] / ChangeLog
blob29f44647dbde62d20e08080f3a69045fea52927c
1 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
3         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
4         variable to prevent warnings from use of modern CPU instructions.
5         Patch by Richard Henderson <rth@cygnus.com>.
7         * sysdeps/unix/opendir.c: Test whether NAME is directory before
8         opening it.
10 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
12         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
13         semicolon so that profiling works.
15 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
17         * sysdeps/generic/glob.c: #undef mempcpy before #define.
19         * sysdeps/unix/bsd/clock.c: Use prototype defns.
21 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
23         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
24         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
26         * string/bits/string2.h [!_STRING_ARCH_unaligned]
27         (__mempcpy_small): Add parameter for 1 byte copy and use it.
28         Reported by Geoff Keating <geoffk@ozemail.com.au>.
30 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
32         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
33         it is already defined in <bits/environments.h>.
35 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
37         * posix/ptestcases.h: Fix typo.
39 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
41         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
42         (regexec): Allocate regs.start and regs.end as one block.
44 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
46         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
47         enum decl.
49 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
51         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
52         sigcontext union to ...
53         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
54         file.
55         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
56         version 2.0 kernels.
58 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
60         * malloc/mtrace.c (tr_reallochook): Produce better output for real
61         reallocation case.
63         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
64         * argp/argp-xinl.c: Likewise.
66         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
67         Ruffian entry back.
68         Patch by Christian Gafton.
70 1998-10-08  Paul Eggert  <eggert@twinsun.com>
72         * time/mktime.c (__mktime_internal): When the requested time falls
73         in a spring-forward gap of size DT, return a time that is DT away
74         from the requested time, preferring a time whose tm_isdst differs
75         from the requested value.  Bump the max number of probes from 4 to
76         6 to account for the extra probes needed to discover a
77         spring-forward gap in the worst case.
79 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
81         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
82         of the weird alpha architectures.
83         Patch by Cristian Gafton <gafton@redhat.com>.
85 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
87         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
88         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
90 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
92         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
93         (dl_open_worker): Use realloc, not malloc to resize array.
94         * elf/rtld.c (_dl_initial_searchlist): New variable.
95         (_dl_main): Copy content of _dl_main_searchlist to
96         _dl_initial_searchlist.
97         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
98         _dl_global_scope_alloc.
99         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
100         * elf/dl-close.c (_dl_close): When removing object with global
101         scope remove allocated searchlist if no dynamically loaded object
102         is on it anymore.
103         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
104         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
106         * malloc/mtrace.c (tr_where): Don't print space in location string,
107         print it afterwards.  Print better symbol name information.
109 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
111         * manual/filesys.texi (Setting Permissions): Fix example for
112         reading umask.
114 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
116         * elf/sprof.c (load_profdata): Fix typo in error message.
118 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
120         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
121         flag.
123 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
125         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
127 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
129         * version.h (VERSION): Bump to 2.0.97.
131 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
133         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
134         in definitions of inline stat functions so that they match the
135         declaration.
136         * stdlib/stdlib.h: Likewise.
137         * wcsmbs/wchar.h: Likewise.
138         * libio/stdio.h: Likewise.
139         * stdio/stdio.h: Likewise.
140         * sysdeps/wordsize-64/inttypes.h: Likewise.
141         * sysdeps/wordsize-32/inttypes.h: Likewise.
142         * string/argz.h: Likewise.
143         * argp/argp.h: Likewise.
145 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
147         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
148         netinet/in.h.
150 1998-10-05  Philip Blundell  <philb@gnu.org>
152         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
153         and constants.  Tidy up formatting a little.
155         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
156         Move definitions to in.h.
158 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
160         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
161         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
162         Remove inclusion of <linux/swap.h>.
164 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
166         * io/sys/stat.h: Use __P in definitions of inline stat functions
167         so that they match the declaration.
169 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
171         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
173 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
175         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
176         linux 2.1 version.
178 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
180         * sysdeps/arm/dl-machine.h: Fix typo in last change.
182         * sysdeps/arm/bits/huge_val.h: New file.
184 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
186         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
188         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
189         define.
191 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
193         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
194         store result of realloc instead of using BUF.
196 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
198         * misc/sgtty.h (_SGTTY_H): Correct spelling.
199         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
201 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
203         * manual/memory.texi (Obstacks): Document
204         obstack_alloc_failed_handler usage.
206         * malloc/obstack.h: Enhance comment about
207         obstack_alloc_failed_handler usage.
208         * malloc/obstack.c: Likewise.
210 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
212         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
213         gcc before 2.8 is used.
215 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
217         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
218         from Scott Bambrough.
220         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
222         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
223         include the lock member.
225 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
227         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
229 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
231         * timezone/zic.c: Update from tzcode1998h.
232         * timezone/europe: Update from tzdata1998i.
233         * timezone/southamerica: Likewise.
235         * sys/types.h: Protect use of long long by __extension__.
236         * stdlib/stdlib.h: Likewise.
237         * string/string.h: Likewise.
238         * sysdeps/i386/bits/byteswap.h: Likewise.
239         * sysdeps/geeric/bits/byteswap.h: Likewise.
240         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
241         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
242         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
243         * sysdeps/wordsize-32/inttypes.h: Likewise.
244         * sysdeps/wordsize-32/stdint.h: Likewise.
245         * wcsmbs/wchar.h: Likewise.
247 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
249         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
250         expression.
251         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
252         __strsep): Greatly reduce size of expansion by combining common
253         expressions.
254         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
255         inline function.
256         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
257         by the above definitions.
259 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
261         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
262         correct struct ipc_perm definition.
264 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
266         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
268 1998-09-29  Cristian Gafton  <gafton@redhat.com>
270         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
271         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
272         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
273         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
274         Add net/if_shaper.h.
276 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
278         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
280         * nis/ypclnt.c: Remove not needed close calls.
282 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
284         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
285         check a bit.  Also close socket of domain client.  Close socket
286         in IPPORT_RESERVED error case.
288 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
290         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
291         CMSG_ALIGN (fixes a bug) and correct test for availability of
292         another entry.
293         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
294         Linux version.
295         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
296         availability of another entry.
297         Patch by ak@muc.de.
299         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
300         Patch by ak@muc.de.
302         * libio/libio.h [!__STDC__]: Define const only if not defined.
304 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
306         * posix/annexc.c (xsystem): New function.  Use it instead of
307         system.
309 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
311         * stdlib/longlong.h: Remove #endif for #if removed in last change.
313 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
315         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
316         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
317         allow using `ut' parameter.
318         [!emacs]: Define ut_argument, ut_argument_spec, and
319         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
320         argument_spec to prototypes and definitions.
321         (my_strftime): Don't call tzset of ut != 0.
322         Compute diff as 0 is ut != 0;
323         [emacs]: Define new emacs_strftime function.
324         Based on a patch by Paul Eggert.
326 1998-09-24  Paul Eggert  <eggert@twinsun.com>
328         * time/strftime.c (my_strftime): When asking for the length of the
329         subformatted buffer, do not limit the length to look for;
330         otherwise, we have no reliable way to distinguish between the
331         empty buffer and an error.
333 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
335         * math/Makefile (gmp-objs): Add mp_clz_tab.
337 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
339         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
340         set them.
341         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
342         cpus lacking hardware multiply and divide.
344 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
346         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
347         $(<F), not $(^F).
349 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
351         * db/btree/bt_delete.c: Fix -Wparentheses warning.
353 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
355         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
356         $(do-install).
358 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
360         * debug/catchsegv.sh: Also produce output if clone process died.
362 1998-09-24  Paul Eggert  <eggert@twinsun.com>
364         * time/strftime.c (f_wkday): Remove duplicate definition.
365         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
366         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
367         1998-09-11 fix to this case.
368         (wkday_len, month_len): Remove these macros; they're no longer needed.
370 1998-09-24  Paul Eggert  <eggert@twinsun.com>
372         * time/strftime.c (my_strftime): Don't store past the end of a
373         zero-sized buffer.
375 1998-09-24  Paul Eggert  <eggert@twinsun.com>
377         * time/strftime.c (underlying_strftime):
378         Set the buffer to a nonzero value before calling
379         strftime, and check to see whether strftime has set the buffer to zero.
380         This lets us distinguish between an empty buffer and an error.
382 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
384         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
385         This fix is propagated from tzcode1998g.tar.gz.
387 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
389         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
390         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
391         sys_siglist.  This is handled correctly by the weak_alias macro.
393 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
395         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
396         of mempcpy.  Reported by Andreas Jaeger.
398         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
399         pollute the namespace since the compiler will resolve it inline.
400         Reported by Florian La Roche <florian@suse.de>.
402 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
404         * timezone/private.h: Update from tzcode1998g.
406         * timezone/africa: Update from tzdata1998h.
407         * timezone/asia: Likewise.
408         * timezone/australasia: Likewise.
409         * timezone/europe: Likewise.
410         * timezone/northamerica: Likewise.
411         * timezone/southamerica: Likewise.
412         * timezone/zone.tab: Likewise.
414 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
416         * misc/sys/mman.h: New file.
418         * sysdeps/generic/bits/mman.h: New file.
419         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
420         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
421         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
422         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
424         * sysdeps/generic/sys/mman.h: Removed.
425         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
426         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
427         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
428         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
429         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
431         * include/sys/mman.h: Look directly for misc/sys/mman.h.
432         * misc/Makefile (headers): Add bits/mman.h.
433         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
434         bits/mman.h.
436         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
437         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
438         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
439         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
440         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
441         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
442         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
443         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
445 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
447         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
448         * sysdeps/mach/alpha/thread_state.h: Likewise.
449         * sysdeps/mach/i386/sysdep.h: Likewise.
450         * sysdeps/mach/i386/thread_state.h: Likewise.
451         * sysdeps/mach/mips/sysdep.h: Likewise.
452         * sysdeps/mach/mips/thread_state.h: Likewise.
453         * sysdeps/posix/profil.c: Likewise.
454         * sysdeps/i386/i586/memcopy.h: Likewise.
455         * sysdeps/mach/pagecopy.h: Likewise.
457 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
459         * libio/stdio.h: Define __need_getopt and include getopt.h to define
460         getopt stuff.
461         * posix/unistd.h: Likewise.
462         * stdio/stdio.h: Likewise.
463         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
464         define only getopt and the variables.
466 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
468         * scripts/test-installation.pl (installation_problem): Don't link
469         the test program against libdb1.
471 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
473         * Makeconfig (all-subdirs): Add db.
474         * Versions.def: Add definition for libdb1.
475         * shlib-versions: Add definitions for libdb1.
476         * db/Makefile (extra-libs): Replace by libdb1.
477         (libdb-routines): Rename to libdb1-routines.
478         (headers): Rename to db1-headers.
479         (distribute): Add $(db1-headers).
480         (install-others): Define to install symlink libdb.so.NN and the
481         $(db1-headers).
482         (CPPFLAGS): Add -DUSE_LIBDB1
483         Remove rules to build makedb.
484         * db/Versions: Rename libdb to libdb1.
485         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
486         * db/makedb.c: Removed.
488         * scripts/versions.awk: Recognize digits in library names.
490         * db/btree/bt_open.c: Fix compiler warnings.
491         * db/btree/bt_put.c: Likewise.
492         * db/btree/bt_split.c: Likewise.
493         * db/hash/hash.c: Likewise.
494         * db/hash/hash_bigkey.c: Likewise.
495         * db/recno/rec_close.c: Likewise.
497         * Makefile: Add localedata/% goal.
499 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
501         * posix/execvp.c: Don't give up searching the PATH if execve
502         returns ENOTDIR.
504 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
506         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
507         if _dl_fpu_control_set is set.
508         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
509         * elf/rtld.c: Don't define _dl_fpu_control_set.
510         * elf/Versions: Remove _dl_fpu_control_set.
512 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
514         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
515         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
516         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
517         Correct values of other SA_* macros according to kernel headers.
519 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
521         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
522         variable l.
523         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
524         old.
526 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
528         * elf/ldsodefs.h: Fix typo in comment.
530 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
532         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
533         char when comparing buffer contents with putback character.
535 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
537         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
538         Undo last change.
539         * elf/Versions: Undo last change.  Export _dl_fpu_control and
540         _dl_fpu_control_set.
541         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
542         variables.  Include <fpu_control.h>.
543         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
544         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
545         to indicate that is was seen.
546         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
547         only if _dl_fpu_control was set and is equal to desired value.
548         * math/Makefile (aux): Undo last change.
549         * math/Versions: Export __fpu_control with version GLIBC_2.0.
551 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
553         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
554         optimized.
556 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
558         * string/bits/string2.h: Add mempcpy optimization.
559         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
560         * intl/localealias.c: Define mempcpy only if not already defined.
562         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
563         defined.
565 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
567         * csu/abi-note.S: Emit the note directly instead of defining
568         a preprocessor macro that's only used once.  Don't include sysdep.h.
569         * abi-tags: Generalize Solaris entry.
571 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
573         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
574         Change to array to avoid runtime relocation.
575         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
577 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
579         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
580         * math/Makefile ($(objpfx)libieee.a): Likewise.
582 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
584         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
585         Patch by John Tobey <jtobey@banta-im.com>.
587 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
589         * login/Makefile (distribute): Remove pty-internal.h, add
590         pty-private.h.
592         * stdlib/tst-strtol.c: Add more checks.
593         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
595 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
597         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
598         * elf/elf.h: Add AT_FPUCW.
599         * elf/Makefile (dl-routines): Add fpu_control.
600         (elide-routines.os): Add fpu_control.
601         (rtld-routines): Add fpu_control.
602         * math/Makefile (aux): Remove fpu_control.
603         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
604         (_dl_show_auxv): Likewise.
605         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
606         if different from OS default.
608         * stdio-common/tstscanf.c: Add test case for (nil).
610 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
612         * libio/fileops.c (_IO_new_file_underflow): Before allocating
613         buffer make sure the pushback buffer is destroyed.
614         (_IO_new_file_seekoff): Likewise.
615         If mode==0 quit early with the result.
616         Clear OEF flag after successful fseek.
617         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
618         * libio/ftello.c (ftello): Add offset from original buffer if
619         stream has pushed back characters.
620         * libio/ftello64.c (ftello64): Likewise.
621         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
622         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
623         * libio/ioftell.c (_IO_ftell): Likewise.
624         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
625         and _IO_save_ptr.
626         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
627         (_IO_default_pbackfail): Only stored push back character in original
628         buffer if it is the same as the one in the file at this position.
629         * libio/iofclose.c: Free backup buffer if one is available.
630         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
631         mode!=0.
633         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
635         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
637         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
639 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
641         * login/programs/pt_chown.c (more_help): Correct message that
642         describes the purpose of the program.
644         * login/openpty.c: Do not include pty-private.h.
645         (pts_name): New function.  Return name of slave pseudo terminal in
646         an allocated buffer if necessary.
647         (openpty): Use pts_name to get name of the slave end of the pseudo
648         terminal pair.
650         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
651         pts_name before return.
653 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
655         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
657 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
659         * login/openpty.c: Include pty-private.h instead of
660         pty-internal.h.
662 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
664         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
666 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
668         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
669         recent ld.so changes.
670         (elf_machine_runtime_setup): Correct behaviour when profiling.
672 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
674         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
675         Patch by John Tobey <jtobey@banta-im.com>.
677 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
679         * login/pty-internal.h: Removed.  Moved constants related to the
680         `grantpt' helper program protocol to ...
681         * login/pty-private.h: ... here.  New file.
682         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
683         to make the function work with kernels >= 2.1.115.
684         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
685         version if using the cloning device fails.
686         * sysdeps/unix/sysv/linux/grantpt.c: New file.
687         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
688         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
689         use by Linux specific code.
690         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
691         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
692         function.  (grantpt): Use pts_name, check group and permission
693         mode in addition to owner.  Try to set the owner, group and
694         permission mode first without invoking the helper program.
695         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
696         internationalization support.  Use symbolic constants instead of
697         hardwired numbers for permission mode.
698         * sysdeps/unix/bsd/ptsname.c: New file.
700 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
702         * posix/wordexp-test.c: Undo last change.
704         * posix/wordexp.c: Undo last change.
706 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
708         * nscd/grpcache.c (save_grp): Partly undo last change.
710         * nscd/pwdcache.c (save_pwd): Undo last change.
712 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
714         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
715         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
717 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
719         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
720         Add profiling support.
721         (TRAMPOLINE_TEMPLATE): New macro.
722         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
723         (RTLD_START): Prettify, and set __libc_stack_end properly.
724         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
725         and check for sym being NULL instead.
726         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
727         of stack space.
728         * sysdeps/sparc/sparc64/lshift.S: Likewise.
729         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
730         * sysdeps/sparc/sparc64/rshift.S: Likewise.
731         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
732         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
733         MEDANY code model %g4 usage.
734         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
735         MEDANY code model %g4 usage.
736         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
737         code model address formation.
738         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
739         include elf/ldsodefs.h
740         (DT_SPARC): Remove.
741         (elf_machine_matches_host): It is now EM_SPARCV9.
742         (elf_machine_dynamic): Clean up to remove ugly cast.
743         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
744         new PLT formats.
745         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
746         Prettify rest of function.
747         [R_SPARC_COPY]: Check for sym being NULL.
748         [R_SPARC_32]: Handle it.
749         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
750         MEDMID code model.
751         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
752         MEDANY code model.
753         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
754         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
755         Add profiling support.
756         (TRAMPOLINE_TEMPLATE): New macro.
757         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
758         (RTLD_START): Prettify and set __libc_stack_end.
759         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
760         Define.
761         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
762         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
763         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
764         unused variable scratch.
765         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
766         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
767         Declare.
768         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
769         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
770         old format kernel sigaction structures.
771         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
772         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
773         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
774         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
775         ucontext include.
776         (_JMPBUF_UNWINDS): Define.
777         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
778         statfs64 structure, which is exactly the same as the normal one.
779         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
780         of stack.  Use correct syscall trap number.  Add branch prediction
781         settings to branch instructions.  Remove old MEDANY code model %g4
782         referneces for non-PIC.
783         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
784         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
785         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
786         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
787         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
788         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
789         __libc_longjmp and __libc_siglongjmp strong aliases.
790         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
791         Also define to __no__readdir64_decl around readdir.c inclusion.
792         (__readdir64): Add strong alias.
793         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
794         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
795         Set strong and weak names properly.
797 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
799         * manual/Makefile (AWK): Default to gawk if standalone.
801 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
803         * Makefile (distribute): Undo last change.
804         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
805         for sysdep headers.
806         (+subdir-headers): Removed, unused.
808 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
810         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
811         $(do-install).
813 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
815         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
816         absolute name in $(config-sysdirs), can never happen.
817         ($(+sysdir_pfx)sysd-rules): Likewise.
818         * Makeconfig (full-config-sysdirs): Likewise.
819         (all-Subdirs-files): Prepend $(..).
821         * configure.in: Don't check for absolute name in $add_ons_pfx, can
822         not happen.  Let --enable-add-ons=yes work if no add-ons actually
823         exist.
825 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
827         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
828         continuations in command.
830 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
832         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
834 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
836         * posix/wordexp-test.c: If expansion or substitution occurs
837         anywhere in a word, the entire word is subject to field-splitting.
839         * posix/wordexp.c (parse_glob): Look for end of word instead of
840         end of field when deciding what to glob.
841         (field_split_word): New function, now the only place where
842         field-splitting is performed.
843         (parse_dollars): New parameter - tell the caller if
844         field-splitting should be performed on this word.
846         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
847         succeeded (or failed with WRDE_NOSPACE).
849 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
851         * posix/wordexp.c (wordexp): Don't convert IFS characters to
852         blanks.
854         * posix/wordexp-test.c: Words not the result of expansion or
855         substitution should remain unchanged.
857 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
859         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
860         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
862 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
864         * stdio-common/Makefile: Include Makeconfig so that
865         $(inst_includedir) is defined.
867 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
869         * io/pwd.c: Include <mcheck.h>.
871 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
873         * nscd/pwdcache.c (save_pwd): Correct copying.
874         * nscd/grpcache.c (save_grp): Likewise.
876 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
878         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
879         (free_pwd): Adjust for this change.
880         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
881         (free_grp): Adjust for this change.
883 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
885         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
887 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
889         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
890         (install-others): Add bits/stdio_lim.h.
891         Add rule to install bits/stdio_lim.h.
893         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
895         * Makefile (distribute): Add include/sys/mman.h.
897         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
898         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
899         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
901         * grp/initgroups.c: Include stdlib.h.
902         Patch by Zack Weinberg.
904 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
906         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
907         for field-splitting :abc: is correct, and that two fields should
908         result. Revert tests to reflect this.
910         * posix/wordexp.c (w_emptyword): Remove function.
911         (exec_comm): Don't use w_emptyword.
912         (parse_param): Likewise.
914 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
916         * sysdeps/arm/fpu/Dist: Moved to...
917         * sysdeps/arm/Dist: ...here.
918         * sysdeps/posix/Dist: Removed.
919         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
920         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
922 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
924         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
926 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
928         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
930 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
932         * libc-work/nis/nss_nisplus/nisplus-service.c
933         (_nss_nisplus_parse_servent): Convert port in network byte order.
935 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
937         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
938         to provide only malloc and calloc.
939         * include/stdlib.h: Support the above.
940         * string/bits/string2.h: Use __need_malloc_and_calloc when
941         including stdlib.h.
942         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
944         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
945         * iconvdata/iso646.c: Include <stdlib.h>.
947 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
949         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
950         * sysdeps/libm-ieee754/w_pow.c: Likewise.
951         * sysdeps/libm-ieee754/w_powf.c: Likewise.
952         * sysdeps/libm-ieee754/w_powl.c: Likewise.
954 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
956         * stdio-common/stdio_lim.h.in: New file.  All parameters
957         are adjustable at build time.
958         * Rules: Add a rule to build bits/stdio_lim.h from
959         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
960         all subdirectories know how to make the file.  It can't be
961         in Makerules because then it gets built at top level and the
962         dependencies are wrong.)
964         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
965         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
966         stdio_lim.h.
967         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
968         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
969         * sysdeps/posix/Makefile: Removed.
970         * sysdeps/posix/mk-stdiolim.c: Removed.
971         * sysdeps/generic/bits/stdio_lim.h: Removed.
973 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
975         * argp/argp-help.c: Fixup indentation.
976         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
977         * resolv/nss_dns/dns-network.c: Likewise.
978         * resolv/res_send.c: Likewise.
979         * rt/aio_cancel.c: Likewise.
980         * rt/aio_misc.c: Likewise.
982 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
984         * Makefile (install-symbolic-link): Remove the link list file at last.
985         * Makerules (install-clean-symbolic-link-list): Removed.
987 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
989         * timezone/tst-timezone.c: Print time in UTC to get consistent
990         output.
992 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
994         * elf/rtld.c (_dl_rpath): Removed.
995         * elf/dl-support.c (_dl_path): Removed.
996         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
997         (CFLAGS-dl-support.c): Removed.
999         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
1000         uses changed.
1001         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
1002         instead of appending it to the main map's rpath info.
1003         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
1004         DT_RPATHs.  This makes it effective again.
1005         (decompose_rpath): Remove second parameter, callers changed.
1006         (fillin_rpath): Allocate enough space in curwd.
1007         (expand_dynamic_string_token): Cope with get_origin returning -1.
1009 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1011         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
1012         passwd.adjunct.
1014         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
1015         invalid password.
1017 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
1019         * locale/programs/locale.c: Update dates.
1021 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
1023         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
1024         size_t is defined.  Some reordering of defenitions to make
1025         maintaining this file in parallel with the linux-specific file easier.
1027 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
1029         * io/pwd.c (main): Add call to mtrace.
1031         * malloc/mtrace.pl: Quote @ in string.
1033 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
1035         * posix/wordexp.c (parse_arith): Fix memory leaks.
1036         (exec_comm): Likewise.
1037         (parse_param): Likewise.
1038         (wordexp): Likewise.
1039         (exec_comm): Reduce number of function return points.
1040         (parse_param): Likewise.
1041         (wordexp): Likewise.
1043 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
1045         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
1046         yield three fields, not two.  Test both parameter expansion and
1047         command substitution for correct field-splitting behaviour.
1049         * posix/wordexp.c (w_emptyword): New function.
1050         (parse_param): Use it.
1051         (exec_comm): Likewise, for consistency with the way parse_param
1052         splits fields.
1053         (parse_param): Fix some memory leaks.
1055 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
1057         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
1058         Don't mark asm `volatile'.
1059         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
1060         from the data cache too.  Assume it isn't in the instruction cache yet.
1061         (__elf_machine_fixup_plt): Clear the modified address from the caches.
1063 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
1065         * sysdeps/generic/segfault.c (install_handler): Install signal
1066         handler with SA_ONSTACK instead of setting the stack flags to
1067         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
1068         defined.
1070 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1072         * signal/signal.h: Fix multiple inclusion guard to cover the
1073         entire file.
1074         * wcsmbs/wchar.h: Remove prototype of internal function
1075         __mbsrtowcs.
1076         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
1077         arithmetic on `void *'.
1079 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
1081         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
1083         * posix/wordexp.c (wordexp): Perform word-splitting instead of
1084         field-splitting here.
1085         (wordexp): If out of memory mid-word, free the word (but still
1086         leave pwordexp alone for caller to see).
1087         (parse_param): Allow for zero-length fields (smarter checking of
1088         memory allocation failure).
1089         (w_addword): Convert NULL words to "".
1090         (wordexp): Convert left-over IFS characters to blanks (like bash).
1092 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1094         * configure.in: Use test -f instead of test -e.
1095         Patch by John Tobey <jtobey@banta-im.com>.
1097         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
1098         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
1099         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
1100         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
1101         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
1102         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
1103         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
1104         Patches by John Tobey <jtobey@banta-im.com>.
1106         * time/strftime.c (my_strftime): Delay use of *tp values until
1107         latest possible point to allow partly initialized structures
1108         (e.g., from strptime).
1110         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
1111         and NATS-SEFI.
1112         Define *-routines variables for new modules.
1113         (distribute): Add .c files for new modules.
1114         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
1115         and nats-sefi.h.
1116         Add rules for header generation.
1117         * iconvdata/gconv-modules: Add entries for new modules.
1118         * iconvdata/iso_10367-box.c: New file.
1119         * iconvdata/mac-is.c: New file.
1120         * iconvdata/nats-dano.c: New file.
1121         * iconvdata/nats-sefi.c: New file.
1123 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
1125         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
1126         loader if PIC is not defined.
1128 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1130         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
1131         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
1132         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
1133         and ISO_5428.
1134         Define *-routines variables for new modules.
1135         (distribute): Add .c files for new modules.
1136         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
1137         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
1138         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
1139         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
1140         Add rules for header generation.
1141         * iconvdata/gconv-modules: Add entries for new modules.
1142         * iconvdata/csn_369103.c: New file.
1143         * iconvdata/cwi.c: New file.
1144         * iconvdata/dec-mcs.c: New file.
1145         * iconvdata/ecma-cyrillic.c: New file.
1146         * iconvdata/gost_19768-74.c: New file.
1147         * iconvdata/greek-ccitt.c: New file.
1148         * iconvdata/greek7-old.c: New file.
1149         * iconvdata/greek7.c: New file.
1150         * iconvdata/inis-8.c: New file.
1151         * iconvdata/inis-cyrillic.c: New file.
1152         * iconvdata/inis.c: New file.
1153         * iconvdata/iso6937-2.c: New file.
1154         * iconvdata/iso_2033.c: New file.
1155         * iconvdata/iso_5427-ext.c: New file.
1156         * iconvdata/iso_5427.c: New file.
1157         * iconvdata/iso_5428.c: New file.
1159         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
1160         entries.
1161         Convert U02dd correctly.
1163 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
1165         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
1166         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1167         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
1168         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
1170 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1172         * resolv/res_init.c (res_init): Handle resolv.conf file with only
1173         one nameserver correctly.  Patch by HJ Lu.
1175         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
1176         and ANSI_X3.110.
1177         Define *-routines variables for new modules.
1178         (distribute): Add .c files for new modules.
1179         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
1180         Add rules for hedaer generation.
1181         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
1182         * iconvdata/ansi_x3.110.c: New file.
1183         * iconvdata/asmo_449.c: New file.
1184         * iconvdata/baltic.c: New file.
1185         * iconvdata/iec_p27-1.c: New file.
1187         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
1188         entries.
1189         Convert U02dc correctly.
1191         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
1192         * math/atest-exp2.c: Likewise.
1193         * math/atest-sincos.c: Likewise.
1195         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
1196         is defined.
1198 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1200         * string/strcoll.c: Optimize a few expressions.
1201         * string/strxfrm.c: Likewise.
1203 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1205         * manual/locale.texi: Fix typos.
1207 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
1209         * stdlib/random_r.c (__setstate_r): Allow call with same state
1210         array as currently used (PR libc/774).
1212         * include/limits.h: Include gcc's header even if this file is
1213         found more than once before it (PR libc/778)
1215         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
1216         (sysdep_headers): Remove sys/debugreg.h.
1217         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
1218         (sysdep_headers): Add sys/debugreg.h.
1219         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
1220         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
1222         * stdio-common/tmpnam.c: Move local static variable buf to
1223         toplevel and rename to tmpnam_buffer to ease debugging.
1224         Patch by Joe Keane <jgk@jgk.org>.
1225         Optimize s == NULL case a bit.
1227         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
1228         correction.
1230 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
1232         * resolv/res_init.c (res_init): Initialize _res.nscount and
1233         _res.nsaddr.sin_port differently for the can when no loopback
1234         is available to allow immediate timeout in non-networking environments.
1235         Patch by Cristian Gafton <gafton@redhat.com>.
1237 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1239         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
1240         BAR and not EM DASH.
1241         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
1242         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
1243         Fixes PR libc/717.
1245 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
1247         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
1248         for test.
1249         * timezone/tst-timezone.c (tests): Fix typo in last patch.
1251         * time/tzfile.c (__tzfile_read): Handle case when there are no
1252         transitions.  Set __timezone based on computed offset.
1253         * time/tzset.c (tzset_internal): Set __timezone before returning.
1255         * time/tzset.c (tzset_internal): Optimize handling of local string
1256         copy.
1258 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1260         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
1261         libc/776).
1263 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
1265         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
1266         (csqrt_test): Likewise.
1267         * sysdeps/powerpc/bits/fenv.h: Add parens.
1269 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
1271         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
1272         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1273         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
1275 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
1277         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
1278         the special `-1' pointer.
1280 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
1282         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
1283         inline.
1285 1998-09-07  Paul Eggert  <eggert@twinsun.com>
1287         * time/mktime.c (__EXTENSIONS__): Define if not defined.
1288         (_REENTRANT): Remove.  It has undesirable consequences in
1289         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
1290         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
1291         is what we want.
1292         * time/strftime.c: Likewise.
1294 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1296         * elf/dl-error.c: Fix spelling.
1298 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1300         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
1301         * stdio-common/_itoa.c: Likewise.
1302         * stdio-common/printf_fp.c: Likewise.
1303         * stdio-common/vfscanf.c: Likewise.
1304         * wcsmbs/wcstok.c: Likewise.
1305         * sysdeps/generic/glob.c: Likewise.
1306         * posix/getopt.c: Likewise.
1307         * sysdeps/posix/getaddrinfo.c: Likewise.
1308         * posix/wordexp.c: Likewise.
1309         * io/ftw.c: Likewise.
1310         * io/fts.c: Likewise.
1311         * misc/getpass.c: Likewise.
1312         * iconv/gconv_conf.c: Likewise.
1313         * argp/argp-fmtstream.c: Likewise.
1314         * argp/argp-help.c: Likewise.
1315         * elf/dl-load.c: Likewise.
1316         * locale/programs/stringtrans.c: Likewise.
1317         * catgets/gencat.c: Likewise.
1318         * posix/getconf.c: Likewise.
1319         * iconv/gconv_conf.c: Likewise.
1320         * iconv/iconv_prog.c: Likewise.
1322         * string/strcoll.c: Optimize a few expressions.
1323         * string/strxfrm.c: Likewise.
1325 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1327         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
1328         level to avoid uninit variable warning.
1330 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1332         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
1333         instead of _dl_default_scope[2] as argument to _dl_init_next.
1335         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
1336         C9x macro.
1338 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
1340         Fix compatibility problems introduced in last change.
1341         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
1342         defined.
1343         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
1344         -DWEAK_GMON_START to CFLAGS-initfini.s.
1346         * elf/dl-object.c (_dl_new_object): Store map address in
1347         _dl_loaded if _dl_loaded is NULL.
1348         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
1350         * sysdeps/generic/setrlimit64.c: Remove stub warning.
1352 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
1354         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
1355         quiet.
1356         * db2/btree/bt_cursor.c: Likewise.
1357         * db2/common/db_region.db_c: Likewise.
1358         * db2/common/db_salloc.db_c: Likewise.
1359         * db2/db/db.c: Likewise.
1360         * db2/db/db_rec.c: Likewise.
1361         * db2/hash/hash.c: Likewise.
1362         * db2/hash/hash_page.c: Likewise.
1363         * db2/hash/hash_rec.c: Likewise.
1364         * db2/log/log_findckp.c: Likewise.
1365         * db2/log/log_get.c: Likewise.
1366         * db2/log/log_put.c: Likewise.
1367         * db2/mp/mp_fget.c: Likewise.
1368         * db2/mp/mp_fput.c: Likewise.
1369         * db2/mp/mp_region.c: Likewise.
1370         * stdlib/strtol.c: Likewise.
1371         * string/strcoll.c: Likewise.
1372         * string/strxfrm.c: Likewise.
1373         * argp/argp-help.c: Likewise.
1374         * argp/argp-parse.c: Likewise.
1375         * resolv/res_debug.c: Likewise.
1377 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
1379         * math/tgmath.h (scalb): Only define for __USE_MISC or
1380         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
1382 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1384         * libio/stdio.h: Fix comment.
1386         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
1387         __USE_ISOC9X.
1389 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1391         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
1393         * elf/dl-open.c: Quiet -Wparentheses warnings.
1394         * iconvdata/johab.c: Likewise.
1395         * iconvdata/uhc.c: Likewise.
1396         * inet/inet_net.c: Likewise.
1397         * io/fts.c: Likewise.
1398         * locale/newlocale.c: Likewise.
1399         * misc/getttyent.c: Likewise.
1400         * misc/mntent_r.c: Likewise.
1401         * misc/ttyslot.c: Likewise.
1402         * nscd/nscd_conf.c: Likewise.
1403         * nss/nsswitch.c: Likewise.
1404         * resolv/gethnamaddr.c: Likewise.
1405         * resolv/nsap_addr.c: Likewise.
1406         * resolv/res_debug.c: Likewise.
1407         * stdio-common/_itoa.c: Likewise.
1408         * stdlib/strtod.c: Likewise.
1409         * string/strverscmp.c: Likewise.
1410         * sunrpc/svc.c: Likewise.
1411         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
1412         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
1413         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
1414         * sysdeps/posix/getaddrinfo.c: Likewise.
1416 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
1418         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
1419         for use of global scope.
1420         * elf/dlvsym.c (dlvsym_doit): Likewise.
1422 1998-09-02  Paul Eggert  <eggert@twinsun.com>
1424         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
1425         copy the redundant bytes at the end of the format as-is; don't
1426         just copy their first byte and then rescan, as that might get
1427         us an encoding error.
1428         Account correctly for the length of multibyte sequences in the
1429         format.
1431 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
1433         * posix/wordexp-test.c: Add tests for different IFS values.
1434         Change unquoted-newline test so that newline is not in IFS.
1436         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
1437         determining IFS characters.  Return WRDE_BADCHAR for unquoted
1438         special characters _except_ if they are separators.
1440 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
1442         * include/tgmath.h: New file.
1444         * libio/stdio.h: Correct reversed #ifs.
1445         Patch by Zack Weinberg.
1447         * manual/creature.texi: Better explain reason for feature select
1448         macros.
1449         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
1451 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1453         * include/alloca.h: Add multiple-inclusion guard.
1454         * include/db.h: Likewise.
1455         * include/db_185.h: Likewise.
1456         * include/dlfcn.h: Likewise.
1457         * include/fcntl.h: Likewise.
1458         * include/grp.h: Likewise.
1459         * include/libintl.h: Likewise.
1460         * include/mntent.h: Likewise.
1461         * include/pwd.h: Likewise.
1462         * include/sched.h: Likewise.
1463         * include/search.h: Likewise.
1464         * include/setjmp.h: Likewise.
1465         * include/shadow.h: Likewise.
1466         * include/signal.h: Likewise.
1467         * include/stdio.h: Likewise.
1468         * include/stdlib.h: Likewise.
1469         * include/string.h: Likewise.
1470         * include/termios.h: Likewise.
1471         * include/time.h: Likewise.
1472         * include/ulimit.h: Likewise.
1473         * include/utmp.h: Likewise.
1474         * include/wchar.h: Likewise.
1475         * include/sys/file.h: Likewise.
1476         * include/sys/gmon.h: Likewise.
1477         * include/sys/ioctl.h: Likewise.
1478         * include/sys/mman.h: Likewise.
1479         * include/sys/resource.h: Likewise.
1480         * include/sys/select.h: Likewise.
1481         * include/sys/socket.h: Likewise.
1482         * include/sys/statfs.h: Likewise.
1483         * include/sys/time.h: Likewise.
1484         * include/sys/times.h: Likewise.
1485         * include/sys/wait.h: Likewise.
1487 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
1489         * version.h (VERSION): Bump to 2.0.96.
1491         Rewrite runtime linker to be truly thread-safe.  There is now no
1492         global variable specifying the scope.  We create all needed
1493         scopes at the time the link maps are created.
1494         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
1495         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
1496         l_symbolic_searchlist, l_scope, and l_local_scope elements in
1497         struct link_map.
1498         * elf/dl-close.c: Rewritten accordingly.
1499         * elf/dl-deps.c: Likewise.
1500         * elf/dl-error.c: Likewise.
1501         * elf/dl-init.c: Likewise.
1502         * elf/dl-load.c: Likewise.
1503         * elf/dl-lookup.c: Likewise.
1504         * elf/dl-object.c: Likewise.
1505         * elf/dl-open.c: Likewise.
1506         * elf/dl-reloc.c: Likewise.
1507         * elf/dl-runtime.c: Likewise.
1508         * elf/dl-support.c: Likewise.
1509         * elf/dl-symbol.c: Likewise.
1510         * elf/dl-version.c: Likewise.
1511         * elf/dlsym.c: Likewise.
1512         * elf/dlvsym.c: Likewise.
1513         * elf/ldsodefs.h: Likewise.
1514         * elf/rtld.c: Likewise.
1515         * iconv/gconv_dl.c: Likewise.
1516         * nss/nsswitch.c: Likewise.
1517         * sysdeps/i386/dl-machine.h: Likewise.
1518         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1520         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
1521         Define RTLD_DEFAULT.
1523 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
1525         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
1526         __getopt_clean_environment with __environ instead of envp.
1528 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
1530         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
1532         * string/argz-extract.c (__argz_extract): Add de-consting cast for
1533         setting results.
1535         * string/argz.h (argz_next): Add de-consting cast for return.
1536         * string/argz-next.c (__argz_next): Likewise.
1538         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
1539         Don't add netinet/udp.h, netinet/ip_icmp.h here.
1540         * sysdeps/gnu/Makefile: Do it here instead.
1541         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
1542         * sysdeps/gnu/Dist: ... to here.
1544         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
1545         sysdeps/unix/sysv/linux/netinet/tcp.h,
1546         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
1548 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
1550         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
1551         * string/argz-next.c, string/argz-extract.c: Fix defns.
1553 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
1555         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
1557         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
1558         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
1559         * sysdeps/generic/sysd-stdio.c: Likewise.
1561 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
1563         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
1564         (_dl_map_object_from_fd): Make NAME argument const.
1565         Remove last parameter in _dl_new_object call.
1566         (print_search_path): Correct construction of composed path name.
1567         (_dl_map_object): Prevent looking at RPATH of the main map twice.
1568         Remove last parameter in _dl_new_object call.
1569         * elf/dl-object.c: Remove last parameter.  Determine whether create
1570         origin entry based on empty realname.  Handle file in root directory
1571         correctly.
1572         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
1573         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
1574         Remove last parameter in _dl_new_object call.
1575         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
1576         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
1578 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
1580         * elf/dl-close.c (_dl_close): Add more comments and correct some.
1581         Free l_searchlist and l_dupsearchlist.
1583         * debug/catchsegv.sh: Add one more pair of quotes.
1585 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
1587         * elf/dl-load.c (add_name_to_object): Change return type to void and
1588         make NAME parameter const.  Allocate room for NAME in same memory
1589         block used for l_libname entry.
1590         (_dl_map_object_from_fd): Don't free NAME on failure.
1591         (map_segment): Pass SONAME to add_name_to_object, not a copy.
1592         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
1593         _dl_map_object_from_fd.
1594         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
1595         memory block used for l_libname entry.
1596         * elf/dl-close.c: Adjust free()ing for this change.
1598 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
1600         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
1602         * malloc/mtrace.c: Add bug report address.  Update email address.
1603         Add more @XXX@ to print correct address size.
1605         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
1606         really initialized.
1608         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
1609         for munmap call instead of examining phdr again.
1610         Free all malloc()ed strings and arrays.
1612 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1614         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
1615         dl-machine.h.
1616         * sysdeps/powerpc/dl-machine.c: New file.
1617         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
1618         files.  Revise ELF_PREFERRED_ADDRESS to take account of
1619         the new mapping information (fixes bug involving huge bloated
1620         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
1621         * sysdeps/powerpc/dl-start.S: New file.
1623         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
1624         l_map_end.
1625         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
1626         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
1627         others.  Call elf_dynamic_do_##reloc only once (to save even more
1628         space).
1629         * elf/link.h: Add new members l_map_start and l_map_end to keep
1630         track of the memory map.
1631         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
1632         the executable.
1634 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
1636         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
1637         Reported by Andreas Jaeger.
1639         * posix/glob.h: Use __size_t instead of size_t in definitions and
1640         make sure this is defined.
1642 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
1644         * manual/locale.texi: Almost complete rewrite.  Document more functions
1645         and functionality.
1646         * manual/arith.texi: Correct reference.
1647         * manual/string.texi: Pretty printing.
1649         * manual/texinfo.tex: Update from last available version.
1651 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
1653         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
1654         invalid password.
1655         (_nss_nis_getpwuid_r): Likewise.
1656         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
1658         * inet/rcmd.c: Implement netgroup support.
1659         Patch by Dick Streefland <dick_streefland@tasking.com>.
1661 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1663         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
1664         object on the list is removed.  Don't use this code for PIC.
1665         Reported by HJ Lu [PR libc/770].
1667 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
1669         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
1671         * include/stdio.h: Add __vsscanf.
1673         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
1674         __USE_ISOC9X.
1675         Remove __vsscanf declaration.
1676         Always declare fgetpos and fsetpos.
1678         * math/math.h: Define isinf as macro.
1679         * math/bits/mathcalls.h: Change to declare __isinf all the time.
1680         Don't declare scalb for ISO C 9x.
1682         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
1684         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
1686         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
1687         sys/ucontext.h.
1689         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
1690         macros.
1692 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1694         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
1695         Reported by jreising@frequentis.com [PR libc/767].
1697 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1699         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
1700         fl.l_start at beginning of function.
1701         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
1703 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1705         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
1706         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
1708         * nscd/nscd.init: Make it work in RedHat systems.
1709         Patch by Christian Gafton.
1711 1998-08-29  Philip Blundell  <philb@gnu.org>
1713         * catgets/Makefile: Don't try to run test programs when
1714         cross-compiling.
1716 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1718         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
1719         Reported by Zack Weinberg.
1721 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1723         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
1724         * elf/Makefile (distribute): Remove ldd.sh.in.
1726 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1728         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
1729         variable.
1731 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
1733         * sysdeps/i386/register-dump.h: Move to ...
1734         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
1736 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
1738         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
1739         with load address, not map address.
1740         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
1741         parameter and use this value.
1742         * sysdeps/arm/dl-machine.h: Likewise.
1743         * sysdeps/i386/dl-machine.h: Likewise.
1744         * sysdeps/m68k/dl-machine.h: Likewise.
1745         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
1746         parameter.
1747         * sysdeps/powerpc/dl-machine.h: Likewise
1748         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
1749         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
1751 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
1753         * elf/rtld.c (process_envvars): Fix copy&paste error.
1755         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
1756         memalign hook.
1757         (realloc_hook_ini): Don't overwrite memalign hook.
1758         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
1759         Reported by Philippe Troin <phil@fifi.org>.
1761         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
1762         Patch by Philippe Troin <phil@fifi.org>.
1764 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1766         * sysdeps/generic/segfault.c (install_handler): Protect the
1767         non-POSIX signals with #ifdef.
1768         (catch_segfault): Add missing mode parameter for open.
1769         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
1770         other termination signals.
1772 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1774         * debug/Makefile (distribute): Add register-dump.h.
1776 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1778         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
1780 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
1782         * elf/Makefile (distribute): Add dl-origin.h.
1783         * sysdeps/generic/dl-origin.h: New file.
1784         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
1785         * elf/link.h (struct link_map): Add l_origin field.
1786         * elf/dl-load.c (expand_dynamic_string_token): New function.
1787         (decompose_path): Remove WHERE argument, take link map pointer instead.
1788         Call expand_dynamic_string_token instead of local_strdup to make copy
1789         of rpath.
1790         (_dl_init_paths): Call decompose_path with correct argument.
1791         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
1792         not defined.
1793         Check EI_OSABI and EI_ABIVERSION fields in header.
1794         Call _dl_new_object with extra argument.
1795         (_dl_map_object): Call decompose_path with correct argument.
1796         Call expand_dynamic_string_token instead of local_strdup to also
1797         expand DST.
1798         Call _dl_new_object with extra argument.
1799         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
1800         but the main one if new argument is nonzero.
1801         * elf/ldsodefs.h: Adjust for _dl_new_object change.
1802         * elf/dl-support.c: Define _dl_origin_path.
1803         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
1804         (dl_main): Call _dl_new_object with extra argument.
1806         * elf/dl-close (_dl_close): Free l_name and l_origin.
1808         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
1809         modifier in asm, not c.
1811         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
1812         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
1814 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
1816         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
1817         variable so that map can be freed.
1818         Reported by Philippe Troin <phil@fifi.org>.
1820         * elf/dl-open.c (dl_open_worker): Correct test for extending global
1821         scope array.
1822         Patch by Philippe Troin <phil@fifi.org>.
1824 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1826         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
1827         Don't call writev() with a 100-element vector.
1828         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
1829         return address.
1831         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
1832         In particular, set __libc_stack_end.
1833         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
1834         undefined.  Fix copyright notice.
1836 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1838         * math/Makefile (gmp-objs): New variable.
1839         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
1840         Depend on it.
1841         (tests): Add atest-exp atest-sincos atest-exp2.
1842         (tests-static): Remove atest-exp atest-sincos atest-exp2.
1844 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
1846         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
1847         to toplevel.
1848         (_dl_unload_cache): New function.
1849         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
1850         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
1851         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
1853         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
1854         Correct comment for O_LARGEFILE.
1855         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
1856         Change O_LARGEFILE to correct value.
1858 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
1860         * libio/iogetline.c (_IO_getline_info): Don't read anything for
1861         N == 0.  Patch by HJ Lu.
1863 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
1865         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
1867 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
1869         * argp/argp.h: Use __inline__ not inline.
1871         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
1872         an input register as being clobbered.
1873         * sysdeps/i386/memset.c (memset): Likewise.
1874         * sysdeps/i386/bzero.c (__bzero): Likewise.
1875         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
1877 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1879         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
1880         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
1882 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
1884         * debug/catchsegv.sh: Handle text preceding backtrace better.
1885         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
1886         to be installed for other signals than SIGSEGV.
1887         * sysdeps/generic/register-dump.h: New file.
1888         * sysdeps/i386/register-dump.h: New file.
1889         * sysdeps/powerpc/register-dump.h: New file.
1891         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
1892         sigcontextinfo.h.
1893         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
1895 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
1897         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
1899 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1901         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
1902         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
1903         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
1904         getresuid, getresgid.
1906 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
1908         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
1909         pointer in userland.
1911 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1913         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
1914         and fix value.
1916 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1918         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
1919         over arguments Bourne shell compatible.  Don't exit unsuccessfully
1920         if nonelf returns successfully.  Avoid duplicating most of the
1921         script.
1922         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
1923         around $file.
1925 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1927         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
1928         sys/reg.h.
1929         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
1930         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
1932 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1934         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
1935         __modify_ldt and modify_ldt.
1936         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
1938         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1939         Use orl $-1 instead of movl $-1 to save two bytes.
1940         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
1941         Likewise.
1943 1998-08-17  H.J. Lu  <hjl@gnu.org>
1945         * libio/Versions (_IO_do_write, _IO_file_attach,
1946         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1947         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1948         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1949         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
1951         * libio/fileops.c (_IO_do_write, _IO_file_attach,
1952         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1953         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1954         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1955         _IO_file_write, _IO_file_xsputn): Change the prefix to
1956         "_IO_new_". Added to GLIBC_2.1.
1958         * libio/libioP.h (_IO_do_write, _IO_file_attach,
1959         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1960         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1961         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1962         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
1963         "_IO_new_".
1965         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
1966         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1967         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1968         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1969         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
1971 1998-08-23  Richard Henderson  <rth@cygnus.com>
1973         * Makeconfig (LDFLAGS): Remove.
1975         * csu/initfini.c: Return to .text before __gmon_start__.
1977         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
1978         (STO_MIPS_*): Rename from STO_*.
1979         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
1980         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
1982         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
1983         (main): e3s is negative on zero.
1984         * math/atest-exp2.c: Likewise.
1985         * math/atest-sincos.c: Likewise.
1987 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1989         * Makerules (install): Add comment about absolute paths.
1991 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1993         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
1994         array to NUL to handle maxlen==1 case correctly.
1995         Patch by HJ Lu.
1997 1998-08-23  Richard Henderson  <rth@cygnus.com>
1999         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
2000         * sysdeps/alpha/elf/crtend.S: Likewise.
2001         * sysdeps/alpha/elf/start.S: Likewise.
2003         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
2004         non-standard pv usage.
2006         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
2007         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2008         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2009         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2010         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2011         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2012         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2013         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2014         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2015         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2016         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2018         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
2019         a finite non-denormal, deferring to the full IEEE version otherwise.
2021         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
2022         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
2023         * sysdeps/alpha/fpu/s_floor.c: New.
2024         * sysdeps/alpha/fpu/s_floorf.c: New.
2025         * sysdeps/alpha/fpu/s_ceil.c: New.
2026         * sysdeps/alpha/fpu/s_ceilf.c: New.
2028 1998-08-22  Philip Blundell  <philb@gnu.org>
2030         * sysdeps/arm/bits/string.h: New file.
2032 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2034         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
2035         document it.
2037         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
2038         test for recent Linux 2.1.100+ headers.
2040 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2042         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
2044 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
2046         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
2048 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2050         * Makefile (elf/ldso_install): Put back.  The problem still persists.
2051         * elf/Makefile (ldso_install): Likewise.
2053 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2055         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
2056         create weak alias.
2057         * include/db.h: Declare __nss_db_open.
2058         * db2/Versions: Export it.
2060         * db2/makedb.c: Convert to use db2 API.
2061         * nss/nss_db/db-XXX.c: Likewise.
2062         * nss/nss_db/db-netgrp.c: Likewise.
2063         * nss/nss_db/db-alias.c: Likewise.
2064         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
2066 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2068         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2069         sys_setresuid, already built automatically (or not).
2070         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
2071         instead of __syscall_setresuid and add back setresuid.
2072         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
2073         __syscall_setresuid.
2075 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2077         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
2079 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2081         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
2082         BASH-ONLY marked region.
2083         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
2085 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2087         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
2088         _IO_SYSSEEK fails.
2090         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
2092         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
2093         element.
2095 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
2097         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
2098         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
2099         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
2100         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
2101         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
2102         those magic comments, and to use /bin/sh for @BASH@.
2103         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
2104         * elf/ldd.sh.in: File removed.
2106 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
2108         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
2109         cast them to unsigned long int.
2110         * pwd/putpwent.c (putpwent): Likewise.
2111         Patch by John Tobey <jtobey@banta-im.com>.
2113 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
2115         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
2116         _IO_pos_BAD.
2118 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2120         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
2121         _IO_SYSSEEK fails.
2123 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
2125         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
2126         Add umount and umount2.
2127         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
2128         * sysdeps/unix/sysv/linux/umount.S: New file.
2129         * sysdeps/unix/sysv/linux/umount2.S: New file.
2130         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
2131         Define MNT_FORCE.
2133         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
2134         Add sys/sendfile.h.
2135         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
2136         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
2138         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
2140         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
2141         sendfile.
2143 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
2145         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
2146         * elf/ldd.bash.in: Likewise.
2148         * elf/sln.c: Avoid warning for no main prototype.
2150         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
2151         O_WRITE.
2152         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2153         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2155         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
2156         F_GETSIG.
2157         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2158         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2159         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2161 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
2163         * sysdeps/arm/fpu/ieee754.h: Move to...
2164         * sysdeps/arm/ieee754.h: ... here.
2166         * sysdeps/arm/__longjmp.S: Put return value in correct register.
2167         Don't set the condition flags unnecessarily.
2168         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
2169         registers correctly.
2171         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
2172         (patch from Scott Bambrough).
2174         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
2176         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
2177         NULL, just call it unconditionally.
2178         (__gmon_start__): Provide stub version as a weak symbol.
2180 1998-07-30  Philip Blundell  <philb@gnu.org>
2182         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
2183         by Scott Bambrough)
2185         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
2186         like `@' in .type directives.
2188         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
2189         * sysdeps/arm/bsd-_setjmp.S: Likewise.
2191         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
2193 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2195         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
2196         (F_GETOWN): Likewise.
2198         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
2199         Linux 2.1.117).
2201 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2203         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
2204         already defined.
2206 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
2208         * include/features.h: Define __USE_EXTERN_INLINES for recent
2209         enough gcc.
2210         * argp/argp.h: Define extern inline functions only if
2211         __USE_EXTERN_INLINES is defined.
2212         * libio/stdio.h: Likewise.
2213         * math/math.h: Likewise.
2214         * stdlib/stdlib.h: Likewise.
2215         * string/argz.h: Likewise.
2216         * sysdeps/generic/bits/sigset.h: Likewise.
2217         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
2218         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
2219         * sysdeps/wordsize-32/inttypes.h: Likewise.
2220         * sysdeps/wordsize-64/inttypes.h: Likewise.
2221         * wcsmbs/wchar.h: Likewise.
2223         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
2224         to allow compilation without optimization.
2226 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2228         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
2229         more entries.
2230         * nis/nss_compat/compat-initgroups.c: Likewise.
2231         * nis/nss_compat/compat-pwd.c: Likewise.
2232         * nis/nss_compat/compat-spwd.c: Likewise.
2233         * nis/nss_nis/nis-alias.c: Likewise.
2234         * nis/nss_nis/nis-ethers.c: Likewise.
2235         * nis/nss_nis/nis-grp.c: Likewise.
2236         * nis/nss_nis/nis-hosts.c: Likewise.
2237         * nis/nss_nis/nis-initgroups.c: Likewise.
2238         * nis/nss_nis/nis-network.c: Likewise.
2239         * nis/nss_nis/nis-proto.c: Likewise.
2240         * nis/nss_nis/nis-pwd.c: Likewise.
2241         * nis/nss_nis/nis-rpc.c: Likewise.
2242         * nis/nss_nis/nis-service.c: Likewise.
2243         * nis/nss_nis/nis-spwd.c: Likewise.
2245         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
2247         * nis/ypclnt.c: Try binding dir only first time, could be to old.
2249         * nis/yp_xdr.c: Remove 1024 byte limit.
2250         * nis/ypupdate_xdr.c: Likewise.
2252         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
2253         wrong data.
2255 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
2257         * Rules (binaries-static, binaries-shared static pattern rules):
2258         Depend on lib%, not just libc%, from $(link-libc{,-static}).
2260         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
2261         this here, overriding Makeconfig generic value so we link against
2262         the RPC libs.
2264 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
2266         * posix/tstgetopt.c (options): Add NULL entry at end
2267         Patch by Adrian Miranda <ade@psg.com>.
2269 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
2271         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
2272         to 9.
2274 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
2276         * elf/elf.h: Add PPC Diab relocations.
2278         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
2280 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
2282         * manual/texinfo.tex: Update.
2284 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
2286         * sysdeps/powerpc/backtrace.c: New file.
2288 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
2290         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
2291         sigjmp_save.
2292         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
2294 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2296         * Makefile (install-symbolic-link): Fix spelling.
2298 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2300         * elf/elf.h (SHT_HIOS): Fix value.
2302 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2304         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
2305         part of the expansion, this is undefined by the standard.
2307 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
2309         * posix/getconf.c: Add support for systems with incomplete confname.h.
2311         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
2313         * sysdeps/posix/wait3.c: Make it work.
2315 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2317         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
2318         (elf/ldso_install): Remove.
2320         * elf/Makefile (distribute): Add sln.c.
2321         (others): Add sln.
2322         (others-static): Add sln.
2323         (install-rootsbin): Add sln.
2324         (others-static): Add sln.
2325         (ldso_install): Remove.
2327 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2329         * Makerules (install-clean-symbolic-link-list): Make phony.
2330         * Makefile (install-symbolic-link): Make phony.  Depend on
2331         subdir_install for parallel makes.
2334 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
2336         * elf/Makefile (distribute): Add sln.c
2338 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
2340         * elf/sln.c: New file.
2342         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
2343         (install-clean-symbolic-link-list): New target.
2344         (install): Depend on install-clean-symbolic-link-list.
2345         (make-shlib-link): Changed for $(symbolic-link-list).
2347         * Makefile (install-symbolic-link): New target.
2348         (install): Depend on install-symbolic-link.
2350 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
2352         * include/unistd.h: Protect against multiple inclusion.
2354         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
2355         is defined, not is glob is defined.
2356         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
2358 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
2360         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
2361         xdr_string for ut_line, ut_name and ut_host.
2363 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2365         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
2366         /var/mail in accordance with FHS 2.0.
2367         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
2369 1998-08-12  Richard Henderson  <rth@cygnus.com>
2371         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
2372         Update aliases for cancelation.
2374         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
2375         playing with symbol versions.
2377 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2379         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
2380         multiple inclusion protection.
2381         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
2382         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
2383         define all these to 1.
2384         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
2386 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2388         * sysdeps/mach/usleep.c: Include <unistd.h>.
2389         (usleep): Return void.
2391 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2393         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
2394         decl to inhibit warning in if_freenameindex defn.
2396         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
2398         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
2400         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
2401         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
2402         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
2403         * sysdeps/mach/usleep.c: Likewise.
2405         * sysdeps/mach/hurd/bind.c (bind): Add a const.
2407         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
2408         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
2409         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
2410         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
2411         * sysdeps/mach/usleep.c (usleep): Likewise.
2412         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
2413         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
2414         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2415         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
2417 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2419         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
2420         (glob64): Fix typo.
2422         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
2423         %p arg to fprintf, since `void *' is the right type already.
2425 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
2427         * sysdeps/mach/hurd/getcwd.c
2428         (_hurd_canonicalize_directory_name_internal): Do not loop forever
2429         for unknown root directories.
2430         (__getcwd): Return NULL when the current root directory could not
2431         be reached.
2433 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
2435         * string/strsignal.c (strsignal): Count real-time signals from zero.
2438 See ChangeLog.8 for earlier changes.