Update.
[glibc.git] / ChangeLog
blob39daebc928f3ec103f5192caef2e794fa06a6b36
1 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
3         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
4         parameter format string.
5         (inline_outw): Likewise.
7         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
8         string.h to get memcpy prototype and NULL definition.
10 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
12         * misc/sys/cdefs.h (__THROW): New macro.
13         * argp/argp.h: Use it to replace the kludgey __P in inline
14         function definitions.
15         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
16         * stdlib/stdlib.h: Likewise.
17         * wcsmbs/wchar.h: Likewise.
18         * libio/stdio.h: Likewise.
19         * stdio/stdio.h: Likewise.
20         * sysdeps/wordsize-64/inttypes.h: Likewise.
21         * sysdeps/wordsize-32/inttypes.h: Likewise.
22         * string/argz.h: Likewise.
23         * io/sys/stat.h: Likewise.
25 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
27         * Rules (stdio_lim): New variable.
28         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
29         on Rules and config.make, use $(move-if-change) to avoid unnessary
30         recompilations, and cleanup command.
31         (common-generated): Add bits/stdio_lim.st.
33 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
35         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
36         variable to prevent warnings from use of modern CPU instructions.
37         Patch by Richard Henderson <rth@cygnus.com>.
39         * sysdeps/unix/opendir.c: Test whether NAME is directory before
40         opening it.
42 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
44         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
45         semicolon so that profiling works.
47 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
49         * sysdeps/generic/glob.c: #undef mempcpy before #define.
51         * sysdeps/unix/bsd/clock.c: Use prototype defns.
53 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
55         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
56         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
58         * string/bits/string2.h [!_STRING_ARCH_unaligned]
59         (__mempcpy_small): Add parameter for 1 byte copy and use it.
60         Reported by Geoff Keating <geoffk@ozemail.com.au>.
62 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
64         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
65         it is already defined in <bits/environments.h>.
67 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
69         * posix/ptestcases.h: Fix typo.
71 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
73         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
74         (regexec): Allocate regs.start and regs.end as one block.
76 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
79         enum decl.
81 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
83         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
84         sigcontext union to ...
85         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
86         file.
87         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
88         version 2.0 kernels.
90 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
92         * malloc/mtrace.c (tr_reallochook): Produce better output for real
93         reallocation case.
95         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
96         * argp/argp-xinl.c: Likewise.
98         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
99         Ruffian entry back.
100         Patch by Christian Gafton.
102 1998-10-08  Paul Eggert  <eggert@twinsun.com>
104         * time/mktime.c (__mktime_internal): When the requested time falls
105         in a spring-forward gap of size DT, return a time that is DT away
106         from the requested time, preferring a time whose tm_isdst differs
107         from the requested value.  Bump the max number of probes from 4 to
108         6 to account for the extra probes needed to discover a
109         spring-forward gap in the worst case.
111 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
113         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
114         of the weird alpha architectures.
115         Patch by Cristian Gafton <gafton@redhat.com>.
117 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
119         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
120         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
122 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
124         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
125         (dl_open_worker): Use realloc, not malloc to resize array.
126         * elf/rtld.c (_dl_initial_searchlist): New variable.
127         (_dl_main): Copy content of _dl_main_searchlist to
128         _dl_initial_searchlist.
129         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
130         _dl_global_scope_alloc.
131         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
132         * elf/dl-close.c (_dl_close): When removing object with global
133         scope remove allocated searchlist if no dynamically loaded object
134         is on it anymore.
135         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
136         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
138         * malloc/mtrace.c (tr_where): Don't print space in location string,
139         print it afterwards.  Print better symbol name information.
141 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
143         * manual/filesys.texi (Setting Permissions): Fix example for
144         reading umask.
146 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
148         * elf/sprof.c (load_profdata): Fix typo in error message.
150 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
152         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
153         flag.
155 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
157         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
159 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
161         * version.h (VERSION): Bump to 2.0.97.
163 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
165         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
166         in definitions of inline stat functions so that they match the
167         declaration.
168         * stdlib/stdlib.h: Likewise.
169         * wcsmbs/wchar.h: Likewise.
170         * libio/stdio.h: Likewise.
171         * stdio/stdio.h: Likewise.
172         * sysdeps/wordsize-64/inttypes.h: Likewise.
173         * sysdeps/wordsize-32/inttypes.h: Likewise.
174         * string/argz.h: Likewise.
175         * argp/argp.h: Likewise.
177 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
179         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
180         netinet/in.h.
182 1998-10-05  Philip Blundell  <philb@gnu.org>
184         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
185         and constants.  Tidy up formatting a little.
187         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
188         Move definitions to in.h.
190 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
192         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
193         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
194         Remove inclusion of <linux/swap.h>.
196 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
198         * io/sys/stat.h: Use __P in definitions of inline stat functions
199         so that they match the declaration.
201 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
203         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
205 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
207         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
208         linux 2.1 version.
210 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
212         * sysdeps/arm/dl-machine.h: Fix typo in last change.
214         * sysdeps/arm/bits/huge_val.h: New file.
216 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
218         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
220         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
221         define.
223 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
225         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
226         store result of realloc instead of using BUF.
228 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
230         * misc/sgtty.h (_SGTTY_H): Correct spelling.
231         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
233 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
235         * manual/memory.texi (Obstacks): Document
236         obstack_alloc_failed_handler usage.
238         * malloc/obstack.h: Enhance comment about
239         obstack_alloc_failed_handler usage.
240         * malloc/obstack.c: Likewise.
242 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
244         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
245         gcc before 2.8 is used.
247 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
249         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
250         from Scott Bambrough.
252         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
254         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
255         include the lock member.
257 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
259         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
261 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
263         * timezone/zic.c: Update from tzcode1998h.
264         * timezone/europe: Update from tzdata1998i.
265         * timezone/southamerica: Likewise.
267         * sys/types.h: Protect use of long long by __extension__.
268         * stdlib/stdlib.h: Likewise.
269         * string/string.h: Likewise.
270         * sysdeps/i386/bits/byteswap.h: Likewise.
271         * sysdeps/geeric/bits/byteswap.h: Likewise.
272         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
273         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
274         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
275         * sysdeps/wordsize-32/inttypes.h: Likewise.
276         * sysdeps/wordsize-32/stdint.h: Likewise.
277         * wcsmbs/wchar.h: Likewise.
279 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
281         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
282         expression.
283         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
284         __strsep): Greatly reduce size of expansion by combining common
285         expressions.
286         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
287         inline function.
288         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
289         by the above definitions.
291 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
293         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
294         correct struct ipc_perm definition.
296 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
298         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
300 1998-09-29  Cristian Gafton  <gafton@redhat.com>
302         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
303         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
304         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
305         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
306         Add net/if_shaper.h.
308 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
310         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
312         * nis/ypclnt.c: Remove not needed close calls.
314 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
316         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
317         check a bit.  Also close socket of domain client.  Close socket
318         in IPPORT_RESERVED error case.
320 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
322         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
323         CMSG_ALIGN (fixes a bug) and correct test for availability of
324         another entry.
325         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
326         Linux version.
327         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
328         availability of another entry.
329         Patch by ak@muc.de.
331         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
332         Patch by ak@muc.de.
334         * libio/libio.h [!__STDC__]: Define const only if not defined.
336 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
338         * posix/annexc.c (xsystem): New function.  Use it instead of
339         system.
341 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
343         * stdlib/longlong.h: Remove #endif for #if removed in last change.
345 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
347         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
348         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
349         allow using `ut' parameter.
350         [!emacs]: Define ut_argument, ut_argument_spec, and
351         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
352         argument_spec to prototypes and definitions.
353         (my_strftime): Don't call tzset of ut != 0.
354         Compute diff as 0 is ut != 0;
355         [emacs]: Define new emacs_strftime function.
356         Based on a patch by Paul Eggert.
358 1998-09-24  Paul Eggert  <eggert@twinsun.com>
360         * time/strftime.c (my_strftime): When asking for the length of the
361         subformatted buffer, do not limit the length to look for;
362         otherwise, we have no reliable way to distinguish between the
363         empty buffer and an error.
365 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
367         * math/Makefile (gmp-objs): Add mp_clz_tab.
369 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
371         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
372         set them.
373         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
374         cpus lacking hardware multiply and divide.
376 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
378         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
379         $(<F), not $(^F).
381 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
383         * db/btree/bt_delete.c: Fix -Wparentheses warning.
385 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
387         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
388         $(do-install).
390 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
392         * debug/catchsegv.sh: Also produce output if clone process died.
394 1998-09-24  Paul Eggert  <eggert@twinsun.com>
396         * time/strftime.c (f_wkday): Remove duplicate definition.
397         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
398         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
399         1998-09-11 fix to this case.
400         (wkday_len, month_len): Remove these macros; they're no longer needed.
402 1998-09-24  Paul Eggert  <eggert@twinsun.com>
404         * time/strftime.c (my_strftime): Don't store past the end of a
405         zero-sized buffer.
407 1998-09-24  Paul Eggert  <eggert@twinsun.com>
409         * time/strftime.c (underlying_strftime):
410         Set the buffer to a nonzero value before calling
411         strftime, and check to see whether strftime has set the buffer to zero.
412         This lets us distinguish between an empty buffer and an error.
414 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
416         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
417         This fix is propagated from tzcode1998g.tar.gz.
419 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
421         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
422         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
423         sys_siglist.  This is handled correctly by the weak_alias macro.
425 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
427         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
428         of mempcpy.  Reported by Andreas Jaeger.
430         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
431         pollute the namespace since the compiler will resolve it inline.
432         Reported by Florian La Roche <florian@suse.de>.
434 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
436         * timezone/private.h: Update from tzcode1998g.
438         * timezone/africa: Update from tzdata1998h.
439         * timezone/asia: Likewise.
440         * timezone/australasia: Likewise.
441         * timezone/europe: Likewise.
442         * timezone/northamerica: Likewise.
443         * timezone/southamerica: Likewise.
444         * timezone/zone.tab: Likewise.
446 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
448         * misc/sys/mman.h: New file.
450         * sysdeps/generic/bits/mman.h: New file.
451         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
452         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
453         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
454         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
456         * sysdeps/generic/sys/mman.h: Removed.
457         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
458         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
459         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
460         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
461         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
463         * include/sys/mman.h: Look directly for misc/sys/mman.h.
464         * misc/Makefile (headers): Add bits/mman.h.
465         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
466         bits/mman.h.
468         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
469         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
470         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
471         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
472         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
473         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
474         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
475         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
477 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
479         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
480         * sysdeps/mach/alpha/thread_state.h: Likewise.
481         * sysdeps/mach/i386/sysdep.h: Likewise.
482         * sysdeps/mach/i386/thread_state.h: Likewise.
483         * sysdeps/mach/mips/sysdep.h: Likewise.
484         * sysdeps/mach/mips/thread_state.h: Likewise.
485         * sysdeps/posix/profil.c: Likewise.
486         * sysdeps/i386/i586/memcopy.h: Likewise.
487         * sysdeps/mach/pagecopy.h: Likewise.
489 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
491         * libio/stdio.h: Define __need_getopt and include getopt.h to define
492         getopt stuff.
493         * posix/unistd.h: Likewise.
494         * stdio/stdio.h: Likewise.
495         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
496         define only getopt and the variables.
498 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
500         * scripts/test-installation.pl (installation_problem): Don't link
501         the test program against libdb1.
503 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
505         * Makeconfig (all-subdirs): Add db.
506         * Versions.def: Add definition for libdb1.
507         * shlib-versions: Add definitions for libdb1.
508         * db/Makefile (extra-libs): Replace by libdb1.
509         (libdb-routines): Rename to libdb1-routines.
510         (headers): Rename to db1-headers.
511         (distribute): Add $(db1-headers).
512         (install-others): Define to install symlink libdb.so.NN and the
513         $(db1-headers).
514         (CPPFLAGS): Add -DUSE_LIBDB1
515         Remove rules to build makedb.
516         * db/Versions: Rename libdb to libdb1.
517         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
518         * db/makedb.c: Removed.
520         * scripts/versions.awk: Recognize digits in library names.
522         * db/btree/bt_open.c: Fix compiler warnings.
523         * db/btree/bt_put.c: Likewise.
524         * db/btree/bt_split.c: Likewise.
525         * db/hash/hash.c: Likewise.
526         * db/hash/hash_bigkey.c: Likewise.
527         * db/recno/rec_close.c: Likewise.
529         * Makefile: Add localedata/% goal.
531 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
533         * posix/execvp.c: Don't give up searching the PATH if execve
534         returns ENOTDIR.
536 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
538         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
539         if _dl_fpu_control_set is set.
540         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
541         * elf/rtld.c: Don't define _dl_fpu_control_set.
542         * elf/Versions: Remove _dl_fpu_control_set.
544 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
546         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
547         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
548         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
549         Correct values of other SA_* macros according to kernel headers.
551 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
553         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
554         variable l.
555         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
556         old.
558 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
560         * elf/ldsodefs.h: Fix typo in comment.
562 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
564         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
565         char when comparing buffer contents with putback character.
567 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
569         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
570         Undo last change.
571         * elf/Versions: Undo last change.  Export _dl_fpu_control and
572         _dl_fpu_control_set.
573         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
574         variables.  Include <fpu_control.h>.
575         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
576         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
577         to indicate that is was seen.
578         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
579         only if _dl_fpu_control was set and is equal to desired value.
580         * math/Makefile (aux): Undo last change.
581         * math/Versions: Export __fpu_control with version GLIBC_2.0.
583 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
585         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
586         optimized.
588 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
590         * string/bits/string2.h: Add mempcpy optimization.
591         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
592         * intl/localealias.c: Define mempcpy only if not already defined.
594         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
595         defined.
597 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
599         * csu/abi-note.S: Emit the note directly instead of defining
600         a preprocessor macro that's only used once.  Don't include sysdep.h.
601         * abi-tags: Generalize Solaris entry.
603 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
605         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
606         Change to array to avoid runtime relocation.
607         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
609 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
611         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
612         * math/Makefile ($(objpfx)libieee.a): Likewise.
614 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
616         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
617         Patch by John Tobey <jtobey@banta-im.com>.
619 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
621         * login/Makefile (distribute): Remove pty-internal.h, add
622         pty-private.h.
624         * stdlib/tst-strtol.c: Add more checks.
625         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
627 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
629         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
630         * elf/elf.h: Add AT_FPUCW.
631         * elf/Makefile (dl-routines): Add fpu_control.
632         (elide-routines.os): Add fpu_control.
633         (rtld-routines): Add fpu_control.
634         * math/Makefile (aux): Remove fpu_control.
635         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
636         (_dl_show_auxv): Likewise.
637         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
638         if different from OS default.
640         * stdio-common/tstscanf.c: Add test case for (nil).
642 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
644         * libio/fileops.c (_IO_new_file_underflow): Before allocating
645         buffer make sure the pushback buffer is destroyed.
646         (_IO_new_file_seekoff): Likewise.
647         If mode==0 quit early with the result.
648         Clear OEF flag after successful fseek.
649         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
650         * libio/ftello.c (ftello): Add offset from original buffer if
651         stream has pushed back characters.
652         * libio/ftello64.c (ftello64): Likewise.
653         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
654         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
655         * libio/ioftell.c (_IO_ftell): Likewise.
656         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
657         and _IO_save_ptr.
658         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
659         (_IO_default_pbackfail): Only stored push back character in original
660         buffer if it is the same as the one in the file at this position.
661         * libio/iofclose.c: Free backup buffer if one is available.
662         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
663         mode!=0.
665         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
667         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
669         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
671 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
673         * login/programs/pt_chown.c (more_help): Correct message that
674         describes the purpose of the program.
676         * login/openpty.c: Do not include pty-private.h.
677         (pts_name): New function.  Return name of slave pseudo terminal in
678         an allocated buffer if necessary.
679         (openpty): Use pts_name to get name of the slave end of the pseudo
680         terminal pair.
682         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
683         pts_name before return.
685 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
687         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
689 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
691         * login/openpty.c: Include pty-private.h instead of
692         pty-internal.h.
694 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
696         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
698 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
700         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
701         recent ld.so changes.
702         (elf_machine_runtime_setup): Correct behaviour when profiling.
704 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
706         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
707         Patch by John Tobey <jtobey@banta-im.com>.
709 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
711         * login/pty-internal.h: Removed.  Moved constants related to the
712         `grantpt' helper program protocol to ...
713         * login/pty-private.h: ... here.  New file.
714         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
715         to make the function work with kernels >= 2.1.115.
716         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
717         version if using the cloning device fails.
718         * sysdeps/unix/sysv/linux/grantpt.c: New file.
719         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
720         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
721         use by Linux specific code.
722         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
723         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
724         function.  (grantpt): Use pts_name, check group and permission
725         mode in addition to owner.  Try to set the owner, group and
726         permission mode first without invoking the helper program.
727         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
728         internationalization support.  Use symbolic constants instead of
729         hardwired numbers for permission mode.
730         * sysdeps/unix/bsd/ptsname.c: New file.
732 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
734         * posix/wordexp-test.c: Undo last change.
736         * posix/wordexp.c: Undo last change.
738 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
740         * nscd/grpcache.c (save_grp): Partly undo last change.
742         * nscd/pwdcache.c (save_pwd): Undo last change.
744 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
746         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
747         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
749 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
751         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
752         Add profiling support.
753         (TRAMPOLINE_TEMPLATE): New macro.
754         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
755         (RTLD_START): Prettify, and set __libc_stack_end properly.
756         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
757         and check for sym being NULL instead.
758         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
759         of stack space.
760         * sysdeps/sparc/sparc64/lshift.S: Likewise.
761         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
762         * sysdeps/sparc/sparc64/rshift.S: Likewise.
763         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
764         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
765         MEDANY code model %g4 usage.
766         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
767         MEDANY code model %g4 usage.
768         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
769         code model address formation.
770         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
771         include elf/ldsodefs.h
772         (DT_SPARC): Remove.
773         (elf_machine_matches_host): It is now EM_SPARCV9.
774         (elf_machine_dynamic): Clean up to remove ugly cast.
775         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
776         new PLT formats.
777         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
778         Prettify rest of function.
779         [R_SPARC_COPY]: Check for sym being NULL.
780         [R_SPARC_32]: Handle it.
781         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
782         MEDMID code model.
783         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
784         MEDANY code model.
785         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
786         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
787         Add profiling support.
788         (TRAMPOLINE_TEMPLATE): New macro.
789         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
790         (RTLD_START): Prettify and set __libc_stack_end.
791         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
792         Define.
793         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
794         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
795         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
796         unused variable scratch.
797         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
798         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
799         Declare.
800         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
801         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
802         old format kernel sigaction structures.
803         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
804         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
805         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
806         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
807         ucontext include.
808         (_JMPBUF_UNWINDS): Define.
809         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
810         statfs64 structure, which is exactly the same as the normal one.
811         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
812         of stack.  Use correct syscall trap number.  Add branch prediction
813         settings to branch instructions.  Remove old MEDANY code model %g4
814         referneces for non-PIC.
815         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
816         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
817         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
818         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
819         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
820         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
821         __libc_longjmp and __libc_siglongjmp strong aliases.
822         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
823         Also define to __no__readdir64_decl around readdir.c inclusion.
824         (__readdir64): Add strong alias.
825         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
826         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
827         Set strong and weak names properly.
829 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
831         * manual/Makefile (AWK): Default to gawk if standalone.
833 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
835         * Makefile (distribute): Undo last change.
836         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
837         for sysdep headers.
838         (+subdir-headers): Removed, unused.
840 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
842         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
843         $(do-install).
845 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
847         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
848         absolute name in $(config-sysdirs), can never happen.
849         ($(+sysdir_pfx)sysd-rules): Likewise.
850         * Makeconfig (full-config-sysdirs): Likewise.
851         (all-Subdirs-files): Prepend $(..).
853         * configure.in: Don't check for absolute name in $add_ons_pfx, can
854         not happen.  Let --enable-add-ons=yes work if no add-ons actually
855         exist.
857 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
859         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
860         continuations in command.
862 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
864         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
866 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
868         * posix/wordexp-test.c: If expansion or substitution occurs
869         anywhere in a word, the entire word is subject to field-splitting.
871         * posix/wordexp.c (parse_glob): Look for end of word instead of
872         end of field when deciding what to glob.
873         (field_split_word): New function, now the only place where
874         field-splitting is performed.
875         (parse_dollars): New parameter - tell the caller if
876         field-splitting should be performed on this word.
878         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
879         succeeded (or failed with WRDE_NOSPACE).
881 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
883         * posix/wordexp.c (wordexp): Don't convert IFS characters to
884         blanks.
886         * posix/wordexp-test.c: Words not the result of expansion or
887         substitution should remain unchanged.
889 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
891         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
892         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
894 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
896         * stdio-common/Makefile: Include Makeconfig so that
897         $(inst_includedir) is defined.
899 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
901         * io/pwd.c: Include <mcheck.h>.
903 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
905         * nscd/pwdcache.c (save_pwd): Correct copying.
906         * nscd/grpcache.c (save_grp): Likewise.
908 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
910         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
911         (free_pwd): Adjust for this change.
912         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
913         (free_grp): Adjust for this change.
915 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
917         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
919 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
921         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
922         (install-others): Add bits/stdio_lim.h.
923         Add rule to install bits/stdio_lim.h.
925         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
927         * Makefile (distribute): Add include/sys/mman.h.
929         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
930         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
931         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
933         * grp/initgroups.c: Include stdlib.h.
934         Patch by Zack Weinberg.
936 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
938         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
939         for field-splitting :abc: is correct, and that two fields should
940         result. Revert tests to reflect this.
942         * posix/wordexp.c (w_emptyword): Remove function.
943         (exec_comm): Don't use w_emptyword.
944         (parse_param): Likewise.
946 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
948         * sysdeps/arm/fpu/Dist: Moved to...
949         * sysdeps/arm/Dist: ...here.
950         * sysdeps/posix/Dist: Removed.
951         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
952         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
954 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
956         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
958 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
960         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
962 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
964         * libc-work/nis/nss_nisplus/nisplus-service.c
965         (_nss_nisplus_parse_servent): Convert port in network byte order.
967 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
969         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
970         to provide only malloc and calloc.
971         * include/stdlib.h: Support the above.
972         * string/bits/string2.h: Use __need_malloc_and_calloc when
973         including stdlib.h.
974         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
976         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
977         * iconvdata/iso646.c: Include <stdlib.h>.
979 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
981         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
982         * sysdeps/libm-ieee754/w_pow.c: Likewise.
983         * sysdeps/libm-ieee754/w_powf.c: Likewise.
984         * sysdeps/libm-ieee754/w_powl.c: Likewise.
986 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
988         * stdio-common/stdio_lim.h.in: New file.  All parameters
989         are adjustable at build time.
990         * Rules: Add a rule to build bits/stdio_lim.h from
991         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
992         all subdirectories know how to make the file.  It can't be
993         in Makerules because then it gets built at top level and the
994         dependencies are wrong.)
996         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
997         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
998         stdio_lim.h.
999         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
1000         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
1001         * sysdeps/posix/Makefile: Removed.
1002         * sysdeps/posix/mk-stdiolim.c: Removed.
1003         * sysdeps/generic/bits/stdio_lim.h: Removed.
1005 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1007         * argp/argp-help.c: Fixup indentation.
1008         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
1009         * resolv/nss_dns/dns-network.c: Likewise.
1010         * resolv/res_send.c: Likewise.
1011         * rt/aio_cancel.c: Likewise.
1012         * rt/aio_misc.c: Likewise.
1014 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1016         * Makefile (install-symbolic-link): Remove the link list file at last.
1017         * Makerules (install-clean-symbolic-link-list): Removed.
1019 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1021         * timezone/tst-timezone.c: Print time in UTC to get consistent
1022         output.
1024 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1026         * elf/rtld.c (_dl_rpath): Removed.
1027         * elf/dl-support.c (_dl_path): Removed.
1028         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
1029         (CFLAGS-dl-support.c): Removed.
1031         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
1032         uses changed.
1033         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
1034         instead of appending it to the main map's rpath info.
1035         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
1036         DT_RPATHs.  This makes it effective again.
1037         (decompose_rpath): Remove second parameter, callers changed.
1038         (fillin_rpath): Allocate enough space in curwd.
1039         (expand_dynamic_string_token): Cope with get_origin returning -1.
1041 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1043         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
1044         passwd.adjunct.
1046         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
1047         invalid password.
1049 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
1051         * locale/programs/locale.c: Update dates.
1053 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
1055         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
1056         size_t is defined.  Some reordering of defenitions to make
1057         maintaining this file in parallel with the linux-specific file easier.
1059 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
1061         * io/pwd.c (main): Add call to mtrace.
1063         * malloc/mtrace.pl: Quote @ in string.
1065 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
1067         * posix/wordexp.c (parse_arith): Fix memory leaks.
1068         (exec_comm): Likewise.
1069         (parse_param): Likewise.
1070         (wordexp): Likewise.
1071         (exec_comm): Reduce number of function return points.
1072         (parse_param): Likewise.
1073         (wordexp): Likewise.
1075 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
1077         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
1078         yield three fields, not two.  Test both parameter expansion and
1079         command substitution for correct field-splitting behaviour.
1081         * posix/wordexp.c (w_emptyword): New function.
1082         (parse_param): Use it.
1083         (exec_comm): Likewise, for consistency with the way parse_param
1084         splits fields.
1085         (parse_param): Fix some memory leaks.
1087 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
1089         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
1090         Don't mark asm `volatile'.
1091         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
1092         from the data cache too.  Assume it isn't in the instruction cache yet.
1093         (__elf_machine_fixup_plt): Clear the modified address from the caches.
1095 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
1097         * sysdeps/generic/segfault.c (install_handler): Install signal
1098         handler with SA_ONSTACK instead of setting the stack flags to
1099         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
1100         defined.
1102 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1104         * signal/signal.h: Fix multiple inclusion guard to cover the
1105         entire file.
1106         * wcsmbs/wchar.h: Remove prototype of internal function
1107         __mbsrtowcs.
1108         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
1109         arithmetic on `void *'.
1111 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
1113         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
1115         * posix/wordexp.c (wordexp): Perform word-splitting instead of
1116         field-splitting here.
1117         (wordexp): If out of memory mid-word, free the word (but still
1118         leave pwordexp alone for caller to see).
1119         (parse_param): Allow for zero-length fields (smarter checking of
1120         memory allocation failure).
1121         (w_addword): Convert NULL words to "".
1122         (wordexp): Convert left-over IFS characters to blanks (like bash).
1124 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1126         * configure.in: Use test -f instead of test -e.
1127         Patch by John Tobey <jtobey@banta-im.com>.
1129         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
1130         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
1131         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
1132         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
1133         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
1134         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
1135         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
1136         Patches by John Tobey <jtobey@banta-im.com>.
1138         * time/strftime.c (my_strftime): Delay use of *tp values until
1139         latest possible point to allow partly initialized structures
1140         (e.g., from strptime).
1142         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
1143         and NATS-SEFI.
1144         Define *-routines variables for new modules.
1145         (distribute): Add .c files for new modules.
1146         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
1147         and nats-sefi.h.
1148         Add rules for header generation.
1149         * iconvdata/gconv-modules: Add entries for new modules.
1150         * iconvdata/iso_10367-box.c: New file.
1151         * iconvdata/mac-is.c: New file.
1152         * iconvdata/nats-dano.c: New file.
1153         * iconvdata/nats-sefi.c: New file.
1155 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
1157         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
1158         loader if PIC is not defined.
1160 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1162         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
1163         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
1164         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
1165         and ISO_5428.
1166         Define *-routines variables for new modules.
1167         (distribute): Add .c files for new modules.
1168         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
1169         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
1170         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
1171         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
1172         Add rules for header generation.
1173         * iconvdata/gconv-modules: Add entries for new modules.
1174         * iconvdata/csn_369103.c: New file.
1175         * iconvdata/cwi.c: New file.
1176         * iconvdata/dec-mcs.c: New file.
1177         * iconvdata/ecma-cyrillic.c: New file.
1178         * iconvdata/gost_19768-74.c: New file.
1179         * iconvdata/greek-ccitt.c: New file.
1180         * iconvdata/greek7-old.c: New file.
1181         * iconvdata/greek7.c: New file.
1182         * iconvdata/inis-8.c: New file.
1183         * iconvdata/inis-cyrillic.c: New file.
1184         * iconvdata/inis.c: New file.
1185         * iconvdata/iso6937-2.c: New file.
1186         * iconvdata/iso_2033.c: New file.
1187         * iconvdata/iso_5427-ext.c: New file.
1188         * iconvdata/iso_5427.c: New file.
1189         * iconvdata/iso_5428.c: New file.
1191         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
1192         entries.
1193         Convert U02dd correctly.
1195 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
1197         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
1198         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1199         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
1200         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
1202 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1204         * resolv/res_init.c (res_init): Handle resolv.conf file with only
1205         one nameserver correctly.  Patch by HJ Lu.
1207         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
1208         and ANSI_X3.110.
1209         Define *-routines variables for new modules.
1210         (distribute): Add .c files for new modules.
1211         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
1212         Add rules for hedaer generation.
1213         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
1214         * iconvdata/ansi_x3.110.c: New file.
1215         * iconvdata/asmo_449.c: New file.
1216         * iconvdata/baltic.c: New file.
1217         * iconvdata/iec_p27-1.c: New file.
1219         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
1220         entries.
1221         Convert U02dc correctly.
1223         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
1224         * math/atest-exp2.c: Likewise.
1225         * math/atest-sincos.c: Likewise.
1227         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
1228         is defined.
1230 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1232         * string/strcoll.c: Optimize a few expressions.
1233         * string/strxfrm.c: Likewise.
1235 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1237         * manual/locale.texi: Fix typos.
1239 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
1241         * stdlib/random_r.c (__setstate_r): Allow call with same state
1242         array as currently used (PR libc/774).
1244         * include/limits.h: Include gcc's header even if this file is
1245         found more than once before it (PR libc/778)
1247         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
1248         (sysdep_headers): Remove sys/debugreg.h.
1249         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
1250         (sysdep_headers): Add sys/debugreg.h.
1251         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
1252         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
1254         * stdio-common/tmpnam.c: Move local static variable buf to
1255         toplevel and rename to tmpnam_buffer to ease debugging.
1256         Patch by Joe Keane <jgk@jgk.org>.
1257         Optimize s == NULL case a bit.
1259         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
1260         correction.
1262 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
1264         * resolv/res_init.c (res_init): Initialize _res.nscount and
1265         _res.nsaddr.sin_port differently for the can when no loopback
1266         is available to allow immediate timeout in non-networking environments.
1267         Patch by Cristian Gafton <gafton@redhat.com>.
1269 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1271         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
1272         BAR and not EM DASH.
1273         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
1274         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
1275         Fixes PR libc/717.
1277 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
1279         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
1280         for test.
1281         * timezone/tst-timezone.c (tests): Fix typo in last patch.
1283         * time/tzfile.c (__tzfile_read): Handle case when there are no
1284         transitions.  Set __timezone based on computed offset.
1285         * time/tzset.c (tzset_internal): Set __timezone before returning.
1287         * time/tzset.c (tzset_internal): Optimize handling of local string
1288         copy.
1290 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1292         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
1293         libc/776).
1295 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
1297         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
1298         (csqrt_test): Likewise.
1299         * sysdeps/powerpc/bits/fenv.h: Add parens.
1301 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
1303         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
1304         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1305         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
1307 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
1309         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
1310         the special `-1' pointer.
1312 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
1314         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
1315         inline.
1317 1998-09-07  Paul Eggert  <eggert@twinsun.com>
1319         * time/mktime.c (__EXTENSIONS__): Define if not defined.
1320         (_REENTRANT): Remove.  It has undesirable consequences in
1321         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
1322         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
1323         is what we want.
1324         * time/strftime.c: Likewise.
1326 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1328         * elf/dl-error.c: Fix spelling.
1330 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1332         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
1333         * stdio-common/_itoa.c: Likewise.
1334         * stdio-common/printf_fp.c: Likewise.
1335         * stdio-common/vfscanf.c: Likewise.
1336         * wcsmbs/wcstok.c: Likewise.
1337         * sysdeps/generic/glob.c: Likewise.
1338         * posix/getopt.c: Likewise.
1339         * sysdeps/posix/getaddrinfo.c: Likewise.
1340         * posix/wordexp.c: Likewise.
1341         * io/ftw.c: Likewise.
1342         * io/fts.c: Likewise.
1343         * misc/getpass.c: Likewise.
1344         * iconv/gconv_conf.c: Likewise.
1345         * argp/argp-fmtstream.c: Likewise.
1346         * argp/argp-help.c: Likewise.
1347         * elf/dl-load.c: Likewise.
1348         * locale/programs/stringtrans.c: Likewise.
1349         * catgets/gencat.c: Likewise.
1350         * posix/getconf.c: Likewise.
1351         * iconv/gconv_conf.c: Likewise.
1352         * iconv/iconv_prog.c: Likewise.
1354         * string/strcoll.c: Optimize a few expressions.
1355         * string/strxfrm.c: Likewise.
1357 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1359         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
1360         level to avoid uninit variable warning.
1362 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1364         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
1365         instead of _dl_default_scope[2] as argument to _dl_init_next.
1367         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
1368         C9x macro.
1370 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
1372         Fix compatibility problems introduced in last change.
1373         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
1374         defined.
1375         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
1376         -DWEAK_GMON_START to CFLAGS-initfini.s.
1378         * elf/dl-object.c (_dl_new_object): Store map address in
1379         _dl_loaded if _dl_loaded is NULL.
1380         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
1382         * sysdeps/generic/setrlimit64.c: Remove stub warning.
1384 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
1386         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
1387         quiet.
1388         * db2/btree/bt_cursor.c: Likewise.
1389         * db2/common/db_region.db_c: Likewise.
1390         * db2/common/db_salloc.db_c: Likewise.
1391         * db2/db/db.c: Likewise.
1392         * db2/db/db_rec.c: Likewise.
1393         * db2/hash/hash.c: Likewise.
1394         * db2/hash/hash_page.c: Likewise.
1395         * db2/hash/hash_rec.c: Likewise.
1396         * db2/log/log_findckp.c: Likewise.
1397         * db2/log/log_get.c: Likewise.
1398         * db2/log/log_put.c: Likewise.
1399         * db2/mp/mp_fget.c: Likewise.
1400         * db2/mp/mp_fput.c: Likewise.
1401         * db2/mp/mp_region.c: Likewise.
1402         * stdlib/strtol.c: Likewise.
1403         * string/strcoll.c: Likewise.
1404         * string/strxfrm.c: Likewise.
1405         * argp/argp-help.c: Likewise.
1406         * argp/argp-parse.c: Likewise.
1407         * resolv/res_debug.c: Likewise.
1409 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
1411         * math/tgmath.h (scalb): Only define for __USE_MISC or
1412         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
1414 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1416         * libio/stdio.h: Fix comment.
1418         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
1419         __USE_ISOC9X.
1421 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1423         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
1425         * elf/dl-open.c: Quiet -Wparentheses warnings.
1426         * iconvdata/johab.c: Likewise.
1427         * iconvdata/uhc.c: Likewise.
1428         * inet/inet_net.c: Likewise.
1429         * io/fts.c: Likewise.
1430         * locale/newlocale.c: Likewise.
1431         * misc/getttyent.c: Likewise.
1432         * misc/mntent_r.c: Likewise.
1433         * misc/ttyslot.c: Likewise.
1434         * nscd/nscd_conf.c: Likewise.
1435         * nss/nsswitch.c: Likewise.
1436         * resolv/gethnamaddr.c: Likewise.
1437         * resolv/nsap_addr.c: Likewise.
1438         * resolv/res_debug.c: Likewise.
1439         * stdio-common/_itoa.c: Likewise.
1440         * stdlib/strtod.c: Likewise.
1441         * string/strverscmp.c: Likewise.
1442         * sunrpc/svc.c: Likewise.
1443         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
1444         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
1445         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
1446         * sysdeps/posix/getaddrinfo.c: Likewise.
1448 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
1450         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
1451         for use of global scope.
1452         * elf/dlvsym.c (dlvsym_doit): Likewise.
1454 1998-09-02  Paul Eggert  <eggert@twinsun.com>
1456         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
1457         copy the redundant bytes at the end of the format as-is; don't
1458         just copy their first byte and then rescan, as that might get
1459         us an encoding error.
1460         Account correctly for the length of multibyte sequences in the
1461         format.
1463 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
1465         * posix/wordexp-test.c: Add tests for different IFS values.
1466         Change unquoted-newline test so that newline is not in IFS.
1468         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
1469         determining IFS characters.  Return WRDE_BADCHAR for unquoted
1470         special characters _except_ if they are separators.
1472 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
1474         * include/tgmath.h: New file.
1476         * libio/stdio.h: Correct reversed #ifs.
1477         Patch by Zack Weinberg.
1479         * manual/creature.texi: Better explain reason for feature select
1480         macros.
1481         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
1483 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1485         * include/alloca.h: Add multiple-inclusion guard.
1486         * include/db.h: Likewise.
1487         * include/db_185.h: Likewise.
1488         * include/dlfcn.h: Likewise.
1489         * include/fcntl.h: Likewise.
1490         * include/grp.h: Likewise.
1491         * include/libintl.h: Likewise.
1492         * include/mntent.h: Likewise.
1493         * include/pwd.h: Likewise.
1494         * include/sched.h: Likewise.
1495         * include/search.h: Likewise.
1496         * include/setjmp.h: Likewise.
1497         * include/shadow.h: Likewise.
1498         * include/signal.h: Likewise.
1499         * include/stdio.h: Likewise.
1500         * include/stdlib.h: Likewise.
1501         * include/string.h: Likewise.
1502         * include/termios.h: Likewise.
1503         * include/time.h: Likewise.
1504         * include/ulimit.h: Likewise.
1505         * include/utmp.h: Likewise.
1506         * include/wchar.h: Likewise.
1507         * include/sys/file.h: Likewise.
1508         * include/sys/gmon.h: Likewise.
1509         * include/sys/ioctl.h: Likewise.
1510         * include/sys/mman.h: Likewise.
1511         * include/sys/resource.h: Likewise.
1512         * include/sys/select.h: Likewise.
1513         * include/sys/socket.h: Likewise.
1514         * include/sys/statfs.h: Likewise.
1515         * include/sys/time.h: Likewise.
1516         * include/sys/times.h: Likewise.
1517         * include/sys/wait.h: Likewise.
1519 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
1521         * version.h (VERSION): Bump to 2.0.96.
1523         Rewrite runtime linker to be truly thread-safe.  There is now no
1524         global variable specifying the scope.  We create all needed
1525         scopes at the time the link maps are created.
1526         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
1527         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
1528         l_symbolic_searchlist, l_scope, and l_local_scope elements in
1529         struct link_map.
1530         * elf/dl-close.c: Rewritten accordingly.
1531         * elf/dl-deps.c: Likewise.
1532         * elf/dl-error.c: Likewise.
1533         * elf/dl-init.c: Likewise.
1534         * elf/dl-load.c: Likewise.
1535         * elf/dl-lookup.c: Likewise.
1536         * elf/dl-object.c: Likewise.
1537         * elf/dl-open.c: Likewise.
1538         * elf/dl-reloc.c: Likewise.
1539         * elf/dl-runtime.c: Likewise.
1540         * elf/dl-support.c: Likewise.
1541         * elf/dl-symbol.c: Likewise.
1542         * elf/dl-version.c: Likewise.
1543         * elf/dlsym.c: Likewise.
1544         * elf/dlvsym.c: Likewise.
1545         * elf/ldsodefs.h: Likewise.
1546         * elf/rtld.c: Likewise.
1547         * iconv/gconv_dl.c: Likewise.
1548         * nss/nsswitch.c: Likewise.
1549         * sysdeps/i386/dl-machine.h: Likewise.
1550         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1552         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
1553         Define RTLD_DEFAULT.
1555 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
1557         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
1558         __getopt_clean_environment with __environ instead of envp.
1560 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
1562         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
1564         * string/argz-extract.c (__argz_extract): Add de-consting cast for
1565         setting results.
1567         * string/argz.h (argz_next): Add de-consting cast for return.
1568         * string/argz-next.c (__argz_next): Likewise.
1570         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
1571         Don't add netinet/udp.h, netinet/ip_icmp.h here.
1572         * sysdeps/gnu/Makefile: Do it here instead.
1573         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
1574         * sysdeps/gnu/Dist: ... to here.
1576         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
1577         sysdeps/unix/sysv/linux/netinet/tcp.h,
1578         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
1580 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
1582         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
1583         * string/argz-next.c, string/argz-extract.c: Fix defns.
1585 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
1587         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
1589         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
1590         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
1591         * sysdeps/generic/sysd-stdio.c: Likewise.
1593 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
1595         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
1596         (_dl_map_object_from_fd): Make NAME argument const.
1597         Remove last parameter in _dl_new_object call.
1598         (print_search_path): Correct construction of composed path name.
1599         (_dl_map_object): Prevent looking at RPATH of the main map twice.
1600         Remove last parameter in _dl_new_object call.
1601         * elf/dl-object.c: Remove last parameter.  Determine whether create
1602         origin entry based on empty realname.  Handle file in root directory
1603         correctly.
1604         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
1605         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
1606         Remove last parameter in _dl_new_object call.
1607         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
1608         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
1610 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
1612         * elf/dl-close.c (_dl_close): Add more comments and correct some.
1613         Free l_searchlist and l_dupsearchlist.
1615         * debug/catchsegv.sh: Add one more pair of quotes.
1617 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
1619         * elf/dl-load.c (add_name_to_object): Change return type to void and
1620         make NAME parameter const.  Allocate room for NAME in same memory
1621         block used for l_libname entry.
1622         (_dl_map_object_from_fd): Don't free NAME on failure.
1623         (map_segment): Pass SONAME to add_name_to_object, not a copy.
1624         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
1625         _dl_map_object_from_fd.
1626         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
1627         memory block used for l_libname entry.
1628         * elf/dl-close.c: Adjust free()ing for this change.
1630 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
1632         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
1634         * malloc/mtrace.c: Add bug report address.  Update email address.
1635         Add more @XXX@ to print correct address size.
1637         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
1638         really initialized.
1640         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
1641         for munmap call instead of examining phdr again.
1642         Free all malloc()ed strings and arrays.
1644 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1646         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
1647         dl-machine.h.
1648         * sysdeps/powerpc/dl-machine.c: New file.
1649         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
1650         files.  Revise ELF_PREFERRED_ADDRESS to take account of
1651         the new mapping information (fixes bug involving huge bloated
1652         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
1653         * sysdeps/powerpc/dl-start.S: New file.
1655         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
1656         l_map_end.
1657         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
1658         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
1659         others.  Call elf_dynamic_do_##reloc only once (to save even more
1660         space).
1661         * elf/link.h: Add new members l_map_start and l_map_end to keep
1662         track of the memory map.
1663         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
1664         the executable.
1666 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
1668         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
1669         Reported by Andreas Jaeger.
1671         * posix/glob.h: Use __size_t instead of size_t in definitions and
1672         make sure this is defined.
1674 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
1676         * manual/locale.texi: Almost complete rewrite.  Document more functions
1677         and functionality.
1678         * manual/arith.texi: Correct reference.
1679         * manual/string.texi: Pretty printing.
1681         * manual/texinfo.tex: Update from last available version.
1683 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
1685         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
1686         invalid password.
1687         (_nss_nis_getpwuid_r): Likewise.
1688         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
1690         * inet/rcmd.c: Implement netgroup support.
1691         Patch by Dick Streefland <dick_streefland@tasking.com>.
1693 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1695         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
1696         object on the list is removed.  Don't use this code for PIC.
1697         Reported by HJ Lu [PR libc/770].
1699 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
1701         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
1703         * include/stdio.h: Add __vsscanf.
1705         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
1706         __USE_ISOC9X.
1707         Remove __vsscanf declaration.
1708         Always declare fgetpos and fsetpos.
1710         * math/math.h: Define isinf as macro.
1711         * math/bits/mathcalls.h: Change to declare __isinf all the time.
1712         Don't declare scalb for ISO C 9x.
1714         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
1716         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
1718         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
1719         sys/ucontext.h.
1721         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
1722         macros.
1724 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1726         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
1727         Reported by jreising@frequentis.com [PR libc/767].
1729 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1731         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
1732         fl.l_start at beginning of function.
1733         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
1735 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1737         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
1738         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
1740         * nscd/nscd.init: Make it work in RedHat systems.
1741         Patch by Christian Gafton.
1743 1998-08-29  Philip Blundell  <philb@gnu.org>
1745         * catgets/Makefile: Don't try to run test programs when
1746         cross-compiling.
1748 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1750         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
1751         Reported by Zack Weinberg.
1753 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1755         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
1756         * elf/Makefile (distribute): Remove ldd.sh.in.
1758 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1760         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
1761         variable.
1763 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
1765         * sysdeps/i386/register-dump.h: Move to ...
1766         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
1768 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
1770         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
1771         with load address, not map address.
1772         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
1773         parameter and use this value.
1774         * sysdeps/arm/dl-machine.h: Likewise.
1775         * sysdeps/i386/dl-machine.h: Likewise.
1776         * sysdeps/m68k/dl-machine.h: Likewise.
1777         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
1778         parameter.
1779         * sysdeps/powerpc/dl-machine.h: Likewise
1780         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
1781         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
1783 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
1785         * elf/rtld.c (process_envvars): Fix copy&paste error.
1787         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
1788         memalign hook.
1789         (realloc_hook_ini): Don't overwrite memalign hook.
1790         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
1791         Reported by Philippe Troin <phil@fifi.org>.
1793         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
1794         Patch by Philippe Troin <phil@fifi.org>.
1796 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1798         * sysdeps/generic/segfault.c (install_handler): Protect the
1799         non-POSIX signals with #ifdef.
1800         (catch_segfault): Add missing mode parameter for open.
1801         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
1802         other termination signals.
1804 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1806         * debug/Makefile (distribute): Add register-dump.h.
1808 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1810         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
1812 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
1814         * elf/Makefile (distribute): Add dl-origin.h.
1815         * sysdeps/generic/dl-origin.h: New file.
1816         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
1817         * elf/link.h (struct link_map): Add l_origin field.
1818         * elf/dl-load.c (expand_dynamic_string_token): New function.
1819         (decompose_path): Remove WHERE argument, take link map pointer instead.
1820         Call expand_dynamic_string_token instead of local_strdup to make copy
1821         of rpath.
1822         (_dl_init_paths): Call decompose_path with correct argument.
1823         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
1824         not defined.
1825         Check EI_OSABI and EI_ABIVERSION fields in header.
1826         Call _dl_new_object with extra argument.
1827         (_dl_map_object): Call decompose_path with correct argument.
1828         Call expand_dynamic_string_token instead of local_strdup to also
1829         expand DST.
1830         Call _dl_new_object with extra argument.
1831         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
1832         but the main one if new argument is nonzero.
1833         * elf/ldsodefs.h: Adjust for _dl_new_object change.
1834         * elf/dl-support.c: Define _dl_origin_path.
1835         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
1836         (dl_main): Call _dl_new_object with extra argument.
1838         * elf/dl-close (_dl_close): Free l_name and l_origin.
1840         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
1841         modifier in asm, not c.
1843         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
1844         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
1846 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
1848         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
1849         variable so that map can be freed.
1850         Reported by Philippe Troin <phil@fifi.org>.
1852         * elf/dl-open.c (dl_open_worker): Correct test for extending global
1853         scope array.
1854         Patch by Philippe Troin <phil@fifi.org>.
1856 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1858         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
1859         Don't call writev() with a 100-element vector.
1860         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
1861         return address.
1863         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
1864         In particular, set __libc_stack_end.
1865         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
1866         undefined.  Fix copyright notice.
1868 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1870         * math/Makefile (gmp-objs): New variable.
1871         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
1872         Depend on it.
1873         (tests): Add atest-exp atest-sincos atest-exp2.
1874         (tests-static): Remove atest-exp atest-sincos atest-exp2.
1876 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
1878         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
1879         to toplevel.
1880         (_dl_unload_cache): New function.
1881         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
1882         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
1883         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
1885         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
1886         Correct comment for O_LARGEFILE.
1887         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
1888         Change O_LARGEFILE to correct value.
1890 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
1892         * libio/iogetline.c (_IO_getline_info): Don't read anything for
1893         N == 0.  Patch by HJ Lu.
1895 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
1897         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
1899 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
1901         * argp/argp.h: Use __inline__ not inline.
1903         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
1904         an input register as being clobbered.
1905         * sysdeps/i386/memset.c (memset): Likewise.
1906         * sysdeps/i386/bzero.c (__bzero): Likewise.
1907         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
1909 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1911         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
1912         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
1914 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
1916         * debug/catchsegv.sh: Handle text preceding backtrace better.
1917         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
1918         to be installed for other signals than SIGSEGV.
1919         * sysdeps/generic/register-dump.h: New file.
1920         * sysdeps/i386/register-dump.h: New file.
1921         * sysdeps/powerpc/register-dump.h: New file.
1923         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
1924         sigcontextinfo.h.
1925         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
1927 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
1929         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
1931 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1933         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
1934         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
1935         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
1936         getresuid, getresgid.
1938 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
1940         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
1941         pointer in userland.
1943 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1945         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
1946         and fix value.
1948 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1950         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
1951         over arguments Bourne shell compatible.  Don't exit unsuccessfully
1952         if nonelf returns successfully.  Avoid duplicating most of the
1953         script.
1954         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
1955         around $file.
1957 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1959         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
1960         sys/reg.h.
1961         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
1962         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
1964 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1966         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
1967         __modify_ldt and modify_ldt.
1968         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
1970         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1971         Use orl $-1 instead of movl $-1 to save two bytes.
1972         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
1973         Likewise.
1975 1998-08-17  H.J. Lu  <hjl@gnu.org>
1977         * libio/Versions (_IO_do_write, _IO_file_attach,
1978         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1979         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1980         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1981         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
1983         * libio/fileops.c (_IO_do_write, _IO_file_attach,
1984         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1985         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1986         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1987         _IO_file_write, _IO_file_xsputn): Change the prefix to
1988         "_IO_new_". Added to GLIBC_2.1.
1990         * libio/libioP.h (_IO_do_write, _IO_file_attach,
1991         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1992         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1993         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1994         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
1995         "_IO_new_".
1997         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
1998         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1999         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2000         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2001         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
2003 1998-08-23  Richard Henderson  <rth@cygnus.com>
2005         * Makeconfig (LDFLAGS): Remove.
2007         * csu/initfini.c: Return to .text before __gmon_start__.
2009         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
2010         (STO_MIPS_*): Rename from STO_*.
2011         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
2012         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
2014         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
2015         (main): e3s is negative on zero.
2016         * math/atest-exp2.c: Likewise.
2017         * math/atest-sincos.c: Likewise.
2019 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2021         * Makerules (install): Add comment about absolute paths.
2023 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2025         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
2026         array to NUL to handle maxlen==1 case correctly.
2027         Patch by HJ Lu.
2029 1998-08-23  Richard Henderson  <rth@cygnus.com>
2031         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
2032         * sysdeps/alpha/elf/crtend.S: Likewise.
2033         * sysdeps/alpha/elf/start.S: Likewise.
2035         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
2036         non-standard pv usage.
2038         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
2039         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2040         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2041         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2042         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2043         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2044         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2045         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2046         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2047         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2048         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2050         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
2051         a finite non-denormal, deferring to the full IEEE version otherwise.
2053         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
2054         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
2055         * sysdeps/alpha/fpu/s_floor.c: New.
2056         * sysdeps/alpha/fpu/s_floorf.c: New.
2057         * sysdeps/alpha/fpu/s_ceil.c: New.
2058         * sysdeps/alpha/fpu/s_ceilf.c: New.
2060 1998-08-22  Philip Blundell  <philb@gnu.org>
2062         * sysdeps/arm/bits/string.h: New file.
2064 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2066         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
2067         document it.
2069         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
2070         test for recent Linux 2.1.100+ headers.
2072 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2074         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
2076 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
2078         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
2080 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2082         * Makefile (elf/ldso_install): Put back.  The problem still persists.
2083         * elf/Makefile (ldso_install): Likewise.
2085 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2087         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
2088         create weak alias.
2089         * include/db.h: Declare __nss_db_open.
2090         * db2/Versions: Export it.
2092         * db2/makedb.c: Convert to use db2 API.
2093         * nss/nss_db/db-XXX.c: Likewise.
2094         * nss/nss_db/db-netgrp.c: Likewise.
2095         * nss/nss_db/db-alias.c: Likewise.
2096         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
2098 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2100         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2101         sys_setresuid, already built automatically (or not).
2102         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
2103         instead of __syscall_setresuid and add back setresuid.
2104         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
2105         __syscall_setresuid.
2107 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2109         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
2111 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2113         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
2114         BASH-ONLY marked region.
2115         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
2117 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2119         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
2120         _IO_SYSSEEK fails.
2122         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
2124         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
2125         element.
2127 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
2129         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
2130         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
2131         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
2132         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
2133         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
2134         those magic comments, and to use /bin/sh for @BASH@.
2135         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
2136         * elf/ldd.sh.in: File removed.
2138 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
2140         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
2141         cast them to unsigned long int.
2142         * pwd/putpwent.c (putpwent): Likewise.
2143         Patch by John Tobey <jtobey@banta-im.com>.
2145 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
2147         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
2148         _IO_pos_BAD.
2150 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2152         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
2153         _IO_SYSSEEK fails.
2155 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
2157         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
2158         Add umount and umount2.
2159         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
2160         * sysdeps/unix/sysv/linux/umount.S: New file.
2161         * sysdeps/unix/sysv/linux/umount2.S: New file.
2162         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
2163         Define MNT_FORCE.
2165         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
2166         Add sys/sendfile.h.
2167         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
2168         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
2170         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
2172         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
2173         sendfile.
2175 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
2177         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
2178         * elf/ldd.bash.in: Likewise.
2180         * elf/sln.c: Avoid warning for no main prototype.
2182         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
2183         O_WRITE.
2184         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2185         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2187         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
2188         F_GETSIG.
2189         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2190         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2191         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2193 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
2195         * sysdeps/arm/fpu/ieee754.h: Move to...
2196         * sysdeps/arm/ieee754.h: ... here.
2198         * sysdeps/arm/__longjmp.S: Put return value in correct register.
2199         Don't set the condition flags unnecessarily.
2200         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
2201         registers correctly.
2203         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
2204         (patch from Scott Bambrough).
2206         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
2208         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
2209         NULL, just call it unconditionally.
2210         (__gmon_start__): Provide stub version as a weak symbol.
2212 1998-07-30  Philip Blundell  <philb@gnu.org>
2214         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
2215         by Scott Bambrough)
2217         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
2218         like `@' in .type directives.
2220         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
2221         * sysdeps/arm/bsd-_setjmp.S: Likewise.
2223         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
2225 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2227         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
2228         (F_GETOWN): Likewise.
2230         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
2231         Linux 2.1.117).
2233 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2235         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
2236         already defined.
2238 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
2240         * include/features.h: Define __USE_EXTERN_INLINES for recent
2241         enough gcc.
2242         * argp/argp.h: Define extern inline functions only if
2243         __USE_EXTERN_INLINES is defined.
2244         * libio/stdio.h: Likewise.
2245         * math/math.h: Likewise.
2246         * stdlib/stdlib.h: Likewise.
2247         * string/argz.h: Likewise.
2248         * sysdeps/generic/bits/sigset.h: Likewise.
2249         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
2250         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
2251         * sysdeps/wordsize-32/inttypes.h: Likewise.
2252         * sysdeps/wordsize-64/inttypes.h: Likewise.
2253         * wcsmbs/wchar.h: Likewise.
2255         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
2256         to allow compilation without optimization.
2258 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2260         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
2261         more entries.
2262         * nis/nss_compat/compat-initgroups.c: Likewise.
2263         * nis/nss_compat/compat-pwd.c: Likewise.
2264         * nis/nss_compat/compat-spwd.c: Likewise.
2265         * nis/nss_nis/nis-alias.c: Likewise.
2266         * nis/nss_nis/nis-ethers.c: Likewise.
2267         * nis/nss_nis/nis-grp.c: Likewise.
2268         * nis/nss_nis/nis-hosts.c: Likewise.
2269         * nis/nss_nis/nis-initgroups.c: Likewise.
2270         * nis/nss_nis/nis-network.c: Likewise.
2271         * nis/nss_nis/nis-proto.c: Likewise.
2272         * nis/nss_nis/nis-pwd.c: Likewise.
2273         * nis/nss_nis/nis-rpc.c: Likewise.
2274         * nis/nss_nis/nis-service.c: Likewise.
2275         * nis/nss_nis/nis-spwd.c: Likewise.
2277         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
2279         * nis/ypclnt.c: Try binding dir only first time, could be to old.
2281         * nis/yp_xdr.c: Remove 1024 byte limit.
2282         * nis/ypupdate_xdr.c: Likewise.
2284         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
2285         wrong data.
2287 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
2289         * Rules (binaries-static, binaries-shared static pattern rules):
2290         Depend on lib%, not just libc%, from $(link-libc{,-static}).
2292         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
2293         this here, overriding Makeconfig generic value so we link against
2294         the RPC libs.
2296 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
2298         * posix/tstgetopt.c (options): Add NULL entry at end
2299         Patch by Adrian Miranda <ade@psg.com>.
2301 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
2303         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
2304         to 9.
2306 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
2308         * elf/elf.h: Add PPC Diab relocations.
2310         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
2312 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
2314         * manual/texinfo.tex: Update.
2316 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
2318         * sysdeps/powerpc/backtrace.c: New file.
2320 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
2322         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
2323         sigjmp_save.
2324         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
2326 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2328         * Makefile (install-symbolic-link): Fix spelling.
2330 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2332         * elf/elf.h (SHT_HIOS): Fix value.
2334 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2336         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
2337         part of the expansion, this is undefined by the standard.
2339 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
2341         * posix/getconf.c: Add support for systems with incomplete confname.h.
2343         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
2345         * sysdeps/posix/wait3.c: Make it work.
2347 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2349         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
2350         (elf/ldso_install): Remove.
2352         * elf/Makefile (distribute): Add sln.c.
2353         (others): Add sln.
2354         (others-static): Add sln.
2355         (install-rootsbin): Add sln.
2356         (others-static): Add sln.
2357         (ldso_install): Remove.
2359 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2361         * Makerules (install-clean-symbolic-link-list): Make phony.
2362         * Makefile (install-symbolic-link): Make phony.  Depend on
2363         subdir_install for parallel makes.
2366 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
2368         * elf/Makefile (distribute): Add sln.c
2370 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
2372         * elf/sln.c: New file.
2374         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
2375         (install-clean-symbolic-link-list): New target.
2376         (install): Depend on install-clean-symbolic-link-list.
2377         (make-shlib-link): Changed for $(symbolic-link-list).
2379         * Makefile (install-symbolic-link): New target.
2380         (install): Depend on install-symbolic-link.
2382 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
2384         * include/unistd.h: Protect against multiple inclusion.
2386         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
2387         is defined, not is glob is defined.
2388         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
2390 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
2392         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
2393         xdr_string for ut_line, ut_name and ut_host.
2395 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2397         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
2398         /var/mail in accordance with FHS 2.0.
2399         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
2401 1998-08-12  Richard Henderson  <rth@cygnus.com>
2403         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
2404         Update aliases for cancelation.
2406         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
2407         playing with symbol versions.
2409 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2411         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
2412         multiple inclusion protection.
2413         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
2414         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
2415         define all these to 1.
2416         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
2418 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2420         * sysdeps/mach/usleep.c: Include <unistd.h>.
2421         (usleep): Return void.
2423 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2425         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
2426         decl to inhibit warning in if_freenameindex defn.
2428         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
2430         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
2432         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
2433         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
2434         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
2435         * sysdeps/mach/usleep.c: Likewise.
2437         * sysdeps/mach/hurd/bind.c (bind): Add a const.
2439         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
2440         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
2441         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
2442         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
2443         * sysdeps/mach/usleep.c (usleep): Likewise.
2444         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
2445         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
2446         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2447         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
2449 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2451         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
2452         (glob64): Fix typo.
2454         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
2455         %p arg to fprintf, since `void *' is the right type already.
2457 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
2459         * sysdeps/mach/hurd/getcwd.c
2460         (_hurd_canonicalize_directory_name_internal): Do not loop forever
2461         for unknown root directories.
2462         (__getcwd): Return NULL when the current root directory could not
2463         be reached.
2465 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
2467         * string/strsignal.c (strsignal): Count real-time signals from zero.
2470 See ChangeLog.8 for earlier changes.