Update.
[glibc.git] / ChangeLog
blob57c8ae4cf4ca9f7218962f63115cd6e202e832ff
1 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2  
3         * string/bits/string2.h (strcmp): Don't cache the result of
4         __builtin_constant_p in variables, otherwise constant folding
5         can fail in big functions.
6  
7 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
8  
9         * string/bits/string2.h: Add prototypes for the new inline
10         functions.
12 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
14         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Include termios.h to
15         have all types defined.
16         Patch by Matti Aarnio <matti.aarnio@sonera.fi>.
18 1998-10-08  Paul Eggert  <eggert@twinsun.com>
20         * time/mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
21         Define also if HAVE_LOCALTIME_R && defined localtime_r, with
22         a body that merely expands localtime_r; this works around a
23         bug in Digital Unix 4.0A and 4.0D.
25 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
27         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_ioctl.
28         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: New file. Define
29         __ioctl to __syscall_ioctl and include Linux version of this file.
30         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
31         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: New file.  Redirect
32         ioctl calls which handle struct termios.
33         Based on a patch by Dan Jacobowitz <drow@false.org>.
35 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
37         * version.h (VERSION): Bump to 2.0.98.
39         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Define __kernel_termios
40         here instead of including kernel_termios.h.
42 1998-10-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
44         * sysdeps/unix/opendir.c (__opendir): Remove label lose2 which is
45         unnecessary after the changes of 1998-10-12.
47 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
49         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
50         parameter format string.
51         (inline_outw): Likewise.
53         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
54         string.h to get memcpy prototype and NULL definition.
56 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
58         * misc/sys/cdefs.h (__THROW): New macro.
59         * argp/argp.h: Use it to replace the kludgey __P in inline
60         function definitions.
61         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
62         * stdlib/stdlib.h: Likewise.
63         * wcsmbs/wchar.h: Likewise.
64         * libio/stdio.h: Likewise.
65         * stdio/stdio.h: Likewise.
66         * sysdeps/wordsize-64/inttypes.h: Likewise.
67         * sysdeps/wordsize-32/inttypes.h: Likewise.
68         * string/argz.h: Likewise.
69         * io/sys/stat.h: Likewise.
71 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
73         * Rules (stdio_lim): New variable.
74         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
75         on Rules and config.make, use $(move-if-change) to avoid unnessary
76         recompilations, and cleanup command.
77         (common-generated): Add bits/stdio_lim.st.
79 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
81         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
82         variable to prevent warnings from use of modern CPU instructions.
83         Patch by Richard Henderson <rth@cygnus.com>.
85         * sysdeps/unix/opendir.c: Test whether NAME is directory before
86         opening it.
88 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
90         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
91         semicolon so that profiling works.
93 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
95         * sysdeps/generic/glob.c: #undef mempcpy before #define.
97         * sysdeps/unix/bsd/clock.c: Use prototype defns.
99 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
101         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
102         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
104         * string/bits/string2.h [!_STRING_ARCH_unaligned]
105         (__mempcpy_small): Add parameter for 1 byte copy and use it.
106         Reported by Geoff Keating <geoffk@ozemail.com.au>.
108 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
110         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
111         it is already defined in <bits/environments.h>.
113 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
115         * posix/ptestcases.h: Fix typo.
117 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
119         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
120         (regexec): Allocate regs.start and regs.end as one block.
122 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
124         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
125         enum decl.
127 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
129         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
130         sigcontext union to ...
131         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
132         file.
133         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
134         version 2.0 kernels.
136 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
138         * malloc/mtrace.c (tr_reallochook): Produce better output for real
139         reallocation case.
141         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
142         * argp/argp-xinl.c: Likewise.
144         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
145         Ruffian entry back.
146         Patch by Christian Gafton.
148 1998-10-08  Paul Eggert  <eggert@twinsun.com>
150         * time/mktime.c (__mktime_internal): When the requested time falls
151         in a spring-forward gap of size DT, return a time that is DT away
152         from the requested time, preferring a time whose tm_isdst differs
153         from the requested value.  Bump the max number of probes from 4 to
154         6 to account for the extra probes needed to discover a
155         spring-forward gap in the worst case.
157 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
159         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
160         of the weird alpha architectures.
161         Patch by Cristian Gafton <gafton@redhat.com>.
163 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
165         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
166         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
168 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
170         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
171         (dl_open_worker): Use realloc, not malloc to resize array.
172         * elf/rtld.c (_dl_initial_searchlist): New variable.
173         (_dl_main): Copy content of _dl_main_searchlist to
174         _dl_initial_searchlist.
175         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
176         _dl_global_scope_alloc.
177         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
178         * elf/dl-close.c (_dl_close): When removing object with global
179         scope remove allocated searchlist if no dynamically loaded object
180         is on it anymore.
181         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
182         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
184         * malloc/mtrace.c (tr_where): Don't print space in location string,
185         print it afterwards.  Print better symbol name information.
187 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
189         * manual/filesys.texi (Setting Permissions): Fix example for
190         reading umask.
192 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
194         * elf/sprof.c (load_profdata): Fix typo in error message.
196 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
198         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
199         flag.
201 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
203         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
205 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
207         * version.h (VERSION): Bump to 2.0.97.
209 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
211         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
212         in definitions of inline stat functions so that they match the
213         declaration.
214         * stdlib/stdlib.h: Likewise.
215         * wcsmbs/wchar.h: Likewise.
216         * libio/stdio.h: Likewise.
217         * stdio/stdio.h: Likewise.
218         * sysdeps/wordsize-64/inttypes.h: Likewise.
219         * sysdeps/wordsize-32/inttypes.h: Likewise.
220         * string/argz.h: Likewise.
221         * argp/argp.h: Likewise.
223 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
225         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
226         netinet/in.h.
228 1998-10-05  Philip Blundell  <philb@gnu.org>
230         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
231         and constants.  Tidy up formatting a little.
233         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
234         Move definitions to in.h.
236 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
238         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
239         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
240         Remove inclusion of <linux/swap.h>.
242 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
244         * io/sys/stat.h: Use __P in definitions of inline stat functions
245         so that they match the declaration.
247 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
249         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
251 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
253         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
254         linux 2.1 version.
256 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
258         * sysdeps/arm/dl-machine.h: Fix typo in last change.
260         * sysdeps/arm/bits/huge_val.h: New file.
262 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
264         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
266         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
267         define.
269 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
271         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
272         store result of realloc instead of using BUF.
274 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
276         * misc/sgtty.h (_SGTTY_H): Correct spelling.
277         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
279 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
281         * manual/memory.texi (Obstacks): Document
282         obstack_alloc_failed_handler usage.
284         * malloc/obstack.h: Enhance comment about
285         obstack_alloc_failed_handler usage.
286         * malloc/obstack.c: Likewise.
288 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
290         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
291         gcc before 2.8 is used.
293 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
295         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
296         from Scott Bambrough.
298         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
300         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
301         include the lock member.
303 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
305         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
307 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
309         * timezone/zic.c: Update from tzcode1998h.
310         * timezone/europe: Update from tzdata1998i.
311         * timezone/southamerica: Likewise.
313         * sys/types.h: Protect use of long long by __extension__.
314         * stdlib/stdlib.h: Likewise.
315         * string/string.h: Likewise.
316         * sysdeps/i386/bits/byteswap.h: Likewise.
317         * sysdeps/geeric/bits/byteswap.h: Likewise.
318         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
319         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
320         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
321         * sysdeps/wordsize-32/inttypes.h: Likewise.
322         * sysdeps/wordsize-32/stdint.h: Likewise.
323         * wcsmbs/wchar.h: Likewise.
325 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
327         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
328         expression.
329         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
330         __strsep): Greatly reduce size of expansion by combining common
331         expressions.
332         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
333         inline function.
334         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
335         by the above definitions.
337 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
339         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
340         correct struct ipc_perm definition.
342 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
344         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
346 1998-09-29  Cristian Gafton  <gafton@redhat.com>
348         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
349         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
350         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
351         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
352         Add net/if_shaper.h.
354 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
356         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
358         * nis/ypclnt.c: Remove not needed close calls.
360 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
362         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
363         check a bit.  Also close socket of domain client.  Close socket
364         in IPPORT_RESERVED error case.
366 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
368         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
369         CMSG_ALIGN (fixes a bug) and correct test for availability of
370         another entry.
371         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
372         Linux version.
373         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
374         availability of another entry.
375         Patch by ak@muc.de.
377         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
378         Patch by ak@muc.de.
380         * libio/libio.h [!__STDC__]: Define const only if not defined.
382 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
384         * posix/annexc.c (xsystem): New function.  Use it instead of
385         system.
387 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
389         * stdlib/longlong.h: Remove #endif for #if removed in last change.
391 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
393         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
394         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
395         allow using `ut' parameter.
396         [!emacs]: Define ut_argument, ut_argument_spec, and
397         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
398         argument_spec to prototypes and definitions.
399         (my_strftime): Don't call tzset of ut != 0.
400         Compute diff as 0 is ut != 0;
401         [emacs]: Define new emacs_strftime function.
402         Based on a patch by Paul Eggert.
404 1998-09-24  Paul Eggert  <eggert@twinsun.com>
406         * time/strftime.c (my_strftime): When asking for the length of the
407         subformatted buffer, do not limit the length to look for;
408         otherwise, we have no reliable way to distinguish between the
409         empty buffer and an error.
411 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
413         * math/Makefile (gmp-objs): Add mp_clz_tab.
415 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
417         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
418         set them.
419         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
420         cpus lacking hardware multiply and divide.
422 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
424         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
425         $(<F), not $(^F).
427 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
429         * db/btree/bt_delete.c: Fix -Wparentheses warning.
431 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
433         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
434         $(do-install).
436 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
438         * debug/catchsegv.sh: Also produce output if clone process died.
440 1998-09-24  Paul Eggert  <eggert@twinsun.com>
442         * time/strftime.c (f_wkday): Remove duplicate definition.
443         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
444         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
445         1998-09-11 fix to this case.
446         (wkday_len, month_len): Remove these macros; they're no longer needed.
448 1998-09-24  Paul Eggert  <eggert@twinsun.com>
450         * time/strftime.c (my_strftime): Don't store past the end of a
451         zero-sized buffer.
453 1998-09-24  Paul Eggert  <eggert@twinsun.com>
455         * time/strftime.c (underlying_strftime):
456         Set the buffer to a nonzero value before calling
457         strftime, and check to see whether strftime has set the buffer to zero.
458         This lets us distinguish between an empty buffer and an error.
460 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
462         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
463         This fix is propagated from tzcode1998g.tar.gz.
465 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
467         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
468         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
469         sys_siglist.  This is handled correctly by the weak_alias macro.
471 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
473         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
474         of mempcpy.  Reported by Andreas Jaeger.
476         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
477         pollute the namespace since the compiler will resolve it inline.
478         Reported by Florian La Roche <florian@suse.de>.
480 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
482         * timezone/private.h: Update from tzcode1998g.
484         * timezone/africa: Update from tzdata1998h.
485         * timezone/asia: Likewise.
486         * timezone/australasia: Likewise.
487         * timezone/europe: Likewise.
488         * timezone/northamerica: Likewise.
489         * timezone/southamerica: Likewise.
490         * timezone/zone.tab: Likewise.
492 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
494         * misc/sys/mman.h: New file.
496         * sysdeps/generic/bits/mman.h: New file.
497         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
498         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
499         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
500         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
502         * sysdeps/generic/sys/mman.h: Removed.
503         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
504         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
505         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
506         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
507         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
509         * include/sys/mman.h: Look directly for misc/sys/mman.h.
510         * misc/Makefile (headers): Add bits/mman.h.
511         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
512         bits/mman.h.
514         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
515         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
516         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
517         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
518         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
519         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
520         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
521         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
523 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
525         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
526         * sysdeps/mach/alpha/thread_state.h: Likewise.
527         * sysdeps/mach/i386/sysdep.h: Likewise.
528         * sysdeps/mach/i386/thread_state.h: Likewise.
529         * sysdeps/mach/mips/sysdep.h: Likewise.
530         * sysdeps/mach/mips/thread_state.h: Likewise.
531         * sysdeps/posix/profil.c: Likewise.
532         * sysdeps/i386/i586/memcopy.h: Likewise.
533         * sysdeps/mach/pagecopy.h: Likewise.
535 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
537         * libio/stdio.h: Define __need_getopt and include getopt.h to define
538         getopt stuff.
539         * posix/unistd.h: Likewise.
540         * stdio/stdio.h: Likewise.
541         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
542         define only getopt and the variables.
544 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
546         * scripts/test-installation.pl (installation_problem): Don't link
547         the test program against libdb1.
549 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
551         * Makeconfig (all-subdirs): Add db.
552         * Versions.def: Add definition for libdb1.
553         * shlib-versions: Add definitions for libdb1.
554         * db/Makefile (extra-libs): Replace by libdb1.
555         (libdb-routines): Rename to libdb1-routines.
556         (headers): Rename to db1-headers.
557         (distribute): Add $(db1-headers).
558         (install-others): Define to install symlink libdb.so.NN and the
559         $(db1-headers).
560         (CPPFLAGS): Add -DUSE_LIBDB1
561         Remove rules to build makedb.
562         * db/Versions: Rename libdb to libdb1.
563         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
564         * db/makedb.c: Removed.
566         * scripts/versions.awk: Recognize digits in library names.
568         * db/btree/bt_open.c: Fix compiler warnings.
569         * db/btree/bt_put.c: Likewise.
570         * db/btree/bt_split.c: Likewise.
571         * db/hash/hash.c: Likewise.
572         * db/hash/hash_bigkey.c: Likewise.
573         * db/recno/rec_close.c: Likewise.
575         * Makefile: Add localedata/% goal.
577 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
579         * posix/execvp.c: Don't give up searching the PATH if execve
580         returns ENOTDIR.
582 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
584         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
585         if _dl_fpu_control_set is set.
586         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
587         * elf/rtld.c: Don't define _dl_fpu_control_set.
588         * elf/Versions: Remove _dl_fpu_control_set.
590 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
592         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
593         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
594         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
595         Correct values of other SA_* macros according to kernel headers.
597 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
599         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
600         variable l.
601         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
602         old.
604 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
606         * elf/ldsodefs.h: Fix typo in comment.
608 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
610         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
611         char when comparing buffer contents with putback character.
613 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
615         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
616         Undo last change.
617         * elf/Versions: Undo last change.  Export _dl_fpu_control and
618         _dl_fpu_control_set.
619         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
620         variables.  Include <fpu_control.h>.
621         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
622         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
623         to indicate that is was seen.
624         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
625         only if _dl_fpu_control was set and is equal to desired value.
626         * math/Makefile (aux): Undo last change.
627         * math/Versions: Export __fpu_control with version GLIBC_2.0.
629 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
631         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
632         optimized.
634 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
636         * string/bits/string2.h: Add mempcpy optimization.
637         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
638         * intl/localealias.c: Define mempcpy only if not already defined.
640         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
641         defined.
643 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
645         * csu/abi-note.S: Emit the note directly instead of defining
646         a preprocessor macro that's only used once.  Don't include sysdep.h.
647         * abi-tags: Generalize Solaris entry.
649 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
651         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
652         Change to array to avoid runtime relocation.
653         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
655 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
657         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
658         * math/Makefile ($(objpfx)libieee.a): Likewise.
660 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
662         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
663         Patch by John Tobey <jtobey@banta-im.com>.
665 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
667         * login/Makefile (distribute): Remove pty-internal.h, add
668         pty-private.h.
670         * stdlib/tst-strtol.c: Add more checks.
671         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
673 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
675         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
676         * elf/elf.h: Add AT_FPUCW.
677         * elf/Makefile (dl-routines): Add fpu_control.
678         (elide-routines.os): Add fpu_control.
679         (rtld-routines): Add fpu_control.
680         * math/Makefile (aux): Remove fpu_control.
681         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
682         (_dl_show_auxv): Likewise.
683         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
684         if different from OS default.
686         * stdio-common/tstscanf.c: Add test case for (nil).
688 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
690         * libio/fileops.c (_IO_new_file_underflow): Before allocating
691         buffer make sure the pushback buffer is destroyed.
692         (_IO_new_file_seekoff): Likewise.
693         If mode==0 quit early with the result.
694         Clear OEF flag after successful fseek.
695         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
696         * libio/ftello.c (ftello): Add offset from original buffer if
697         stream has pushed back characters.
698         * libio/ftello64.c (ftello64): Likewise.
699         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
700         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
701         * libio/ioftell.c (_IO_ftell): Likewise.
702         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
703         and _IO_save_ptr.
704         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
705         (_IO_default_pbackfail): Only stored push back character in original
706         buffer if it is the same as the one in the file at this position.
707         * libio/iofclose.c: Free backup buffer if one is available.
708         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
709         mode!=0.
711         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
713         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
715         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
717 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
719         * login/programs/pt_chown.c (more_help): Correct message that
720         describes the purpose of the program.
722         * login/openpty.c: Do not include pty-private.h.
723         (pts_name): New function.  Return name of slave pseudo terminal in
724         an allocated buffer if necessary.
725         (openpty): Use pts_name to get name of the slave end of the pseudo
726         terminal pair.
728         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
729         pts_name before return.
731 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
733         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
735 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
737         * login/openpty.c: Include pty-private.h instead of
738         pty-internal.h.
740 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
742         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
744 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
746         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
747         recent ld.so changes.
748         (elf_machine_runtime_setup): Correct behaviour when profiling.
750 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
752         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
753         Patch by John Tobey <jtobey@banta-im.com>.
755 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
757         * login/pty-internal.h: Removed.  Moved constants related to the
758         `grantpt' helper program protocol to ...
759         * login/pty-private.h: ... here.  New file.
760         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
761         to make the function work with kernels >= 2.1.115.
762         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
763         version if using the cloning device fails.
764         * sysdeps/unix/sysv/linux/grantpt.c: New file.
765         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
766         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
767         use by Linux specific code.
768         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
769         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
770         function.  (grantpt): Use pts_name, check group and permission
771         mode in addition to owner.  Try to set the owner, group and
772         permission mode first without invoking the helper program.
773         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
774         internationalization support.  Use symbolic constants instead of
775         hardwired numbers for permission mode.
776         * sysdeps/unix/bsd/ptsname.c: New file.
778 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
780         * posix/wordexp-test.c: Undo last change.
782         * posix/wordexp.c: Undo last change.
784 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
786         * nscd/grpcache.c (save_grp): Partly undo last change.
788         * nscd/pwdcache.c (save_pwd): Undo last change.
790 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
792         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
793         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
795 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
797         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
798         Add profiling support.
799         (TRAMPOLINE_TEMPLATE): New macro.
800         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
801         (RTLD_START): Prettify, and set __libc_stack_end properly.
802         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
803         and check for sym being NULL instead.
804         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
805         of stack space.
806         * sysdeps/sparc/sparc64/lshift.S: Likewise.
807         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
808         * sysdeps/sparc/sparc64/rshift.S: Likewise.
809         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
810         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
811         MEDANY code model %g4 usage.
812         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
813         MEDANY code model %g4 usage.
814         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
815         code model address formation.
816         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
817         include elf/ldsodefs.h
818         (DT_SPARC): Remove.
819         (elf_machine_matches_host): It is now EM_SPARCV9.
820         (elf_machine_dynamic): Clean up to remove ugly cast.
821         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
822         new PLT formats.
823         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
824         Prettify rest of function.
825         [R_SPARC_COPY]: Check for sym being NULL.
826         [R_SPARC_32]: Handle it.
827         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
828         MEDMID code model.
829         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
830         MEDANY code model.
831         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
832         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
833         Add profiling support.
834         (TRAMPOLINE_TEMPLATE): New macro.
835         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
836         (RTLD_START): Prettify and set __libc_stack_end.
837         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
838         Define.
839         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
840         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
841         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
842         unused variable scratch.
843         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
844         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
845         Declare.
846         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
847         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
848         old format kernel sigaction structures.
849         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
850         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
851         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
852         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
853         ucontext include.
854         (_JMPBUF_UNWINDS): Define.
855         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
856         statfs64 structure, which is exactly the same as the normal one.
857         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
858         of stack.  Use correct syscall trap number.  Add branch prediction
859         settings to branch instructions.  Remove old MEDANY code model %g4
860         referneces for non-PIC.
861         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
862         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
863         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
864         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
865         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
866         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
867         __libc_longjmp and __libc_siglongjmp strong aliases.
868         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
869         Also define to __no__readdir64_decl around readdir.c inclusion.
870         (__readdir64): Add strong alias.
871         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
872         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
873         Set strong and weak names properly.
875 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
877         * manual/Makefile (AWK): Default to gawk if standalone.
879 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
881         * Makefile (distribute): Undo last change.
882         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
883         for sysdep headers.
884         (+subdir-headers): Removed, unused.
886 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
888         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
889         $(do-install).
891 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
893         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
894         absolute name in $(config-sysdirs), can never happen.
895         ($(+sysdir_pfx)sysd-rules): Likewise.
896         * Makeconfig (full-config-sysdirs): Likewise.
897         (all-Subdirs-files): Prepend $(..).
899         * configure.in: Don't check for absolute name in $add_ons_pfx, can
900         not happen.  Let --enable-add-ons=yes work if no add-ons actually
901         exist.
903 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
905         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
906         continuations in command.
908 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
910         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
912 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
914         * posix/wordexp-test.c: If expansion or substitution occurs
915         anywhere in a word, the entire word is subject to field-splitting.
917         * posix/wordexp.c (parse_glob): Look for end of word instead of
918         end of field when deciding what to glob.
919         (field_split_word): New function, now the only place where
920         field-splitting is performed.
921         (parse_dollars): New parameter - tell the caller if
922         field-splitting should be performed on this word.
924         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
925         succeeded (or failed with WRDE_NOSPACE).
927 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
929         * posix/wordexp.c (wordexp): Don't convert IFS characters to
930         blanks.
932         * posix/wordexp-test.c: Words not the result of expansion or
933         substitution should remain unchanged.
935 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
937         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
938         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
940 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
942         * stdio-common/Makefile: Include Makeconfig so that
943         $(inst_includedir) is defined.
945 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
947         * io/pwd.c: Include <mcheck.h>.
949 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
951         * nscd/pwdcache.c (save_pwd): Correct copying.
952         * nscd/grpcache.c (save_grp): Likewise.
954 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
956         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
957         (free_pwd): Adjust for this change.
958         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
959         (free_grp): Adjust for this change.
961 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
963         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
965 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
967         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
968         (install-others): Add bits/stdio_lim.h.
969         Add rule to install bits/stdio_lim.h.
971         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
973         * Makefile (distribute): Add include/sys/mman.h.
975         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
976         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
977         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
979         * grp/initgroups.c: Include stdlib.h.
980         Patch by Zack Weinberg.
982 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
984         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
985         for field-splitting :abc: is correct, and that two fields should
986         result. Revert tests to reflect this.
988         * posix/wordexp.c (w_emptyword): Remove function.
989         (exec_comm): Don't use w_emptyword.
990         (parse_param): Likewise.
992 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
994         * sysdeps/arm/fpu/Dist: Moved to...
995         * sysdeps/arm/Dist: ...here.
996         * sysdeps/posix/Dist: Removed.
997         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
998         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
1000 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1002         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
1004 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
1006         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
1008 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1010         * libc-work/nis/nss_nisplus/nisplus-service.c
1011         (_nss_nisplus_parse_servent): Convert port in network byte order.
1013 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1015         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
1016         to provide only malloc and calloc.
1017         * include/stdlib.h: Support the above.
1018         * string/bits/string2.h: Use __need_malloc_and_calloc when
1019         including stdlib.h.
1020         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
1022         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
1023         * iconvdata/iso646.c: Include <stdlib.h>.
1025 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1027         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
1028         * sysdeps/libm-ieee754/w_pow.c: Likewise.
1029         * sysdeps/libm-ieee754/w_powf.c: Likewise.
1030         * sysdeps/libm-ieee754/w_powl.c: Likewise.
1032 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1034         * stdio-common/stdio_lim.h.in: New file.  All parameters
1035         are adjustable at build time.
1036         * Rules: Add a rule to build bits/stdio_lim.h from
1037         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
1038         all subdirectories know how to make the file.  It can't be
1039         in Makerules because then it gets built at top level and the
1040         dependencies are wrong.)
1042         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
1043         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
1044         stdio_lim.h.
1045         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
1046         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
1047         * sysdeps/posix/Makefile: Removed.
1048         * sysdeps/posix/mk-stdiolim.c: Removed.
1049         * sysdeps/generic/bits/stdio_lim.h: Removed.
1051 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1053         * argp/argp-help.c: Fixup indentation.
1054         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
1055         * resolv/nss_dns/dns-network.c: Likewise.
1056         * resolv/res_send.c: Likewise.
1057         * rt/aio_cancel.c: Likewise.
1058         * rt/aio_misc.c: Likewise.
1060 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1062         * Makefile (install-symbolic-link): Remove the link list file at last.
1063         * Makerules (install-clean-symbolic-link-list): Removed.
1065 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1067         * timezone/tst-timezone.c: Print time in UTC to get consistent
1068         output.
1070 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1072         * elf/rtld.c (_dl_rpath): Removed.
1073         * elf/dl-support.c (_dl_path): Removed.
1074         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
1075         (CFLAGS-dl-support.c): Removed.
1077         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
1078         uses changed.
1079         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
1080         instead of appending it to the main map's rpath info.
1081         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
1082         DT_RPATHs.  This makes it effective again.
1083         (decompose_rpath): Remove second parameter, callers changed.
1084         (fillin_rpath): Allocate enough space in curwd.
1085         (expand_dynamic_string_token): Cope with get_origin returning -1.
1087 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1089         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
1090         passwd.adjunct.
1092         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
1093         invalid password.
1095 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
1097         * locale/programs/locale.c: Update dates.
1099 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
1101         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
1102         size_t is defined.  Some reordering of defenitions to make
1103         maintaining this file in parallel with the linux-specific file easier.
1105 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
1107         * io/pwd.c (main): Add call to mtrace.
1109         * malloc/mtrace.pl: Quote @ in string.
1111 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
1113         * posix/wordexp.c (parse_arith): Fix memory leaks.
1114         (exec_comm): Likewise.
1115         (parse_param): Likewise.
1116         (wordexp): Likewise.
1117         (exec_comm): Reduce number of function return points.
1118         (parse_param): Likewise.
1119         (wordexp): Likewise.
1121 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
1123         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
1124         yield three fields, not two.  Test both parameter expansion and
1125         command substitution for correct field-splitting behaviour.
1127         * posix/wordexp.c (w_emptyword): New function.
1128         (parse_param): Use it.
1129         (exec_comm): Likewise, for consistency with the way parse_param
1130         splits fields.
1131         (parse_param): Fix some memory leaks.
1133 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
1135         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
1136         Don't mark asm `volatile'.
1137         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
1138         from the data cache too.  Assume it isn't in the instruction cache yet.
1139         (__elf_machine_fixup_plt): Clear the modified address from the caches.
1141 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
1143         * sysdeps/generic/segfault.c (install_handler): Install signal
1144         handler with SA_ONSTACK instead of setting the stack flags to
1145         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
1146         defined.
1148 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1150         * signal/signal.h: Fix multiple inclusion guard to cover the
1151         entire file.
1152         * wcsmbs/wchar.h: Remove prototype of internal function
1153         __mbsrtowcs.
1154         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
1155         arithmetic on `void *'.
1157 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
1159         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
1161         * posix/wordexp.c (wordexp): Perform word-splitting instead of
1162         field-splitting here.
1163         (wordexp): If out of memory mid-word, free the word (but still
1164         leave pwordexp alone for caller to see).
1165         (parse_param): Allow for zero-length fields (smarter checking of
1166         memory allocation failure).
1167         (w_addword): Convert NULL words to "".
1168         (wordexp): Convert left-over IFS characters to blanks (like bash).
1170 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1172         * configure.in: Use test -f instead of test -e.
1173         Patch by John Tobey <jtobey@banta-im.com>.
1175         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
1176         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
1177         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
1178         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
1179         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
1180         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
1181         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
1182         Patches by John Tobey <jtobey@banta-im.com>.
1184         * time/strftime.c (my_strftime): Delay use of *tp values until
1185         latest possible point to allow partly initialized structures
1186         (e.g., from strptime).
1188         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
1189         and NATS-SEFI.
1190         Define *-routines variables for new modules.
1191         (distribute): Add .c files for new modules.
1192         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
1193         and nats-sefi.h.
1194         Add rules for header generation.
1195         * iconvdata/gconv-modules: Add entries for new modules.
1196         * iconvdata/iso_10367-box.c: New file.
1197         * iconvdata/mac-is.c: New file.
1198         * iconvdata/nats-dano.c: New file.
1199         * iconvdata/nats-sefi.c: New file.
1201 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
1203         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
1204         loader if PIC is not defined.
1206 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1208         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
1209         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
1210         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
1211         and ISO_5428.
1212         Define *-routines variables for new modules.
1213         (distribute): Add .c files for new modules.
1214         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
1215         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
1216         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
1217         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
1218         Add rules for header generation.
1219         * iconvdata/gconv-modules: Add entries for new modules.
1220         * iconvdata/csn_369103.c: New file.
1221         * iconvdata/cwi.c: New file.
1222         * iconvdata/dec-mcs.c: New file.
1223         * iconvdata/ecma-cyrillic.c: New file.
1224         * iconvdata/gost_19768-74.c: New file.
1225         * iconvdata/greek-ccitt.c: New file.
1226         * iconvdata/greek7-old.c: New file.
1227         * iconvdata/greek7.c: New file.
1228         * iconvdata/inis-8.c: New file.
1229         * iconvdata/inis-cyrillic.c: New file.
1230         * iconvdata/inis.c: New file.
1231         * iconvdata/iso6937-2.c: New file.
1232         * iconvdata/iso_2033.c: New file.
1233         * iconvdata/iso_5427-ext.c: New file.
1234         * iconvdata/iso_5427.c: New file.
1235         * iconvdata/iso_5428.c: New file.
1237         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
1238         entries.
1239         Convert U02dd correctly.
1241 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
1243         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
1244         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1245         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
1246         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
1248 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1250         * resolv/res_init.c (res_init): Handle resolv.conf file with only
1251         one nameserver correctly.  Patch by HJ Lu.
1253         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
1254         and ANSI_X3.110.
1255         Define *-routines variables for new modules.
1256         (distribute): Add .c files for new modules.
1257         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
1258         Add rules for hedaer generation.
1259         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
1260         * iconvdata/ansi_x3.110.c: New file.
1261         * iconvdata/asmo_449.c: New file.
1262         * iconvdata/baltic.c: New file.
1263         * iconvdata/iec_p27-1.c: New file.
1265         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
1266         entries.
1267         Convert U02dc correctly.
1269         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
1270         * math/atest-exp2.c: Likewise.
1271         * math/atest-sincos.c: Likewise.
1273         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
1274         is defined.
1276 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1278         * string/strcoll.c: Optimize a few expressions.
1279         * string/strxfrm.c: Likewise.
1281 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1283         * manual/locale.texi: Fix typos.
1285 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
1287         * stdlib/random_r.c (__setstate_r): Allow call with same state
1288         array as currently used (PR libc/774).
1290         * include/limits.h: Include gcc's header even if this file is
1291         found more than once before it (PR libc/778)
1293         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
1294         (sysdep_headers): Remove sys/debugreg.h.
1295         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
1296         (sysdep_headers): Add sys/debugreg.h.
1297         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
1298         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
1300         * stdio-common/tmpnam.c: Move local static variable buf to
1301         toplevel and rename to tmpnam_buffer to ease debugging.
1302         Patch by Joe Keane <jgk@jgk.org>.
1303         Optimize s == NULL case a bit.
1305         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
1306         correction.
1308 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
1310         * resolv/res_init.c (res_init): Initialize _res.nscount and
1311         _res.nsaddr.sin_port differently for the can when no loopback
1312         is available to allow immediate timeout in non-networking environments.
1313         Patch by Cristian Gafton <gafton@redhat.com>.
1315 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1317         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
1318         BAR and not EM DASH.
1319         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
1320         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
1321         Fixes PR libc/717.
1323 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
1325         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
1326         for test.
1327         * timezone/tst-timezone.c (tests): Fix typo in last patch.
1329         * time/tzfile.c (__tzfile_read): Handle case when there are no
1330         transitions.  Set __timezone based on computed offset.
1331         * time/tzset.c (tzset_internal): Set __timezone before returning.
1333         * time/tzset.c (tzset_internal): Optimize handling of local string
1334         copy.
1336 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1338         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
1339         libc/776).
1341 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
1343         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
1344         (csqrt_test): Likewise.
1345         * sysdeps/powerpc/bits/fenv.h: Add parens.
1347 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
1349         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
1350         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1351         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
1353 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
1355         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
1356         the special `-1' pointer.
1358 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
1360         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
1361         inline.
1363 1998-09-07  Paul Eggert  <eggert@twinsun.com>
1365         * time/mktime.c (__EXTENSIONS__): Define if not defined.
1366         (_REENTRANT): Remove.  It has undesirable consequences in
1367         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
1368         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
1369         is what we want.
1370         * time/strftime.c: Likewise.
1372 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1374         * elf/dl-error.c: Fix spelling.
1376 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1378         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
1379         * stdio-common/_itoa.c: Likewise.
1380         * stdio-common/printf_fp.c: Likewise.
1381         * stdio-common/vfscanf.c: Likewise.
1382         * wcsmbs/wcstok.c: Likewise.
1383         * sysdeps/generic/glob.c: Likewise.
1384         * posix/getopt.c: Likewise.
1385         * sysdeps/posix/getaddrinfo.c: Likewise.
1386         * posix/wordexp.c: Likewise.
1387         * io/ftw.c: Likewise.
1388         * io/fts.c: Likewise.
1389         * misc/getpass.c: Likewise.
1390         * iconv/gconv_conf.c: Likewise.
1391         * argp/argp-fmtstream.c: Likewise.
1392         * argp/argp-help.c: Likewise.
1393         * elf/dl-load.c: Likewise.
1394         * locale/programs/stringtrans.c: Likewise.
1395         * catgets/gencat.c: Likewise.
1396         * posix/getconf.c: Likewise.
1397         * iconv/gconv_conf.c: Likewise.
1398         * iconv/iconv_prog.c: Likewise.
1400         * string/strcoll.c: Optimize a few expressions.
1401         * string/strxfrm.c: Likewise.
1403 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1405         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
1406         level to avoid uninit variable warning.
1408 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1410         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
1411         instead of _dl_default_scope[2] as argument to _dl_init_next.
1413         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
1414         C9x macro.
1416 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
1418         Fix compatibility problems introduced in last change.
1419         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
1420         defined.
1421         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
1422         -DWEAK_GMON_START to CFLAGS-initfini.s.
1424         * elf/dl-object.c (_dl_new_object): Store map address in
1425         _dl_loaded if _dl_loaded is NULL.
1426         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
1428         * sysdeps/generic/setrlimit64.c: Remove stub warning.
1430 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
1432         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
1433         quiet.
1434         * db2/btree/bt_cursor.c: Likewise.
1435         * db2/common/db_region.db_c: Likewise.
1436         * db2/common/db_salloc.db_c: Likewise.
1437         * db2/db/db.c: Likewise.
1438         * db2/db/db_rec.c: Likewise.
1439         * db2/hash/hash.c: Likewise.
1440         * db2/hash/hash_page.c: Likewise.
1441         * db2/hash/hash_rec.c: Likewise.
1442         * db2/log/log_findckp.c: Likewise.
1443         * db2/log/log_get.c: Likewise.
1444         * db2/log/log_put.c: Likewise.
1445         * db2/mp/mp_fget.c: Likewise.
1446         * db2/mp/mp_fput.c: Likewise.
1447         * db2/mp/mp_region.c: Likewise.
1448         * stdlib/strtol.c: Likewise.
1449         * string/strcoll.c: Likewise.
1450         * string/strxfrm.c: Likewise.
1451         * argp/argp-help.c: Likewise.
1452         * argp/argp-parse.c: Likewise.
1453         * resolv/res_debug.c: Likewise.
1455 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
1457         * math/tgmath.h (scalb): Only define for __USE_MISC or
1458         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
1460 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1462         * libio/stdio.h: Fix comment.
1464         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
1465         __USE_ISOC9X.
1467 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1469         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
1471         * elf/dl-open.c: Quiet -Wparentheses warnings.
1472         * iconvdata/johab.c: Likewise.
1473         * iconvdata/uhc.c: Likewise.
1474         * inet/inet_net.c: Likewise.
1475         * io/fts.c: Likewise.
1476         * locale/newlocale.c: Likewise.
1477         * misc/getttyent.c: Likewise.
1478         * misc/mntent_r.c: Likewise.
1479         * misc/ttyslot.c: Likewise.
1480         * nscd/nscd_conf.c: Likewise.
1481         * nss/nsswitch.c: Likewise.
1482         * resolv/gethnamaddr.c: Likewise.
1483         * resolv/nsap_addr.c: Likewise.
1484         * resolv/res_debug.c: Likewise.
1485         * stdio-common/_itoa.c: Likewise.
1486         * stdlib/strtod.c: Likewise.
1487         * string/strverscmp.c: Likewise.
1488         * sunrpc/svc.c: Likewise.
1489         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
1490         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
1491         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
1492         * sysdeps/posix/getaddrinfo.c: Likewise.
1494 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
1496         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
1497         for use of global scope.
1498         * elf/dlvsym.c (dlvsym_doit): Likewise.
1500 1998-09-02  Paul Eggert  <eggert@twinsun.com>
1502         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
1503         copy the redundant bytes at the end of the format as-is; don't
1504         just copy their first byte and then rescan, as that might get
1505         us an encoding error.
1506         Account correctly for the length of multibyte sequences in the
1507         format.
1509 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
1511         * posix/wordexp-test.c: Add tests for different IFS values.
1512         Change unquoted-newline test so that newline is not in IFS.
1514         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
1515         determining IFS characters.  Return WRDE_BADCHAR for unquoted
1516         special characters _except_ if they are separators.
1518 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
1520         * include/tgmath.h: New file.
1522         * libio/stdio.h: Correct reversed #ifs.
1523         Patch by Zack Weinberg.
1525         * manual/creature.texi: Better explain reason for feature select
1526         macros.
1527         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
1529 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1531         * include/alloca.h: Add multiple-inclusion guard.
1532         * include/db.h: Likewise.
1533         * include/db_185.h: Likewise.
1534         * include/dlfcn.h: Likewise.
1535         * include/fcntl.h: Likewise.
1536         * include/grp.h: Likewise.
1537         * include/libintl.h: Likewise.
1538         * include/mntent.h: Likewise.
1539         * include/pwd.h: Likewise.
1540         * include/sched.h: Likewise.
1541         * include/search.h: Likewise.
1542         * include/setjmp.h: Likewise.
1543         * include/shadow.h: Likewise.
1544         * include/signal.h: Likewise.
1545         * include/stdio.h: Likewise.
1546         * include/stdlib.h: Likewise.
1547         * include/string.h: Likewise.
1548         * include/termios.h: Likewise.
1549         * include/time.h: Likewise.
1550         * include/ulimit.h: Likewise.
1551         * include/utmp.h: Likewise.
1552         * include/wchar.h: Likewise.
1553         * include/sys/file.h: Likewise.
1554         * include/sys/gmon.h: Likewise.
1555         * include/sys/ioctl.h: Likewise.
1556         * include/sys/mman.h: Likewise.
1557         * include/sys/resource.h: Likewise.
1558         * include/sys/select.h: Likewise.
1559         * include/sys/socket.h: Likewise.
1560         * include/sys/statfs.h: Likewise.
1561         * include/sys/time.h: Likewise.
1562         * include/sys/times.h: Likewise.
1563         * include/sys/wait.h: Likewise.
1565 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
1567         * version.h (VERSION): Bump to 2.0.96.
1569         Rewrite runtime linker to be truly thread-safe.  There is now no
1570         global variable specifying the scope.  We create all needed
1571         scopes at the time the link maps are created.
1572         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
1573         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
1574         l_symbolic_searchlist, l_scope, and l_local_scope elements in
1575         struct link_map.
1576         * elf/dl-close.c: Rewritten accordingly.
1577         * elf/dl-deps.c: Likewise.
1578         * elf/dl-error.c: Likewise.
1579         * elf/dl-init.c: Likewise.
1580         * elf/dl-load.c: Likewise.
1581         * elf/dl-lookup.c: Likewise.
1582         * elf/dl-object.c: Likewise.
1583         * elf/dl-open.c: Likewise.
1584         * elf/dl-reloc.c: Likewise.
1585         * elf/dl-runtime.c: Likewise.
1586         * elf/dl-support.c: Likewise.
1587         * elf/dl-symbol.c: Likewise.
1588         * elf/dl-version.c: Likewise.
1589         * elf/dlsym.c: Likewise.
1590         * elf/dlvsym.c: Likewise.
1591         * elf/ldsodefs.h: Likewise.
1592         * elf/rtld.c: Likewise.
1593         * iconv/gconv_dl.c: Likewise.
1594         * nss/nsswitch.c: Likewise.
1595         * sysdeps/i386/dl-machine.h: Likewise.
1596         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1598         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
1599         Define RTLD_DEFAULT.
1601 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
1603         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
1604         __getopt_clean_environment with __environ instead of envp.
1606 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
1608         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
1610         * string/argz-extract.c (__argz_extract): Add de-consting cast for
1611         setting results.
1613         * string/argz.h (argz_next): Add de-consting cast for return.
1614         * string/argz-next.c (__argz_next): Likewise.
1616         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
1617         Don't add netinet/udp.h, netinet/ip_icmp.h here.
1618         * sysdeps/gnu/Makefile: Do it here instead.
1619         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
1620         * sysdeps/gnu/Dist: ... to here.
1622         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
1623         sysdeps/unix/sysv/linux/netinet/tcp.h,
1624         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
1626 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
1628         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
1629         * string/argz-next.c, string/argz-extract.c: Fix defns.
1631 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
1633         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
1635         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
1636         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
1637         * sysdeps/generic/sysd-stdio.c: Likewise.
1639 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
1641         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
1642         (_dl_map_object_from_fd): Make NAME argument const.
1643         Remove last parameter in _dl_new_object call.
1644         (print_search_path): Correct construction of composed path name.
1645         (_dl_map_object): Prevent looking at RPATH of the main map twice.
1646         Remove last parameter in _dl_new_object call.
1647         * elf/dl-object.c: Remove last parameter.  Determine whether create
1648         origin entry based on empty realname.  Handle file in root directory
1649         correctly.
1650         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
1651         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
1652         Remove last parameter in _dl_new_object call.
1653         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
1654         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
1656 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
1658         * elf/dl-close.c (_dl_close): Add more comments and correct some.
1659         Free l_searchlist and l_dupsearchlist.
1661         * debug/catchsegv.sh: Add one more pair of quotes.
1663 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
1665         * elf/dl-load.c (add_name_to_object): Change return type to void and
1666         make NAME parameter const.  Allocate room for NAME in same memory
1667         block used for l_libname entry.
1668         (_dl_map_object_from_fd): Don't free NAME on failure.
1669         (map_segment): Pass SONAME to add_name_to_object, not a copy.
1670         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
1671         _dl_map_object_from_fd.
1672         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
1673         memory block used for l_libname entry.
1674         * elf/dl-close.c: Adjust free()ing for this change.
1676 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
1678         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
1680         * malloc/mtrace.c: Add bug report address.  Update email address.
1681         Add more @XXX@ to print correct address size.
1683         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
1684         really initialized.
1686         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
1687         for munmap call instead of examining phdr again.
1688         Free all malloc()ed strings and arrays.
1690 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1692         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
1693         dl-machine.h.
1694         * sysdeps/powerpc/dl-machine.c: New file.
1695         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
1696         files.  Revise ELF_PREFERRED_ADDRESS to take account of
1697         the new mapping information (fixes bug involving huge bloated
1698         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
1699         * sysdeps/powerpc/dl-start.S: New file.
1701         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
1702         l_map_end.
1703         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
1704         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
1705         others.  Call elf_dynamic_do_##reloc only once (to save even more
1706         space).
1707         * elf/link.h: Add new members l_map_start and l_map_end to keep
1708         track of the memory map.
1709         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
1710         the executable.
1712 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
1714         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
1715         Reported by Andreas Jaeger.
1717         * posix/glob.h: Use __size_t instead of size_t in definitions and
1718         make sure this is defined.
1720 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
1722         * manual/locale.texi: Almost complete rewrite.  Document more functions
1723         and functionality.
1724         * manual/arith.texi: Correct reference.
1725         * manual/string.texi: Pretty printing.
1727         * manual/texinfo.tex: Update from last available version.
1729 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
1731         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
1732         invalid password.
1733         (_nss_nis_getpwuid_r): Likewise.
1734         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
1736         * inet/rcmd.c: Implement netgroup support.
1737         Patch by Dick Streefland <dick_streefland@tasking.com>.
1739 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1741         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
1742         object on the list is removed.  Don't use this code for PIC.
1743         Reported by HJ Lu [PR libc/770].
1745 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
1747         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
1749         * include/stdio.h: Add __vsscanf.
1751         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
1752         __USE_ISOC9X.
1753         Remove __vsscanf declaration.
1754         Always declare fgetpos and fsetpos.
1756         * math/math.h: Define isinf as macro.
1757         * math/bits/mathcalls.h: Change to declare __isinf all the time.
1758         Don't declare scalb for ISO C 9x.
1760         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
1762         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
1764         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
1765         sys/ucontext.h.
1767         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
1768         macros.
1770 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1772         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
1773         Reported by jreising@frequentis.com [PR libc/767].
1775 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1777         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
1778         fl.l_start at beginning of function.
1779         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
1781 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1783         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
1784         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
1786         * nscd/nscd.init: Make it work in RedHat systems.
1787         Patch by Christian Gafton.
1789 1998-08-29  Philip Blundell  <philb@gnu.org>
1791         * catgets/Makefile: Don't try to run test programs when
1792         cross-compiling.
1794 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1796         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
1797         Reported by Zack Weinberg.
1799 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1801         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
1802         * elf/Makefile (distribute): Remove ldd.sh.in.
1804 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1806         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
1807         variable.
1809 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
1811         * sysdeps/i386/register-dump.h: Move to ...
1812         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
1814 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
1816         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
1817         with load address, not map address.
1818         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
1819         parameter and use this value.
1820         * sysdeps/arm/dl-machine.h: Likewise.
1821         * sysdeps/i386/dl-machine.h: Likewise.
1822         * sysdeps/m68k/dl-machine.h: Likewise.
1823         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
1824         parameter.
1825         * sysdeps/powerpc/dl-machine.h: Likewise
1826         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
1827         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
1829 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
1831         * elf/rtld.c (process_envvars): Fix copy&paste error.
1833         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
1834         memalign hook.
1835         (realloc_hook_ini): Don't overwrite memalign hook.
1836         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
1837         Reported by Philippe Troin <phil@fifi.org>.
1839         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
1840         Patch by Philippe Troin <phil@fifi.org>.
1842 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1844         * sysdeps/generic/segfault.c (install_handler): Protect the
1845         non-POSIX signals with #ifdef.
1846         (catch_segfault): Add missing mode parameter for open.
1847         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
1848         other termination signals.
1850 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1852         * debug/Makefile (distribute): Add register-dump.h.
1854 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1856         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
1858 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
1860         * elf/Makefile (distribute): Add dl-origin.h.
1861         * sysdeps/generic/dl-origin.h: New file.
1862         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
1863         * elf/link.h (struct link_map): Add l_origin field.
1864         * elf/dl-load.c (expand_dynamic_string_token): New function.
1865         (decompose_path): Remove WHERE argument, take link map pointer instead.
1866         Call expand_dynamic_string_token instead of local_strdup to make copy
1867         of rpath.
1868         (_dl_init_paths): Call decompose_path with correct argument.
1869         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
1870         not defined.
1871         Check EI_OSABI and EI_ABIVERSION fields in header.
1872         Call _dl_new_object with extra argument.
1873         (_dl_map_object): Call decompose_path with correct argument.
1874         Call expand_dynamic_string_token instead of local_strdup to also
1875         expand DST.
1876         Call _dl_new_object with extra argument.
1877         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
1878         but the main one if new argument is nonzero.
1879         * elf/ldsodefs.h: Adjust for _dl_new_object change.
1880         * elf/dl-support.c: Define _dl_origin_path.
1881         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
1882         (dl_main): Call _dl_new_object with extra argument.
1884         * elf/dl-close (_dl_close): Free l_name and l_origin.
1886         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
1887         modifier in asm, not c.
1889         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
1890         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
1892 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
1894         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
1895         variable so that map can be freed.
1896         Reported by Philippe Troin <phil@fifi.org>.
1898         * elf/dl-open.c (dl_open_worker): Correct test for extending global
1899         scope array.
1900         Patch by Philippe Troin <phil@fifi.org>.
1902 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1904         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
1905         Don't call writev() with a 100-element vector.
1906         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
1907         return address.
1909         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
1910         In particular, set __libc_stack_end.
1911         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
1912         undefined.  Fix copyright notice.
1914 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1916         * math/Makefile (gmp-objs): New variable.
1917         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
1918         Depend on it.
1919         (tests): Add atest-exp atest-sincos atest-exp2.
1920         (tests-static): Remove atest-exp atest-sincos atest-exp2.
1922 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
1924         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
1925         to toplevel.
1926         (_dl_unload_cache): New function.
1927         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
1928         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
1929         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
1931         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
1932         Correct comment for O_LARGEFILE.
1933         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
1934         Change O_LARGEFILE to correct value.
1936 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
1938         * libio/iogetline.c (_IO_getline_info): Don't read anything for
1939         N == 0.  Patch by HJ Lu.
1941 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
1943         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
1945 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
1947         * argp/argp.h: Use __inline__ not inline.
1949         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
1950         an input register as being clobbered.
1951         * sysdeps/i386/memset.c (memset): Likewise.
1952         * sysdeps/i386/bzero.c (__bzero): Likewise.
1953         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
1955 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1957         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
1958         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
1960 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
1962         * debug/catchsegv.sh: Handle text preceding backtrace better.
1963         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
1964         to be installed for other signals than SIGSEGV.
1965         * sysdeps/generic/register-dump.h: New file.
1966         * sysdeps/i386/register-dump.h: New file.
1967         * sysdeps/powerpc/register-dump.h: New file.
1969         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
1970         sigcontextinfo.h.
1971         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
1973 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
1975         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
1977 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1979         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
1980         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
1981         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
1982         getresuid, getresgid.
1984 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
1986         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
1987         pointer in userland.
1989 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1991         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
1992         and fix value.
1994 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1996         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
1997         over arguments Bourne shell compatible.  Don't exit unsuccessfully
1998         if nonelf returns successfully.  Avoid duplicating most of the
1999         script.
2000         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
2001         around $file.
2003 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2005         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
2006         sys/reg.h.
2007         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
2008         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
2010 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2012         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
2013         __modify_ldt and modify_ldt.
2014         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
2016         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2017         Use orl $-1 instead of movl $-1 to save two bytes.
2018         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
2019         Likewise.
2021 1998-08-17  H.J. Lu  <hjl@gnu.org>
2023         * libio/Versions (_IO_do_write, _IO_file_attach,
2024         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2025         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2026         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2027         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
2029         * libio/fileops.c (_IO_do_write, _IO_file_attach,
2030         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2031         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2032         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2033         _IO_file_write, _IO_file_xsputn): Change the prefix to
2034         "_IO_new_". Added to GLIBC_2.1.
2036         * libio/libioP.h (_IO_do_write, _IO_file_attach,
2037         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2038         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2039         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2040         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
2041         "_IO_new_".
2043         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
2044         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2045         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2046         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2047         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
2049 1998-08-23  Richard Henderson  <rth@cygnus.com>
2051         * Makeconfig (LDFLAGS): Remove.
2053         * csu/initfini.c: Return to .text before __gmon_start__.
2055         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
2056         (STO_MIPS_*): Rename from STO_*.
2057         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
2058         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
2060         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
2061         (main): e3s is negative on zero.
2062         * math/atest-exp2.c: Likewise.
2063         * math/atest-sincos.c: Likewise.
2065 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2067         * Makerules (install): Add comment about absolute paths.
2069 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2071         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
2072         array to NUL to handle maxlen==1 case correctly.
2073         Patch by HJ Lu.
2075 1998-08-23  Richard Henderson  <rth@cygnus.com>
2077         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
2078         * sysdeps/alpha/elf/crtend.S: Likewise.
2079         * sysdeps/alpha/elf/start.S: Likewise.
2081         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
2082         non-standard pv usage.
2084         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
2085         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2086         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2087         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2088         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2089         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2090         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2091         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2092         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2093         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2094         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2096         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
2097         a finite non-denormal, deferring to the full IEEE version otherwise.
2099         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
2100         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
2101         * sysdeps/alpha/fpu/s_floor.c: New.
2102         * sysdeps/alpha/fpu/s_floorf.c: New.
2103         * sysdeps/alpha/fpu/s_ceil.c: New.
2104         * sysdeps/alpha/fpu/s_ceilf.c: New.
2106 1998-08-22  Philip Blundell  <philb@gnu.org>
2108         * sysdeps/arm/bits/string.h: New file.
2110 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2112         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
2113         document it.
2115         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
2116         test for recent Linux 2.1.100+ headers.
2118 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2120         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
2122 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
2124         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
2126 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2128         * Makefile (elf/ldso_install): Put back.  The problem still persists.
2129         * elf/Makefile (ldso_install): Likewise.
2131 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2133         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
2134         create weak alias.
2135         * include/db.h: Declare __nss_db_open.
2136         * db2/Versions: Export it.
2138         * db2/makedb.c: Convert to use db2 API.
2139         * nss/nss_db/db-XXX.c: Likewise.
2140         * nss/nss_db/db-netgrp.c: Likewise.
2141         * nss/nss_db/db-alias.c: Likewise.
2142         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
2144 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2146         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2147         sys_setresuid, already built automatically (or not).
2148         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
2149         instead of __syscall_setresuid and add back setresuid.
2150         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
2151         __syscall_setresuid.
2153 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2155         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
2157 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2159         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
2160         BASH-ONLY marked region.
2161         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
2163 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2165         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
2166         _IO_SYSSEEK fails.
2168         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
2170         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
2171         element.
2173 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
2175         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
2176         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
2177         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
2178         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
2179         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
2180         those magic comments, and to use /bin/sh for @BASH@.
2181         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
2182         * elf/ldd.sh.in: File removed.
2184 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
2186         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
2187         cast them to unsigned long int.
2188         * pwd/putpwent.c (putpwent): Likewise.
2189         Patch by John Tobey <jtobey@banta-im.com>.
2191 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
2193         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
2194         _IO_pos_BAD.
2196 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2198         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
2199         _IO_SYSSEEK fails.
2201 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
2203         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
2204         Add umount and umount2.
2205         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
2206         * sysdeps/unix/sysv/linux/umount.S: New file.
2207         * sysdeps/unix/sysv/linux/umount2.S: New file.
2208         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
2209         Define MNT_FORCE.
2211         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
2212         Add sys/sendfile.h.
2213         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
2214         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
2216         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
2218         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
2219         sendfile.
2221 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
2223         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
2224         * elf/ldd.bash.in: Likewise.
2226         * elf/sln.c: Avoid warning for no main prototype.
2228         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
2229         O_WRITE.
2230         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2231         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2233         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
2234         F_GETSIG.
2235         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2236         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2237         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2239 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
2241         * sysdeps/arm/fpu/ieee754.h: Move to...
2242         * sysdeps/arm/ieee754.h: ... here.
2244         * sysdeps/arm/__longjmp.S: Put return value in correct register.
2245         Don't set the condition flags unnecessarily.
2246         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
2247         registers correctly.
2249         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
2250         (patch from Scott Bambrough).
2252         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
2254         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
2255         NULL, just call it unconditionally.
2256         (__gmon_start__): Provide stub version as a weak symbol.
2258 1998-07-30  Philip Blundell  <philb@gnu.org>
2260         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
2261         by Scott Bambrough)
2263         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
2264         like `@' in .type directives.
2266         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
2267         * sysdeps/arm/bsd-_setjmp.S: Likewise.
2269         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
2271 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2273         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
2274         (F_GETOWN): Likewise.
2276         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
2277         Linux 2.1.117).
2279 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2281         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
2282         already defined.
2284 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
2286         * include/features.h: Define __USE_EXTERN_INLINES for recent
2287         enough gcc.
2288         * argp/argp.h: Define extern inline functions only if
2289         __USE_EXTERN_INLINES is defined.
2290         * libio/stdio.h: Likewise.
2291         * math/math.h: Likewise.
2292         * stdlib/stdlib.h: Likewise.
2293         * string/argz.h: Likewise.
2294         * sysdeps/generic/bits/sigset.h: Likewise.
2295         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
2296         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
2297         * sysdeps/wordsize-32/inttypes.h: Likewise.
2298         * sysdeps/wordsize-64/inttypes.h: Likewise.
2299         * wcsmbs/wchar.h: Likewise.
2301         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
2302         to allow compilation without optimization.
2304 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2306         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
2307         more entries.
2308         * nis/nss_compat/compat-initgroups.c: Likewise.
2309         * nis/nss_compat/compat-pwd.c: Likewise.
2310         * nis/nss_compat/compat-spwd.c: Likewise.
2311         * nis/nss_nis/nis-alias.c: Likewise.
2312         * nis/nss_nis/nis-ethers.c: Likewise.
2313         * nis/nss_nis/nis-grp.c: Likewise.
2314         * nis/nss_nis/nis-hosts.c: Likewise.
2315         * nis/nss_nis/nis-initgroups.c: Likewise.
2316         * nis/nss_nis/nis-network.c: Likewise.
2317         * nis/nss_nis/nis-proto.c: Likewise.
2318         * nis/nss_nis/nis-pwd.c: Likewise.
2319         * nis/nss_nis/nis-rpc.c: Likewise.
2320         * nis/nss_nis/nis-service.c: Likewise.
2321         * nis/nss_nis/nis-spwd.c: Likewise.
2323         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
2325         * nis/ypclnt.c: Try binding dir only first time, could be to old.
2327         * nis/yp_xdr.c: Remove 1024 byte limit.
2328         * nis/ypupdate_xdr.c: Likewise.
2330         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
2331         wrong data.
2333 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
2335         * Rules (binaries-static, binaries-shared static pattern rules):
2336         Depend on lib%, not just libc%, from $(link-libc{,-static}).
2338         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
2339         this here, overriding Makeconfig generic value so we link against
2340         the RPC libs.
2342 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
2344         * posix/tstgetopt.c (options): Add NULL entry at end
2345         Patch by Adrian Miranda <ade@psg.com>.
2347 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
2349         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
2350         to 9.
2352 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
2354         * elf/elf.h: Add PPC Diab relocations.
2356         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
2358 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
2360         * manual/texinfo.tex: Update.
2362 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
2364         * sysdeps/powerpc/backtrace.c: New file.
2366 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
2368         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
2369         sigjmp_save.
2370         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
2372 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2374         * Makefile (install-symbolic-link): Fix spelling.
2376 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2378         * elf/elf.h (SHT_HIOS): Fix value.
2380 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2382         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
2383         part of the expansion, this is undefined by the standard.
2385 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
2387         * posix/getconf.c: Add support for systems with incomplete confname.h.
2389         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
2391         * sysdeps/posix/wait3.c: Make it work.
2393 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2395         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
2396         (elf/ldso_install): Remove.
2398         * elf/Makefile (distribute): Add sln.c.
2399         (others): Add sln.
2400         (others-static): Add sln.
2401         (install-rootsbin): Add sln.
2402         (others-static): Add sln.
2403         (ldso_install): Remove.
2405 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2407         * Makerules (install-clean-symbolic-link-list): Make phony.
2408         * Makefile (install-symbolic-link): Make phony.  Depend on
2409         subdir_install for parallel makes.
2412 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
2414         * elf/Makefile (distribute): Add sln.c
2416 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
2418         * elf/sln.c: New file.
2420         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
2421         (install-clean-symbolic-link-list): New target.
2422         (install): Depend on install-clean-symbolic-link-list.
2423         (make-shlib-link): Changed for $(symbolic-link-list).
2425         * Makefile (install-symbolic-link): New target.
2426         (install): Depend on install-symbolic-link.
2428 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
2430         * include/unistd.h: Protect against multiple inclusion.
2432         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
2433         is defined, not is glob is defined.
2434         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
2436 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
2438         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
2439         xdr_string for ut_line, ut_name and ut_host.
2441 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2443         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
2444         /var/mail in accordance with FHS 2.0.
2445         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
2447 1998-08-12  Richard Henderson  <rth@cygnus.com>
2449         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
2450         Update aliases for cancelation.
2452         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
2453         playing with symbol versions.
2455 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2457         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
2458         multiple inclusion protection.
2459         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
2460         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
2461         define all these to 1.
2462         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
2464 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2466         * sysdeps/mach/usleep.c: Include <unistd.h>.
2467         (usleep): Return void.
2469 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2471         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
2472         decl to inhibit warning in if_freenameindex defn.
2474         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
2476         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
2478         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
2479         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
2480         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
2481         * sysdeps/mach/usleep.c: Likewise.
2483         * sysdeps/mach/hurd/bind.c (bind): Add a const.
2485         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
2486         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
2487         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
2488         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
2489         * sysdeps/mach/usleep.c (usleep): Likewise.
2490         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
2491         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
2492         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2493         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
2495 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2497         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
2498         (glob64): Fix typo.
2500         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
2501         %p arg to fprintf, since `void *' is the right type already.
2503 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
2505         * sysdeps/mach/hurd/getcwd.c
2506         (_hurd_canonicalize_directory_name_internal): Do not loop forever
2507         for unknown root directories.
2508         (__getcwd): Return NULL when the current root directory could not
2509         be reached.
2511 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
2513         * string/strsignal.c (strsignal): Count real-time signals from zero.
2516 See ChangeLog.8 for earlier changes.