Update.
[glibc.git] / ChangeLog
blobf22bb5c931c0ae56ef0805bc18085d4a9a9330f4
1 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
3         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
4         string.h to get memcpy prototype and NULL definition.
6 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
8         * misc/sys/cdefs.h (__THROW): New macro.
9         * argp/argp.h: Use it to replace the kludgey __P in inline
10         function definitions.
11         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12         * stdlib/stdlib.h: Likewise.
13         * wcsmbs/wchar.h: Likewise.
14         * libio/stdio.h: Likewise.
15         * stdio/stdio.h: Likewise.
16         * sysdeps/wordsize-64/inttypes.h: Likewise.
17         * sysdeps/wordsize-32/inttypes.h: Likewise.
18         * string/argz.h: Likewise.
19         * io/sys/stat.h: Likewise.
21 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
23         * Rules (stdio_lim): New variable.
24         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
25         on Rules and config.make, use $(move-if-change) to avoid unnessary
26         recompilations, and cleanup command.
27         (common-generated): Add bits/stdio_lim.st.
29 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
31         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
32         variable to prevent warnings from use of modern CPU instructions.
33         Patch by Richard Henderson <rth@cygnus.com>.
35         * sysdeps/unix/opendir.c: Test whether NAME is directory before
36         opening it.
38 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
40         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
41         semicolon so that profiling works.
43 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
45         * sysdeps/generic/glob.c: #undef mempcpy before #define.
47         * sysdeps/unix/bsd/clock.c: Use prototype defns.
49 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
51         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
52         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
54         * string/bits/string2.h [!_STRING_ARCH_unaligned]
55         (__mempcpy_small): Add parameter for 1 byte copy and use it.
56         Reported by Geoff Keating <geoffk@ozemail.com.au>.
58 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
60         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
61         it is already defined in <bits/environments.h>.
63 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
65         * posix/ptestcases.h: Fix typo.
67 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
70         (regexec): Allocate regs.start and regs.end as one block.
72 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
75         enum decl.
77 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
79         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
80         sigcontext union to ...
81         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
82         file.
83         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
84         version 2.0 kernels.
86 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
88         * malloc/mtrace.c (tr_reallochook): Produce better output for real
89         reallocation case.
91         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
92         * argp/argp-xinl.c: Likewise.
94         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
95         Ruffian entry back.
96         Patch by Christian Gafton.
98 1998-10-08  Paul Eggert  <eggert@twinsun.com>
100         * time/mktime.c (__mktime_internal): When the requested time falls
101         in a spring-forward gap of size DT, return a time that is DT away
102         from the requested time, preferring a time whose tm_isdst differs
103         from the requested value.  Bump the max number of probes from 4 to
104         6 to account for the extra probes needed to discover a
105         spring-forward gap in the worst case.
107 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
109         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
110         of the weird alpha architectures.
111         Patch by Cristian Gafton <gafton@redhat.com>.
113 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
115         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
116         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
118 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
120         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
121         (dl_open_worker): Use realloc, not malloc to resize array.
122         * elf/rtld.c (_dl_initial_searchlist): New variable.
123         (_dl_main): Copy content of _dl_main_searchlist to
124         _dl_initial_searchlist.
125         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
126         _dl_global_scope_alloc.
127         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
128         * elf/dl-close.c (_dl_close): When removing object with global
129         scope remove allocated searchlist if no dynamically loaded object
130         is on it anymore.
131         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
132         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
134         * malloc/mtrace.c (tr_where): Don't print space in location string,
135         print it afterwards.  Print better symbol name information.
137 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
139         * manual/filesys.texi (Setting Permissions): Fix example for
140         reading umask.
142 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
144         * elf/sprof.c (load_profdata): Fix typo in error message.
146 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
148         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
149         flag.
151 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
153         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
155 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
157         * version.h (VERSION): Bump to 2.0.97.
159 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
161         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
162         in definitions of inline stat functions so that they match the
163         declaration.
164         * stdlib/stdlib.h: Likewise.
165         * wcsmbs/wchar.h: Likewise.
166         * libio/stdio.h: Likewise.
167         * stdio/stdio.h: Likewise.
168         * sysdeps/wordsize-64/inttypes.h: Likewise.
169         * sysdeps/wordsize-32/inttypes.h: Likewise.
170         * string/argz.h: Likewise.
171         * argp/argp.h: Likewise.
173 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
175         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
176         netinet/in.h.
178 1998-10-05  Philip Blundell  <philb@gnu.org>
180         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
181         and constants.  Tidy up formatting a little.
183         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
184         Move definitions to in.h.
186 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
188         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
189         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
190         Remove inclusion of <linux/swap.h>.
192 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
194         * io/sys/stat.h: Use __P in definitions of inline stat functions
195         so that they match the declaration.
197 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
199         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
201 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
203         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
204         linux 2.1 version.
206 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
208         * sysdeps/arm/dl-machine.h: Fix typo in last change.
210         * sysdeps/arm/bits/huge_val.h: New file.
212 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
214         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
216         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
217         define.
219 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
221         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
222         store result of realloc instead of using BUF.
224 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
226         * misc/sgtty.h (_SGTTY_H): Correct spelling.
227         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
229 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
231         * manual/memory.texi (Obstacks): Document
232         obstack_alloc_failed_handler usage.
234         * malloc/obstack.h: Enhance comment about
235         obstack_alloc_failed_handler usage.
236         * malloc/obstack.c: Likewise.
238 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
240         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
241         gcc before 2.8 is used.
243 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
245         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
246         from Scott Bambrough.
248         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
250         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
251         include the lock member.
253 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
255         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
257 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
259         * timezone/zic.c: Update from tzcode1998h.
260         * timezone/europe: Update from tzdata1998i.
261         * timezone/southamerica: Likewise.
263         * sys/types.h: Protect use of long long by __extension__.
264         * stdlib/stdlib.h: Likewise.
265         * string/string.h: Likewise.
266         * sysdeps/i386/bits/byteswap.h: Likewise.
267         * sysdeps/geeric/bits/byteswap.h: Likewise.
268         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
269         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
270         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
271         * sysdeps/wordsize-32/inttypes.h: Likewise.
272         * sysdeps/wordsize-32/stdint.h: Likewise.
273         * wcsmbs/wchar.h: Likewise.
275 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
277         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
278         expression.
279         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
280         __strsep): Greatly reduce size of expansion by combining common
281         expressions.
282         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
283         inline function.
284         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
285         by the above definitions.
287 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
289         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
290         correct struct ipc_perm definition.
292 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
294         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
296 1998-09-29  Cristian Gafton  <gafton@redhat.com>
298         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
299         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
300         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
301         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
302         Add net/if_shaper.h.
304 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
306         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
308         * nis/ypclnt.c: Remove not needed close calls.
310 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
312         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
313         check a bit.  Also close socket of domain client.  Close socket
314         in IPPORT_RESERVED error case.
316 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
318         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
319         CMSG_ALIGN (fixes a bug) and correct test for availability of
320         another entry.
321         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
322         Linux version.
323         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
324         availability of another entry.
325         Patch by ak@muc.de.
327         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
328         Patch by ak@muc.de.
330         * libio/libio.h [!__STDC__]: Define const only if not defined.
332 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
334         * posix/annexc.c (xsystem): New function.  Use it instead of
335         system.
337 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
339         * stdlib/longlong.h: Remove #endif for #if removed in last change.
341 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
343         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
344         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
345         allow using `ut' parameter.
346         [!emacs]: Define ut_argument, ut_argument_spec, and
347         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
348         argument_spec to prototypes and definitions.
349         (my_strftime): Don't call tzset of ut != 0.
350         Compute diff as 0 is ut != 0;
351         [emacs]: Define new emacs_strftime function.
352         Based on a patch by Paul Eggert.
354 1998-09-24  Paul Eggert  <eggert@twinsun.com>
356         * time/strftime.c (my_strftime): When asking for the length of the
357         subformatted buffer, do not limit the length to look for;
358         otherwise, we have no reliable way to distinguish between the
359         empty buffer and an error.
361 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
363         * math/Makefile (gmp-objs): Add mp_clz_tab.
365 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
367         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
368         set them.
369         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
370         cpus lacking hardware multiply and divide.
372 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
374         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
375         $(<F), not $(^F).
377 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
379         * db/btree/bt_delete.c: Fix -Wparentheses warning.
381 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
383         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
384         $(do-install).
386 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
388         * debug/catchsegv.sh: Also produce output if clone process died.
390 1998-09-24  Paul Eggert  <eggert@twinsun.com>
392         * time/strftime.c (f_wkday): Remove duplicate definition.
393         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
394         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
395         1998-09-11 fix to this case.
396         (wkday_len, month_len): Remove these macros; they're no longer needed.
398 1998-09-24  Paul Eggert  <eggert@twinsun.com>
400         * time/strftime.c (my_strftime): Don't store past the end of a
401         zero-sized buffer.
403 1998-09-24  Paul Eggert  <eggert@twinsun.com>
405         * time/strftime.c (underlying_strftime):
406         Set the buffer to a nonzero value before calling
407         strftime, and check to see whether strftime has set the buffer to zero.
408         This lets us distinguish between an empty buffer and an error.
410 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
412         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
413         This fix is propagated from tzcode1998g.tar.gz.
415 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
417         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
418         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
419         sys_siglist.  This is handled correctly by the weak_alias macro.
421 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
423         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
424         of mempcpy.  Reported by Andreas Jaeger.
426         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
427         pollute the namespace since the compiler will resolve it inline.
428         Reported by Florian La Roche <florian@suse.de>.
430 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
432         * timezone/private.h: Update from tzcode1998g.
434         * timezone/africa: Update from tzdata1998h.
435         * timezone/asia: Likewise.
436         * timezone/australasia: Likewise.
437         * timezone/europe: Likewise.
438         * timezone/northamerica: Likewise.
439         * timezone/southamerica: Likewise.
440         * timezone/zone.tab: Likewise.
442 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
444         * misc/sys/mman.h: New file.
446         * sysdeps/generic/bits/mman.h: New file.
447         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
448         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
449         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
450         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
452         * sysdeps/generic/sys/mman.h: Removed.
453         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
454         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
455         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
456         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
457         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
459         * include/sys/mman.h: Look directly for misc/sys/mman.h.
460         * misc/Makefile (headers): Add bits/mman.h.
461         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
462         bits/mman.h.
464         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
465         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
466         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
467         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
468         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
469         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
470         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
471         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
473 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
475         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
476         * sysdeps/mach/alpha/thread_state.h: Likewise.
477         * sysdeps/mach/i386/sysdep.h: Likewise.
478         * sysdeps/mach/i386/thread_state.h: Likewise.
479         * sysdeps/mach/mips/sysdep.h: Likewise.
480         * sysdeps/mach/mips/thread_state.h: Likewise.
481         * sysdeps/posix/profil.c: Likewise.
482         * sysdeps/i386/i586/memcopy.h: Likewise.
483         * sysdeps/mach/pagecopy.h: Likewise.
485 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
487         * libio/stdio.h: Define __need_getopt and include getopt.h to define
488         getopt stuff.
489         * posix/unistd.h: Likewise.
490         * stdio/stdio.h: Likewise.
491         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
492         define only getopt and the variables.
494 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
496         * scripts/test-installation.pl (installation_problem): Don't link
497         the test program against libdb1.
499 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
501         * Makeconfig (all-subdirs): Add db.
502         * Versions.def: Add definition for libdb1.
503         * shlib-versions: Add definitions for libdb1.
504         * db/Makefile (extra-libs): Replace by libdb1.
505         (libdb-routines): Rename to libdb1-routines.
506         (headers): Rename to db1-headers.
507         (distribute): Add $(db1-headers).
508         (install-others): Define to install symlink libdb.so.NN and the
509         $(db1-headers).
510         (CPPFLAGS): Add -DUSE_LIBDB1
511         Remove rules to build makedb.
512         * db/Versions: Rename libdb to libdb1.
513         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
514         * db/makedb.c: Removed.
516         * scripts/versions.awk: Recognize digits in library names.
518         * db/btree/bt_open.c: Fix compiler warnings.
519         * db/btree/bt_put.c: Likewise.
520         * db/btree/bt_split.c: Likewise.
521         * db/hash/hash.c: Likewise.
522         * db/hash/hash_bigkey.c: Likewise.
523         * db/recno/rec_close.c: Likewise.
525         * Makefile: Add localedata/% goal.
527 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
529         * posix/execvp.c: Don't give up searching the PATH if execve
530         returns ENOTDIR.
532 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
534         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
535         if _dl_fpu_control_set is set.
536         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
537         * elf/rtld.c: Don't define _dl_fpu_control_set.
538         * elf/Versions: Remove _dl_fpu_control_set.
540 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
542         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
543         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
544         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
545         Correct values of other SA_* macros according to kernel headers.
547 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
549         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
550         variable l.
551         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
552         old.
554 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
556         * elf/ldsodefs.h: Fix typo in comment.
558 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
560         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
561         char when comparing buffer contents with putback character.
563 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
565         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
566         Undo last change.
567         * elf/Versions: Undo last change.  Export _dl_fpu_control and
568         _dl_fpu_control_set.
569         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
570         variables.  Include <fpu_control.h>.
571         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
572         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
573         to indicate that is was seen.
574         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
575         only if _dl_fpu_control was set and is equal to desired value.
576         * math/Makefile (aux): Undo last change.
577         * math/Versions: Export __fpu_control with version GLIBC_2.0.
579 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
581         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
582         optimized.
584 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
586         * string/bits/string2.h: Add mempcpy optimization.
587         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
588         * intl/localealias.c: Define mempcpy only if not already defined.
590         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
591         defined.
593 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
595         * csu/abi-note.S: Emit the note directly instead of defining
596         a preprocessor macro that's only used once.  Don't include sysdep.h.
597         * abi-tags: Generalize Solaris entry.
599 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
601         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
602         Change to array to avoid runtime relocation.
603         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
605 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
607         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
608         * math/Makefile ($(objpfx)libieee.a): Likewise.
610 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
612         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
613         Patch by John Tobey <jtobey@banta-im.com>.
615 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
617         * login/Makefile (distribute): Remove pty-internal.h, add
618         pty-private.h.
620         * stdlib/tst-strtol.c: Add more checks.
621         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
623 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
625         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
626         * elf/elf.h: Add AT_FPUCW.
627         * elf/Makefile (dl-routines): Add fpu_control.
628         (elide-routines.os): Add fpu_control.
629         (rtld-routines): Add fpu_control.
630         * math/Makefile (aux): Remove fpu_control.
631         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
632         (_dl_show_auxv): Likewise.
633         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
634         if different from OS default.
636         * stdio-common/tstscanf.c: Add test case for (nil).
638 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
640         * libio/fileops.c (_IO_new_file_underflow): Before allocating
641         buffer make sure the pushback buffer is destroyed.
642         (_IO_new_file_seekoff): Likewise.
643         If mode==0 quit early with the result.
644         Clear OEF flag after successful fseek.
645         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
646         * libio/ftello.c (ftello): Add offset from original buffer if
647         stream has pushed back characters.
648         * libio/ftello64.c (ftello64): Likewise.
649         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
650         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
651         * libio/ioftell.c (_IO_ftell): Likewise.
652         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
653         and _IO_save_ptr.
654         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
655         (_IO_default_pbackfail): Only stored push back character in original
656         buffer if it is the same as the one in the file at this position.
657         * libio/iofclose.c: Free backup buffer if one is available.
658         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
659         mode!=0.
661         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
663         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
665         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
667 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
669         * login/programs/pt_chown.c (more_help): Correct message that
670         describes the purpose of the program.
672         * login/openpty.c: Do not include pty-private.h.
673         (pts_name): New function.  Return name of slave pseudo terminal in
674         an allocated buffer if necessary.
675         (openpty): Use pts_name to get name of the slave end of the pseudo
676         terminal pair.
678         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
679         pts_name before return.
681 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
683         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
685 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
687         * login/openpty.c: Include pty-private.h instead of
688         pty-internal.h.
690 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
692         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
694 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
696         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
697         recent ld.so changes.
698         (elf_machine_runtime_setup): Correct behaviour when profiling.
700 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
702         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
703         Patch by John Tobey <jtobey@banta-im.com>.
705 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
707         * login/pty-internal.h: Removed.  Moved constants related to the
708         `grantpt' helper program protocol to ...
709         * login/pty-private.h: ... here.  New file.
710         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
711         to make the function work with kernels >= 2.1.115.
712         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
713         version if using the cloning device fails.
714         * sysdeps/unix/sysv/linux/grantpt.c: New file.
715         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
716         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
717         use by Linux specific code.
718         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
719         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
720         function.  (grantpt): Use pts_name, check group and permission
721         mode in addition to owner.  Try to set the owner, group and
722         permission mode first without invoking the helper program.
723         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
724         internationalization support.  Use symbolic constants instead of
725         hardwired numbers for permission mode.
726         * sysdeps/unix/bsd/ptsname.c: New file.
728 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
730         * posix/wordexp-test.c: Undo last change.
732         * posix/wordexp.c: Undo last change.
734 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
736         * nscd/grpcache.c (save_grp): Partly undo last change.
738         * nscd/pwdcache.c (save_pwd): Undo last change.
740 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
742         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
743         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
745 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
747         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
748         Add profiling support.
749         (TRAMPOLINE_TEMPLATE): New macro.
750         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
751         (RTLD_START): Prettify, and set __libc_stack_end properly.
752         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
753         and check for sym being NULL instead.
754         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
755         of stack space.
756         * sysdeps/sparc/sparc64/lshift.S: Likewise.
757         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
758         * sysdeps/sparc/sparc64/rshift.S: Likewise.
759         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
760         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
761         MEDANY code model %g4 usage.
762         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
763         MEDANY code model %g4 usage.
764         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
765         code model address formation.
766         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
767         include elf/ldsodefs.h
768         (DT_SPARC): Remove.
769         (elf_machine_matches_host): It is now EM_SPARCV9.
770         (elf_machine_dynamic): Clean up to remove ugly cast.
771         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
772         new PLT formats.
773         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
774         Prettify rest of function.
775         [R_SPARC_COPY]: Check for sym being NULL.
776         [R_SPARC_32]: Handle it.
777         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
778         MEDMID code model.
779         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
780         MEDANY code model.
781         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
782         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
783         Add profiling support.
784         (TRAMPOLINE_TEMPLATE): New macro.
785         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
786         (RTLD_START): Prettify and set __libc_stack_end.
787         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
788         Define.
789         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
790         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
791         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
792         unused variable scratch.
793         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
794         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
795         Declare.
796         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
797         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
798         old format kernel sigaction structures.
799         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
800         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
801         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
802         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
803         ucontext include.
804         (_JMPBUF_UNWINDS): Define.
805         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
806         statfs64 structure, which is exactly the same as the normal one.
807         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
808         of stack.  Use correct syscall trap number.  Add branch prediction
809         settings to branch instructions.  Remove old MEDANY code model %g4
810         referneces for non-PIC.
811         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
812         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
813         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
814         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
815         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
816         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
817         __libc_longjmp and __libc_siglongjmp strong aliases.
818         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
819         Also define to __no__readdir64_decl around readdir.c inclusion.
820         (__readdir64): Add strong alias.
821         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
822         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
823         Set strong and weak names properly.
825 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
827         * manual/Makefile (AWK): Default to gawk if standalone.
829 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
831         * Makefile (distribute): Undo last change.
832         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
833         for sysdep headers.
834         (+subdir-headers): Removed, unused.
836 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
838         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
839         $(do-install).
841 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
843         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
844         absolute name in $(config-sysdirs), can never happen.
845         ($(+sysdir_pfx)sysd-rules): Likewise.
846         * Makeconfig (full-config-sysdirs): Likewise.
847         (all-Subdirs-files): Prepend $(..).
849         * configure.in: Don't check for absolute name in $add_ons_pfx, can
850         not happen.  Let --enable-add-ons=yes work if no add-ons actually
851         exist.
853 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
855         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
856         continuations in command.
858 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
860         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
862 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
864         * posix/wordexp-test.c: If expansion or substitution occurs
865         anywhere in a word, the entire word is subject to field-splitting.
867         * posix/wordexp.c (parse_glob): Look for end of word instead of
868         end of field when deciding what to glob.
869         (field_split_word): New function, now the only place where
870         field-splitting is performed.
871         (parse_dollars): New parameter - tell the caller if
872         field-splitting should be performed on this word.
874         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
875         succeeded (or failed with WRDE_NOSPACE).
877 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
879         * posix/wordexp.c (wordexp): Don't convert IFS characters to
880         blanks.
882         * posix/wordexp-test.c: Words not the result of expansion or
883         substitution should remain unchanged.
885 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
887         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
888         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
890 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
892         * stdio-common/Makefile: Include Makeconfig so that
893         $(inst_includedir) is defined.
895 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
897         * io/pwd.c: Include <mcheck.h>.
899 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
901         * nscd/pwdcache.c (save_pwd): Correct copying.
902         * nscd/grpcache.c (save_grp): Likewise.
904 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
906         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
907         (free_pwd): Adjust for this change.
908         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
909         (free_grp): Adjust for this change.
911 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
913         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
915 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
917         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
918         (install-others): Add bits/stdio_lim.h.
919         Add rule to install bits/stdio_lim.h.
921         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
923         * Makefile (distribute): Add include/sys/mman.h.
925         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
926         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
927         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
929         * grp/initgroups.c: Include stdlib.h.
930         Patch by Zack Weinberg.
932 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
934         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
935         for field-splitting :abc: is correct, and that two fields should
936         result. Revert tests to reflect this.
938         * posix/wordexp.c (w_emptyword): Remove function.
939         (exec_comm): Don't use w_emptyword.
940         (parse_param): Likewise.
942 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
944         * sysdeps/arm/fpu/Dist: Moved to...
945         * sysdeps/arm/Dist: ...here.
946         * sysdeps/posix/Dist: Removed.
947         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
948         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
950 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
952         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
954 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
956         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
958 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
960         * libc-work/nis/nss_nisplus/nisplus-service.c
961         (_nss_nisplus_parse_servent): Convert port in network byte order.
963 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
965         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
966         to provide only malloc and calloc.
967         * include/stdlib.h: Support the above.
968         * string/bits/string2.h: Use __need_malloc_and_calloc when
969         including stdlib.h.
970         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
972         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
973         * iconvdata/iso646.c: Include <stdlib.h>.
975 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
977         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
978         * sysdeps/libm-ieee754/w_pow.c: Likewise.
979         * sysdeps/libm-ieee754/w_powf.c: Likewise.
980         * sysdeps/libm-ieee754/w_powl.c: Likewise.
982 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
984         * stdio-common/stdio_lim.h.in: New file.  All parameters
985         are adjustable at build time.
986         * Rules: Add a rule to build bits/stdio_lim.h from
987         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
988         all subdirectories know how to make the file.  It can't be
989         in Makerules because then it gets built at top level and the
990         dependencies are wrong.)
992         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
993         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
994         stdio_lim.h.
995         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
996         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
997         * sysdeps/posix/Makefile: Removed.
998         * sysdeps/posix/mk-stdiolim.c: Removed.
999         * sysdeps/generic/bits/stdio_lim.h: Removed.
1001 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1003         * argp/argp-help.c: Fixup indentation.
1004         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
1005         * resolv/nss_dns/dns-network.c: Likewise.
1006         * resolv/res_send.c: Likewise.
1007         * rt/aio_cancel.c: Likewise.
1008         * rt/aio_misc.c: Likewise.
1010 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1012         * Makefile (install-symbolic-link): Remove the link list file at last.
1013         * Makerules (install-clean-symbolic-link-list): Removed.
1015 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1017         * timezone/tst-timezone.c: Print time in UTC to get consistent
1018         output.
1020 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1022         * elf/rtld.c (_dl_rpath): Removed.
1023         * elf/dl-support.c (_dl_path): Removed.
1024         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
1025         (CFLAGS-dl-support.c): Removed.
1027         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
1028         uses changed.
1029         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
1030         instead of appending it to the main map's rpath info.
1031         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
1032         DT_RPATHs.  This makes it effective again.
1033         (decompose_rpath): Remove second parameter, callers changed.
1034         (fillin_rpath): Allocate enough space in curwd.
1035         (expand_dynamic_string_token): Cope with get_origin returning -1.
1037 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1039         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
1040         passwd.adjunct.
1042         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
1043         invalid password.
1045 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
1047         * locale/programs/locale.c: Update dates.
1049 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
1051         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
1052         size_t is defined.  Some reordering of defenitions to make
1053         maintaining this file in parallel with the linux-specific file easier.
1055 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
1057         * io/pwd.c (main): Add call to mtrace.
1059         * malloc/mtrace.pl: Quote @ in string.
1061 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
1063         * posix/wordexp.c (parse_arith): Fix memory leaks.
1064         (exec_comm): Likewise.
1065         (parse_param): Likewise.
1066         (wordexp): Likewise.
1067         (exec_comm): Reduce number of function return points.
1068         (parse_param): Likewise.
1069         (wordexp): Likewise.
1071 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
1073         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
1074         yield three fields, not two.  Test both parameter expansion and
1075         command substitution for correct field-splitting behaviour.
1077         * posix/wordexp.c (w_emptyword): New function.
1078         (parse_param): Use it.
1079         (exec_comm): Likewise, for consistency with the way parse_param
1080         splits fields.
1081         (parse_param): Fix some memory leaks.
1083 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
1085         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
1086         Don't mark asm `volatile'.
1087         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
1088         from the data cache too.  Assume it isn't in the instruction cache yet.
1089         (__elf_machine_fixup_plt): Clear the modified address from the caches.
1091 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
1093         * sysdeps/generic/segfault.c (install_handler): Install signal
1094         handler with SA_ONSTACK instead of setting the stack flags to
1095         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
1096         defined.
1098 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1100         * signal/signal.h: Fix multiple inclusion guard to cover the
1101         entire file.
1102         * wcsmbs/wchar.h: Remove prototype of internal function
1103         __mbsrtowcs.
1104         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
1105         arithmetic on `void *'.
1107 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
1109         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
1111         * posix/wordexp.c (wordexp): Perform word-splitting instead of
1112         field-splitting here.
1113         (wordexp): If out of memory mid-word, free the word (but still
1114         leave pwordexp alone for caller to see).
1115         (parse_param): Allow for zero-length fields (smarter checking of
1116         memory allocation failure).
1117         (w_addword): Convert NULL words to "".
1118         (wordexp): Convert left-over IFS characters to blanks (like bash).
1120 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1122         * configure.in: Use test -f instead of test -e.
1123         Patch by John Tobey <jtobey@banta-im.com>.
1125         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
1126         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
1127         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
1128         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
1129         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
1130         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
1131         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
1132         Patches by John Tobey <jtobey@banta-im.com>.
1134         * time/strftime.c (my_strftime): Delay use of *tp values until
1135         latest possible point to allow partly initialized structures
1136         (e.g., from strptime).
1138         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
1139         and NATS-SEFI.
1140         Define *-routines variables for new modules.
1141         (distribute): Add .c files for new modules.
1142         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
1143         and nats-sefi.h.
1144         Add rules for header generation.
1145         * iconvdata/gconv-modules: Add entries for new modules.
1146         * iconvdata/iso_10367-box.c: New file.
1147         * iconvdata/mac-is.c: New file.
1148         * iconvdata/nats-dano.c: New file.
1149         * iconvdata/nats-sefi.c: New file.
1151 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
1153         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
1154         loader if PIC is not defined.
1156 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1158         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
1159         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
1160         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
1161         and ISO_5428.
1162         Define *-routines variables for new modules.
1163         (distribute): Add .c files for new modules.
1164         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
1165         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
1166         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
1167         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
1168         Add rules for header generation.
1169         * iconvdata/gconv-modules: Add entries for new modules.
1170         * iconvdata/csn_369103.c: New file.
1171         * iconvdata/cwi.c: New file.
1172         * iconvdata/dec-mcs.c: New file.
1173         * iconvdata/ecma-cyrillic.c: New file.
1174         * iconvdata/gost_19768-74.c: New file.
1175         * iconvdata/greek-ccitt.c: New file.
1176         * iconvdata/greek7-old.c: New file.
1177         * iconvdata/greek7.c: New file.
1178         * iconvdata/inis-8.c: New file.
1179         * iconvdata/inis-cyrillic.c: New file.
1180         * iconvdata/inis.c: New file.
1181         * iconvdata/iso6937-2.c: New file.
1182         * iconvdata/iso_2033.c: New file.
1183         * iconvdata/iso_5427-ext.c: New file.
1184         * iconvdata/iso_5427.c: New file.
1185         * iconvdata/iso_5428.c: New file.
1187         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
1188         entries.
1189         Convert U02dd correctly.
1191 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
1193         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
1194         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1195         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
1196         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
1198 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
1200         * resolv/res_init.c (res_init): Handle resolv.conf file with only
1201         one nameserver correctly.  Patch by HJ Lu.
1203         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
1204         and ANSI_X3.110.
1205         Define *-routines variables for new modules.
1206         (distribute): Add .c files for new modules.
1207         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
1208         Add rules for hedaer generation.
1209         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
1210         * iconvdata/ansi_x3.110.c: New file.
1211         * iconvdata/asmo_449.c: New file.
1212         * iconvdata/baltic.c: New file.
1213         * iconvdata/iec_p27-1.c: New file.
1215         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
1216         entries.
1217         Convert U02dc correctly.
1219         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
1220         * math/atest-exp2.c: Likewise.
1221         * math/atest-sincos.c: Likewise.
1223         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
1224         is defined.
1226 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1228         * string/strcoll.c: Optimize a few expressions.
1229         * string/strxfrm.c: Likewise.
1231 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1233         * manual/locale.texi: Fix typos.
1235 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
1237         * stdlib/random_r.c (__setstate_r): Allow call with same state
1238         array as currently used (PR libc/774).
1240         * include/limits.h: Include gcc's header even if this file is
1241         found more than once before it (PR libc/778)
1243         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
1244         (sysdep_headers): Remove sys/debugreg.h.
1245         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
1246         (sysdep_headers): Add sys/debugreg.h.
1247         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
1248         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
1250         * stdio-common/tmpnam.c: Move local static variable buf to
1251         toplevel and rename to tmpnam_buffer to ease debugging.
1252         Patch by Joe Keane <jgk@jgk.org>.
1253         Optimize s == NULL case a bit.
1255         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
1256         correction.
1258 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
1260         * resolv/res_init.c (res_init): Initialize _res.nscount and
1261         _res.nsaddr.sin_port differently for the can when no loopback
1262         is available to allow immediate timeout in non-networking environments.
1263         Patch by Cristian Gafton <gafton@redhat.com>.
1265 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1267         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
1268         BAR and not EM DASH.
1269         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
1270         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
1271         Fixes PR libc/717.
1273 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
1275         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
1276         for test.
1277         * timezone/tst-timezone.c (tests): Fix typo in last patch.
1279         * time/tzfile.c (__tzfile_read): Handle case when there are no
1280         transitions.  Set __timezone based on computed offset.
1281         * time/tzset.c (tzset_internal): Set __timezone before returning.
1283         * time/tzset.c (tzset_internal): Optimize handling of local string
1284         copy.
1286 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1288         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
1289         libc/776).
1291 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
1293         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
1294         (csqrt_test): Likewise.
1295         * sysdeps/powerpc/bits/fenv.h: Add parens.
1297 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
1299         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
1300         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1301         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
1303 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
1305         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
1306         the special `-1' pointer.
1308 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
1310         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
1311         inline.
1313 1998-09-07  Paul Eggert  <eggert@twinsun.com>
1315         * time/mktime.c (__EXTENSIONS__): Define if not defined.
1316         (_REENTRANT): Remove.  It has undesirable consequences in
1317         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
1318         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
1319         is what we want.
1320         * time/strftime.c: Likewise.
1322 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1324         * elf/dl-error.c: Fix spelling.
1326 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1328         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
1329         * stdio-common/_itoa.c: Likewise.
1330         * stdio-common/printf_fp.c: Likewise.
1331         * stdio-common/vfscanf.c: Likewise.
1332         * wcsmbs/wcstok.c: Likewise.
1333         * sysdeps/generic/glob.c: Likewise.
1334         * posix/getopt.c: Likewise.
1335         * sysdeps/posix/getaddrinfo.c: Likewise.
1336         * posix/wordexp.c: Likewise.
1337         * io/ftw.c: Likewise.
1338         * io/fts.c: Likewise.
1339         * misc/getpass.c: Likewise.
1340         * iconv/gconv_conf.c: Likewise.
1341         * argp/argp-fmtstream.c: Likewise.
1342         * argp/argp-help.c: Likewise.
1343         * elf/dl-load.c: Likewise.
1344         * locale/programs/stringtrans.c: Likewise.
1345         * catgets/gencat.c: Likewise.
1346         * posix/getconf.c: Likewise.
1347         * iconv/gconv_conf.c: Likewise.
1348         * iconv/iconv_prog.c: Likewise.
1350         * string/strcoll.c: Optimize a few expressions.
1351         * string/strxfrm.c: Likewise.
1353 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1355         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
1356         level to avoid uninit variable warning.
1358 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1360         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
1361         instead of _dl_default_scope[2] as argument to _dl_init_next.
1363         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
1364         C9x macro.
1366 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
1368         Fix compatibility problems introduced in last change.
1369         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
1370         defined.
1371         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
1372         -DWEAK_GMON_START to CFLAGS-initfini.s.
1374         * elf/dl-object.c (_dl_new_object): Store map address in
1375         _dl_loaded if _dl_loaded is NULL.
1376         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
1378         * sysdeps/generic/setrlimit64.c: Remove stub warning.
1380 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
1382         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
1383         quiet.
1384         * db2/btree/bt_cursor.c: Likewise.
1385         * db2/common/db_region.db_c: Likewise.
1386         * db2/common/db_salloc.db_c: Likewise.
1387         * db2/db/db.c: Likewise.
1388         * db2/db/db_rec.c: Likewise.
1389         * db2/hash/hash.c: Likewise.
1390         * db2/hash/hash_page.c: Likewise.
1391         * db2/hash/hash_rec.c: Likewise.
1392         * db2/log/log_findckp.c: Likewise.
1393         * db2/log/log_get.c: Likewise.
1394         * db2/log/log_put.c: Likewise.
1395         * db2/mp/mp_fget.c: Likewise.
1396         * db2/mp/mp_fput.c: Likewise.
1397         * db2/mp/mp_region.c: Likewise.
1398         * stdlib/strtol.c: Likewise.
1399         * string/strcoll.c: Likewise.
1400         * string/strxfrm.c: Likewise.
1401         * argp/argp-help.c: Likewise.
1402         * argp/argp-parse.c: Likewise.
1403         * resolv/res_debug.c: Likewise.
1405 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
1407         * math/tgmath.h (scalb): Only define for __USE_MISC or
1408         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
1410 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1412         * libio/stdio.h: Fix comment.
1414         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
1415         __USE_ISOC9X.
1417 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1419         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
1421         * elf/dl-open.c: Quiet -Wparentheses warnings.
1422         * iconvdata/johab.c: Likewise.
1423         * iconvdata/uhc.c: Likewise.
1424         * inet/inet_net.c: Likewise.
1425         * io/fts.c: Likewise.
1426         * locale/newlocale.c: Likewise.
1427         * misc/getttyent.c: Likewise.
1428         * misc/mntent_r.c: Likewise.
1429         * misc/ttyslot.c: Likewise.
1430         * nscd/nscd_conf.c: Likewise.
1431         * nss/nsswitch.c: Likewise.
1432         * resolv/gethnamaddr.c: Likewise.
1433         * resolv/nsap_addr.c: Likewise.
1434         * resolv/res_debug.c: Likewise.
1435         * stdio-common/_itoa.c: Likewise.
1436         * stdlib/strtod.c: Likewise.
1437         * string/strverscmp.c: Likewise.
1438         * sunrpc/svc.c: Likewise.
1439         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
1440         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
1441         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
1442         * sysdeps/posix/getaddrinfo.c: Likewise.
1444 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
1446         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
1447         for use of global scope.
1448         * elf/dlvsym.c (dlvsym_doit): Likewise.
1450 1998-09-02  Paul Eggert  <eggert@twinsun.com>
1452         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
1453         copy the redundant bytes at the end of the format as-is; don't
1454         just copy their first byte and then rescan, as that might get
1455         us an encoding error.
1456         Account correctly for the length of multibyte sequences in the
1457         format.
1459 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
1461         * posix/wordexp-test.c: Add tests for different IFS values.
1462         Change unquoted-newline test so that newline is not in IFS.
1464         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
1465         determining IFS characters.  Return WRDE_BADCHAR for unquoted
1466         special characters _except_ if they are separators.
1468 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
1470         * include/tgmath.h: New file.
1472         * libio/stdio.h: Correct reversed #ifs.
1473         Patch by Zack Weinberg.
1475         * manual/creature.texi: Better explain reason for feature select
1476         macros.
1477         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
1479 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1481         * include/alloca.h: Add multiple-inclusion guard.
1482         * include/db.h: Likewise.
1483         * include/db_185.h: Likewise.
1484         * include/dlfcn.h: Likewise.
1485         * include/fcntl.h: Likewise.
1486         * include/grp.h: Likewise.
1487         * include/libintl.h: Likewise.
1488         * include/mntent.h: Likewise.
1489         * include/pwd.h: Likewise.
1490         * include/sched.h: Likewise.
1491         * include/search.h: Likewise.
1492         * include/setjmp.h: Likewise.
1493         * include/shadow.h: Likewise.
1494         * include/signal.h: Likewise.
1495         * include/stdio.h: Likewise.
1496         * include/stdlib.h: Likewise.
1497         * include/string.h: Likewise.
1498         * include/termios.h: Likewise.
1499         * include/time.h: Likewise.
1500         * include/ulimit.h: Likewise.
1501         * include/utmp.h: Likewise.
1502         * include/wchar.h: Likewise.
1503         * include/sys/file.h: Likewise.
1504         * include/sys/gmon.h: Likewise.
1505         * include/sys/ioctl.h: Likewise.
1506         * include/sys/mman.h: Likewise.
1507         * include/sys/resource.h: Likewise.
1508         * include/sys/select.h: Likewise.
1509         * include/sys/socket.h: Likewise.
1510         * include/sys/statfs.h: Likewise.
1511         * include/sys/time.h: Likewise.
1512         * include/sys/times.h: Likewise.
1513         * include/sys/wait.h: Likewise.
1515 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
1517         * version.h (VERSION): Bump to 2.0.96.
1519         Rewrite runtime linker to be truly thread-safe.  There is now no
1520         global variable specifying the scope.  We create all needed
1521         scopes at the time the link maps are created.
1522         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
1523         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
1524         l_symbolic_searchlist, l_scope, and l_local_scope elements in
1525         struct link_map.
1526         * elf/dl-close.c: Rewritten accordingly.
1527         * elf/dl-deps.c: Likewise.
1528         * elf/dl-error.c: Likewise.
1529         * elf/dl-init.c: Likewise.
1530         * elf/dl-load.c: Likewise.
1531         * elf/dl-lookup.c: Likewise.
1532         * elf/dl-object.c: Likewise.
1533         * elf/dl-open.c: Likewise.
1534         * elf/dl-reloc.c: Likewise.
1535         * elf/dl-runtime.c: Likewise.
1536         * elf/dl-support.c: Likewise.
1537         * elf/dl-symbol.c: Likewise.
1538         * elf/dl-version.c: Likewise.
1539         * elf/dlsym.c: Likewise.
1540         * elf/dlvsym.c: Likewise.
1541         * elf/ldsodefs.h: Likewise.
1542         * elf/rtld.c: Likewise.
1543         * iconv/gconv_dl.c: Likewise.
1544         * nss/nsswitch.c: Likewise.
1545         * sysdeps/i386/dl-machine.h: Likewise.
1546         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1548         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
1549         Define RTLD_DEFAULT.
1551 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
1553         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
1554         __getopt_clean_environment with __environ instead of envp.
1556 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
1558         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
1560         * string/argz-extract.c (__argz_extract): Add de-consting cast for
1561         setting results.
1563         * string/argz.h (argz_next): Add de-consting cast for return.
1564         * string/argz-next.c (__argz_next): Likewise.
1566         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
1567         Don't add netinet/udp.h, netinet/ip_icmp.h here.
1568         * sysdeps/gnu/Makefile: Do it here instead.
1569         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
1570         * sysdeps/gnu/Dist: ... to here.
1572         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
1573         sysdeps/unix/sysv/linux/netinet/tcp.h,
1574         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
1576 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
1578         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
1579         * string/argz-next.c, string/argz-extract.c: Fix defns.
1581 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
1583         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
1585         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
1586         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
1587         * sysdeps/generic/sysd-stdio.c: Likewise.
1589 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
1591         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
1592         (_dl_map_object_from_fd): Make NAME argument const.
1593         Remove last parameter in _dl_new_object call.
1594         (print_search_path): Correct construction of composed path name.
1595         (_dl_map_object): Prevent looking at RPATH of the main map twice.
1596         Remove last parameter in _dl_new_object call.
1597         * elf/dl-object.c: Remove last parameter.  Determine whether create
1598         origin entry based on empty realname.  Handle file in root directory
1599         correctly.
1600         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
1601         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
1602         Remove last parameter in _dl_new_object call.
1603         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
1604         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
1606 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
1608         * elf/dl-close.c (_dl_close): Add more comments and correct some.
1609         Free l_searchlist and l_dupsearchlist.
1611         * debug/catchsegv.sh: Add one more pair of quotes.
1613 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
1615         * elf/dl-load.c (add_name_to_object): Change return type to void and
1616         make NAME parameter const.  Allocate room for NAME in same memory
1617         block used for l_libname entry.
1618         (_dl_map_object_from_fd): Don't free NAME on failure.
1619         (map_segment): Pass SONAME to add_name_to_object, not a copy.
1620         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
1621         _dl_map_object_from_fd.
1622         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
1623         memory block used for l_libname entry.
1624         * elf/dl-close.c: Adjust free()ing for this change.
1626 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
1628         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
1630         * malloc/mtrace.c: Add bug report address.  Update email address.
1631         Add more @XXX@ to print correct address size.
1633         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
1634         really initialized.
1636         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
1637         for munmap call instead of examining phdr again.
1638         Free all malloc()ed strings and arrays.
1640 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1642         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
1643         dl-machine.h.
1644         * sysdeps/powerpc/dl-machine.c: New file.
1645         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
1646         files.  Revise ELF_PREFERRED_ADDRESS to take account of
1647         the new mapping information (fixes bug involving huge bloated
1648         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
1649         * sysdeps/powerpc/dl-start.S: New file.
1651         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
1652         l_map_end.
1653         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
1654         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
1655         others.  Call elf_dynamic_do_##reloc only once (to save even more
1656         space).
1657         * elf/link.h: Add new members l_map_start and l_map_end to keep
1658         track of the memory map.
1659         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
1660         the executable.
1662 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
1664         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
1665         Reported by Andreas Jaeger.
1667         * posix/glob.h: Use __size_t instead of size_t in definitions and
1668         make sure this is defined.
1670 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
1672         * manual/locale.texi: Almost complete rewrite.  Document more functions
1673         and functionality.
1674         * manual/arith.texi: Correct reference.
1675         * manual/string.texi: Pretty printing.
1677         * manual/texinfo.tex: Update from last available version.
1679 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
1681         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
1682         invalid password.
1683         (_nss_nis_getpwuid_r): Likewise.
1684         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
1686         * inet/rcmd.c: Implement netgroup support.
1687         Patch by Dick Streefland <dick_streefland@tasking.com>.
1689 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1691         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
1692         object on the list is removed.  Don't use this code for PIC.
1693         Reported by HJ Lu [PR libc/770].
1695 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
1697         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
1699         * include/stdio.h: Add __vsscanf.
1701         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
1702         __USE_ISOC9X.
1703         Remove __vsscanf declaration.
1704         Always declare fgetpos and fsetpos.
1706         * math/math.h: Define isinf as macro.
1707         * math/bits/mathcalls.h: Change to declare __isinf all the time.
1708         Don't declare scalb for ISO C 9x.
1710         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
1712         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
1714         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
1715         sys/ucontext.h.
1717         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
1718         macros.
1720 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1722         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
1723         Reported by jreising@frequentis.com [PR libc/767].
1725 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1727         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
1728         fl.l_start at beginning of function.
1729         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
1731 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1733         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
1734         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
1736         * nscd/nscd.init: Make it work in RedHat systems.
1737         Patch by Christian Gafton.
1739 1998-08-29  Philip Blundell  <philb@gnu.org>
1741         * catgets/Makefile: Don't try to run test programs when
1742         cross-compiling.
1744 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
1746         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
1747         Reported by Zack Weinberg.
1749 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1751         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
1752         * elf/Makefile (distribute): Remove ldd.sh.in.
1754 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1756         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
1757         variable.
1759 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
1761         * sysdeps/i386/register-dump.h: Move to ...
1762         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
1764 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
1766         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
1767         with load address, not map address.
1768         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
1769         parameter and use this value.
1770         * sysdeps/arm/dl-machine.h: Likewise.
1771         * sysdeps/i386/dl-machine.h: Likewise.
1772         * sysdeps/m68k/dl-machine.h: Likewise.
1773         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
1774         parameter.
1775         * sysdeps/powerpc/dl-machine.h: Likewise
1776         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
1777         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
1779 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
1781         * elf/rtld.c (process_envvars): Fix copy&paste error.
1783         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
1784         memalign hook.
1785         (realloc_hook_ini): Don't overwrite memalign hook.
1786         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
1787         Reported by Philippe Troin <phil@fifi.org>.
1789         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
1790         Patch by Philippe Troin <phil@fifi.org>.
1792 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1794         * sysdeps/generic/segfault.c (install_handler): Protect the
1795         non-POSIX signals with #ifdef.
1796         (catch_segfault): Add missing mode parameter for open.
1797         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
1798         other termination signals.
1800 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1802         * debug/Makefile (distribute): Add register-dump.h.
1804 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1806         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
1808 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
1810         * elf/Makefile (distribute): Add dl-origin.h.
1811         * sysdeps/generic/dl-origin.h: New file.
1812         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
1813         * elf/link.h (struct link_map): Add l_origin field.
1814         * elf/dl-load.c (expand_dynamic_string_token): New function.
1815         (decompose_path): Remove WHERE argument, take link map pointer instead.
1816         Call expand_dynamic_string_token instead of local_strdup to make copy
1817         of rpath.
1818         (_dl_init_paths): Call decompose_path with correct argument.
1819         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
1820         not defined.
1821         Check EI_OSABI and EI_ABIVERSION fields in header.
1822         Call _dl_new_object with extra argument.
1823         (_dl_map_object): Call decompose_path with correct argument.
1824         Call expand_dynamic_string_token instead of local_strdup to also
1825         expand DST.
1826         Call _dl_new_object with extra argument.
1827         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
1828         but the main one if new argument is nonzero.
1829         * elf/ldsodefs.h: Adjust for _dl_new_object change.
1830         * elf/dl-support.c: Define _dl_origin_path.
1831         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
1832         (dl_main): Call _dl_new_object with extra argument.
1834         * elf/dl-close (_dl_close): Free l_name and l_origin.
1836         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
1837         modifier in asm, not c.
1839         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
1840         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
1842 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
1844         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
1845         variable so that map can be freed.
1846         Reported by Philippe Troin <phil@fifi.org>.
1848         * elf/dl-open.c (dl_open_worker): Correct test for extending global
1849         scope array.
1850         Patch by Philippe Troin <phil@fifi.org>.
1852 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1854         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
1855         Don't call writev() with a 100-element vector.
1856         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
1857         return address.
1859         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
1860         In particular, set __libc_stack_end.
1861         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
1862         undefined.  Fix copyright notice.
1864 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1866         * math/Makefile (gmp-objs): New variable.
1867         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
1868         Depend on it.
1869         (tests): Add atest-exp atest-sincos atest-exp2.
1870         (tests-static): Remove atest-exp atest-sincos atest-exp2.
1872 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
1874         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
1875         to toplevel.
1876         (_dl_unload_cache): New function.
1877         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
1878         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
1879         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
1881         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
1882         Correct comment for O_LARGEFILE.
1883         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
1884         Change O_LARGEFILE to correct value.
1886 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
1888         * libio/iogetline.c (_IO_getline_info): Don't read anything for
1889         N == 0.  Patch by HJ Lu.
1891 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
1893         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
1895 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
1897         * argp/argp.h: Use __inline__ not inline.
1899         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
1900         an input register as being clobbered.
1901         * sysdeps/i386/memset.c (memset): Likewise.
1902         * sysdeps/i386/bzero.c (__bzero): Likewise.
1903         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
1905 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1907         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
1908         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
1910 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
1912         * debug/catchsegv.sh: Handle text preceding backtrace better.
1913         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
1914         to be installed for other signals than SIGSEGV.
1915         * sysdeps/generic/register-dump.h: New file.
1916         * sysdeps/i386/register-dump.h: New file.
1917         * sysdeps/powerpc/register-dump.h: New file.
1919         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
1920         sigcontextinfo.h.
1921         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
1923 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
1925         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
1927 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
1929         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
1930         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
1931         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
1932         getresuid, getresgid.
1934 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
1936         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
1937         pointer in userland.
1939 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1941         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
1942         and fix value.
1944 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1946         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
1947         over arguments Bourne shell compatible.  Don't exit unsuccessfully
1948         if nonelf returns successfully.  Avoid duplicating most of the
1949         script.
1950         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
1951         around $file.
1953 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1955         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
1956         sys/reg.h.
1957         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
1958         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
1960 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
1962         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
1963         __modify_ldt and modify_ldt.
1964         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
1966         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1967         Use orl $-1 instead of movl $-1 to save two bytes.
1968         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
1969         Likewise.
1971 1998-08-17  H.J. Lu  <hjl@gnu.org>
1973         * libio/Versions (_IO_do_write, _IO_file_attach,
1974         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1975         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1976         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1977         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
1979         * libio/fileops.c (_IO_do_write, _IO_file_attach,
1980         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1981         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1982         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1983         _IO_file_write, _IO_file_xsputn): Change the prefix to
1984         "_IO_new_". Added to GLIBC_2.1.
1986         * libio/libioP.h (_IO_do_write, _IO_file_attach,
1987         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1988         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1989         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1990         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
1991         "_IO_new_".
1993         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
1994         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
1995         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
1996         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
1997         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
1999 1998-08-23  Richard Henderson  <rth@cygnus.com>
2001         * Makeconfig (LDFLAGS): Remove.
2003         * csu/initfini.c: Return to .text before __gmon_start__.
2005         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
2006         (STO_MIPS_*): Rename from STO_*.
2007         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
2008         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
2010         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
2011         (main): e3s is negative on zero.
2012         * math/atest-exp2.c: Likewise.
2013         * math/atest-sincos.c: Likewise.
2015 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2017         * Makerules (install): Add comment about absolute paths.
2019 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2021         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
2022         array to NUL to handle maxlen==1 case correctly.
2023         Patch by HJ Lu.
2025 1998-08-23  Richard Henderson  <rth@cygnus.com>
2027         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
2028         * sysdeps/alpha/elf/crtend.S: Likewise.
2029         * sysdeps/alpha/elf/start.S: Likewise.
2031         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
2032         non-standard pv usage.
2034         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
2035         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2036         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2037         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2038         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2039         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2040         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2041         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2042         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2043         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2044         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2046         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
2047         a finite non-denormal, deferring to the full IEEE version otherwise.
2049         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
2050         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
2051         * sysdeps/alpha/fpu/s_floor.c: New.
2052         * sysdeps/alpha/fpu/s_floorf.c: New.
2053         * sysdeps/alpha/fpu/s_ceil.c: New.
2054         * sysdeps/alpha/fpu/s_ceilf.c: New.
2056 1998-08-22  Philip Blundell  <philb@gnu.org>
2058         * sysdeps/arm/bits/string.h: New file.
2060 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2062         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
2063         document it.
2065         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
2066         test for recent Linux 2.1.100+ headers.
2068 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2070         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
2072 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
2074         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
2076 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2078         * Makefile (elf/ldso_install): Put back.  The problem still persists.
2079         * elf/Makefile (ldso_install): Likewise.
2081 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2083         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
2084         create weak alias.
2085         * include/db.h: Declare __nss_db_open.
2086         * db2/Versions: Export it.
2088         * db2/makedb.c: Convert to use db2 API.
2089         * nss/nss_db/db-XXX.c: Likewise.
2090         * nss/nss_db/db-netgrp.c: Likewise.
2091         * nss/nss_db/db-alias.c: Likewise.
2092         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
2094 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2096         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2097         sys_setresuid, already built automatically (or not).
2098         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
2099         instead of __syscall_setresuid and add back setresuid.
2100         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
2101         __syscall_setresuid.
2103 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2105         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
2107 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2109         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
2110         BASH-ONLY marked region.
2111         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
2113 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2115         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
2116         _IO_SYSSEEK fails.
2118         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
2120         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
2121         element.
2123 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
2125         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
2126         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
2127         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
2128         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
2129         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
2130         those magic comments, and to use /bin/sh for @BASH@.
2131         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
2132         * elf/ldd.sh.in: File removed.
2134 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
2136         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
2137         cast them to unsigned long int.
2138         * pwd/putpwent.c (putpwent): Likewise.
2139         Patch by John Tobey <jtobey@banta-im.com>.
2141 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
2143         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
2144         _IO_pos_BAD.
2146 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
2148         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
2149         _IO_SYSSEEK fails.
2151 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
2153         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
2154         Add umount and umount2.
2155         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
2156         * sysdeps/unix/sysv/linux/umount.S: New file.
2157         * sysdeps/unix/sysv/linux/umount2.S: New file.
2158         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
2159         Define MNT_FORCE.
2161         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
2162         Add sys/sendfile.h.
2163         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
2164         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
2166         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
2168         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
2169         sendfile.
2171 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
2173         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
2174         * elf/ldd.bash.in: Likewise.
2176         * elf/sln.c: Avoid warning for no main prototype.
2178         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
2179         O_WRITE.
2180         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2181         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2183         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
2184         F_GETSIG.
2185         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2186         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2187         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2189 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
2191         * sysdeps/arm/fpu/ieee754.h: Move to...
2192         * sysdeps/arm/ieee754.h: ... here.
2194         * sysdeps/arm/__longjmp.S: Put return value in correct register.
2195         Don't set the condition flags unnecessarily.
2196         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
2197         registers correctly.
2199         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
2200         (patch from Scott Bambrough).
2202         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
2204         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
2205         NULL, just call it unconditionally.
2206         (__gmon_start__): Provide stub version as a weak symbol.
2208 1998-07-30  Philip Blundell  <philb@gnu.org>
2210         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
2211         by Scott Bambrough)
2213         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
2214         like `@' in .type directives.
2216         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
2217         * sysdeps/arm/bsd-_setjmp.S: Likewise.
2219         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
2221 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2223         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
2224         (F_GETOWN): Likewise.
2226         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
2227         Linux 2.1.117).
2229 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
2231         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
2232         already defined.
2234 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
2236         * include/features.h: Define __USE_EXTERN_INLINES for recent
2237         enough gcc.
2238         * argp/argp.h: Define extern inline functions only if
2239         __USE_EXTERN_INLINES is defined.
2240         * libio/stdio.h: Likewise.
2241         * math/math.h: Likewise.
2242         * stdlib/stdlib.h: Likewise.
2243         * string/argz.h: Likewise.
2244         * sysdeps/generic/bits/sigset.h: Likewise.
2245         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
2246         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
2247         * sysdeps/wordsize-32/inttypes.h: Likewise.
2248         * sysdeps/wordsize-64/inttypes.h: Likewise.
2249         * wcsmbs/wchar.h: Likewise.
2251         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
2252         to allow compilation without optimization.
2254 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2256         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
2257         more entries.
2258         * nis/nss_compat/compat-initgroups.c: Likewise.
2259         * nis/nss_compat/compat-pwd.c: Likewise.
2260         * nis/nss_compat/compat-spwd.c: Likewise.
2261         * nis/nss_nis/nis-alias.c: Likewise.
2262         * nis/nss_nis/nis-ethers.c: Likewise.
2263         * nis/nss_nis/nis-grp.c: Likewise.
2264         * nis/nss_nis/nis-hosts.c: Likewise.
2265         * nis/nss_nis/nis-initgroups.c: Likewise.
2266         * nis/nss_nis/nis-network.c: Likewise.
2267         * nis/nss_nis/nis-proto.c: Likewise.
2268         * nis/nss_nis/nis-pwd.c: Likewise.
2269         * nis/nss_nis/nis-rpc.c: Likewise.
2270         * nis/nss_nis/nis-service.c: Likewise.
2271         * nis/nss_nis/nis-spwd.c: Likewise.
2273         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
2275         * nis/ypclnt.c: Try binding dir only first time, could be to old.
2277         * nis/yp_xdr.c: Remove 1024 byte limit.
2278         * nis/ypupdate_xdr.c: Likewise.
2280         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
2281         wrong data.
2283 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
2285         * Rules (binaries-static, binaries-shared static pattern rules):
2286         Depend on lib%, not just libc%, from $(link-libc{,-static}).
2288         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
2289         this here, overriding Makeconfig generic value so we link against
2290         the RPC libs.
2292 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
2294         * posix/tstgetopt.c (options): Add NULL entry at end
2295         Patch by Adrian Miranda <ade@psg.com>.
2297 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
2299         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
2300         to 9.
2302 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
2304         * elf/elf.h: Add PPC Diab relocations.
2306         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
2308 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
2310         * manual/texinfo.tex: Update.
2312 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
2314         * sysdeps/powerpc/backtrace.c: New file.
2316 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
2318         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
2319         sigjmp_save.
2320         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
2322 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2324         * Makefile (install-symbolic-link): Fix spelling.
2326 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2328         * elf/elf.h (SHT_HIOS): Fix value.
2330 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2332         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
2333         part of the expansion, this is undefined by the standard.
2335 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
2337         * posix/getconf.c: Add support for systems with incomplete confname.h.
2339         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
2341         * sysdeps/posix/wait3.c: Make it work.
2343 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2345         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
2346         (elf/ldso_install): Remove.
2348         * elf/Makefile (distribute): Add sln.c.
2349         (others): Add sln.
2350         (others-static): Add sln.
2351         (install-rootsbin): Add sln.
2352         (others-static): Add sln.
2353         (ldso_install): Remove.
2355 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2357         * Makerules (install-clean-symbolic-link-list): Make phony.
2358         * Makefile (install-symbolic-link): Make phony.  Depend on
2359         subdir_install for parallel makes.
2362 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
2364         * elf/Makefile (distribute): Add sln.c
2366 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
2368         * elf/sln.c: New file.
2370         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
2371         (install-clean-symbolic-link-list): New target.
2372         (install): Depend on install-clean-symbolic-link-list.
2373         (make-shlib-link): Changed for $(symbolic-link-list).
2375         * Makefile (install-symbolic-link): New target.
2376         (install): Depend on install-symbolic-link.
2378 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
2380         * include/unistd.h: Protect against multiple inclusion.
2382         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
2383         is defined, not is glob is defined.
2384         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
2386 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
2388         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
2389         xdr_string for ut_line, ut_name and ut_host.
2391 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2393         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
2394         /var/mail in accordance with FHS 2.0.
2395         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
2397 1998-08-12  Richard Henderson  <rth@cygnus.com>
2399         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
2400         Update aliases for cancelation.
2402         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
2403         playing with symbol versions.
2405 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2407         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
2408         multiple inclusion protection.
2409         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
2410         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
2411         define all these to 1.
2412         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
2414 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
2416         * sysdeps/mach/usleep.c: Include <unistd.h>.
2417         (usleep): Return void.
2419 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2421         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
2422         decl to inhibit warning in if_freenameindex defn.
2424         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
2426         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
2428         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
2429         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
2430         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
2431         * sysdeps/mach/usleep.c: Likewise.
2433         * sysdeps/mach/hurd/bind.c (bind): Add a const.
2435         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
2436         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
2437         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
2438         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
2439         * sysdeps/mach/usleep.c (usleep): Likewise.
2440         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
2441         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
2442         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
2443         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
2445 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
2447         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
2448         (glob64): Fix typo.
2450         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
2451         %p arg to fprintf, since `void *' is the right type already.
2453 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
2455         * sysdeps/mach/hurd/getcwd.c
2456         (_hurd_canonicalize_directory_name_internal): Do not loop forever
2457         for unknown root directories.
2458         (__getcwd): Return NULL when the current root directory could not
2459         be reached.
2461 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
2463         * string/strsignal.c (strsignal): Count real-time signals from zero.
2466 See ChangeLog.8 for earlier changes.