Update.
[glibc.git] / ChangeLog
blobcdc16ba475bb1c5e766e68cf06b1e51792061730
1 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
3         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
4         it is already defined in <bits/environments.h>.
6 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
8         * posix/ptestcases.h: Fix typo.
10 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
12         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
13         (regexec): Allocate regs.start and regs.end as one block.
15 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
17         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
18         enum decl.
20 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
22         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
23         sigcontext union to ...
24         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
25         file.
26         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
27         version 2.0 kernels.
29 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
31         * malloc/mtrace.c (tr_reallochook): Produce better output for real
32         reallocation case.
34         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
35         * argp/argp-xinl.c: Likewise.
37         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
38         Ruffian entry back.
39         Patch by Christian Gafton.
41 1998-10-08  Paul Eggert  <eggert@twinsun.com>
43         * time/mktime.c (__mktime_internal): When the requested time falls
44         in a spring-forward gap of size DT, return a time that is DT away
45         from the requested time, preferring a time whose tm_isdst differs
46         from the requested value.  Bump the max number of probes from 4 to
47         6 to account for the extra probes needed to discover a
48         spring-forward gap in the worst case.
50 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
52         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
53         of the weird alpha architectures.
54         Patch by Cristian Gafton <gafton@redhat.com>.
56 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
58         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
59         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
61 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
63         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
64         (dl_open_worker): Use realloc, not malloc to resize array.
65         * elf/rtld.c (_dl_initial_searchlist): New variable.
66         (_dl_main): Copy content of _dl_main_searchlist to
67         _dl_initial_searchlist.
68         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
69         _dl_global_scope_alloc.
70         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
71         * elf/dl-close.c (_dl_close): When removing object with global
72         scope remove allocated searchlist if no dynamically loaded object
73         is on it anymore.
74         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
75         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
77         * malloc/mtrace.c (tr_where): Don't print space in location string,
78         print it afterwards.  Print better symbol name information.
80 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82         * manual/filesys.texi (Setting Permissions): Fix example for
83         reading umask.
85 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87         * elf/sprof.c (load_profdata): Fix typo in error message.
89 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
92         flag.
94 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
96         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
98 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
100         * version.h (VERSION): Bump to 2.0.97.
102 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
104         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
105         in definitions of inline stat functions so that they match the
106         declaration.
107         * stdlib/stdlib.h: Likewise.
108         * wcsmbs/wchar.h: Likewise.
109         * libio/stdio.h: Likewise.
110         * stdio/stdio.h: Likewise.
111         * sysdeps/wordsize-64/inttypes.h: Likewise.
112         * sysdeps/wordsize-32/inttypes.h: Likewise.
113         * string/argz.h: Likewise.
114         * argp/argp.h: Likewise.
116 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
118         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
119         netinet/in.h.
121 1998-10-05  Philip Blundell  <philb@gnu.org>
123         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
124         and constants.  Tidy up formatting a little.
126         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
127         Move definitions to in.h.
129 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
131         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
132         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
133         Remove inclusion of <linux/swap.h>.
135 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
137         * io/sys/stat.h: Use __P in definitions of inline stat functions
138         so that they match the declaration.
140 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
142         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
144 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
146         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
147         linux 2.1 version.
149 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
151         * sysdeps/arm/dl-machine.h: Fix typo in last change.
153         * sysdeps/arm/bits/huge_val.h: New file.
155 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
157         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
159         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
160         define.
162 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
164         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
165         store result of realloc instead of using BUF.
167 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
169         * misc/sgtty.h (_SGTTY_H): Correct spelling.
170         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
172 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
174         * manual/memory.texi (Obstacks): Document
175         obstack_alloc_failed_handler usage.
177         * malloc/obstack.h: Enhance comment about
178         obstack_alloc_failed_handler usage.
179         * malloc/obstack.c: Likewise.
181 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
183         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
184         gcc before 2.8 is used.
186 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
188         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
189         from Scott Bambrough.
191         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
193         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
194         include the lock member.
196 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
198         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
200 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
202         * timezone/zic.c: Update from tzcode1998h.
203         * timezone/europe: Update from tzdata1998i.
204         * timezone/southamerica: Likewise.
206         * sys/types.h: Protect use of long long by __extension__.
207         * stdlib/stdlib.h: Likewise.
208         * string/string.h: Likewise.
209         * sysdeps/i386/bits/byteswap.h: Likewise.
210         * sysdeps/geeric/bits/byteswap.h: Likewise.
211         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
212         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
213         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
214         * sysdeps/wordsize-32/inttypes.h: Likewise.
215         * sysdeps/wordsize-32/stdint.h: Likewise.
216         * wcsmbs/wchar.h: Likewise.
218 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
220         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
221         expression.
222         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
223         __strsep): Greatly reduce size of expansion by combining common
224         expressions.
225         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
226         inline function.
227         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
228         by the above definitions.
230 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
232         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
233         correct struct ipc_perm definition.
235 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
237         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
239 1998-09-29  Cristian Gafton  <gafton@redhat.com>
241         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
242         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
243         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
244         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
245         Add net/if_shaper.h.
247 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
249         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
251         * nis/ypclnt.c: Remove not needed close calls.
253 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
255         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
256         check a bit.  Also close socket of domain client.  Close socket
257         in IPPORT_RESERVED error case.
259 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
261         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
262         CMSG_ALIGN (fixes a bug) and correct test for availability of
263         another entry.
264         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
265         Linux version.
266         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
267         availability of another entry.
268         Patch by ak@muc.de.
270         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
271         Patch by ak@muc.de.
273         * libio/libio.h [!__STDC__]: Define const only if not defined.
275 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
277         * posix/annexc.c (xsystem): New function.  Use it instead of
278         system.
280 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
282         * stdlib/longlong.h: Remove #endif for #if removed in last change.
284 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
286         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
287         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
288         allow using `ut' parameter.
289         [!emacs]: Define ut_argument, ut_argument_spec, and
290         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
291         argument_spec to prototypes and definitions.
292         (my_strftime): Don't call tzset of ut != 0.
293         Compute diff as 0 is ut != 0;
294         [emacs]: Define new emacs_strftime function.
295         Based on a patch by Paul Eggert.
297 1998-09-24  Paul Eggert  <eggert@twinsun.com>
299         * time/strftime.c (my_strftime): When asking for the length of the
300         subformatted buffer, do not limit the length to look for;
301         otherwise, we have no reliable way to distinguish between the
302         empty buffer and an error.
304 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
306         * math/Makefile (gmp-objs): Add mp_clz_tab.
308 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
310         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
311         set them.
312         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
313         cpus lacking hardware multiply and divide.
315 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
317         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
318         $(<F), not $(^F).
320 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
322         * db/btree/bt_delete.c: Fix -Wparentheses warning.
324 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
326         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
327         $(do-install).
329 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
331         * debug/catchsegv.sh: Also produce output if clone process died.
333 1998-09-24  Paul Eggert  <eggert@twinsun.com>
335         * time/strftime.c (f_wkday): Remove duplicate definition.
336         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
337         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
338         1998-09-11 fix to this case.
339         (wkday_len, month_len): Remove these macros; they're no longer needed.
341 1998-09-24  Paul Eggert  <eggert@twinsun.com>
343         * time/strftime.c (my_strftime): Don't store past the end of a
344         zero-sized buffer.
346 1998-09-24  Paul Eggert  <eggert@twinsun.com>
348         * time/strftime.c (underlying_strftime):
349         Set the buffer to a nonzero value before calling
350         strftime, and check to see whether strftime has set the buffer to zero.
351         This lets us distinguish between an empty buffer and an error.
353 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
355         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
356         This fix is propagated from tzcode1998g.tar.gz.
358 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
360         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
361         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
362         sys_siglist.  This is handled correctly by the weak_alias macro.
364 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
366         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
367         of mempcpy.  Reported by Andreas Jaeger.
369         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
370         pollute the namespace since the compiler will resolve it inline.
371         Reported by Florian La Roche <florian@suse.de>.
373 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
375         * timezone/private.h: Update from tzcode1998g.
377         * timezone/africa: Update from tzdata1998h.
378         * timezone/asia: Likewise.
379         * timezone/australasia: Likewise.
380         * timezone/europe: Likewise.
381         * timezone/northamerica: Likewise.
382         * timezone/southamerica: Likewise.
383         * timezone/zone.tab: Likewise.
385 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
387         * misc/sys/mman.h: New file.
389         * sysdeps/generic/bits/mman.h: New file.
390         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
391         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
392         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
393         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
395         * sysdeps/generic/sys/mman.h: Removed.
396         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
397         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
398         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
399         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
400         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
402         * include/sys/mman.h: Look directly for misc/sys/mman.h.
403         * misc/Makefile (headers): Add bits/mman.h.
404         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
405         bits/mman.h.
407         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
408         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
409         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
410         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
411         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
412         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
413         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
414         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
416 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
418         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
419         * sysdeps/mach/alpha/thread_state.h: Likewise.
420         * sysdeps/mach/i386/sysdep.h: Likewise.
421         * sysdeps/mach/i386/thread_state.h: Likewise.
422         * sysdeps/mach/mips/sysdep.h: Likewise.
423         * sysdeps/mach/mips/thread_state.h: Likewise.
424         * sysdeps/posix/profil.c: Likewise.
425         * sysdeps/i386/i586/memcopy.h: Likewise.
426         * sysdeps/mach/pagecopy.h: Likewise.
428 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
430         * libio/stdio.h: Define __need_getopt and include getopt.h to define
431         getopt stuff.
432         * posix/unistd.h: Likewise.
433         * stdio/stdio.h: Likewise.
434         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
435         define only getopt and the variables.
437 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
439         * scripts/test-installation.pl (installation_problem): Don't link
440         the test program against libdb1.
442 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
444         * Makeconfig (all-subdirs): Add db.
445         * Versions.def: Add definition for libdb1.
446         * shlib-versions: Add definitions for libdb1.
447         * db/Makefile (extra-libs): Replace by libdb1.
448         (libdb-routines): Rename to libdb1-routines.
449         (headers): Rename to db1-headers.
450         (distribute): Add $(db1-headers).
451         (install-others): Define to install symlink libdb.so.NN and the
452         $(db1-headers).
453         (CPPFLAGS): Add -DUSE_LIBDB1
454         Remove rules to build makedb.
455         * db/Versions: Rename libdb to libdb1.
456         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
457         * db/makedb.c: Removed.
459         * scripts/versions.awk: Recognize digits in library names.
461         * db/btree/bt_open.c: Fix compiler warnings.
462         * db/btree/bt_put.c: Likewise.
463         * db/btree/bt_split.c: Likewise.
464         * db/hash/hash.c: Likewise.
465         * db/hash/hash_bigkey.c: Likewise.
466         * db/recno/rec_close.c: Likewise.
468         * Makefile: Add localedata/% goal.
470 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
472         * posix/execvp.c: Don't give up searching the PATH if execve
473         returns ENOTDIR.
475 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
477         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
478         if _dl_fpu_control_set is set.
479         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
480         * elf/rtld.c: Don't define _dl_fpu_control_set.
481         * elf/Versions: Remove _dl_fpu_control_set.
483 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
485         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
486         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
487         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
488         Correct values of other SA_* macros according to kernel headers.
490 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
492         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
493         variable l.
494         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
495         old.
497 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
499         * elf/ldsodefs.h: Fix typo in comment.
501 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
503         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
504         char when comparing buffer contents with putback character.
506 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
508         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
509         Undo last change.
510         * elf/Versions: Undo last change.  Export _dl_fpu_control and
511         _dl_fpu_control_set.
512         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
513         variables.  Include <fpu_control.h>.
514         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
515         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
516         to indicate that is was seen.
517         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
518         only if _dl_fpu_control was set and is equal to desired value.
519         * math/Makefile (aux): Undo last change.
520         * math/Versions: Export __fpu_control with version GLIBC_2.0.
522 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
524         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
525         optimized.
527 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
529         * string/bits/string2.h: Add mempcpy optimization.
530         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
531         * intl/localealias.c: Define mempcpy only if not already defined.
533         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
534         defined.
536 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
538         * csu/abi-note.S: Emit the note directly instead of defining
539         a preprocessor macro that's only used once.  Don't include sysdep.h.
540         * abi-tags: Generalize Solaris entry.
542 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
544         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
545         Change to array to avoid runtime relocation.
546         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
548 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
550         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
551         * math/Makefile ($(objpfx)libieee.a): Likewise.
553 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
555         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
556         Patch by John Tobey <jtobey@banta-im.com>.
558 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
560         * login/Makefile (distribute): Remove pty-internal.h, add
561         pty-private.h.
563         * stdlib/tst-strtol.c: Add more checks.
564         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
566 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
568         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
569         * elf/elf.h: Add AT_FPUCW.
570         * elf/Makefile (dl-routines): Add fpu_control.
571         (elide-routines.os): Add fpu_control.
572         (rtld-routines): Add fpu_control.
573         * math/Makefile (aux): Remove fpu_control.
574         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
575         (_dl_show_auxv): Likewise.
576         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
577         if different from OS default.
579         * stdio-common/tstscanf.c: Add test case for (nil).
581 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
583         * libio/fileops.c (_IO_new_file_underflow): Before allocating
584         buffer make sure the pushback buffer is destroyed.
585         (_IO_new_file_seekoff): Likewise.
586         If mode==0 quit early with the result.
587         Clear OEF flag after successful fseek.
588         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
589         * libio/ftello.c (ftello): Add offset from original buffer if
590         stream has pushed back characters.
591         * libio/ftello64.c (ftello64): Likewise.
592         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
593         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
594         * libio/ioftell.c (_IO_ftell): Likewise.
595         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
596         and _IO_save_ptr.
597         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
598         (_IO_default_pbackfail): Only stored push back character in original
599         buffer if it is the same as the one in the file at this position.
600         * libio/iofclose.c: Free backup buffer if one is available.
601         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
602         mode!=0.
604         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
606         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
608         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
610 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
612         * login/programs/pt_chown.c (more_help): Correct message that
613         describes the purpose of the program.
615         * login/openpty.c: Do not include pty-private.h.
616         (pts_name): New function.  Return name of slave pseudo terminal in
617         an allocated buffer if necessary.
618         (openpty): Use pts_name to get name of the slave end of the pseudo
619         terminal pair.
621         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
622         pts_name before return.
624 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
626         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
628 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
630         * login/openpty.c: Include pty-private.h instead of
631         pty-internal.h.
633 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
635         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
637 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
639         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
640         recent ld.so changes.
641         (elf_machine_runtime_setup): Correct behaviour when profiling.
643 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
645         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
646         Patch by John Tobey <jtobey@banta-im.com>.
648 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
650         * login/pty-internal.h: Removed.  Moved constants related to the
651         `grantpt' helper program protocol to ...
652         * login/pty-private.h: ... here.  New file.
653         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
654         to make the function work with kernels >= 2.1.115.
655         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
656         version if using the cloning device fails.
657         * sysdeps/unix/sysv/linux/grantpt.c: New file.
658         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
659         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
660         use by Linux specific code.
661         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
662         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
663         function.  (grantpt): Use pts_name, check group and permission
664         mode in addition to owner.  Try to set the owner, group and
665         permission mode first without invoking the helper program.
666         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
667         internationalization support.  Use symbolic constants instead of
668         hardwired numbers for permission mode.
669         * sysdeps/unix/bsd/ptsname.c: New file.
671 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
673         * posix/wordexp-test.c: Undo last change.
675         * posix/wordexp.c: Undo last change.
677 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
679         * nscd/grpcache.c (save_grp): Partly undo last change.
681         * nscd/pwdcache.c (save_pwd): Undo last change.
683 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
685         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
686         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
688 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
690         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
691         Add profiling support.
692         (TRAMPOLINE_TEMPLATE): New macro.
693         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
694         (RTLD_START): Prettify, and set __libc_stack_end properly.
695         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
696         and check for sym being NULL instead.
697         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
698         of stack space.
699         * sysdeps/sparc/sparc64/lshift.S: Likewise.
700         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
701         * sysdeps/sparc/sparc64/rshift.S: Likewise.
702         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
703         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
704         MEDANY code model %g4 usage.
705         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
706         MEDANY code model %g4 usage.
707         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
708         code model address formation.
709         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
710         include elf/ldsodefs.h
711         (DT_SPARC): Remove.
712         (elf_machine_matches_host): It is now EM_SPARCV9.
713         (elf_machine_dynamic): Clean up to remove ugly cast.
714         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
715         new PLT formats.
716         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
717         Prettify rest of function.
718         [R_SPARC_COPY]: Check for sym being NULL.
719         [R_SPARC_32]: Handle it.
720         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
721         MEDMID code model.
722         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
723         MEDANY code model.
724         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
725         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
726         Add profiling support.
727         (TRAMPOLINE_TEMPLATE): New macro.
728         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
729         (RTLD_START): Prettify and set __libc_stack_end.
730         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
731         Define.
732         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
733         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
734         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
735         unused variable scratch.
736         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
737         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
738         Declare.
739         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
740         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
741         old format kernel sigaction structures.
742         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
743         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
744         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
745         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
746         ucontext include.
747         (_JMPBUF_UNWINDS): Define.
748         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
749         statfs64 structure, which is exactly the same as the normal one.
750         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
751         of stack.  Use correct syscall trap number.  Add branch prediction
752         settings to branch instructions.  Remove old MEDANY code model %g4
753         referneces for non-PIC.
754         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
755         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
756         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
757         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
758         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
759         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
760         __libc_longjmp and __libc_siglongjmp strong aliases.
761         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
762         Also define to __no__readdir64_decl around readdir.c inclusion.
763         (__readdir64): Add strong alias.
764         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
765         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
766         Set strong and weak names properly.
768 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
770         * manual/Makefile (AWK): Default to gawk if standalone.
772 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
774         * Makefile (distribute): Undo last change.
775         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
776         for sysdep headers.
777         (+subdir-headers): Removed, unused.
779 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
781         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
782         $(do-install).
784 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
786         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
787         absolute name in $(config-sysdirs), can never happen.
788         ($(+sysdir_pfx)sysd-rules): Likewise.
789         * Makeconfig (full-config-sysdirs): Likewise.
790         (all-Subdirs-files): Prepend $(..).
792         * configure.in: Don't check for absolute name in $add_ons_pfx, can
793         not happen.  Let --enable-add-ons=yes work if no add-ons actually
794         exist.
796 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
798         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
799         continuations in command.
801 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
803         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
805 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
807         * posix/wordexp-test.c: If expansion or substitution occurs
808         anywhere in a word, the entire word is subject to field-splitting.
810         * posix/wordexp.c (parse_glob): Look for end of word instead of
811         end of field when deciding what to glob.
812         (field_split_word): New function, now the only place where
813         field-splitting is performed.
814         (parse_dollars): New parameter - tell the caller if
815         field-splitting should be performed on this word.
817         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
818         succeeded (or failed with WRDE_NOSPACE).
820 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
822         * posix/wordexp.c (wordexp): Don't convert IFS characters to
823         blanks.
825         * posix/wordexp-test.c: Words not the result of expansion or
826         substitution should remain unchanged.
828 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
830         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
831         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
833 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
835         * stdio-common/Makefile: Include Makeconfig so that
836         $(inst_includedir) is defined.
838 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
840         * io/pwd.c: Include <mcheck.h>.
842 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
844         * nscd/pwdcache.c (save_pwd): Correct copying.
845         * nscd/grpcache.c (save_grp): Likewise.
847 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
849         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
850         (free_pwd): Adjust for this change.
851         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
852         (free_grp): Adjust for this change.
854 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
856         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
858 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
860         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
861         (install-others): Add bits/stdio_lim.h.
862         Add rule to install bits/stdio_lim.h.
864         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
866         * Makefile (distribute): Add include/sys/mman.h.
868         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
869         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
870         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
872         * grp/initgroups.c: Include stdlib.h.
873         Patch by Zack Weinberg.
875 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
877         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
878         for field-splitting :abc: is correct, and that two fields should
879         result. Revert tests to reflect this.
881         * posix/wordexp.c (w_emptyword): Remove function.
882         (exec_comm): Don't use w_emptyword.
883         (parse_param): Likewise.
885 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
887         * sysdeps/arm/fpu/Dist: Moved to...
888         * sysdeps/arm/Dist: ...here.
889         * sysdeps/posix/Dist: Removed.
890         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
891         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
893 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
895         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
897 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
899         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
901 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
903         * libc-work/nis/nss_nisplus/nisplus-service.c
904         (_nss_nisplus_parse_servent): Convert port in network byte order.
906 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
908         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
909         to provide only malloc and calloc.
910         * include/stdlib.h: Support the above.
911         * string/bits/string2.h: Use __need_malloc_and_calloc when
912         including stdlib.h.
913         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
915         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
916         * iconvdata/iso646.c: Include <stdlib.h>.
918 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
920         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
921         * sysdeps/libm-ieee754/w_pow.c: Likewise.
922         * sysdeps/libm-ieee754/w_powf.c: Likewise.
923         * sysdeps/libm-ieee754/w_powl.c: Likewise.
925 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
927         * stdio-common/stdio_lim.h.in: New file.  All parameters
928         are adjustable at build time.
929         * Rules: Add a rule to build bits/stdio_lim.h from
930         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
931         all subdirectories know how to make the file.  It can't be
932         in Makerules because then it gets built at top level and the
933         dependencies are wrong.)
935         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
936         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
937         stdio_lim.h.
938         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
939         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
940         * sysdeps/posix/Makefile: Removed.
941         * sysdeps/posix/mk-stdiolim.c: Removed.
942         * sysdeps/generic/bits/stdio_lim.h: Removed.
944 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
946         * argp/argp-help.c: Fixup indentation.
947         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
948         * resolv/nss_dns/dns-network.c: Likewise.
949         * resolv/res_send.c: Likewise.
950         * rt/aio_cancel.c: Likewise.
951         * rt/aio_misc.c: Likewise.
953 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
955         * Makefile (install-symbolic-link): Remove the link list file at last.
956         * Makerules (install-clean-symbolic-link-list): Removed.
958 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
960         * timezone/tst-timezone.c: Print time in UTC to get consistent
961         output.
963 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
965         * elf/rtld.c (_dl_rpath): Removed.
966         * elf/dl-support.c (_dl_path): Removed.
967         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
968         (CFLAGS-dl-support.c): Removed.
970         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
971         uses changed.
972         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
973         instead of appending it to the main map's rpath info.
974         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
975         DT_RPATHs.  This makes it effective again.
976         (decompose_rpath): Remove second parameter, callers changed.
977         (fillin_rpath): Allocate enough space in curwd.
978         (expand_dynamic_string_token): Cope with get_origin returning -1.
980 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
982         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
983         passwd.adjunct.
985         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
986         invalid password.
988 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
990         * locale/programs/locale.c: Update dates.
992 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
994         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
995         size_t is defined.  Some reordering of defenitions to make
996         maintaining this file in parallel with the linux-specific file easier.
998 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
1000         * io/pwd.c (main): Add call to mtrace.
1002         * malloc/mtrace.pl: Quote @ in string.
1004 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
1006         * posix/wordexp.c (parse_arith): Fix memory leaks.
1007         (exec_comm): Likewise.
1008         (parse_param): Likewise.
1009         (wordexp): Likewise.
1010         (exec_comm): Reduce number of function return points.
1011         (parse_param): Likewise.
1012         (wordexp): Likewise.
1014 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
1016         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
1017         yield three fields, not two.  Test both parameter expansion and
1018         command substitution for correct field-splitting behaviour.
1020         * posix/wordexp.c (w_emptyword): New function.
1021         (parse_param): Use it.
1022         (exec_comm): Likewise, for consistency with the way parse_param
1023         splits fields.
1024         (parse_param): Fix some memory leaks.
1026 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
1028         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
1029         Don't mark asm `volatile'.
1030         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
1031         from the data cache too.  Assume it isn't in the instruction cache yet.
1032         (__elf_machine_fixup_plt): Clear the modified address from the caches.
1034 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
1036         * sysdeps/generic/segfault.c (install_handler): Install signal
1037         handler with SA_ONSTACK instead of setting the stack flags to
1038         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
1039         defined.
1041 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1043         * signal/signal.h: Fix multiple inclusion guard to cover the
1044         entire file.
1045         * wcsmbs/wchar.h: Remove prototype of internal function
1046         __mbsrtowcs.
1047         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
1048         arithmetic on `void *'.
1050 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
1052         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
1054         * posix/wordexp.c (wordexp): Perform word-splitting instead of
1055         field-splitting here.
1056         (wordexp): If out of memory mid-word, free the word (but still
1057         leave pwordexp alone for caller to see).
1058         (parse_param): Allow for zero-length fields (smarter checking of
1059         memory allocation failure).
1060         (w_addword): Convert NULL words to "".
1061         (wordexp): Convert left-over IFS characters to blanks (like bash).
1063 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1065         * configure.in: Use test -f instead of test -e.
1066         Patch by John Tobey <jtobey@banta-im.com>.
1068         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
1069         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
1070         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
1071         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
1072         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
1073         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
1074         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
1075         Patches by John Tobey <jtobey@banta-im.com>.
1077         * time/strftime.c (my_strftime): Delay use of *tp values until
1078         latest possible point to allow partly initialized structures
1079         (e.g., from strptime).
1081         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
1082         and NATS-SEFI.
1083         Define *-routines variables for new modules.
1084         (distribute): Add .c files for new modules.
1085         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
1086         and nats-sefi.h.
1087         Add rules for header generation.
1088         * iconvdata/gconv-modules: Add entries for new modules.
1089         * iconvdata/iso_10367-box.c: New file.
1090         * iconvdata/mac-is.c: New file.
1091         * iconvdata/nats-dano.c: New file.
1092         * iconvdata/nats-sefi.c: New file.
1094 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
1096         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
1097         loader if PIC is not defined.
1099 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1101         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
1102         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
1103         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
1104         and ISO_5428.
1105         Define *-routines variables for new modules.
1106         (distribute): Add .c files for new modules.
1107         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
1108         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
1109         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
1110         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
1111         Add rules for header generation.
1112         * iconvdata/gconv-modules: Add entries for new modules.
1113         * iconvdata/csn_369103.c: New file.
1114         * iconvdata/cwi.c: New file.
1115         * iconvdata/dec-mcs.c: New file.
1116         * iconvdata/ecma-cyrillic.c: New file.
1117         * iconvdata/gost_19768-74.c: New file.
1118         * iconvdata/greek-ccitt.c: New file.
1119         * iconvdata/greek7-old.c: New file.
1120         * iconvdata/greek7.c: New file.
1121         * iconvdata/inis-8.c: New file.
1122         * iconvdata/inis-cyrillic.c: New file.
1123         * iconvdata/inis.c: New file.
1124         * iconvdata/iso6937-2.c: New file.
1125         * iconvdata/iso_2033.c: New file.
1126         * iconvdata/iso_5427-ext.c: New file.
1127         * iconvdata/iso_5427.c: New file.
1128         * iconvdata/iso_5428.c: New file.
1130         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
1131         entries.
1132         Convert U02dd correctly.
1134 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
1136         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
1137         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1138         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
1139         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
1141 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1143         * resolv/res_init.c (res_init): Handle resolv.conf file with only
1144         one nameserver correctly.  Patch by HJ Lu.
1146         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
1147         and ANSI_X3.110.
1148         Define *-routines variables for new modules.
1149         (distribute): Add .c files for new modules.
1150         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
1151         Add rules for hedaer generation.
1152         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
1153         * iconvdata/ansi_x3.110.c: New file.
1154         * iconvdata/asmo_449.c: New file.
1155         * iconvdata/baltic.c: New file.
1156         * iconvdata/iec_p27-1.c: New file.
1158         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
1159         entries.
1160         Convert U02dc correctly.
1162         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
1163         * math/atest-exp2.c: Likewise.
1164         * math/atest-sincos.c: Likewise.
1166         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
1167         is defined.
1169 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1171         * string/strcoll.c: Optimize a few expressions.
1172         * string/strxfrm.c: Likewise.
1174 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1176         * manual/locale.texi: Fix typos.
1178 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
1180         * stdlib/random_r.c (__setstate_r): Allow call with same state
1181         array as currently used (PR libc/774).
1183         * include/limits.h: Include gcc's header even if this file is
1184         found more than once before it (PR libc/778)
1186         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
1187         (sysdep_headers): Remove sys/debugreg.h.
1188         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
1189         (sysdep_headers): Add sys/debugreg.h.
1190         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
1191         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
1193         * stdio-common/tmpnam.c: Move local static variable buf to
1194         toplevel and rename to tmpnam_buffer to ease debugging.
1195         Patch by Joe Keane <jgk@jgk.org>.
1196         Optimize s == NULL case a bit.
1198         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
1199         correction.
1201 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
1203         * resolv/res_init.c (res_init): Initialize _res.nscount and
1204         _res.nsaddr.sin_port differently for the can when no loopback
1205         is available to allow immediate timeout in non-networking environments.
1206         Patch by Cristian Gafton <gafton@redhat.com>.
1208 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1210         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
1211         BAR and not EM DASH.
1212         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
1213         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
1214         Fixes PR libc/717.
1216 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
1218         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
1219         for test.
1220         * timezone/tst-timezone.c (tests): Fix typo in last patch.
1222         * time/tzfile.c (__tzfile_read): Handle case when there are no
1223         transitions.  Set __timezone based on computed offset.
1224         * time/tzset.c (tzset_internal): Set __timezone before returning.
1226         * time/tzset.c (tzset_internal): Optimize handling of local string
1227         copy.
1229 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1231         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
1232         libc/776).
1234 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
1236         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
1237         (csqrt_test): Likewise.
1238         * sysdeps/powerpc/bits/fenv.h: Add parens.
1240 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
1242         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
1243         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1244         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
1246 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
1248         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
1249         the special `-1' pointer.
1251 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
1253         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
1254         inline.
1256 1998-09-07  Paul Eggert  <eggert@twinsun.com>
1258         * time/mktime.c (__EXTENSIONS__): Define if not defined.
1259         (_REENTRANT): Remove.  It has undesirable consequences in
1260         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
1261         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
1262         is what we want.
1263         * time/strftime.c: Likewise.
1265 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1267         * elf/dl-error.c: Fix spelling.
1269 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1271         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
1272         * stdio-common/_itoa.c: Likewise.
1273         * stdio-common/printf_fp.c: Likewise.
1274         * stdio-common/vfscanf.c: Likewise.
1275         * wcsmbs/wcstok.c: Likewise.
1276         * sysdeps/generic/glob.c: Likewise.
1277         * posix/getopt.c: Likewise.
1278         * sysdeps/posix/getaddrinfo.c: Likewise.
1279         * posix/wordexp.c: Likewise.
1280         * io/ftw.c: Likewise.
1281         * io/fts.c: Likewise.
1282         * misc/getpass.c: Likewise.
1283         * iconv/gconv_conf.c: Likewise.
1284         * argp/argp-fmtstream.c: Likewise.
1285         * argp/argp-help.c: Likewise.
1286         * elf/dl-load.c: Likewise.
1287         * locale/programs/stringtrans.c: Likewise.
1288         * catgets/gencat.c: Likewise.
1289         * posix/getconf.c: Likewise.
1290         * iconv/gconv_conf.c: Likewise.
1291         * iconv/iconv_prog.c: Likewise.
1293         * string/strcoll.c: Optimize a few expressions.
1294         * string/strxfrm.c: Likewise.
1296 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1298         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
1299         level to avoid uninit variable warning.
1301 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1303         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
1304         instead of _dl_default_scope[2] as argument to _dl_init_next.
1306         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
1307         C9x macro.
1309 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
1311         Fix compatibility problems introduced in last change.
1312         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
1313         defined.
1314         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
1315         -DWEAK_GMON_START to CFLAGS-initfini.s.
1317         * elf/dl-object.c (_dl_new_object): Store map address in
1318         _dl_loaded if _dl_loaded is NULL.
1319         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
1321         * sysdeps/generic/setrlimit64.c: Remove stub warning.
1323 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
1325         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
1326         quiet.
1327         * db2/btree/bt_cursor.c: Likewise.
1328         * db2/common/db_region.db_c: Likewise.
1329         * db2/common/db_salloc.db_c: Likewise.
1330         * db2/db/db.c: Likewise.
1331         * db2/db/db_rec.c: Likewise.
1332         * db2/hash/hash.c: Likewise.
1333         * db2/hash/hash_page.c: Likewise.
1334         * db2/hash/hash_rec.c: Likewise.
1335         * db2/log/log_findckp.c: Likewise.
1336         * db2/log/log_get.c: Likewise.
1337         * db2/log/log_put.c: Likewise.
1338         * db2/mp/mp_fget.c: Likewise.
1339         * db2/mp/mp_fput.c: Likewise.
1340         * db2/mp/mp_region.c: Likewise.
1341         * stdlib/strtol.c: Likewise.
1342         * string/strcoll.c: Likewise.
1343         * string/strxfrm.c: Likewise.
1344         * argp/argp-help.c: Likewise.
1345         * argp/argp-parse.c: Likewise.
1346         * resolv/res_debug.c: Likewise.
1348 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
1350         * math/tgmath.h (scalb): Only define for __USE_MISC or
1351         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
1353 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1355         * libio/stdio.h: Fix comment.
1357         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
1358         __USE_ISOC9X.
1360 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1362         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
1364         * elf/dl-open.c: Quiet -Wparentheses warnings.
1365         * iconvdata/johab.c: Likewise.
1366         * iconvdata/uhc.c: Likewise.
1367         * inet/inet_net.c: Likewise.
1368         * io/fts.c: Likewise.
1369         * locale/newlocale.c: Likewise.
1370         * misc/getttyent.c: Likewise.
1371         * misc/mntent_r.c: Likewise.
1372         * misc/ttyslot.c: Likewise.
1373         * nscd/nscd_conf.c: Likewise.
1374         * nss/nsswitch.c: Likewise.
1375         * resolv/gethnamaddr.c: Likewise.
1376         * resolv/nsap_addr.c: Likewise.
1377         * resolv/res_debug.c: Likewise.
1378         * stdio-common/_itoa.c: Likewise.
1379         * stdlib/strtod.c: Likewise.
1380         * string/strverscmp.c: Likewise.
1381         * sunrpc/svc.c: Likewise.
1382         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
1383         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
1384         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
1385         * sysdeps/posix/getaddrinfo.c: Likewise.
1387 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
1389         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
1390         for use of global scope.
1391         * elf/dlvsym.c (dlvsym_doit): Likewise.
1393 1998-09-02  Paul Eggert  <eggert@twinsun.com>
1395         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
1396         copy the redundant bytes at the end of the format as-is; don't
1397         just copy their first byte and then rescan, as that might get
1398         us an encoding error.
1399         Account correctly for the length of multibyte sequences in the
1400         format.
1402 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
1404         * posix/wordexp-test.c: Add tests for different IFS values.
1405         Change unquoted-newline test so that newline is not in IFS.
1407         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
1408         determining IFS characters.  Return WRDE_BADCHAR for unquoted
1409         special characters _except_ if they are separators.
1411 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
1413         * include/tgmath.h: New file.
1415         * libio/stdio.h: Correct reversed #ifs.
1416         Patch by Zack Weinberg.
1418         * manual/creature.texi: Better explain reason for feature select
1419         macros.
1420         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
1422 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1424         * include/alloca.h: Add multiple-inclusion guard.
1425         * include/db.h: Likewise.
1426         * include/db_185.h: Likewise.
1427         * include/dlfcn.h: Likewise.
1428         * include/fcntl.h: Likewise.
1429         * include/grp.h: Likewise.
1430         * include/libintl.h: Likewise.
1431         * include/mntent.h: Likewise.
1432         * include/pwd.h: Likewise.
1433         * include/sched.h: Likewise.
1434         * include/search.h: Likewise.
1435         * include/setjmp.h: Likewise.
1436         * include/shadow.h: Likewise.
1437         * include/signal.h: Likewise.
1438         * include/stdio.h: Likewise.
1439         * include/stdlib.h: Likewise.
1440         * include/string.h: Likewise.
1441         * include/termios.h: Likewise.
1442         * include/time.h: Likewise.
1443         * include/ulimit.h: Likewise.
1444         * include/utmp.h: Likewise.
1445         * include/wchar.h: Likewise.
1446         * include/sys/file.h: Likewise.
1447         * include/sys/gmon.h: Likewise.
1448         * include/sys/ioctl.h: Likewise.
1449         * include/sys/mman.h: Likewise.
1450         * include/sys/resource.h: Likewise.
1451         * include/sys/select.h: Likewise.
1452         * include/sys/socket.h: Likewise.
1453         * include/sys/statfs.h: Likewise.
1454         * include/sys/time.h: Likewise.
1455         * include/sys/times.h: Likewise.
1456         * include/sys/wait.h: Likewise.
1458 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
1460         * version.h (VERSION): Bump to 2.0.96.
1462         Rewrite runtime linker to be truly thread-safe.  There is now no
1463         global variable specifying the scope.  We create all needed
1464         scopes at the time the link maps are created.
1465         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
1466         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
1467         l_symbolic_searchlist, l_scope, and l_local_scope elements in
1468         struct link_map.
1469         * elf/dl-close.c: Rewritten accordingly.
1470         * elf/dl-deps.c: Likewise.
1471         * elf/dl-error.c: Likewise.
1472         * elf/dl-init.c: Likewise.
1473         * elf/dl-load.c: Likewise.
1474         * elf/dl-lookup.c: Likewise.
1475         * elf/dl-object.c: Likewise.
1476         * elf/dl-open.c: Likewise.
1477         * elf/dl-reloc.c: Likewise.
1478         * elf/dl-runtime.c: Likewise.
1479         * elf/dl-support.c: Likewise.
1480         * elf/dl-symbol.c: Likewise.
1481         * elf/dl-version.c: Likewise.
1482         * elf/dlsym.c: Likewise.
1483         * elf/dlvsym.c: Likewise.
1484         * elf/ldsodefs.h: Likewise.
1485         * elf/rtld.c: Likewise.
1486         * iconv/gconv_dl.c: Likewise.
1487         * nss/nsswitch.c: Likewise.
1488         * sysdeps/i386/dl-machine.h: Likewise.
1489         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1491         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
1492         Define RTLD_DEFAULT.
1494 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
1496         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
1497         __getopt_clean_environment with __environ instead of envp.
1499 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
1501         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
1503         * string/argz-extract.c (__argz_extract): Add de-consting cast for
1504         setting results.
1506         * string/argz.h (argz_next): Add de-consting cast for return.
1507         * string/argz-next.c (__argz_next): Likewise.
1509         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
1510         Don't add netinet/udp.h, netinet/ip_icmp.h here.
1511         * sysdeps/gnu/Makefile: Do it here instead.
1512         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
1513         * sysdeps/gnu/Dist: ... to here.
1515         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
1516         sysdeps/unix/sysv/linux/netinet/tcp.h,
1517         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
1519 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
1521         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
1522         * string/argz-next.c, string/argz-extract.c: Fix defns.
1524 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
1526         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
1528         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
1529         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
1530         * sysdeps/generic/sysd-stdio.c: Likewise.
1532 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
1534         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
1535         (_dl_map_object_from_fd): Make NAME argument const.
1536         Remove last parameter in _dl_new_object call.
1537         (print_search_path): Correct construction of composed path name.
1538         (_dl_map_object): Prevent looking at RPATH of the main map twice.
1539         Remove last parameter in _dl_new_object call.
1540         * elf/dl-object.c: Remove last parameter.  Determine whether create
1541         origin entry based on empty realname.  Handle file in root directory
1542         correctly.
1543         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
1544         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
1545         Remove last parameter in _dl_new_object call.
1546         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
1547         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
1549 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
1551         * elf/dl-close.c (_dl_close): Add more comments and correct some.
1552         Free l_searchlist and l_dupsearchlist.
1554         * debug/catchsegv.sh: Add one more pair of quotes.
1556 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
1558         * elf/dl-load.c (add_name_to_object): Change return type to void and
1559         make NAME parameter const.  Allocate room for NAME in same memory
1560         block used for l_libname entry.
1561         (_dl_map_object_from_fd): Don't free NAME on failure.
1562         (map_segment): Pass SONAME to add_name_to_object, not a copy.
1563         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
1564         _dl_map_object_from_fd.
1565         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
1566         memory block used for l_libname entry.
1567         * elf/dl-close.c: Adjust free()ing for this change.
1569 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
1571         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
1573         * malloc/mtrace.c: Add bug report address.  Update email address.
1574         Add more @XXX@ to print correct address size.
1576         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
1577         really initialized.
1579         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
1580         for munmap call instead of examining phdr again.
1581         Free all malloc()ed strings and arrays.
1583 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1585         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
1586         dl-machine.h.
1587         * sysdeps/powerpc/dl-machine.c: New file.
1588         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
1589         files.  Revise ELF_PREFERRED_ADDRESS to take account of
1590         the new mapping information (fixes bug involving huge bloated
1591         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
1592         * sysdeps/powerpc/dl-start.S: New file.
1594         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
1595         l_map_end.
1596         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
1597         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
1598         others.  Call elf_dynamic_do_##reloc only once (to save even more
1599         space).
1600         * elf/link.h: Add new members l_map_start and l_map_end to keep
1601         track of the memory map.
1602         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
1603         the executable.
1605 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
1607         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
1608         Reported by Andreas Jaeger.
1610         * posix/glob.h: Use __size_t instead of size_t in definitions and
1611         make sure this is defined.
1613 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
1615         * manual/locale.texi: Almost complete rewrite.  Document more functions
1616         and functionality.
1617         * manual/arith.texi: Correct reference.
1618         * manual/string.texi: Pretty printing.
1620         * manual/texinfo.tex: Update from last available version.
1622 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
1624         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
1625         invalid password.
1626         (_nss_nis_getpwuid_r): Likewise.
1627         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
1629         * inet/rcmd.c: Implement netgroup support.
1630         Patch by Dick Streefland <dick_streefland@tasking.com>.
1632 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1634         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
1635         object on the list is removed.  Don't use this code for PIC.
1636         Reported by HJ Lu [PR libc/770].
1638 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
1640         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
1642         * include/stdio.h: Add __vsscanf.
1644         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
1645         __USE_ISOC9X.
1646         Remove __vsscanf declaration.
1647         Always declare fgetpos and fsetpos.
1649         * math/math.h: Define isinf as macro.
1650         * math/bits/mathcalls.h: Change to declare __isinf all the time.
1651         Don't declare scalb for ISO C 9x.
1653         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
1655         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
1657         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
1658         sys/ucontext.h.
1660         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
1661         macros.
1663 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1665         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
1666         Reported by jreising@frequentis.com [PR libc/767].
1668 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1670         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
1671         fl.l_start at beginning of function.
1672         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
1674 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1676         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
1677         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
1679         * nscd/nscd.init: Make it work in RedHat systems.
1680         Patch by Christian Gafton.
1682 1998-08-29  Philip Blundell  <philb@gnu.org>
1684         * catgets/Makefile: Don't try to run test programs when
1685         cross-compiling.
1687 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1689         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
1690         Reported by Zack Weinberg.
1692 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1694         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
1695         * elf/Makefile (distribute): Remove ldd.sh.in.
1697 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1699         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
1700         variable.
1702 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
1704         * sysdeps/i386/register-dump.h: Move to ...
1705         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
1707 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
1709         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
1710         with load address, not map address.
1711         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
1712         parameter and use this value.
1713         * sysdeps/arm/dl-machine.h: Likewise.
1714         * sysdeps/i386/dl-machine.h: Likewise.
1715         * sysdeps/m68k/dl-machine.h: Likewise.
1716         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
1717         parameter.
1718         * sysdeps/powerpc/dl-machine.h: Likewise
1719         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
1720         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
1722 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
1724         * elf/rtld.c (process_envvars): Fix copy&paste error.
1726         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
1727         memalign hook.
1728         (realloc_hook_ini): Don't overwrite memalign hook.
1729         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
1730         Reported by Philippe Troin <phil@fifi.org>.
1732         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
1733         Patch by Philippe Troin <phil@fifi.org>.
1735 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1737         * sysdeps/generic/segfault.c (install_handler): Protect the
1738         non-POSIX signals with #ifdef.
1739         (catch_segfault): Add missing mode parameter for open.
1740         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
1741         other termination signals.
1743 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1745         * debug/Makefile (distribute): Add register-dump.h.
1747 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1749         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
1751 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
1753         * elf/Makefile (distribute): Add dl-origin.h.
1754         * sysdeps/generic/dl-origin.h: New file.
1755         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
1756         * elf/link.h (struct link_map): Add l_origin field.
1757         * elf/dl-load.c (expand_dynamic_string_token): New function.
1758         (decompose_path): Remove WHERE argument, take link map pointer instead.
1759         Call expand_dynamic_string_token instead of local_strdup to make copy
1760         of rpath.
1761         (_dl_init_paths): Call decompose_path with correct argument.
1762         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
1763         not defined.
1764         Check EI_OSABI and EI_ABIVERSION fields in header.
1765         Call _dl_new_object with extra argument.
1766         (_dl_map_object): Call decompose_path with correct argument.
1767         Call expand_dynamic_string_token instead of local_strdup to also
1768         expand DST.
1769         Call _dl_new_object with extra argument.
1770         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
1771         but the main one if new argument is nonzero.
1772         * elf/ldsodefs.h: Adjust for _dl_new_object change.
1773         * elf/dl-support.c: Define _dl_origin_path.
1774         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
1775         (dl_main): Call _dl_new_object with extra argument.
1777         * elf/dl-close (_dl_close): Free l_name and l_origin.
1779         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
1780         modifier in asm, not c.
1782         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
1783         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
1785 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
1787         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
1788         variable so that map can be freed.
1789         Reported by Philippe Troin <phil@fifi.org>.
1791         * elf/dl-open.c (dl_open_worker): Correct test for extending global
1792         scope array.
1793         Patch by Philippe Troin <phil@fifi.org>.
1795 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1797         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
1798         Don't call writev() with a 100-element vector.
1799         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
1800         return address.
1802         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
1803         In particular, set __libc_stack_end.
1804         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
1805         undefined.  Fix copyright notice.
1807 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1809         * math/Makefile (gmp-objs): New variable.
1810         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
1811         Depend on it.
1812         (tests): Add atest-exp atest-sincos atest-exp2.
1813         (tests-static): Remove atest-exp atest-sincos atest-exp2.
1815 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
1817         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
1818         to toplevel.
1819         (_dl_unload_cache): New function.
1820         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
1821         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
1822         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
1824         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
1825         Correct comment for O_LARGEFILE.
1826         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
1827         Change O_LARGEFILE to correct value.
1829 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
1831         * libio/iogetline.c (_IO_getline_info): Don't read anything for
1832         N == 0.  Patch by HJ Lu.
1834 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
1836         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
1838 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
1840         * argp/argp.h: Use __inline__ not inline.
1842         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
1843         an input register as being clobbered.
1844         * sysdeps/i386/memset.c (memset): Likewise.
1845         * sysdeps/i386/bzero.c (__bzero): Likewise.
1846         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
1848 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1850         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
1851         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
1853 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
1855         * debug/catchsegv.sh: Handle text preceding backtrace better.
1856         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
1857         to be installed for other signals than SIGSEGV.
1858         * sysdeps/generic/register-dump.h: New file.
1859         * sysdeps/i386/register-dump.h: New file.
1860         * sysdeps/powerpc/register-dump.h: New file.
1862         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
1863         sigcontextinfo.h.
1864         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
1866 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
1868         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
1870 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1872         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
1873         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
1874         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
1875         getresuid, getresgid.
1877 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
1879         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
1880         pointer in userland.
1882 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1884         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
1885         and fix value.
1887 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1889         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
1890         over arguments Bourne shell compatible.  Don't exit unsuccessfully
1891         if nonelf returns successfully.  Avoid duplicating most of the
1892         script.
1893         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
1894         around $file.
1896 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1898         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
1899         sys/reg.h.
1900         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
1901         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
1903 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1905         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
1906         __modify_ldt and modify_ldt.
1907         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
1909         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1910         Use orl $-1 instead of movl $-1 to save two bytes.
1911         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
1912         Likewise.
1914 1998-08-17  H.J. Lu  <hjl@gnu.org>
1916         * libio/Versions (_IO_do_write, _IO_file_attach,
1917         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1918         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1919         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1920         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
1922         * libio/fileops.c (_IO_do_write, _IO_file_attach,
1923         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1924         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1925         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1926         _IO_file_write, _IO_file_xsputn): Change the prefix to
1927         "_IO_new_". Added to GLIBC_2.1.
1929         * libio/libioP.h (_IO_do_write, _IO_file_attach,
1930         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1931         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1932         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1933         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
1934         "_IO_new_".
1936         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
1937         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1938         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1939         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1940         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
1942 1998-08-23  Richard Henderson  <rth@cygnus.com>
1944         * Makeconfig (LDFLAGS): Remove.
1946         * csu/initfini.c: Return to .text before __gmon_start__.
1948         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
1949         (STO_MIPS_*): Rename from STO_*.
1950         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
1951         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
1953         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
1954         (main): e3s is negative on zero.
1955         * math/atest-exp2.c: Likewise.
1956         * math/atest-sincos.c: Likewise.
1958 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1960         * Makerules (install): Add comment about absolute paths.
1962 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1964         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
1965         array to NUL to handle maxlen==1 case correctly.
1966         Patch by HJ Lu.
1968 1998-08-23  Richard Henderson  <rth@cygnus.com>
1970         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
1971         * sysdeps/alpha/elf/crtend.S: Likewise.
1972         * sysdeps/alpha/elf/start.S: Likewise.
1974         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
1975         non-standard pv usage.
1977         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
1978         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
1979         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1980         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1981         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
1982         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1983         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1984         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1985         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1986         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1987         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1989         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
1990         a finite non-denormal, deferring to the full IEEE version otherwise.
1992         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
1993         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
1994         * sysdeps/alpha/fpu/s_floor.c: New.
1995         * sysdeps/alpha/fpu/s_floorf.c: New.
1996         * sysdeps/alpha/fpu/s_ceil.c: New.
1997         * sysdeps/alpha/fpu/s_ceilf.c: New.
1999 1998-08-22  Philip Blundell  <philb@gnu.org>
2001         * sysdeps/arm/bits/string.h: New file.
2003 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2005         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
2006         document it.
2008         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
2009         test for recent Linux 2.1.100+ headers.
2011 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2013         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
2015 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
2017         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
2019 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2021         * Makefile (elf/ldso_install): Put back.  The problem still persists.
2022         * elf/Makefile (ldso_install): Likewise.
2024 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2026         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
2027         create weak alias.
2028         * include/db.h: Declare __nss_db_open.
2029         * db2/Versions: Export it.
2031         * db2/makedb.c: Convert to use db2 API.
2032         * nss/nss_db/db-XXX.c: Likewise.
2033         * nss/nss_db/db-netgrp.c: Likewise.
2034         * nss/nss_db/db-alias.c: Likewise.
2035         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
2037 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2039         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2040         sys_setresuid, already built automatically (or not).
2041         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
2042         instead of __syscall_setresuid and add back setresuid.
2043         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
2044         __syscall_setresuid.
2046 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2048         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
2050 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2052         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
2053         BASH-ONLY marked region.
2054         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
2056 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2058         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
2059         _IO_SYSSEEK fails.
2061         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
2063         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
2064         element.
2066 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
2068         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
2069         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
2070         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
2071         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
2072         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
2073         those magic comments, and to use /bin/sh for @BASH@.
2074         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
2075         * elf/ldd.sh.in: File removed.
2077 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
2079         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
2080         cast them to unsigned long int.
2081         * pwd/putpwent.c (putpwent): Likewise.
2082         Patch by John Tobey <jtobey@banta-im.com>.
2084 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
2086         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
2087         _IO_pos_BAD.
2089 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2091         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
2092         _IO_SYSSEEK fails.
2094 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
2096         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
2097         Add umount and umount2.
2098         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
2099         * sysdeps/unix/sysv/linux/umount.S: New file.
2100         * sysdeps/unix/sysv/linux/umount2.S: New file.
2101         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
2102         Define MNT_FORCE.
2104         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
2105         Add sys/sendfile.h.
2106         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
2107         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
2109         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
2111         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
2112         sendfile.
2114 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
2116         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
2117         * elf/ldd.bash.in: Likewise.
2119         * elf/sln.c: Avoid warning for no main prototype.
2121         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
2122         O_WRITE.
2123         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2124         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2126         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
2127         F_GETSIG.
2128         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2129         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2132 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
2134         * sysdeps/arm/fpu/ieee754.h: Move to...
2135         * sysdeps/arm/ieee754.h: ... here.
2137         * sysdeps/arm/__longjmp.S: Put return value in correct register.
2138         Don't set the condition flags unnecessarily.
2139         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
2140         registers correctly.
2142         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
2143         (patch from Scott Bambrough).
2145         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
2147         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
2148         NULL, just call it unconditionally.
2149         (__gmon_start__): Provide stub version as a weak symbol.
2151 1998-07-30  Philip Blundell  <philb@gnu.org>
2153         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
2154         by Scott Bambrough)
2156         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
2157         like `@' in .type directives.
2159         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
2160         * sysdeps/arm/bsd-_setjmp.S: Likewise.
2162         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
2164 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2166         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
2167         (F_GETOWN): Likewise.
2169         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
2170         Linux 2.1.117).
2172 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2174         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
2175         already defined.
2177 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
2179         * include/features.h: Define __USE_EXTERN_INLINES for recent
2180         enough gcc.
2181         * argp/argp.h: Define extern inline functions only if
2182         __USE_EXTERN_INLINES is defined.
2183         * libio/stdio.h: Likewise.
2184         * math/math.h: Likewise.
2185         * stdlib/stdlib.h: Likewise.
2186         * string/argz.h: Likewise.
2187         * sysdeps/generic/bits/sigset.h: Likewise.
2188         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
2189         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
2190         * sysdeps/wordsize-32/inttypes.h: Likewise.
2191         * sysdeps/wordsize-64/inttypes.h: Likewise.
2192         * wcsmbs/wchar.h: Likewise.
2194         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
2195         to allow compilation without optimization.
2197 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2199         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
2200         more entries.
2201         * nis/nss_compat/compat-initgroups.c: Likewise.
2202         * nis/nss_compat/compat-pwd.c: Likewise.
2203         * nis/nss_compat/compat-spwd.c: Likewise.
2204         * nis/nss_nis/nis-alias.c: Likewise.
2205         * nis/nss_nis/nis-ethers.c: Likewise.
2206         * nis/nss_nis/nis-grp.c: Likewise.
2207         * nis/nss_nis/nis-hosts.c: Likewise.
2208         * nis/nss_nis/nis-initgroups.c: Likewise.
2209         * nis/nss_nis/nis-network.c: Likewise.
2210         * nis/nss_nis/nis-proto.c: Likewise.
2211         * nis/nss_nis/nis-pwd.c: Likewise.
2212         * nis/nss_nis/nis-rpc.c: Likewise.
2213         * nis/nss_nis/nis-service.c: Likewise.
2214         * nis/nss_nis/nis-spwd.c: Likewise.
2216         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
2218         * nis/ypclnt.c: Try binding dir only first time, could be to old.
2220         * nis/yp_xdr.c: Remove 1024 byte limit.
2221         * nis/ypupdate_xdr.c: Likewise.
2223         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
2224         wrong data.
2226 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
2228         * Rules (binaries-static, binaries-shared static pattern rules):
2229         Depend on lib%, not just libc%, from $(link-libc{,-static}).
2231         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
2232         this here, overriding Makeconfig generic value so we link against
2233         the RPC libs.
2235 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
2237         * posix/tstgetopt.c (options): Add NULL entry at end
2238         Patch by Adrian Miranda <ade@psg.com>.
2240 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
2242         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
2243         to 9.
2245 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
2247         * elf/elf.h: Add PPC Diab relocations.
2249         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
2251 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
2253         * manual/texinfo.tex: Update.
2255 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
2257         * sysdeps/powerpc/backtrace.c: New file.
2259 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
2261         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
2262         sigjmp_save.
2263         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
2265 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2267         * Makefile (install-symbolic-link): Fix spelling.
2269 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2271         * elf/elf.h (SHT_HIOS): Fix value.
2273 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2275         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
2276         part of the expansion, this is undefined by the standard.
2278 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
2280         * posix/getconf.c: Add support for systems with incomplete confname.h.
2282         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
2284         * sysdeps/posix/wait3.c: Make it work.
2286 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2288         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
2289         (elf/ldso_install): Remove.
2291         * elf/Makefile (distribute): Add sln.c.
2292         (others): Add sln.
2293         (others-static): Add sln.
2294         (install-rootsbin): Add sln.
2295         (others-static): Add sln.
2296         (ldso_install): Remove.
2298 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2300         * Makerules (install-clean-symbolic-link-list): Make phony.
2301         * Makefile (install-symbolic-link): Make phony.  Depend on
2302         subdir_install for parallel makes.
2305 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
2307         * elf/Makefile (distribute): Add sln.c
2309 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
2311         * elf/sln.c: New file.
2313         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
2314         (install-clean-symbolic-link-list): New target.
2315         (install): Depend on install-clean-symbolic-link-list.
2316         (make-shlib-link): Changed for $(symbolic-link-list).
2318         * Makefile (install-symbolic-link): New target.
2319         (install): Depend on install-symbolic-link.
2321 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
2323         * include/unistd.h: Protect against multiple inclusion.
2325         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
2326         is defined, not is glob is defined.
2327         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
2329 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
2331         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
2332         xdr_string for ut_line, ut_name and ut_host.
2334 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2336         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
2337         /var/mail in accordance with FHS 2.0.
2338         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
2340 1998-08-12  Richard Henderson  <rth@cygnus.com>
2342         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
2343         Update aliases for cancelation.
2345         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
2346         playing with symbol versions.
2348 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2350         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
2351         multiple inclusion protection.
2352         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
2353         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
2354         define all these to 1.
2355         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
2357 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2359         * sysdeps/mach/usleep.c: Include <unistd.h>.
2360         (usleep): Return void.
2362 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2364         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
2365         decl to inhibit warning in if_freenameindex defn.
2367         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
2369         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
2371         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
2372         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
2373         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
2374         * sysdeps/mach/usleep.c: Likewise.
2376         * sysdeps/mach/hurd/bind.c (bind): Add a const.
2378         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
2379         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
2380         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
2381         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
2382         * sysdeps/mach/usleep.c (usleep): Likewise.
2383         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
2384         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
2385         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2386         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
2388 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2390         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
2391         (glob64): Fix typo.
2393         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
2394         %p arg to fprintf, since `void *' is the right type already.
2396 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
2398         * sysdeps/mach/hurd/getcwd.c
2399         (_hurd_canonicalize_directory_name_internal): Do not loop forever
2400         for unknown root directories.
2401         (__getcwd): Return NULL when the current root directory could not
2402         be reached.
2404 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
2406         * string/strsignal.c (strsignal): Count real-time signals from zero.
2409 See ChangeLog.8 for earlier changes.