Undo last change. Get definition of timespec if __USE_POSIX199309.
[glibc.git] / ChangeLog
blob8175e0b6df3fd551442a1f64e03b9d0167ce9c04
1 1998-11-11  Roland McGrath  <roland@baalperazim.frob.com>
3         * hurd/hurdsig.c (_hurdsig_init): Add assertion that no pending,
4         unblocked signals are set in the startup masks.
6         * hurd/hurdsig.c (_hurdsig_init): Take new args, INTARRAY and
7         INTARRAYSIZE.  Initialize main thread's sigstate from INIT_SIG* ints.
9         * hurd/hurd/signal.h: Update _hurdsig_init decl.
10         * hurd/hurdinit.c (_hurd_proc_init): Take new args, INTARRAY and
11         INTARRAYSIZE, pass them down to _hurdsig_init.
12         * hurd/hurd.h: Update _hurd_proc_init decl.
14 1998-11-10  Ulrich Drepper  <drepper@cygnus.com>
16         * math/cabs.c: Replace complex by _Complex.
17         * math/cabsf.c: Likewise.
18         * math/cabsl.c: Likewise.
19         * math/cimag.c: Likewise.
20         * math/cimagf.c: Likewise.
21         * math/cimagl.c: Likewise.
22         * math/conj.c: Likewise.
23         * math/conjf.c: Likewise.
24         * math/conjl.c: Likewise.
25         * math/creal.c: Likewise.
26         * math/crealf.c: Likewise.
27         * math/creall.c: Likewise.
29         * sysdeps/alpha/fpu/bits/mathdef.h: Define ISO C 9X stuff only if
30         included from math.h and __USE_ISOC9X is defined.
31         * sysdeps/generic/bits/mathdef.h: Likewise.
32         * sysdeps/generic/i386/fpu/mathdef.h: Likewise.
33         * sysdeps/generic/m68k/fpu/mathdef.h: Likewise.
34         * sysdeps/generic/powerpc/bits/mathdef.h: Likewise.
35         * sysdeps/generic/sparc/fpu/bits/mathdef.h: Likewise.
37 1998-11-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
39         * sysdeps/i386/fpu/bits/mathdef.h: Allow direct inclusion by
40         <complex.h>.
41         * sysdeps/alpha/fpu/bits/mathdef.h: Likewise.
42         * sysdeps/generic/bits/mathdef.h: Likewise.
43         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
44         * sysdeps/powerpc/bits/mathdef.h: Likewise.
45         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
47 1998-11-09  Ulrich Drepper  <drepper@cygnus.com>
49         * extra-lib.mk: Fix typo in last change.
51         * math/complex.h: Include bits/mathdef.h to get __NO_LONG_DOUBLE_MATH
52         is needed.
53         Don't define long double functions if __NO_LONG_DOUBLE_MATH is defined.
54         Don't define `complex' but instead `_Complex'.  The later is the
55         reserved keyword.
56         * math/bits/cmathcalls.c: Define _Mdouble_complex_ using _Complex,
57         not complex.
59 1998-11-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
61         * manual/libc.texinfo: Remove colon from category name.
62         * manual/Makefile (dir-add.info): Likewise.
64 1998-11-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
66         * configure.in: Avoid autoconf bug.
68 1998-10-28  H.J. Lu  <hjl@gnu.org>
70         * posix/getopt.h: Add "__" to arguments in prototypes.
72 1998-11-05  H.J. Lu  <hjl@gnu.org>
74         * libio/iofgets.c (_IO_fgets): Don't report error
75         if something was read in and errno is set to
76         EAGAIN.
77         * libio/iofgets_u.c (fgets_unlocked): Likewise.
79 1998-11-05  Philip Blundell  <philb@gnu.org>
81         * sysdeps/unix/sysv/linux/net/if_packet.h: Don't include kernel
82         header; it defines too much.  Provide a local definition of struct
83         sockaddr_pkt and a comment advising against its use.
85 1998-11-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
87         * extra-lib.mk: Avoid empty include list.
89 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91         * extra-lib.mk: Add support for $(lib)-shared-only-routines.
93         * elf/Makefile (libdl-routines): Add dlopenold only if doing
94         versioning.
95         (libdl-shared-only-routines): New variable.
97 1998-11-06  Paul Eggert  <eggert@twinsun.com>
99         Don't invoke localtime_r or gmtime_r unless it's the GNU C
100         library's localtime_r and gmtime_r; there are too many buggy
101         implementations of localtime_r and gmtime_r out there, and
102         it's not worth keeping track of all the different bugs.
104         * time/mktime.c (__EXTENSIONS__): Remove.
105         (<unistd.h>): No need to include.
106         * time/strftime.c: Likewise.
108         * time/mktime.c (_POSIX_THREAD_SAFE_FUNCTIONS, HAVE_LOCALTIME_R):
109         Remove.
110         (my_mktime_localtime_r): Renamed from localtime_r; all uses changed.
111         Base it on localtime unless _LIBC.
113         * time/strftime.c (my_strftime_gmtime_r): Renamed from gmtime_r;
114         all uses changed.
115         (my_strftime_localtime_r): Renamed from localtime_r; all uses changed.
116         Base them on localtime/gmtime if not _LIBC.
118 1998-11-07  Ulrich Drepper  <drepper@cygnus.com>
120         * sysdeps/generic/isastream.c: Always return 0 unless it is an invalid
121         file descriptor.  This makes this function actually usable.
122         Proposed by Mark Kettenis <kettenis@phys.uva.nl>.
124 1998-11-05  Ulrich Drepper  <drepper@cygnus.com>
126         * math/math.h: Unconditionally include bits/mathdef.h.  Declare
127         long double functions only if __NO_LONG_DOUBLE_MATH is not
128         defined.
129         * sysdeps/generic/bits/mathdef.h: Define only if __USE_ISOC9X.
130         Define __NO_LONG_DOUBLE_MATH.
131         * sysdeps/m68k/fpu/bits/mathdef.h: Define only if __USE_ISOC9X.
132         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
134         * elf/rtld.c: Add a few __builtin_expects where they will improve
135         a lot.
137 1998-11-05  Ulrich Drepper  <drepper@cygnus.com>
139         * version.h (VERSION): Bump to 2.0.100.
141         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Fix fldl -> fld.
143         * sysdeps/libm-i387/s_fma.S: Optimize a bit.
144         * sysdeps/libm-i387/s_fmaf.S: Likewise.
146 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
148         * libio/genops.c (_IO_least_marker): Add additional parameter
149         end_p replacing fp->_IO_read_end.
150         (save_for_backup): Likewise.  All callers changed.  Use _IO_size_t
151         and _IO_ssize_t instead of int.
152         (_IO_switch_to_main_get_area): Remove use of _IO_save_ptr.
153         (_IO_switch_to_backup_area): Likewise.  Fix comments.
154         (_IO_seekmark): Undo last change.
155         (_IO_default_pbackfail): Correct use of backup area.
156         * libio/libio.h (_IO_FILE_complete): Remove _IO_save_ptr.
158 1998-11-04 19:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
160         * configure.in: Search for install-info and substitute it.
161         Determine whether install-info is the buggy Debian version
162         that doesn't understand INFO-DIR-SECTION.
163         * config.make.in: Add INSTALL_INFO and OLD_DEBIAN_INSTALL_INFO
164         to be substituted.
165         * manual/Makefile: If OLD_DEBIAN_INSTALL_INFO, give
166         install-info the --section argument it needs to work properly.
167         (dir-add.texinfo): Delete target.
168         (dir-add.info): Generate this directly.  Sort entries.  Put a
169         colon at the end of the INFO-DIR-SECTION line.
170         * manual/libc.texinfo: Put a colon at the end of the
171         @dircategory line.
173 1998-11-05  Paul Eggert  <eggert@twinsun.com>
175         * time/mktime.c (__mktime_internal): Adopt the traditional (and
176         problematic) notion of what to do when tm_isdst doesn't match.
178 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
180         * posix/PTESTS: Fix spelling.
182 1998-11-04  Ulrich Drepper  <drepper@cygnus.com>
184         * misc/efgcvt_r.c (fcvt_r): Remove code which tries to use libm
185         functions.  Reduce error in computing normalized value by multiplying
186         factor in loop and compute result in one step.
187         Reported by Christian Gafton.
189         * sysdeps/libm-i387/e_hypot.S: New file.
190         * sysdeps/libm-i387/e_hypotf.S: New file.
192 1998-11-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
194         * elf/dlopenold.c: Compile only if DO_VERSIONING is also defined.
196 1998-11-03  H.J. Lu  <hjl@gnu.org>
198         * libio/fileops.c (new_do_write): New function.
199         (_IO_new_do_write): Call new_do_write.
200         (_IO_new_file_xsputn): Likewise.
202         * libio/oldfileops.c (old_do_write): New function.
203         (_IO_old_do_write): Call old_do_write.
204         (_IO_old_file_xsputn): Likewise.
206 1998-11-04  Ulrich Drepper  <drepper@cygnus.com>
208         * time/mktime.c (__mktime_internal): Correct last change.  We must
209         stop searching for the right isdst value before stepping to the
210         initial value.
212         * malloc/malloc.c: Make sure calloc really returned zeroed memory.
213         Patch by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>.
215 1998-11-02 16:12 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
217         * sysdeps/generic/bits/signum.h: Define signals with their
218         historical numbers when those are in the 1-15 range and
219         consistent across platforms.
220         Define compatibility aliases (SIGIOT, SIGCLD) if __USE_MISC.
221         Define SIG_DFL, SIG_IGN, SIG_ERR as numeric constants cast
222         appropriately instead of with fake function declarations
223         (would cause link errors).
224         If __USE_UNIX98, define SIG_HOLD.
226 1998-10-29  H.J. Lu  <hjl@gnu.org>
228         * sysdeps/unix/sysv/linux/bits/sigaction.h (sigaction): Use
229         union only if __USE_POSIX199309 is defined.
231         * misc/sys/select.h (pselect): Declared only if __USE_GNU is
232         defined.
234 1998-11-03  Ulrich Drepper  <drepper@cygnus.com>
236         * time/mktime.c (__mktime_internal): Handle broken down times
237         around the time of the DST switches more correctly.
239 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
241         * elf/Makefile (libdl-routines): Add dlopenold.
242         * elf/Versions [libdl, GLIBC_2.1]: Add dlopen.
243         * elf/dl-open.c (_dl_open): Check whether RTLD_LAZY or RTLD_GLOBAL
244         is set and bounce otherwise.
245         * elf/dlopen.c: Rename function to __dlopen_check and make version
246         named dlopen.
247         * elf/dlopenold.c: New file.
249 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
251         * elf/Versions [libc, GLIBC_2.01]: Add _dl_global_scope_alloc.
252         * elf/dl-open.c (_dl_global_scope_alloc): Move definition to
253         * elf/dl-deps.c: ...here.
254         * elf/dl-open.c (dl_open_worker): Call _dl_map_object_deps with
255         new parameter and expect result.  Remove code handling RTLD_GLOBAL.
256         Add return value of _dl_map_object_deps to
257         _dl_main_searchlist->r_nlist.
258         * elf/dl-deps.c (_dl_map_object_deps): Change to return value.
259         If we parameter GLOBAL is nonzero add object and dependencies to
260         the global scope.
261         * elf/ldsodefs.h: Adapt prototype for _dl_map_object_deps.
262         * elf/rtld.c (dl_main): Call _dl_map_object_deps with new parameter.
263         Mark all objects as in global scope.
264         * elf/dl-object.c (_dl_new_object): Initialize l_global to zero.
266         * sysdeps/unix/sysv/linux/bits/sockunion.h: Add Econet support.
268         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add .L prefix to symbols
269         used in macro magic.
271 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
273         * sysdeps/unix/sysv/linux/netatalk/at.h: Include <linux/atalk.h>
274         before <sys/socket.h> to make sockaddr_at available to
275         <sys/socket.h>.
277         * posix/glob.h: Remove __P from parameter lists of declarations.
279 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
281         * time/tzset.c (tz_compute): Remove unused parameter timer.
282         Change caller.
284 1998-11-02  Mark Kettenis  <kettenis@phys.uva.nl>
286         * sysdeps/generic/bits/types.h (__ipc_pid_t): New typedef.
288 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
290         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Remove
291         unnecessary test and add cast.
293 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
295         * posix/getconf.c: Add initializer SYSCONF for CHARCLASS_NAME_MAX.
297         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Remove unused
298         parameter fd.
299         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
301 1998-11-02  Mark Kettenis  <kettenis@phys.uva.nl>
303         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
304         fds_bits member.
305         (__FDMASK): Use __fd_mask instead of unsigned long int in cast.
307 1998-10-31  Richard Henderson  <rth@cygnus.com>
309         * math/Makefile (gmp-objs): Add udiv_qrnnd.
311         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL*): New.
312         (inline_syscall*): New.
313         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): New.
314         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Kill __syscall* bits.
316 1998-10-31  Ulrich Drepper  <drepper@cygnus.com>
318         * aclocal.m4 (LIBC_PROG_FOO_GNU): Name output file using -o to
319         avoid ld test generating an unwanted file.
321         * posix/PTESTS: Remove comment about incorrect test (it is correct).
323 1998-10-30  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
325         * sunrpc/Versions: Add xdr_uint32_t and xdr_int32_t.
326         * sunrpc/pmap_rmt.c: Initialize clnt_stat variable.
327         * sunrpc/rpc/auth_des.h: Use uint32_t for time values.
328         * sunrpc/rpc/xdr.h: Add INT32 support.
329         * sunrpc/xdr.c: Implement xdr_int32_t and xdr_uint32_t .
331         * nis/nis_call.c: Changes for new 64bit clean NIS+ interface.
332         * nis/nis_callback.c: Likewise.
333         * nis/nis_creategroup.c: Likewise.
334         * nis/nis_defaults.c: Likewise.
335         * nis/nis_intern.h: Likewise.
336         * nis/nis_lookup.c: Likewise.
337         * nis/nis_ping.c: Likewise.
338         * nis/nis_print.c: Likewise.
339         * nis/nis_table.c: Likewise.
340         * nis/nis_util.c: Likewise.
341         * nis/nis_xdr.c: Likewise.
342         * nis/rpcsvc/nis.h: Likewise.
343         * nis/rpcsvc/nis.x: Likewise.
344         * nis/rpcsvc/nis_callback.h: Likewise.
345         * nis/rpcsvc/nis_object.x: Likewise.
346         * nis/rpcsvc/nislib.h: Likewise.
348         * nis/rpcsvc/yp.h: Remove casts to (u_long).
349         * nis/rpcsvc/yp_prot.h: Likewise.
350         * nis/rpcsvc/ypupd.h: Likewise.
351         * nis/ypclnt.c: Change %ld to %d in sprintf.
353 1998-10-29  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
355         * manual/locale.texi (Formatting Numbers): Fix strfmon examples.
357 1998-10-28  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
359         * sysdeps/generic/bits/select.h (__FD_ZERO): Change '\0' to plain
360         0, __fd_mask is usually not a char.
362 1998-10-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
364         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Allow
365         compilation on systems without rt_* syscalls (e.g. on Linux 2.0).
366         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
367         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
368         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
369         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise
370         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
371         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
373         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Allow
374         compiling on systems without rt_sigaction syscall.
375         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction):
376         Likewise.
378 1998-10-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
380         * time/strptime.c (HERE_D_FMT): Fix typo.
381         Reported by Claus Heine <heine@math1.rwth-aachen.de>, PR libc/842.
383 1998-10-30  Ulrich Drepper  <drepper@cygnus.com>
385         * catgets/Makefile (tests): Add rules to run gencat on test1.msg.
386         (generate): Add test1.cat and test1.h.
387         (distribute): Add test1.msg.
388         * catgets/test1.msg: New file.
390         * catgets/gencat.c: Do a better job in initializing dynamic
391         memory [PR libc/844].
393 1998-10-30 18:11  Ulrich Drepper  <drepper@cygnus.com>
395         * iconv/gconv_conf.c (__gconv_read_conf): Don't define as
396         internal_function since it is called through a pointer.
397         * iconv/gconv_db.c (free_derivation): Likewise.
398         * iconv/gconv_int.h: Adjust prototype od __gconv_read_conf.
400         * posix/wordexp.c: Add internal_function to parse_backtick definition.
401         * rt/aio_misc.c: Add internal_function to __aio_free_request,
402         __aio_find_req, __aio_find_req_fd, and __aio_enqueue_request
403         definitions.
404         * rt/aio_notify.c: Add internal_function to __aio_notify_only and
405         __aio_notify definitions.
406         * wcsmbsload.c: Add internal_function to __wcsmbs_load_conv definition.
408 1998-10-30  Ulrich Drepper  <drepper@cygnus.com>
410         * Makerules (build-shlib): Add -O to generate optimized shared
411         objects.
413 1998-10-30 11:15  Ulrich Drepper  <drepper@cygnus.com>
415         * sysdeps/libm-i387/e_fmod.S: Remove invalid operand size suffix.
416         * sysdeps/libm-i387/e_fmodf.S: Likewise.
417         * sysdeps/libm-i387/e_fmodl.S: Likewise.
418         * sysdeps/libm-i387/s_ilogb.S: Likewise.
419         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
420         * sysdeps/libm-i387/s_logb.S: Likewise.
421         * sysdeps/libm-i387/s_logbf.S: Likewise.
422         * sysdeps/libm-i387/s_remquo.S: Likewise.
423         * sysdeps/libm-i387/s_remquof.S: Likewise.
424         * sysdeps/libm-i387/s_remquol.S: Likewise.
425         * sysdeps/libm-i387/s_significand.S: Likewise.
426         * sysdeps/libm-i387/s_significandf.S: Likewise.
428 1998-10-30  Geoff Keating  <geoffk@ozemail.com.au>
430         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Really correct
431         _llseek.
433 1998-10-30  Geoff Keating  <geoffk@ozemail.com.au>
435         * math/libm-test.c: Loosen deltas for sin(0.9)^2+cos(0.9)^2.
437 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
439         * stdio-common/vfprintf.c (vfprintf): Fix the remaining premature
440         returns without cleaning up the lock.
441         (printf_unknown): Add label all_done.
443         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Keep Linux 2.0
444         kernels in mind when reading /proc/self/fd/FD.
445         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
447         * nscd/nscd.c (doc): It's "Name Service" not "Name Switch".
449         * malloc/mtrace.c (tr_where): Replace snprintf call by mempcpy and
450         _fitoa.
452         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Try reading
453         /prof/self/fd/FD first.
454         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
456         * stdio-common/_itoa.h (_fitoa_word): New inline function.  Write
457         formatted number starting at given position and return pointer to
458         following byte.
459         (_fitoa): Likewise, for long long.
461 1998-10-29  Roland McGrath  <roland@baalperazim.frob.com>
463         * sysdeps/unix/sysv/linux/bits/sem.h,
464         sysdeps/unix/sysv/linux/bits/ipc.h,
465         sysdeps/unix/sysv/linux/bits/shm.h,
466         sysdeps/unix/sysv/linux/bits/msq.h: Moved to ...
467         * sysdeps/gnu/bits/sem.h, sysdeps/gnu/bits/ipc.h,
468         sysdeps/gnu/bits/shm.h, sysdeps/gnu/bits/msq.h: ... here,
469         so the same bits will be used for the Hurd.
471 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
473         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Allow
474         compiling on systems without rt_sigaction syscall.
476 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
478         * Makeconfig (sysdep-subdirs): Allow Subdirs files to remove
479         directories as well as add them.
481 1998-10-28  Philip Blundell  <pb@nexus.co.uk>
483         * sysdeps/unix/sysv/linux/neteconet/ec.h: New file.  Support for
484         AF_ECONET sockets as found in recent Linux 2.1 kernels.
485         * sysdeps/unix/sysv/linux/Dist: Distribute it.
486         * sysdeps/unix/sysv/linux/Makefile: Install it.
488 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
490         * string/bits/string2.h: __USE_GNU already implies __USE_MISC.
492 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
494         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
495         fds_bits member.
496         * sysdeps/unix/sysv/linux/alpha/bits/types.h (__FDS_BITS): Likewise.
497         * sysdeps/unix/sysv/linux/bits/types.h (__FDS_BITS): Likewise.
498         * sysdeps/unix/sysv/linux/mips/bits/types.h (__FDS_BITS): Likewise.
499         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h (__FDS_BITS):
500         Likewise.
501         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h (__FDS_BITS):
502         Likewise.
503         * sysdeps/generic/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
504         __FD_ISSET): Use it.
505         * sysdeps/i386/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
506         __FD_ISSET): Likewise.
508 1998-10-28  Geoff Keating  <geoffk@ozemail.com.au>
510         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Tidy up, correct
511         llseek.
513         * sysdeps/unix/sysv/linux/powerpc/pread.c: Do not use the i386 version.
514         Instead call the system call wrapper function using an 64bit argument.
515         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
516         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
517         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
519 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
521         * signal/signal.h: Don't include <time.h> for timespec, add
522         forward declaration.
524         * sysdeps/i386/bits/select.h [!__USE_XOPEN]: Add special version
525         of __FD_* macros which use __fds_bits.
526         * sysdeps/generic/bits/select.h: Likewise.
527         Reported by Matt McLean <keys@yikes.com>.
529 1998-10-27  Philip Blundell  <pb@nexus.co.uk>
531         * elf/elf.h: Update ARM definitions.
533 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
535         * signal/signal.h: Include bits/sigthread.h only for Unix98.
537 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
539         * include/libc-symbols.h: If HAVE_BUILTIN_EXPECT is not defined
540         define __builtin_expect as a macro substituting to the first
541         argument.
542         * config.h.in: Define HAVE_BUILTIN_EXPECT.
543         * configure.in: Add test for __builtin_expect.
545         * sysdeps/unix/sysv/linux/bits/types.h: Include
546         bits/pthreadtypes.h only not for POSIX 199506.
547         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
548         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
549         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
551 1998-10-26  Mark Kettenis  <kettenis@phys.uva.nl>
553         * sysdeps/unix/sysv/linux/Versions: Move shutdown ...
554         * socket/Versions [libc, GLIBC_2.0]: ... to here.
556 1998-10-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
558         * include/stdio.h: Included <stddef.h> for size_t.
560         * stdio/stdio.h: Move __path_search, __gen_tempname, __libc_fatal
561         to ...
562         * include/stdio.h: ...here.
563         * libio/stdio.h: Removed __path_search, __gen_tempname, __libc_fatal.
565 1998-10-26 11:09  Ulrich Drepper  <drepper@cygnus.com>
567         * time/Makefile (tests): Add tst-posixtz.
568         * time/tst-posixtz.c: New file.
570 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
572         * elf/rtld.c (process_envvars): Accept any non-null value of
573         LD_BIND_NOW, as mandated by the ABI.
575 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
577         * sysdeps/unix/sysv/linux/pread.c: Rename __syscall_pread64 to
578         __syscall_pread.
579         * sysdeps/unix/sysv/linux/pwrite.c: Rename __syscall_pwrite64 to
580         __syscall_pwrite.
581         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
582         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
583         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
584         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
585         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.  Remove
586         duplicate entries.
587         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Remove
588         s_pread64 and s_pwrite64.
589         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
591 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
593         * sysdeps/unix/sysv/linux/llseek.c: Use INLINE_SYSCALL.
594         * sysdeps/unix/sysv/linux/arm/syscalls.list: Rename __sys_llseek
595         to __syscall__llseek.
596         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
597         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
598         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove entry for
599         __sys_llseek.
601 1998-10-26  Cristian Gafton  <gafton@redhat.com>
603         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add s_setfsgid
604         and s_setfsuid.
606 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
608         * time/tzset.c (tz_compute): Correct last patch and describe this
609         in a comment.
611 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
613         * sysdeps/unix/sysv/linux/m68k/Makefile [subdir=signal]: Remove
614         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo,
615         rt_sigaction and rt_sigpending.
616         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Remove all entries
617         for __syscall_* functions.
618         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Implement INLINE_SYSCALL.
620 1998-10-26  Roland McGrath  <roland@baalperazim.frob.com>
622         * hurd/Versions: Add _hurd_dtable, _hurd_dtablesize,
623         _hurd_dtable_lock, _hurd_intern_fd.
625         * sysdeps/mach/hurd/Versions: Add cthread_keycreate,
626         cthread_getspecific, cthread_setspecific, __libc_getspecific.
628         * mach/Versions: Fix typo in last change.
630 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
632         * time/tzset.c (tz_compute): If time to switch to DST is later in
633         the year switch back in the next year.
634         Reported by jwitford@hutch.com.au.
636 1998-10-24  Mark Kettenis  <kettenis@phys.uva.nl>
638         * mach/Versions: Add evc_wait, mach_error, mach_error_string,
639         mach_error_type, mach_msg_destroy, mig_deallocate_reply_port.
640         Remove __mach_host_self, __mach_reply_port, __mach_setup_thread,
641         __mach_port_allocate, __mach_port_allocate_name,
642         __mach_port_insert_right __mutex_trylock, __mutex_lock,
643         __mutex_unlock, __swtch, __switch, __task_create, __task_suspend,
644         __task_set_special_port, __task_terminate, __thread_depress_abort,
645         __thread_switch, __vm_allocate, __vm_deallocate, __vm_map.  These
646         functions are not used outside libc.
648         * sysdeps/mach/hurd/Versions: New file.
649         [libc, GLIBC_2.0]: Add _cthread_exit_routine and
650         _cthread_init_routine.  These are set by the Hurd cthreads library.
651         Add __getcwd, __mmap.  If we don't add these, the weak definitions in
652         the dynamic linker will not be replaced by the corresponding shared
653         library routines once they are loaded.
655 1998-10-21  Mark Kettenis  <kettenis@phys.uva.nl>
657         * sysdeps/mach/hurd/i386/init-first.c: Only define
658         __libc_enable_secure if PIC is not defined.
660 1998-10-25  Roland McGrath  <roland@baalperazim.frob.com>
662         * argp/Versions: Add _argp_unlock_xxx.  Lock-savvy functions call this
663         to recurse into argp.
665 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
667         * include/features.h: Define __USE_POSIS199506 is _POSIX_C_SOURCE is
668         greater or equal than 199506L.
670         * sysdeps/generic/bits/types.h (__fd_set): Define element as fds_bits
671         only is __USE_XOPEN.  Otherwise use __fds_bits.
672         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
673         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
674         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
675         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
676         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
678 1998-10-24  H.J. Lu  <hjl@gnu.org>
680         * locale/programs/charmap.c (parse_charmap): Accept tok_string
681         for <code_set_name>.
683 1998-10-25  H.J. Lu  <hjl@gnu.org>
685         * locale/programs/ld-ctype.c (ctype_finish): Also check
686         <space>.
688 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
690         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX199506.
692         * sysdeps/unix/sysv/linux/bits/types.h: Include pthreadtypes.h only
693         if __USE_POSIX199506 or __USE_UNIX98.
695 1998-10-24 22:34 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
697         * string/bits/string2.h: Inline strdup+friends only if
698         __USE_MISC || __USE_GNU (prevents namespace pollution).
700 1998-10-24  H.J. Lu  <hjl@gnu.org>
702         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (LOCK_SH,
703         LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD.
704         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (LOCK_SH, LOCK_EX,
705         LOCK_NB, LOCK_UN): Likewise.
706         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (LOCK_SH, LOCK_EX,
707         LOCK_NB, LOCK_UN): Likewise.
708         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (LOCK_SH, LOCK_EX,
709         LOCK_NB, LOCK_UN): Likewise.
710         * sysdeps/unix/sysv/linux/bits/fcntl.h (LOCK_SH, LOCK_EX,
711         LOCK_NB, LOCK_UN): Likewise.
713 1998-10-24  H.J. Lu  <hjl@gnu.org>
715         * libio/ioseekoff.c (_IO_seekoff): Check the valid dir value.
717         * libio/rewind.c (rewind): Clear the error.
719 1998-10-24  H.J. Lu  <hjl@gnu.org>
721         * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to
722         "buffer".
724 1998-10-24  H.J. Lu  <hjl@gnu.org>
726         * sysdeps/unix/sysv/linux/alpha/bits/time.h (timeval): Protect
727         with __need_timeval.
728         * sysdeps/unix/sysv/linux/mips/bits/time.h (timeval): Likewise.
729         * sysdeps/unix/sysv/linux/bits/time.h (timeval): Likewise.
731 1998-10-24  H.J. Lu  <hjl@gnu.org>
733         * signal/signal.h (timespec, siginfo_t, sigwaitinfo, sigtimedwait,
734         sigqueue): Protect with __USE_POSIX199309.
736 1998-10-24  H.J. Lu  <hjl@gnu.org>
738         * time/time.h (timespec): Protect with __USE_POSIX199309 instead of
739         __USE_POSIX.
741 1998-10-24  H.J. Lu  <hjl@gnu.org>
743         * libio/fileops.c (_IO_new_file_seekoff): Always resync with
744         the kernel file offset.
745         * libio/oldfileops.c (_IO_old_file_seekoff): Likewise.
747 1998-10-24  H.J. Lu  <hjl@gnu.org>
749         * time/tzfile.c (__tzfile_default): Set num_types to 2.
751 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
753         * rt/aio.h: Move __aio_init to...
754         * include/aio.h: ...here.
756 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
758         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate
759         definition of O_LARGEFILE.
761 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
763         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path
764         as first argument to statfs.
766 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
768         * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else.
770 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
772         * malloc/mtrace.c: Include <string.h> for strlen.
774 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
776         * sysdeps/mach/hurd/bits/environments.h: New file.
778         * sysdeps/mach/hurd/dl-sysdep.c (__getcwd): New weak function.
780         * mach/Versions, hurd/Versions: Add numerous symbols.
781         Remove libmachuser and libhurduser sections, punt
782         versioning for those libraries for now.
784         * misc/Versions: Add reboot here; it exists on all platforms.
785         * sysdeps/unix/sysv/linux/Versions: Remove reboot here.
787 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
789         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOFOLLOW): New
790         macro.
791         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
792         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
793         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_LARGEFILE,
794         O_NOFOLLOW, O_DIRECT): New macros.
795         (O_DIRECTORY): Correct definition according to official 2.1.126.
796         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECTORY,
797         O_NOFOLLOW): New macros.
799 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
801         * include/ldsodefs.h: Test HAVE_ELF instead of __ELF__.
803         * sysdeps/mach/hurd/opendir.c (__opendir): Return ENOENT for "".
804         (__opendir): Add trailing slash to name for open, for ENOTDIR check.
806 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
808         * sysdeps/unix/sysv/linux/i386/Dist: Add setresuid.c, setresgid.c,
809         setfsuid.c, and setfsgid.c.
810         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
811         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
812         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
814         * version.h (VERSION): Bump to 2.0.99.
816         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove duplicate
817         ustat definition.
819         * sysdeps/unix/sysv/linux/i386/Dist: Remove s_pread64.c and
820         s_pwrite64.c.
822         * posix/fnmath.h: Don't redefine __P when used in glibc.
823         * posix/glob.h: Likewise.
825         * inet/rcmd.c (__ivaliduser2): Fix memory leak.
826         Patch by Dick Streefland <dick_streefland@tasking.com>.
828         * stdio-common/tst-ungetc.c: Add more test cases.
830         * sysdeps/unix/sysv/linux/Dist: Add linux_fsinfo.h.
831         * sysdeps/unix/sysv/linux/fstatvfs.c: Move filesystem magic number
832         definitions to ...
833         * sysdeps/unix/sysv/linux/linux_fsinfo.h: ...here.  New file.
834         * sysdeps/unix/sysv/linux/fpathconf.c: New file.
835         * sysdeps/unix/sysv/linux/pathconf.c: New file.
836         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Handle _PC_LINK_MAX here.
837         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
839 1998-10-20  Philip Blundell  <pb@nexus.co.uk>
841         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: Include
842         <asm/ptrace.h> to define struct pt_regs.
843         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Don't bother
844         including <asm/ptrace.h> here.
846         * sysdeps/unix/sysv/linux/arm/sysdep.S: Remove spurious call to
847         C_SYMBOL_NAME macro.
849 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
851         * sysdeps/generic/sys/ptrace.h (__ptrace_request): Remove comma at
852         end of enumerator list.
853         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Likewise.
854         * posix/wordexp.h: Likewise.
856         * db/db.h: Use __PMT instead of __P in typedefs.
857         * db/mpool.h: Likewise.
858         * sysdeps/generic/bits/siginfo.h: Likewise.
859         * nis/rpcsvc/ypclnt.h: Likewise.
861 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
863         * libio/genops.c (_IO_seekmark): When switching to backup buffer
864         make sure all characters from the read buffer are read after
865         switching back to it.
867 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
869         * configure.in: Add support for Cygnus GNUPro compilers.
871 1998-10-22  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
873         * stdio/stdio.h: Use __PMT instead of __P in typedefs.
875         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use __PMT instead
876         of __P for sa_restorer.
877         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
878         * sysdeps/unix/sysv/linux/kernel_sigaction.h (struct
879         kernel_sigaction, old_kernel_sigaction): Likewise.
881 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
883         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add __syscall_pread
884         and __syscall_pwrite aliases.
886         * sunrpc/rpc/auth.h (AUTH_DH): New macro.  Alias for AUTH_DES.
888         * sysdeps/unix/sysv/linux/i386/sysdep.h: Drastically simplify and
889         improve INLINE_SYSCALL using macro assembler magic.
891 1998-10-22  H.J. Lu  <hjl@gnu.org>
893         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Add
894         sanity check for n.
895         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Likewise.
897         * sysdeps/posix/fpathconf.c (__fpathconf): Set errno to
898         EINVAL if errno == ENODEV.  Tested by VSX-PCT.
900         * sysdeps/posix/isatty.c (__isatty): Don't reset errno.  Tested
901         by VSX-PCT.
903         * posix/execvp.c (execvp): Check "".  Tested by VSX-PCT.
905 1998-10-22  Philip Blundell  <pb@nexus.co.uk>
907         * sysdeps/unix/arm/sysdep.h: Wrap assembler macros in #ifdef
908         __ASSEMBLER__.
910 1998-10-21  Ulrich Drepper  <drepper@cygnus.com>
912         * sysdeps/unix/sysv/linux/i386/sysdep.h: Remove EXTRAVARS_* macros
913         and adjust formats.
915 1998-10-21 14:38  Ulrich Drepper  <drepper@cygnus.com>
917         * sysdeps/unix/sysdep.h (INLINE_SYSCALL): New macro.  Simply call
918         __syscall_* function.
919         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Use INLINE_SYSCALL instead
920         of calling __syscall_* function.
921         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
922         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
923         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
924         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
925         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
926         * sysdeps/unix/sysv/linux/getresgid.c: Likewise.
927         * sysdeps/unix/sysv/linux/getresuid.c: Likewise.
928         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
929         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
930         * sysdeps/unix/sysv/linux/poll.c: Likewise.
931         * sysdeps/unix/sysv/linux/pread.c: Likewise.
932         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
933         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
934         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
935         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
936         * sysdeps/unix/sysv/linux/readv.c: Likewise.
937         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
938         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
939         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
940         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
941         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
942         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
943         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
944         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
945         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
946         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
947         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
948         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
949         * sysdeps/unix/sysv/linux/writev.c: Likewise.
950         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
951         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
952         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
953         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
954         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
955         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
956         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
957         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
958         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
959         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
960         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
961         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
962         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
964         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INLINE_SYSCALL using
965         inline assembler.
966         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove various
967         __syscall_* definitions.
969         * sysdeps/unix/sysv/linux/syscalls.list: Move various __syscall_*
970         definitions to...
971         * sysdeps/unix/sysv/linux/alpha/syscalls.list: ...here...
972         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
973         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
974         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
975         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
976         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
977         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
979         * sysdeps/unix/sysv/linux/Makefile [subdir=signal] (sysdep_routines):
980         Move definition to...
981         * sysdeps/unix/sysv/linux/alpha/Makefile: ...here...
982         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
983         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
984         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
985         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
986         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
987         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
989         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
990         (sysdep_routines): Remove s_pread64 and s_pwrite64.
992         * sysdeps/unix/sysv/linux/i386/pread.c: New file.
993         * sysdeps/unix/sysv/linux/i386/pread64.c: New file.
994         * sysdeps/unix/sysv/linux/i386/pwrite.c: New file.
995         * sysdeps/unix/sysv/linux/i386/pwrite64.c: New file.
996         * sysdeps/unix/sysv/linux/i386/s_pread64.S: Removed.
997         * sysdeps/unix/sysv/linux/i386/s_pwrite64.S: Removed.
999 1998-10-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1001         * sysdeps/unix/sysv/linux/siglist.h: Fix some typos in these files
1002         and bring them in synch.
1003         * sysdeps/unix/siglist.c: Likewise.
1004         Reported by Vladimir Michl <michlv@risc.upol.cz> [PR libc/832].
1006 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1008         * sysdeps/unix/sysv/linux/i386/setresuid.c: Allow -1 as arguments.
1009         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1011         * sysdeps/unix/sysv/linux/i386/setreuid.c: New file.
1012         * sysdeps/unix/sysv/linux/i386/setregid.c: New file.
1013         * sysdeps/unix/sysv/linux/m68k/setreuid.c: New file.
1014         * sysdeps/unix/sysv/linux/m68k/setregid.c: New file.
1015         * sysdeps/unix/sysv/linux/arm/setreuid.c: New file.
1016         * sysdeps/unix/sysv/linux/arm/setregid.c: New file.
1017         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: New file.
1018         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: New file.
1019         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add s_setreuid and
1020         s_setregid.
1021         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
1022         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1023         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1025 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1027         * sunrpc/rpc_main.c (close_output, close_input): New functions.
1028         (c_output, h_output, s_output, l_output, t_output, svc_output,
1029         clnt_output, mkfile_output): Call them at the end.
1031 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1033         * db/Makefile (LDFLAGS-db1.so): New variable, to avoid duplicating
1034         link command.
1036 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1038         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Add real contents.
1039         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add s_setfs[ug]id.
1041 1998-10-20  Ulrich Drepper  <drepper@cygnus.com>
1043         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_pread64 and
1044         s_pwrite64.
1045         * sysdeps/unix/sysv/linux/powerpc/pread.c: New file.
1046         * sysdeps/unix/sysv/linux/powerpc/pread64.c: New file.
1047         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: New file.
1048         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: New file.
1049         Patch by Geoffrey KEATING <geoffk@discus.anu.edu.au>.
1051 1998-10-18  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1053         * sysdeps/unix/opendir.c: Check at runtime for kernel support for
1054         O_DIRECTORY.
1056 1998-10-20  H.J. Lu  <hjl@gnu.org>
1058         * sysdeps/unix/sysv/linux/i386/setresuid.c (__setresuid): Fix
1059         argument types.
1061 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
1063         * math/tgmath.h: Make nested function calls work.
1065         * include/ldsodefs.h: Fix typo.
1067         * posix/Makefile (tests): Add tst-preadwrite.
1068         * posix/tst-preadwrite.c: New file.
1070         * sysdeps/unix/opendir.c (__opendir): Add back fstat call to make
1071         sure that descriptor is in any case for a directory.
1073 1998-10-19 18:59 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1075         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val.
1076         (atan2): Takes two arguments.
1078 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
1080         * include/ldsodefs.h: New file.
1082         * iconv/gconv.c: Include ldsodefs.h, not elf/ldsodefs.h.
1083         Remove change to avoid using _CALL_DL_FCT.
1084         * iconv/gconv_db.c: Likewise.
1085         * iconv/gconv_dl.c: Likewise.
1086         * iconv/skeleton.c: Likewise, here for DL_CALL_FCT.
1087         * malloc/mtrace.c: Include ldsodefs.h, not elf/ldsodefs.h.
1088         * nss/nsswitch.c: Likewise.
1089         * nss/nsswitch.h: Likewise.
1091 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
1093         * sunrpc/Makefile (otherlibs): If static NSS is in use, set to the
1094         required libraries.
1095         * login/Makefile (otherlibs): Likewise.
1096         * nscd/Makefile (otherlibs): Likewise.
1097         * Makeconfig (link-libc) [! build_shared]: Add $(otherlibs).
1099         * debug/Makefile (install-bin): Only build catchsegv if using ELF.
1101         * inet/Makefile: Add -DSTATIC_NSS to CFLAGS.
1103 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
1105         * sysdeps/unix/sysv/linux/arm/syscalls.list: Added setfsgid
1106         and setfsuid.
1108 1998-10-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1110         * nscd/connections.c: Fix typos in comments and strings.
1112         * nscd/nscd.conf: Update according to recent changes to nscd.
1114         * nscd/cache.c (prune_cache): Remove wrong comment.
1116 1998-10-19 13:24  Ulrich Drepper  <drepper@cygnus.com>
1118         * locale/programs/ld-collate.c (collate_startup): Clear bit for this
1119         category in copy_posix.
1120         (collate_finish): Don't warn about UNDEFINED not being defined.
1121         * locale/programs/ld-ctype.c (ctype_startup): Clear bit for this
1122         category in copy_posix.
1123         * locale/programs/ld-messages.c (messages_startup): Likewise.
1124         * locale/programs/ld-monetary.c (monetary_startup): Likewise.
1125         * locale/programs/ld-numeric.c (numeric_startup): Likewise.
1126         * locale/programs/ld-time.c (time_startup): Likewise.
1127         * locale/programs/localedef.c: Move copy_def_list_t definition into
1128         locales.h.  Define copy_posix variable.
1129         (main): Before processing copy list add &copy_posix to copy_list.
1130         * locale/programs/locales.h: Add definition of copy_def_list_t.
1131         * locale/programs/locfile.c: Clear bit for appropriate category in
1132         copy_posix.mask for copy instruction.
1134 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
1136         * sysdeps/unix/sysv/linux/i386/setresgid.c: Remove #include of
1137         non-existing file with generic implementation.
1138         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1140 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
1142         * iconv/gconv_db.c: Include ELF header only if STATIC_GCONV is not
1143         defined.  Avoid using _CALL_DL_FCT if it is not defined.
1144         * iconv/gconv.c: Likewise.
1146 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
1148         * nscd/connections.c (dbs): Define defualt values for timeouts and
1149         set enabled to 0 by default.
1150         (CACHE_PRUNE_INTERVAL): New constant.  Use it instead of magical 15 in
1151         nscd_run.
1153         * locale/C-ctype.c (_nl_C_LC_CTYPE_class): Clear ISCNTRL bit for
1154         character >= 0x80.
1155         (_nl_C_LC_CTYPE_class32): Likewise.
1156         Reported by HJ Lu.
1158 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
1160         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
1161         _HURD_THREADVAR_DL_ERROR.
1163         * hurd/Makefile (user-interfaces): Add login, password.
1165         * sysdeps/mach/hurd/Makefile (+cflags): Append -Wno-parentheses.
1167 1998-08-06  Mark Kettenis  <kettenis@phys.uva.nl>
1169         [submitted 1998-08-06]
1170         * mach/Machrules: Create target directory and force re-evaluation
1171         of Makefile to prevent `make' from optimizing away most of the
1172         implicit rules and `vpath' directives.
1174 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
1176         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): If _hurd_msgport_thread
1177         is null, short-circuit to __mach_msg.
1179         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): New function,
1180         broken out of init1.
1181         (init1) [PIC]: Call it.
1182         (__libc_init_first) [! PIC]: Call it.
1184         * sysdeps/mach/hurd/i386/init-first.c (init1): Don't call
1185         __libc_init_secure.  Instead set __libc_enable_secure here from
1186         the exec flags.
1187         (__libc_enable_secure): New variable it.
1188         * sysdeps/mach/hurd/enbl-secure.c: New file, empty placeholder module.
1190 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
1192         * nscd/nscd-client.h: New file, broken out of "nscd.h".
1193         * nscd/nscd.h: Move defns needed by clients to "nscd-client.h",
1194         and #include that.
1195         * nscd/Makefile (distribute): Add nscd-client.h.
1196         * nscd/nscd_getgr_r.c, nscd/nscd_gethst_r.c, nscd/nscd_getpw_r.c:
1197         Include "nscd-client.h" instead of "nscd.h"
1199 1998-10-18  Ulrich Drepper  <drepper@cygnus.com>
1201         * sysdeps/posix/getcwd.c (__getcwd): Don't stop processing
1202         directory entries when a lstat call fails.
1203         Patch by Colin Plumb <colin@nyx.net>.
1205         * resolv/nss_dns/dns-host.c: Add missing errnop parameter to the
1206         NSS functions.
1207         * resolv/nss_dns/dns-network.c: Likewise.
1209         * grp/Makefile: Don't search for linuxthreads in add-ons, use
1210         have-thread-library to determine whether threads are available.
1211         * pwd/Makefile: Remove wrong comment.
1213         * inet/Makefile: Define CFLAGS-gethstbyad_r.c, CFLAGS-gethstbynm_r.c,
1214         and CFLAGS-gethstbynm2_r.c to -DUSE_NSCD=1.
1216         * locale/C-messages.c: Define default strings for YESTR and NOSTR.
1218         * nss/Versions: Add __nss_hosts_lookup.
1220         * nss/getXXbyYY.c: Remove unneeded assignment.
1222         * nss/getXXbyYY_r.c: Include nscd/nscd_proto.h only if needed.
1224         Almost complete rewrite of the NSCD to make it smaller, faster,
1225         add more functionnality and make it easier to extend.
1226         * nscd/Makfile (routines): Add nscd_gethst_r.
1227         (nscd-modules): Add hstcache, gethstbyad_r, gethstbynm2_r, and cache.
1228         * nscd/cache.c: New file.
1229         * nscd/gethstbyad_r.c: New file.
1230         * nscd/gethstbynm2_r.c: New file.
1231         * nscd/hstcache.c: New file.
1232         * nscd/nscd_gethst_r.c: New file.
1233         * nscd/connections.c: Rewritten.  Don't start new thread for every
1234         new connection.  Use a fixed set of threads which handle all
1235         connections and also the cache cleanup.
1236         * nscd/grpcache.c: Rewritten to use generic cache handling functions
1237         in cache.c.
1238         * nscd/nscd.c: Recognize new parameter nthreads.  Adjust initialization
1239         for rewrite.  Remove handle_requests function.
1240         * nscd/nscd.h (NSCD_VERSION): Bump to 2.
1241         Define new data structure for the new unified cache and the host
1242         database entries.
1243         * nscd/nscd_conf.c: Rewrite parsing partly to allow adding of more
1244         databases easily.  Recognize check-files and threads definitions.
1245         * nscd/nscd.conf: Add definition of enable-cache and check-files to
1246         passwd and group definitions.  Add new set of definitions for hosts.
1247         * nscd/nscd_getgr_r.c: Rewrite for new protocol.
1248         * nscd/nscd_getpw_r.c: Likewise.
1249         * nscd/nscd_proto.h: Add prototype for host database functions.
1250         * nscd/nscd_stat.c: Rewrite to simplify printing of information
1251         for many databases.
1252         * nscd/dbg_log.c: Remove unnecessary variable initializations.
1253         Global variable debug_flag is renamed to dbg_level.
1254         * nscd/dbg_log.h: Declare set_logfile.
1256 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
1258         * sysdeps/unix/sysv/linux/bits/fcntl.h: Add dummy definition of
1259         O_LARGEFILE back.
1261 1998-10-16  Paul Eggert  <eggert@shade.twinsun.com>
1263         * time/mktime.c: Some systems require <unistd.h> to be
1264         included before <time.h> for localtime_r to be declared
1265         properly.
1266         * time/strftime.c: Likewise.
1268 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
1270         * db/Makefile: Add rule to generate shared object with the soname
1271         from glibc 2.0.
1273         * sysdeps/unix/opendir.c: Use O_DIRECTORY if available.  If not
1274         available double check to verify it's a directory.
1276         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add O_DIRECTORY.
1277         * sysdeps/unix/sysv/linux/mips/bits/fcntl: Likewise.
1278         * sysdeps/unix/sysv/linux/bits/fcntl.h: Remove O_* constants which
1279         are not generally available.
1280         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: New file.
1282         * sysdeps/unix/sysv/linux/i386/setgroups.c: Add range check for values.
1283         * sysdeps/unix/sysv/linux/arm/Makefile: New file.
1284         * sysdeps/unix/sysv/linux/arm/setegid.c: New file.
1285         * sysdeps/unix/sysv/linux/arm/seteuid.c: New file.
1286         * sysdeps/unix/sysv/linux/arm/setfsgid.c: New file.
1287         * sysdeps/unix/sysv/linux/arm/setfsuid.c: New file.
1288         * sysdeps/unix/sysv/linux/arm/setgid.c: New file.
1289         * sysdeps/unix/sysv/linux/arm/setgroups.c: New file.
1290         * sysdeps/unix/sysv/linux/arm/setresgid.c: New file.
1291         * sysdeps/unix/sysv/linux/arm/setresuid.c: New file.
1292         * sysdeps/unix/sysv/linux/arm/setuid.c: New file.
1293         * sysdeps/unix/sysv/linux/i386/setegid.c: New file.
1294         * sysdeps/unix/sysv/linux/i386/seteuid.c: New file.
1295         * sysdeps/unix/sysv/linux/i386/setfsgid.c: New file.
1296         * sysdeps/unix/sysv/linux/i386/setfsuid.c: New file.
1297         * sysdeps/unix/sysv/linux/i386/setgid.c: New file.
1298         * sysdeps/unix/sysv/linux/i386/setgroups.c: New file.
1299         * sysdeps/unix/sysv/linux/i386/setresgid.c: New file.
1300         * sysdeps/unix/sysv/linux/i386/setresuid.c: New file.
1301         * sysdeps/unix/sysv/linux/i386/setuid.c: New file.
1302         * sysdeps/unix/sysv/linux/m68k/setegid.c: New file.
1303         * sysdeps/unix/sysv/linux/m68k/seteuid.c: New file.
1304         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: New file.
1305         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: New file.
1306         * sysdeps/unix/sysv/linux/m68k/setgid.c: New file.
1307         * sysdeps/unix/sysv/linux/m68k/setgroups.c: New file.
1308         * sysdeps/unix/sysv/linux/m68k/setresgid.c: New file.
1309         * sysdeps/unix/sysv/linux/m68k/setresuid.c: New file.
1310         * sysdeps/unix/sysv/linux/m68k/setuid.c: New file.
1311         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: New file.
1312         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: New file.
1313         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: New file.
1314         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: New file.
1315         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: New file.
1316         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: New file.
1317         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
1318         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
1319         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: New file.
1321         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add s_setgid, s_setresuid,
1322         s_setresgid, and s_setuid.
1323         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
1324         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
1325         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1326         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
1327         (sysdep_routines): Add setfsgid, setfsuid, setresgid, and setresuid.
1328         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1329         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
1331 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
1333         * time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
1334         localtime_t declaration on some systems.
1336 1998-10-16 10:07  Ulrich Drepper  <drepper@cygnus.com>
1338         * iconv/Makefile [! elf]: Define CFLAGS-gconv_simple.c to
1339         -DSTATIC_GCONV.
1340         * iconv/skeleton.c: Include ELF header only of STATIC_GCONV is not
1341         defined.  Avoid using DL_CLL_FCT if it is not defined.
1343 1998-10-16 10:40 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1345         * resolv/arpa/nameser.h: Include sys/types.h unconditionally.
1346         Include endian.h unconditionally.  Remove portability goop
1347         depending on #ifdef linux, #ifdef BSD, #ifdef machine-type.
1349 1998-10-16 11:39 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1351         * sunrpc/rpc/types.h: Mark file so fixincludes won't modify it.
1353 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
1355         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Remove __kernel_termios
1356         again.  Use char[44] to define size of the struct.
1358         * sysdeps/unix/sysv/linux/arm/Dist: Add bits/armsigctx.h.
1360 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1362         * string/bits/string2.h (strcmp): Don't cache the result of
1363         __builtin_constant_p in variables, otherwise constant folding
1364         can fail in big functions.
1366 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1368         * string/bits/string2.h: Add prototypes for the new inline
1369         functions.
1371 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
1373         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Include termios.h to
1374         have all types defined.
1375         Patch by Matti Aarnio <matti.aarnio@sonera.fi>.
1377 1998-10-08  Paul Eggert  <eggert@twinsun.com>
1379         * time/mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
1380         Define also if HAVE_LOCALTIME_R && defined localtime_r, with
1381         a body that merely expands localtime_r; this works around a
1382         bug in Digital Unix 4.0A and 4.0D.
1384 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
1386         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_ioctl.
1387         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: New file. Define
1388         __ioctl to __syscall_ioctl and include Linux version of this file.
1389         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
1390         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: New file.  Redirect
1391         ioctl calls which handle struct termios.
1392         Based on a patch by Dan Jacobowitz <drow@false.org>.
1394 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
1396         * version.h (VERSION): Bump to 2.0.98.
1398         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Define __kernel_termios
1399         here instead of including kernel_termios.h.
1401 1998-10-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1403         * sysdeps/unix/opendir.c (__opendir): Remove label lose2 which is
1404         unnecessary after the changes of 1998-10-12.
1406 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
1408         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
1409         parameter format string.
1410         (inline_outw): Likewise.
1412         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
1413         string.h to get memcpy prototype and NULL definition.
1415 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1417         * misc/sys/cdefs.h (__THROW): New macro.
1418         * argp/argp.h: Use it to replace the kludgey __P in inline
1419         function definitions.
1420         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1421         * stdlib/stdlib.h: Likewise.
1422         * wcsmbs/wchar.h: Likewise.
1423         * libio/stdio.h: Likewise.
1424         * stdio/stdio.h: Likewise.
1425         * sysdeps/wordsize-64/inttypes.h: Likewise.
1426         * sysdeps/wordsize-32/inttypes.h: Likewise.
1427         * string/argz.h: Likewise.
1428         * io/sys/stat.h: Likewise.
1430 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1432         * Rules (stdio_lim): New variable.
1433         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
1434         on Rules and config.make, use $(move-if-change) to avoid unnessary
1435         recompilations, and cleanup command.
1436         (common-generated): Add bits/stdio_lim.st.
1438 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
1440         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
1441         variable to prevent warnings from use of modern CPU instructions.
1442         Patch by Richard Henderson <rth@cygnus.com>.
1444         * sysdeps/unix/opendir.c: Test whether NAME is directory before
1445         opening it.
1447 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
1449         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
1450         semicolon so that profiling works.
1452 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
1454         * sysdeps/generic/glob.c: #undef mempcpy before #define.
1456         * sysdeps/unix/bsd/clock.c: Use prototype defns.
1458 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
1460         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
1461         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
1463         * string/bits/string2.h [!_STRING_ARCH_unaligned]
1464         (__mempcpy_small): Add parameter for 1 byte copy and use it.
1465         Reported by Geoff Keating <geoffk@ozemail.com.au>.
1467 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
1469         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
1470         it is already defined in <bits/environments.h>.
1472 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
1474         * posix/ptestcases.h: Fix typo.
1476 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1478         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
1479         (regexec): Allocate regs.start and regs.end as one block.
1481 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1483         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
1484         enum decl.
1486 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
1488         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
1489         sigcontext union to ...
1490         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
1491         file.
1492         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
1493         version 2.0 kernels.
1495 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
1497         * malloc/mtrace.c (tr_reallochook): Produce better output for real
1498         reallocation case.
1500         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
1501         * argp/argp-xinl.c: Likewise.
1503         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
1504         Ruffian entry back.
1505         Patch by Christian Gafton.
1507 1998-10-08  Paul Eggert  <eggert@twinsun.com>
1509         * time/mktime.c (__mktime_internal): When the requested time falls
1510         in a spring-forward gap of size DT, return a time that is DT away
1511         from the requested time, preferring a time whose tm_isdst differs
1512         from the requested value.  Bump the max number of probes from 4 to
1513         6 to account for the extra probes needed to discover a
1514         spring-forward gap in the worst case.
1516 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
1518         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
1519         of the weird alpha architectures.
1520         Patch by Cristian Gafton <gafton@redhat.com>.
1522 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
1524         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
1525         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
1527 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
1529         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
1530         (dl_open_worker): Use realloc, not malloc to resize array.
1531         * elf/rtld.c (_dl_initial_searchlist): New variable.
1532         (_dl_main): Copy content of _dl_main_searchlist to
1533         _dl_initial_searchlist.
1534         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
1535         _dl_global_scope_alloc.
1536         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
1537         * elf/dl-close.c (_dl_close): When removing object with global
1538         scope remove allocated searchlist if no dynamically loaded object
1539         is on it anymore.
1540         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
1541         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
1543         * malloc/mtrace.c (tr_where): Don't print space in location string,
1544         print it afterwards.  Print better symbol name information.
1546 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1548         * manual/filesys.texi (Setting Permissions): Fix example for
1549         reading umask.
1551 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1553         * elf/sprof.c (load_profdata): Fix typo in error message.
1555 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1557         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
1558         flag.
1560 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
1562         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
1564 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
1566         * version.h (VERSION): Bump to 2.0.97.
1568 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1570         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
1571         in definitions of inline stat functions so that they match the
1572         declaration.
1573         * stdlib/stdlib.h: Likewise.
1574         * wcsmbs/wchar.h: Likewise.
1575         * libio/stdio.h: Likewise.
1576         * stdio/stdio.h: Likewise.
1577         * sysdeps/wordsize-64/inttypes.h: Likewise.
1578         * sysdeps/wordsize-32/inttypes.h: Likewise.
1579         * string/argz.h: Likewise.
1580         * argp/argp.h: Likewise.
1582 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
1584         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
1585         netinet/in.h.
1587 1998-10-05  Philip Blundell  <philb@gnu.org>
1589         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
1590         and constants.  Tidy up formatting a little.
1592         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
1593         Move definitions to in.h.
1595 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1597         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
1598         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
1599         Remove inclusion of <linux/swap.h>.
1601 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1603         * io/sys/stat.h: Use __P in definitions of inline stat functions
1604         so that they match the declaration.
1606 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1608         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
1610 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1612         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
1613         linux 2.1 version.
1615 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
1617         * sysdeps/arm/dl-machine.h: Fix typo in last change.
1619         * sysdeps/arm/bits/huge_val.h: New file.
1621 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1623         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
1625         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
1626         define.
1628 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1630         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
1631         store result of realloc instead of using BUF.
1633 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1635         * misc/sgtty.h (_SGTTY_H): Correct spelling.
1636         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
1638 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1640         * manual/memory.texi (Obstacks): Document
1641         obstack_alloc_failed_handler usage.
1643         * malloc/obstack.h: Enhance comment about
1644         obstack_alloc_failed_handler usage.
1645         * malloc/obstack.c: Likewise.
1647 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1649         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
1650         gcc before 2.8 is used.
1652 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
1654         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
1655         from Scott Bambrough.
1657         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
1659         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
1660         include the lock member.
1662 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
1664         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
1666 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
1668         * timezone/zic.c: Update from tzcode1998h.
1669         * timezone/europe: Update from tzdata1998i.
1670         * timezone/southamerica: Likewise.
1672         * sys/types.h: Protect use of long long by __extension__.
1673         * stdlib/stdlib.h: Likewise.
1674         * string/string.h: Likewise.
1675         * sysdeps/i386/bits/byteswap.h: Likewise.
1676         * sysdeps/geeric/bits/byteswap.h: Likewise.
1677         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1678         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1679         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
1680         * sysdeps/wordsize-32/inttypes.h: Likewise.
1681         * sysdeps/wordsize-32/stdint.h: Likewise.
1682         * wcsmbs/wchar.h: Likewise.
1684 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1686         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
1687         expression.
1688         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
1689         __strsep): Greatly reduce size of expansion by combining common
1690         expressions.
1691         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
1692         inline function.
1693         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
1694         by the above definitions.
1696 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
1698         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
1699         correct struct ipc_perm definition.
1701 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1703         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
1705 1998-09-29  Cristian Gafton  <gafton@redhat.com>
1707         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
1708         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
1709         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
1710         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
1711         Add net/if_shaper.h.
1713 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
1715         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
1717         * nis/ypclnt.c: Remove not needed close calls.
1719 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
1721         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
1722         check a bit.  Also close socket of domain client.  Close socket
1723         in IPPORT_RESERVED error case.
1725 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
1727         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
1728         CMSG_ALIGN (fixes a bug) and correct test for availability of
1729         another entry.
1730         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
1731         Linux version.
1732         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
1733         availability of another entry.
1734         Patch by ak@muc.de.
1736         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
1737         Patch by ak@muc.de.
1739         * libio/libio.h [!__STDC__]: Define const only if not defined.
1741 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1743         * posix/annexc.c (xsystem): New function.  Use it instead of
1744         system.
1746 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
1748         * stdlib/longlong.h: Remove #endif for #if removed in last change.
1750 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
1752         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
1753         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
1754         allow using `ut' parameter.
1755         [!emacs]: Define ut_argument, ut_argument_spec, and
1756         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
1757         argument_spec to prototypes and definitions.
1758         (my_strftime): Don't call tzset of ut != 0.
1759         Compute diff as 0 is ut != 0;
1760         [emacs]: Define new emacs_strftime function.
1761         Based on a patch by Paul Eggert.
1763 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1765         * time/strftime.c (my_strftime): When asking for the length of the
1766         subformatted buffer, do not limit the length to look for;
1767         otherwise, we have no reliable way to distinguish between the
1768         empty buffer and an error.
1770 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
1772         * math/Makefile (gmp-objs): Add mp_clz_tab.
1774 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
1776         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
1777         set them.
1778         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
1779         cpus lacking hardware multiply and divide.
1781 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1783         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
1784         $(<F), not $(^F).
1786 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1788         * db/btree/bt_delete.c: Fix -Wparentheses warning.
1790 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1792         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
1793         $(do-install).
1795 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
1797         * debug/catchsegv.sh: Also produce output if clone process died.
1799 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1801         * time/strftime.c (f_wkday): Remove duplicate definition.
1802         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
1803         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
1804         1998-09-11 fix to this case.
1805         (wkday_len, month_len): Remove these macros; they're no longer needed.
1807 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1809         * time/strftime.c (my_strftime): Don't store past the end of a
1810         zero-sized buffer.
1812 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1814         * time/strftime.c (underlying_strftime):
1815         Set the buffer to a nonzero value before calling
1816         strftime, and check to see whether strftime has set the buffer to zero.
1817         This lets us distinguish between an empty buffer and an error.
1819 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
1821         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
1822         This fix is propagated from tzcode1998g.tar.gz.
1824 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
1826         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
1827         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
1828         sys_siglist.  This is handled correctly by the weak_alias macro.
1830 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
1832         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
1833         of mempcpy.  Reported by Andreas Jaeger.
1835         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
1836         pollute the namespace since the compiler will resolve it inline.
1837         Reported by Florian La Roche <florian@suse.de>.
1839 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
1841         * timezone/private.h: Update from tzcode1998g.
1843         * timezone/africa: Update from tzdata1998h.
1844         * timezone/asia: Likewise.
1845         * timezone/australasia: Likewise.
1846         * timezone/europe: Likewise.
1847         * timezone/northamerica: Likewise.
1848         * timezone/southamerica: Likewise.
1849         * timezone/zone.tab: Likewise.
1851 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1853         * misc/sys/mman.h: New file.
1855         * sysdeps/generic/bits/mman.h: New file.
1856         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
1857         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
1858         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
1859         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
1861         * sysdeps/generic/sys/mman.h: Removed.
1862         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
1863         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
1864         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
1865         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
1866         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
1868         * include/sys/mman.h: Look directly for misc/sys/mman.h.
1869         * misc/Makefile (headers): Add bits/mman.h.
1870         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
1871         bits/mman.h.
1873         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
1874         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
1875         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
1876         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
1877         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
1878         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1879         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
1880         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1882 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1884         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
1885         * sysdeps/mach/alpha/thread_state.h: Likewise.
1886         * sysdeps/mach/i386/sysdep.h: Likewise.
1887         * sysdeps/mach/i386/thread_state.h: Likewise.
1888         * sysdeps/mach/mips/sysdep.h: Likewise.
1889         * sysdeps/mach/mips/thread_state.h: Likewise.
1890         * sysdeps/posix/profil.c: Likewise.
1891         * sysdeps/i386/i586/memcopy.h: Likewise.
1892         * sysdeps/mach/pagecopy.h: Likewise.
1894 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
1896         * libio/stdio.h: Define __need_getopt and include getopt.h to define
1897         getopt stuff.
1898         * posix/unistd.h: Likewise.
1899         * stdio/stdio.h: Likewise.
1900         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
1901         define only getopt and the variables.
1903 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1905         * scripts/test-installation.pl (installation_problem): Don't link
1906         the test program against libdb1.
1908 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
1910         * Makeconfig (all-subdirs): Add db.
1911         * Versions.def: Add definition for libdb1.
1912         * shlib-versions: Add definitions for libdb1.
1913         * db/Makefile (extra-libs): Replace by libdb1.
1914         (libdb-routines): Rename to libdb1-routines.
1915         (headers): Rename to db1-headers.
1916         (distribute): Add $(db1-headers).
1917         (install-others): Define to install symlink libdb.so.NN and the
1918         $(db1-headers).
1919         (CPPFLAGS): Add -DUSE_LIBDB1
1920         Remove rules to build makedb.
1921         * db/Versions: Rename libdb to libdb1.
1922         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
1923         * db/makedb.c: Removed.
1925         * scripts/versions.awk: Recognize digits in library names.
1927         * db/btree/bt_open.c: Fix compiler warnings.
1928         * db/btree/bt_put.c: Likewise.
1929         * db/btree/bt_split.c: Likewise.
1930         * db/hash/hash.c: Likewise.
1931         * db/hash/hash_bigkey.c: Likewise.
1932         * db/recno/rec_close.c: Likewise.
1934         * Makefile: Add localedata/% goal.
1936 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1938         * posix/execvp.c: Don't give up searching the PATH if execve
1939         returns ENOTDIR.
1941 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
1943         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
1944         if _dl_fpu_control_set is set.
1945         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
1946         * elf/rtld.c: Don't define _dl_fpu_control_set.
1947         * elf/Versions: Remove _dl_fpu_control_set.
1949 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
1951         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
1952         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1953         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
1954         Correct values of other SA_* macros according to kernel headers.
1956 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1958         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
1959         variable l.
1960         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
1961         old.
1963 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1965         * elf/ldsodefs.h: Fix typo in comment.
1967 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1969         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
1970         char when comparing buffer contents with putback character.
1972 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1974         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
1975         Undo last change.
1976         * elf/Versions: Undo last change.  Export _dl_fpu_control and
1977         _dl_fpu_control_set.
1978         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
1979         variables.  Include <fpu_control.h>.
1980         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
1981         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
1982         to indicate that is was seen.
1983         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
1984         only if _dl_fpu_control was set and is equal to desired value.
1985         * math/Makefile (aux): Undo last change.
1986         * math/Versions: Export __fpu_control with version GLIBC_2.0.
1988 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1990         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
1991         optimized.
1993 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
1995         * string/bits/string2.h: Add mempcpy optimization.
1996         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
1997         * intl/localealias.c: Define mempcpy only if not already defined.
1999         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
2000         defined.
2002 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2004         * csu/abi-note.S: Emit the note directly instead of defining
2005         a preprocessor macro that's only used once.  Don't include sysdep.h.
2006         * abi-tags: Generalize Solaris entry.
2008 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2010         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
2011         Change to array to avoid runtime relocation.
2012         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
2014 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2016         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
2017         * math/Makefile ($(objpfx)libieee.a): Likewise.
2019 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
2021         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
2022         Patch by John Tobey <jtobey@banta-im.com>.
2024 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
2026         * login/Makefile (distribute): Remove pty-internal.h, add
2027         pty-private.h.
2029         * stdlib/tst-strtol.c: Add more checks.
2030         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
2032 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
2034         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
2035         * elf/elf.h: Add AT_FPUCW.
2036         * elf/Makefile (dl-routines): Add fpu_control.
2037         (elide-routines.os): Add fpu_control.
2038         (rtld-routines): Add fpu_control.
2039         * math/Makefile (aux): Remove fpu_control.
2040         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
2041         (_dl_show_auxv): Likewise.
2042         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
2043         if different from OS default.
2045         * stdio-common/tstscanf.c: Add test case for (nil).
2047 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
2049         * libio/fileops.c (_IO_new_file_underflow): Before allocating
2050         buffer make sure the pushback buffer is destroyed.
2051         (_IO_new_file_seekoff): Likewise.
2052         If mode==0 quit early with the result.
2053         Clear OEF flag after successful fseek.
2054         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
2055         * libio/ftello.c (ftello): Add offset from original buffer if
2056         stream has pushed back characters.
2057         * libio/ftello64.c (ftello64): Likewise.
2058         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
2059         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
2060         * libio/ioftell.c (_IO_ftell): Likewise.
2061         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
2062         and _IO_save_ptr.
2063         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
2064         (_IO_default_pbackfail): Only stored push back character in original
2065         buffer if it is the same as the one in the file at this position.
2066         * libio/iofclose.c: Free backup buffer if one is available.
2067         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
2068         mode!=0.
2070         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
2072         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
2074         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
2076 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
2078         * login/programs/pt_chown.c (more_help): Correct message that
2079         describes the purpose of the program.
2081         * login/openpty.c: Do not include pty-private.h.
2082         (pts_name): New function.  Return name of slave pseudo terminal in
2083         an allocated buffer if necessary.
2084         (openpty): Use pts_name to get name of the slave end of the pseudo
2085         terminal pair.
2087         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
2088         pts_name before return.
2090 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
2092         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
2094 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2096         * login/openpty.c: Include pty-private.h instead of
2097         pty-internal.h.
2099 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
2101         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
2103 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
2105         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
2106         recent ld.so changes.
2107         (elf_machine_runtime_setup): Correct behaviour when profiling.
2109 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
2111         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
2112         Patch by John Tobey <jtobey@banta-im.com>.
2114 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
2116         * login/pty-internal.h: Removed.  Moved constants related to the
2117         `grantpt' helper program protocol to ...
2118         * login/pty-private.h: ... here.  New file.
2119         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
2120         to make the function work with kernels >= 2.1.115.
2121         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
2122         version if using the cloning device fails.
2123         * sysdeps/unix/sysv/linux/grantpt.c: New file.
2124         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
2125         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
2126         use by Linux specific code.
2127         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
2128         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
2129         function.  (grantpt): Use pts_name, check group and permission
2130         mode in addition to owner.  Try to set the owner, group and
2131         permission mode first without invoking the helper program.
2132         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
2133         internationalization support.  Use symbolic constants instead of
2134         hardwired numbers for permission mode.
2135         * sysdeps/unix/bsd/ptsname.c: New file.
2137 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
2139         * posix/wordexp-test.c: Undo last change.
2141         * posix/wordexp.c: Undo last change.
2143 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
2145         * nscd/grpcache.c (save_grp): Partly undo last change.
2147         * nscd/pwdcache.c (save_pwd): Undo last change.
2149 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2151         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
2152         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
2154 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
2156         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
2157         Add profiling support.
2158         (TRAMPOLINE_TEMPLATE): New macro.
2159         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
2160         (RTLD_START): Prettify, and set __libc_stack_end properly.
2161         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
2162         and check for sym being NULL instead.
2163         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
2164         of stack space.
2165         * sysdeps/sparc/sparc64/lshift.S: Likewise.
2166         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
2167         * sysdeps/sparc/sparc64/rshift.S: Likewise.
2168         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
2169         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
2170         MEDANY code model %g4 usage.
2171         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
2172         MEDANY code model %g4 usage.
2173         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
2174         code model address formation.
2175         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
2176         include elf/ldsodefs.h
2177         (DT_SPARC): Remove.
2178         (elf_machine_matches_host): It is now EM_SPARCV9.
2179         (elf_machine_dynamic): Clean up to remove ugly cast.
2180         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
2181         new PLT formats.
2182         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
2183         Prettify rest of function.
2184         [R_SPARC_COPY]: Check for sym being NULL.
2185         [R_SPARC_32]: Handle it.
2186         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
2187         MEDMID code model.
2188         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
2189         MEDANY code model.
2190         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
2191         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
2192         Add profiling support.
2193         (TRAMPOLINE_TEMPLATE): New macro.
2194         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
2195         (RTLD_START): Prettify and set __libc_stack_end.
2196         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
2197         Define.
2198         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
2199         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
2200         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
2201         unused variable scratch.
2202         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2203         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
2204         Declare.
2205         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
2206         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
2207         old format kernel sigaction structures.
2208         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
2209         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
2210         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
2211         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
2212         ucontext include.
2213         (_JMPBUF_UNWINDS): Define.
2214         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
2215         statfs64 structure, which is exactly the same as the normal one.
2216         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
2217         of stack.  Use correct syscall trap number.  Add branch prediction
2218         settings to branch instructions.  Remove old MEDANY code model %g4
2219         referneces for non-PIC.
2220         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
2221         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
2222         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
2223         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2224         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2225         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
2226         __libc_longjmp and __libc_siglongjmp strong aliases.
2227         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
2228         Also define to __no__readdir64_decl around readdir.c inclusion.
2229         (__readdir64): Add strong alias.
2230         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
2231         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
2232         Set strong and weak names properly.
2234 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2236         * manual/Makefile (AWK): Default to gawk if standalone.
2238 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2240         * Makefile (distribute): Undo last change.
2241         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
2242         for sysdep headers.
2243         (+subdir-headers): Removed, unused.
2245 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2247         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
2248         $(do-install).
2250 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2252         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
2253         absolute name in $(config-sysdirs), can never happen.
2254         ($(+sysdir_pfx)sysd-rules): Likewise.
2255         * Makeconfig (full-config-sysdirs): Likewise.
2256         (all-Subdirs-files): Prepend $(..).
2258         * configure.in: Don't check for absolute name in $add_ons_pfx, can
2259         not happen.  Let --enable-add-ons=yes work if no add-ons actually
2260         exist.
2262 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2264         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
2265         continuations in command.
2267 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2269         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
2271 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
2273         * posix/wordexp-test.c: If expansion or substitution occurs
2274         anywhere in a word, the entire word is subject to field-splitting.
2276         * posix/wordexp.c (parse_glob): Look for end of word instead of
2277         end of field when deciding what to glob.
2278         (field_split_word): New function, now the only place where
2279         field-splitting is performed.
2280         (parse_dollars): New parameter - tell the caller if
2281         field-splitting should be performed on this word.
2283         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
2284         succeeded (or failed with WRDE_NOSPACE).
2286 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
2288         * posix/wordexp.c (wordexp): Don't convert IFS characters to
2289         blanks.
2291         * posix/wordexp-test.c: Words not the result of expansion or
2292         substitution should remain unchanged.
2294 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
2296         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
2297         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
2299 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2301         * stdio-common/Makefile: Include Makeconfig so that
2302         $(inst_includedir) is defined.
2304 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2306         * io/pwd.c: Include <mcheck.h>.
2308 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
2310         * nscd/pwdcache.c (save_pwd): Correct copying.
2311         * nscd/grpcache.c (save_grp): Likewise.
2313 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
2315         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
2316         (free_pwd): Adjust for this change.
2317         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
2318         (free_grp): Adjust for this change.
2320 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
2322         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
2324 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
2326         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
2327         (install-others): Add bits/stdio_lim.h.
2328         Add rule to install bits/stdio_lim.h.
2330         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
2332         * Makefile (distribute): Add include/sys/mman.h.
2334         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
2335         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
2336         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
2338         * grp/initgroups.c: Include stdlib.h.
2339         Patch by Zack Weinberg.
2341 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
2343         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
2344         for field-splitting :abc: is correct, and that two fields should
2345         result. Revert tests to reflect this.
2347         * posix/wordexp.c (w_emptyword): Remove function.
2348         (exec_comm): Don't use w_emptyword.
2349         (parse_param): Likewise.
2351 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
2353         * sysdeps/arm/fpu/Dist: Moved to...
2354         * sysdeps/arm/Dist: ...here.
2355         * sysdeps/posix/Dist: Removed.
2356         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
2357         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
2359 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
2361         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
2363 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
2365         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
2367 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2369         * libc-work/nis/nss_nisplus/nisplus-service.c
2370         (_nss_nisplus_parse_servent): Convert port in network byte order.
2372 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2374         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
2375         to provide only malloc and calloc.
2376         * include/stdlib.h: Support the above.
2377         * string/bits/string2.h: Use __need_malloc_and_calloc when
2378         including stdlib.h.
2379         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
2381         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
2382         * iconvdata/iso646.c: Include <stdlib.h>.
2384 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2386         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
2387         * sysdeps/libm-ieee754/w_pow.c: Likewise.
2388         * sysdeps/libm-ieee754/w_powf.c: Likewise.
2389         * sysdeps/libm-ieee754/w_powl.c: Likewise.
2391 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2393         * stdio-common/stdio_lim.h.in: New file.  All parameters
2394         are adjustable at build time.
2395         * Rules: Add a rule to build bits/stdio_lim.h from
2396         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
2397         all subdirectories know how to make the file.  It can't be
2398         in Makerules because then it gets built at top level and the
2399         dependencies are wrong.)
2401         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
2402         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
2403         stdio_lim.h.
2404         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
2405         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
2406         * sysdeps/posix/Makefile: Removed.
2407         * sysdeps/posix/mk-stdiolim.c: Removed.
2408         * sysdeps/generic/bits/stdio_lim.h: Removed.
2410 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2412         * argp/argp-help.c: Fixup indentation.
2413         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
2414         * resolv/nss_dns/dns-network.c: Likewise.
2415         * resolv/res_send.c: Likewise.
2416         * rt/aio_cancel.c: Likewise.
2417         * rt/aio_misc.c: Likewise.
2419 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2421         * Makefile (install-symbolic-link): Remove the link list file at last.
2422         * Makerules (install-clean-symbolic-link-list): Removed.
2424 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2426         * timezone/tst-timezone.c: Print time in UTC to get consistent
2427         output.
2429 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2431         * elf/rtld.c (_dl_rpath): Removed.
2432         * elf/dl-support.c (_dl_path): Removed.
2433         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
2434         (CFLAGS-dl-support.c): Removed.
2436         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
2437         uses changed.
2438         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
2439         instead of appending it to the main map's rpath info.
2440         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
2441         DT_RPATHs.  This makes it effective again.
2442         (decompose_rpath): Remove second parameter, callers changed.
2443         (fillin_rpath): Allocate enough space in curwd.
2444         (expand_dynamic_string_token): Cope with get_origin returning -1.
2446 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2448         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
2449         passwd.adjunct.
2451         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
2452         invalid password.
2454 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
2456         * locale/programs/locale.c: Update dates.
2458 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
2460         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
2461         size_t is defined.  Some reordering of definitions to make
2462         maintaining this file in parallel with the linux-specific file easier.
2464 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
2466         * io/pwd.c (main): Add call to mtrace.
2468         * malloc/mtrace.pl: Quote @ in string.
2470 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
2472         * posix/wordexp.c (parse_arith): Fix memory leaks.
2473         (exec_comm): Likewise.
2474         (parse_param): Likewise.
2475         (wordexp): Likewise.
2476         (exec_comm): Reduce number of function return points.
2477         (parse_param): Likewise.
2478         (wordexp): Likewise.
2480 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
2482         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
2483         yield three fields, not two.  Test both parameter expansion and
2484         command substitution for correct field-splitting behaviour.
2486         * posix/wordexp.c (w_emptyword): New function.
2487         (parse_param): Use it.
2488         (exec_comm): Likewise, for consistency with the way parse_param
2489         splits fields.
2490         (parse_param): Fix some memory leaks.
2492 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
2494         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
2495         Don't mark asm `volatile'.
2496         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
2497         from the data cache too.  Assume it isn't in the instruction cache yet.
2498         (__elf_machine_fixup_plt): Clear the modified address from the caches.
2500 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
2502         * sysdeps/generic/segfault.c (install_handler): Install signal
2503         handler with SA_ONSTACK instead of setting the stack flags to
2504         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
2505         defined.
2507 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2509         * signal/signal.h: Fix multiple inclusion guard to cover the
2510         entire file.
2511         * wcsmbs/wchar.h: Remove prototype of internal function
2512         __mbsrtowcs.
2513         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
2514         arithmetic on `void *'.
2516 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
2518         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
2520         * posix/wordexp.c (wordexp): Perform word-splitting instead of
2521         field-splitting here.
2522         (wordexp): If out of memory mid-word, free the word (but still
2523         leave pwordexp alone for caller to see).
2524         (parse_param): Allow for zero-length fields (smarter checking of
2525         memory allocation failure).
2526         (w_addword): Convert NULL words to "".
2527         (wordexp): Convert left-over IFS characters to blanks (like bash).
2529 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2531         * configure.in: Use test -f instead of test -e.
2532         Patch by John Tobey <jtobey@banta-im.com>.
2534         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
2535         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
2536         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
2537         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
2538         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
2539         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
2540         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
2541         Patches by John Tobey <jtobey@banta-im.com>.
2543         * time/strftime.c (my_strftime): Delay use of *tp values until
2544         latest possible point to allow partly initialized structures
2545         (e.g., from strptime).
2547         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
2548         and NATS-SEFI.
2549         Define *-routines variables for new modules.
2550         (distribute): Add .c files for new modules.
2551         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
2552         and nats-sefi.h.
2553         Add rules for header generation.
2554         * iconvdata/gconv-modules: Add entries for new modules.
2555         * iconvdata/iso_10367-box.c: New file.
2556         * iconvdata/mac-is.c: New file.
2557         * iconvdata/nats-dano.c: New file.
2558         * iconvdata/nats-sefi.c: New file.
2560 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
2562         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
2563         loader if PIC is not defined.
2565 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2567         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
2568         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
2569         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
2570         and ISO_5428.
2571         Define *-routines variables for new modules.
2572         (distribute): Add .c files for new modules.
2573         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
2574         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
2575         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
2576         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
2577         Add rules for header generation.
2578         * iconvdata/gconv-modules: Add entries for new modules.
2579         * iconvdata/csn_369103.c: New file.
2580         * iconvdata/cwi.c: New file.
2581         * iconvdata/dec-mcs.c: New file.
2582         * iconvdata/ecma-cyrillic.c: New file.
2583         * iconvdata/gost_19768-74.c: New file.
2584         * iconvdata/greek-ccitt.c: New file.
2585         * iconvdata/greek7-old.c: New file.
2586         * iconvdata/greek7.c: New file.
2587         * iconvdata/inis-8.c: New file.
2588         * iconvdata/inis-cyrillic.c: New file.
2589         * iconvdata/inis.c: New file.
2590         * iconvdata/iso6937-2.c: New file.
2591         * iconvdata/iso_2033.c: New file.
2592         * iconvdata/iso_5427-ext.c: New file.
2593         * iconvdata/iso_5427.c: New file.
2594         * iconvdata/iso_5428.c: New file.
2596         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
2597         entries.
2598         Convert U02dd correctly.
2600 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
2602         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
2603         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
2604         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
2605         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
2607 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2609         * resolv/res_init.c (res_init): Handle resolv.conf file with only
2610         one nameserver correctly.  Patch by HJ Lu.
2612         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
2613         and ANSI_X3.110.
2614         Define *-routines variables for new modules.
2615         (distribute): Add .c files for new modules.
2616         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
2617         Add rules for hedaer generation.
2618         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
2619         * iconvdata/ansi_x3.110.c: New file.
2620         * iconvdata/asmo_449.c: New file.
2621         * iconvdata/baltic.c: New file.
2622         * iconvdata/iec_p27-1.c: New file.
2624         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
2625         entries.
2626         Convert U02dc correctly.
2628         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
2629         * math/atest-exp2.c: Likewise.
2630         * math/atest-sincos.c: Likewise.
2632         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
2633         is defined.
2635 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2637         * string/strcoll.c: Optimize a few expressions.
2638         * string/strxfrm.c: Likewise.
2640 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2642         * manual/locale.texi: Fix typos.
2644 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
2646         * stdlib/random_r.c (__setstate_r): Allow call with same state
2647         array as currently used (PR libc/774).
2649         * include/limits.h: Include gcc's header even if this file is
2650         found more than once before it (PR libc/778)
2652         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
2653         (sysdep_headers): Remove sys/debugreg.h.
2654         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
2655         (sysdep_headers): Add sys/debugreg.h.
2656         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
2657         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
2659         * stdio-common/tmpnam.c: Move local static variable buf to
2660         toplevel and rename to tmpnam_buffer to ease debugging.
2661         Patch by Joe Keane <jgk@jgk.org>.
2662         Optimize s == NULL case a bit.
2664         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
2665         correction.
2667 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
2669         * resolv/res_init.c (res_init): Initialize _res.nscount and
2670         _res.nsaddr.sin_port differently for the can when no loopback
2671         is available to allow immediate timeout in non-networking environments.
2672         Patch by Cristian Gafton <gafton@redhat.com>.
2674 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2676         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
2677         BAR and not EM DASH.
2678         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
2679         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
2680         Fixes PR libc/717.
2682 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
2684         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
2685         for test.
2686         * timezone/tst-timezone.c (tests): Fix typo in last patch.
2688         * time/tzfile.c (__tzfile_read): Handle case when there are no
2689         transitions.  Set __timezone based on computed offset.
2690         * time/tzset.c (tzset_internal): Set __timezone before returning.
2692         * time/tzset.c (tzset_internal): Optimize handling of local string
2693         copy.
2695 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2697         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
2698         libc/776).
2700 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
2702         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
2703         (csqrt_test): Likewise.
2704         * sysdeps/powerpc/bits/fenv.h: Add parens.
2706 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
2708         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
2709         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
2710         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
2712 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
2714         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
2715         the special `-1' pointer.
2717 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
2719         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
2720         inline.
2722 1998-09-07  Paul Eggert  <eggert@twinsun.com>
2724         * time/mktime.c (__EXTENSIONS__): Define if not defined.
2725         (_REENTRANT): Remove.  It has undesirable consequences in
2726         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
2727         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
2728         is what we want.
2729         * time/strftime.c: Likewise.
2731 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2733         * elf/dl-error.c: Fix spelling.
2735 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2737         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
2738         * stdio-common/_itoa.c: Likewise.
2739         * stdio-common/printf_fp.c: Likewise.
2740         * stdio-common/vfscanf.c: Likewise.
2741         * wcsmbs/wcstok.c: Likewise.
2742         * sysdeps/generic/glob.c: Likewise.
2743         * posix/getopt.c: Likewise.
2744         * sysdeps/posix/getaddrinfo.c: Likewise.
2745         * posix/wordexp.c: Likewise.
2746         * io/ftw.c: Likewise.
2747         * io/fts.c: Likewise.
2748         * misc/getpass.c: Likewise.
2749         * iconv/gconv_conf.c: Likewise.
2750         * argp/argp-fmtstream.c: Likewise.
2751         * argp/argp-help.c: Likewise.
2752         * elf/dl-load.c: Likewise.
2753         * locale/programs/stringtrans.c: Likewise.
2754         * catgets/gencat.c: Likewise.
2755         * posix/getconf.c: Likewise.
2756         * iconv/gconv_conf.c: Likewise.
2757         * iconv/iconv_prog.c: Likewise.
2759         * string/strcoll.c: Optimize a few expressions.
2760         * string/strxfrm.c: Likewise.
2762 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2764         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
2765         level to avoid uninit variable warning.
2767 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2769         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
2770         instead of _dl_default_scope[2] as argument to _dl_init_next.
2772         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
2773         C9x macro.
2775 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
2777         Fix compatibility problems introduced in last change.
2778         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
2779         defined.
2780         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
2781         -DWEAK_GMON_START to CFLAGS-initfini.s.
2783         * elf/dl-object.c (_dl_new_object): Store map address in
2784         _dl_loaded if _dl_loaded is NULL.
2785         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
2787         * sysdeps/generic/setrlimit64.c: Remove stub warning.
2789 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
2791         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
2792         quiet.
2793         * db2/btree/bt_cursor.c: Likewise.
2794         * db2/common/db_region.db_c: Likewise.
2795         * db2/common/db_salloc.db_c: Likewise.
2796         * db2/db/db.c: Likewise.
2797         * db2/db/db_rec.c: Likewise.
2798         * db2/hash/hash.c: Likewise.
2799         * db2/hash/hash_page.c: Likewise.
2800         * db2/hash/hash_rec.c: Likewise.
2801         * db2/log/log_findckp.c: Likewise.
2802         * db2/log/log_get.c: Likewise.
2803         * db2/log/log_put.c: Likewise.
2804         * db2/mp/mp_fget.c: Likewise.
2805         * db2/mp/mp_fput.c: Likewise.
2806         * db2/mp/mp_region.c: Likewise.
2807         * stdlib/strtol.c: Likewise.
2808         * string/strcoll.c: Likewise.
2809         * string/strxfrm.c: Likewise.
2810         * argp/argp-help.c: Likewise.
2811         * argp/argp-parse.c: Likewise.
2812         * resolv/res_debug.c: Likewise.
2814 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
2816         * math/tgmath.h (scalb): Only define for __USE_MISC or
2817         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
2819 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2821         * libio/stdio.h: Fix comment.
2823         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
2824         __USE_ISOC9X.
2826 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2828         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
2830         * elf/dl-open.c: Quiet -Wparentheses warnings.
2831         * iconvdata/johab.c: Likewise.
2832         * iconvdata/uhc.c: Likewise.
2833         * inet/inet_net.c: Likewise.
2834         * io/fts.c: Likewise.
2835         * locale/newlocale.c: Likewise.
2836         * misc/getttyent.c: Likewise.
2837         * misc/mntent_r.c: Likewise.
2838         * misc/ttyslot.c: Likewise.
2839         * nscd/nscd_conf.c: Likewise.
2840         * nss/nsswitch.c: Likewise.
2841         * resolv/gethnamaddr.c: Likewise.
2842         * resolv/nsap_addr.c: Likewise.
2843         * resolv/res_debug.c: Likewise.
2844         * stdio-common/_itoa.c: Likewise.
2845         * stdlib/strtod.c: Likewise.
2846         * string/strverscmp.c: Likewise.
2847         * sunrpc/svc.c: Likewise.
2848         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
2849         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
2850         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
2851         * sysdeps/posix/getaddrinfo.c: Likewise.
2853 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
2855         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
2856         for use of global scope.
2857         * elf/dlvsym.c (dlvsym_doit): Likewise.
2859 1998-09-02  Paul Eggert  <eggert@twinsun.com>
2861         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
2862         copy the redundant bytes at the end of the format as-is; don't
2863         just copy their first byte and then rescan, as that might get
2864         us an encoding error.
2865         Account correctly for the length of multibyte sequences in the
2866         format.
2868 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
2870         * posix/wordexp-test.c: Add tests for different IFS values.
2871         Change unquoted-newline test so that newline is not in IFS.
2873         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
2874         determining IFS characters.  Return WRDE_BADCHAR for unquoted
2875         special characters _except_ if they are separators.
2877 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
2879         * include/tgmath.h: New file.
2881         * libio/stdio.h: Correct reversed #ifs.
2882         Patch by Zack Weinberg.
2884         * manual/creature.texi: Better explain reason for feature select
2885         macros.
2886         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
2888 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2890         * include/alloca.h: Add multiple-inclusion guard.
2891         * include/db.h: Likewise.
2892         * include/db_185.h: Likewise.
2893         * include/dlfcn.h: Likewise.
2894         * include/fcntl.h: Likewise.
2895         * include/grp.h: Likewise.
2896         * include/libintl.h: Likewise.
2897         * include/mntent.h: Likewise.
2898         * include/pwd.h: Likewise.
2899         * include/sched.h: Likewise.
2900         * include/search.h: Likewise.
2901         * include/setjmp.h: Likewise.
2902         * include/shadow.h: Likewise.
2903         * include/signal.h: Likewise.
2904         * include/stdio.h: Likewise.
2905         * include/stdlib.h: Likewise.
2906         * include/string.h: Likewise.
2907         * include/termios.h: Likewise.
2908         * include/time.h: Likewise.
2909         * include/ulimit.h: Likewise.
2910         * include/utmp.h: Likewise.
2911         * include/wchar.h: Likewise.
2912         * include/sys/file.h: Likewise.
2913         * include/sys/gmon.h: Likewise.
2914         * include/sys/ioctl.h: Likewise.
2915         * include/sys/mman.h: Likewise.
2916         * include/sys/resource.h: Likewise.
2917         * include/sys/select.h: Likewise.
2918         * include/sys/socket.h: Likewise.
2919         * include/sys/statfs.h: Likewise.
2920         * include/sys/time.h: Likewise.
2921         * include/sys/times.h: Likewise.
2922         * include/sys/wait.h: Likewise.
2924 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
2926         * version.h (VERSION): Bump to 2.0.96.
2928         Rewrite runtime linker to be truly thread-safe.  There is now no
2929         global variable specifying the scope.  We create all needed
2930         scopes at the time the link maps are created.
2931         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
2932         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
2933         l_symbolic_searchlist, l_scope, and l_local_scope elements in
2934         struct link_map.
2935         * elf/dl-close.c: Rewritten accordingly.
2936         * elf/dl-deps.c: Likewise.
2937         * elf/dl-error.c: Likewise.
2938         * elf/dl-init.c: Likewise.
2939         * elf/dl-load.c: Likewise.
2940         * elf/dl-lookup.c: Likewise.
2941         * elf/dl-object.c: Likewise.
2942         * elf/dl-open.c: Likewise.
2943         * elf/dl-reloc.c: Likewise.
2944         * elf/dl-runtime.c: Likewise.
2945         * elf/dl-support.c: Likewise.
2946         * elf/dl-symbol.c: Likewise.
2947         * elf/dl-version.c: Likewise.
2948         * elf/dlsym.c: Likewise.
2949         * elf/dlvsym.c: Likewise.
2950         * elf/ldsodefs.h: Likewise.
2951         * elf/rtld.c: Likewise.
2952         * iconv/gconv_dl.c: Likewise.
2953         * nss/nsswitch.c: Likewise.
2954         * sysdeps/i386/dl-machine.h: Likewise.
2955         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2957         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
2958         Define RTLD_DEFAULT.
2960 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
2962         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
2963         __getopt_clean_environment with __environ instead of envp.
2965 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
2967         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
2969         * string/argz-extract.c (__argz_extract): Add de-consting cast for
2970         setting results.
2972         * string/argz.h (argz_next): Add de-consting cast for return.
2973         * string/argz-next.c (__argz_next): Likewise.
2975         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
2976         Don't add netinet/udp.h, netinet/ip_icmp.h here.
2977         * sysdeps/gnu/Makefile: Do it here instead.
2978         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
2979         * sysdeps/gnu/Dist: ... to here.
2981         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
2982         sysdeps/unix/sysv/linux/netinet/tcp.h,
2983         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
2985 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
2987         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
2988         * string/argz-next.c, string/argz-extract.c: Fix defns.
2990 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
2992         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
2994         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
2995         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
2996         * sysdeps/generic/sysd-stdio.c: Likewise.
2998 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
3000         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
3001         (_dl_map_object_from_fd): Make NAME argument const.
3002         Remove last parameter in _dl_new_object call.
3003         (print_search_path): Correct construction of composed path name.
3004         (_dl_map_object): Prevent looking at RPATH of the main map twice.
3005         Remove last parameter in _dl_new_object call.
3006         * elf/dl-object.c: Remove last parameter.  Determine whether create
3007         origin entry based on empty realname.  Handle file in root directory
3008         correctly.
3009         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
3010         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
3011         Remove last parameter in _dl_new_object call.
3012         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
3013         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
3015 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
3017         * elf/dl-close.c (_dl_close): Add more comments and correct some.
3018         Free l_searchlist and l_dupsearchlist.
3020         * debug/catchsegv.sh: Add one more pair of quotes.
3022 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
3024         * elf/dl-load.c (add_name_to_object): Change return type to void and
3025         make NAME parameter const.  Allocate room for NAME in same memory
3026         block used for l_libname entry.
3027         (_dl_map_object_from_fd): Don't free NAME on failure.
3028         (map_segment): Pass SONAME to add_name_to_object, not a copy.
3029         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
3030         _dl_map_object_from_fd.
3031         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
3032         memory block used for l_libname entry.
3033         * elf/dl-close.c: Adjust free()ing for this change.
3035 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
3037         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
3039         * malloc/mtrace.c: Add bug report address.  Update email address.
3040         Add more @XXX@ to print correct address size.
3042         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
3043         really initialized.
3045         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
3046         for munmap call instead of examining phdr again.
3047         Free all malloc()ed strings and arrays.
3049 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
3051         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
3052         dl-machine.h.
3053         * sysdeps/powerpc/dl-machine.c: New file.
3054         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
3055         files.  Revise ELF_PREFERRED_ADDRESS to take account of
3056         the new mapping information (fixes bug involving huge bloated
3057         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
3058         * sysdeps/powerpc/dl-start.S: New file.
3060         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
3061         l_map_end.
3062         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
3063         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
3064         others.  Call elf_dynamic_do_##reloc only once (to save even more
3065         space).
3066         * elf/link.h: Add new members l_map_start and l_map_end to keep
3067         track of the memory map.
3068         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
3069         the executable.
3071 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
3073         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
3074         Reported by Andreas Jaeger.
3076         * posix/glob.h: Use __size_t instead of size_t in definitions and
3077         make sure this is defined.
3079 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
3081         * manual/locale.texi: Almost complete rewrite.  Document more functions
3082         and functionality.
3083         * manual/arith.texi: Correct reference.
3084         * manual/string.texi: Pretty printing.
3086         * manual/texinfo.tex: Update from last available version.
3088 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
3090         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
3091         invalid password.
3092         (_nss_nis_getpwuid_r): Likewise.
3093         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
3095         * inet/rcmd.c: Implement netgroup support.
3096         Patch by Dick Streefland <dick_streefland@tasking.com>.
3098 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
3100         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
3101         object on the list is removed.  Don't use this code for PIC.
3102         Reported by HJ Lu [PR libc/770].
3104 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
3106         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
3108         * include/stdio.h: Add __vsscanf.
3110         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
3111         __USE_ISOC9X.
3112         Remove __vsscanf declaration.
3113         Always declare fgetpos and fsetpos.
3115         * math/math.h: Define isinf as macro.
3116         * math/bits/mathcalls.h: Change to declare __isinf all the time.
3117         Don't declare scalb for ISO C 9x.
3119         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
3121         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
3123         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
3124         sys/ucontext.h.
3126         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
3127         macros.
3129 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3131         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
3132         Reported by jreising@frequentis.com [PR libc/767].
3134 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3136         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
3137         fl.l_start at beginning of function.
3138         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
3140 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
3142         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
3143         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
3145         * nscd/nscd.init: Make it work in RedHat systems.
3146         Patch by Christian Gafton.
3148 1998-08-29  Philip Blundell  <philb@gnu.org>
3150         * catgets/Makefile: Don't try to run test programs when
3151         cross-compiling.
3153 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
3155         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
3156         Reported by Zack Weinberg.
3158 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3160         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
3161         * elf/Makefile (distribute): Remove ldd.sh.in.
3163 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3165         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
3166         variable.
3168 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
3170         * sysdeps/i386/register-dump.h: Move to ...
3171         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
3173 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
3175         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
3176         with load address, not map address.
3177         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
3178         parameter and use this value.
3179         * sysdeps/arm/dl-machine.h: Likewise.
3180         * sysdeps/i386/dl-machine.h: Likewise.
3181         * sysdeps/m68k/dl-machine.h: Likewise.
3182         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
3183         parameter.
3184         * sysdeps/powerpc/dl-machine.h: Likewise
3185         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
3186         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
3188 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
3190         * elf/rtld.c (process_envvars): Fix copy&paste error.
3192         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
3193         memalign hook.
3194         (realloc_hook_ini): Don't overwrite memalign hook.
3195         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
3196         Reported by Philippe Troin <phil@fifi.org>.
3198         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
3199         Patch by Philippe Troin <phil@fifi.org>.
3201 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3203         * sysdeps/generic/segfault.c (install_handler): Protect the
3204         non-POSIX signals with #ifdef.
3205         (catch_segfault): Add missing mode parameter for open.
3206         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
3207         other termination signals.
3209 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3211         * debug/Makefile (distribute): Add register-dump.h.
3213 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3215         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
3217 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
3219         * elf/Makefile (distribute): Add dl-origin.h.
3220         * sysdeps/generic/dl-origin.h: New file.
3221         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
3222         * elf/link.h (struct link_map): Add l_origin field.
3223         * elf/dl-load.c (expand_dynamic_string_token): New function.
3224         (decompose_path): Remove WHERE argument, take link map pointer instead.
3225         Call expand_dynamic_string_token instead of local_strdup to make copy
3226         of rpath.
3227         (_dl_init_paths): Call decompose_path with correct argument.
3228         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
3229         not defined.
3230         Check EI_OSABI and EI_ABIVERSION fields in header.
3231         Call _dl_new_object with extra argument.
3232         (_dl_map_object): Call decompose_path with correct argument.
3233         Call expand_dynamic_string_token instead of local_strdup to also
3234         expand DST.
3235         Call _dl_new_object with extra argument.
3236         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
3237         but the main one if new argument is nonzero.
3238         * elf/ldsodefs.h: Adjust for _dl_new_object change.
3239         * elf/dl-support.c: Define _dl_origin_path.
3240         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
3241         (dl_main): Call _dl_new_object with extra argument.
3243         * elf/dl-close (_dl_close): Free l_name and l_origin.
3245         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
3246         modifier in asm, not c.
3248         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
3249         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
3251 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
3253         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
3254         variable so that map can be freed.
3255         Reported by Philippe Troin <phil@fifi.org>.
3257         * elf/dl-open.c (dl_open_worker): Correct test for extending global
3258         scope array.
3259         Patch by Philippe Troin <phil@fifi.org>.
3261 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
3263         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
3264         Don't call writev() with a 100-element vector.
3265         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
3266         return address.
3268         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
3269         In particular, set __libc_stack_end.
3270         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
3271         undefined.  Fix copyright notice.
3273 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3275         * math/Makefile (gmp-objs): New variable.
3276         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
3277         Depend on it.
3278         (tests): Add atest-exp atest-sincos atest-exp2.
3279         (tests-static): Remove atest-exp atest-sincos atest-exp2.
3281 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
3283         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
3284         to toplevel.
3285         (_dl_unload_cache): New function.
3286         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
3287         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
3288         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
3290         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
3291         Correct comment for O_LARGEFILE.
3292         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
3293         Change O_LARGEFILE to correct value.
3295 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
3297         * libio/iogetline.c (_IO_getline_info): Don't read anything for
3298         N == 0.  Patch by HJ Lu.
3300 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
3302         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
3304 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
3306         * argp/argp.h: Use __inline__ not inline.
3308         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
3309         an input register as being clobbered.
3310         * sysdeps/i386/memset.c (memset): Likewise.
3311         * sysdeps/i386/bzero.c (__bzero): Likewise.
3312         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
3314 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3316         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
3317         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
3319 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
3321         * debug/catchsegv.sh: Handle text preceding backtrace better.
3322         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
3323         to be installed for other signals than SIGSEGV.
3324         * sysdeps/generic/register-dump.h: New file.
3325         * sysdeps/i386/register-dump.h: New file.
3326         * sysdeps/powerpc/register-dump.h: New file.
3328         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
3329         sigcontextinfo.h.
3330         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
3332 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
3334         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
3336 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
3338         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
3339         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
3340         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
3341         getresuid, getresgid.
3343 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
3345         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
3346         pointer in userland.
3348 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3350         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
3351         and fix value.
3353 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3355         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
3356         over arguments Bourne shell compatible.  Don't exit unsuccessfully
3357         if nonelf returns successfully.  Avoid duplicating most of the
3358         script.
3359         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
3360         around $file.
3362 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3364         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
3365         sys/reg.h.
3366         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
3367         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
3369 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
3371         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
3372         __modify_ldt and modify_ldt.
3373         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
3375         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3376         Use orl $-1 instead of movl $-1 to save two bytes.
3377         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
3378         Likewise.
3380 1998-08-17  H.J. Lu  <hjl@gnu.org>
3382         * libio/Versions (_IO_do_write, _IO_file_attach,
3383         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
3384         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
3385         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
3386         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
3388         * libio/fileops.c (_IO_do_write, _IO_file_attach,
3389         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
3390         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
3391         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
3392         _IO_file_write, _IO_file_xsputn): Change the prefix to
3393         "_IO_new_". Added to GLIBC_2.1.
3395         * libio/libioP.h (_IO_do_write, _IO_file_attach,
3396         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
3397         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
3398         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
3399         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
3400         "_IO_new_".
3402         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
3403         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
3404         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
3405         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
3406         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
3408 1998-08-23  Richard Henderson  <rth@cygnus.com>
3410         * Makeconfig (LDFLAGS): Remove.
3412         * csu/initfini.c: Return to .text before __gmon_start__.
3414         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
3415         (STO_MIPS_*): Rename from STO_*.
3416         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
3417         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
3419         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
3420         (main): e3s is negative on zero.
3421         * math/atest-exp2.c: Likewise.
3422         * math/atest-sincos.c: Likewise.
3424 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3426         * Makerules (install): Add comment about absolute paths.
3428 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
3430         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
3431         array to NUL to handle maxlen==1 case correctly.
3432         Patch by HJ Lu.
3434 1998-08-23  Richard Henderson  <rth@cygnus.com>
3436         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
3437         * sysdeps/alpha/elf/crtend.S: Likewise.
3438         * sysdeps/alpha/elf/start.S: Likewise.
3440         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
3441         non-standard pv usage.
3443         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
3444         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
3445         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
3446         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3447         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
3448         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3449         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
3450         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
3451         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
3452         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
3453         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
3455         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
3456         a finite non-denormal, deferring to the full IEEE version otherwise.
3458         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
3459         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
3460         * sysdeps/alpha/fpu/s_floor.c: New.
3461         * sysdeps/alpha/fpu/s_floorf.c: New.
3462         * sysdeps/alpha/fpu/s_ceil.c: New.
3463         * sysdeps/alpha/fpu/s_ceilf.c: New.
3465 1998-08-22  Philip Blundell  <philb@gnu.org>
3467         * sysdeps/arm/bits/string.h: New file.
3469 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3471         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
3472         document it.
3474         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
3475         test for recent Linux 2.1.100+ headers.
3477 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3479         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
3481 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
3483         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
3485 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3487         * Makefile (elf/ldso_install): Put back.  The problem still persists.
3488         * elf/Makefile (ldso_install): Likewise.
3490 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3492         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
3493         create weak alias.
3494         * include/db.h: Declare __nss_db_open.
3495         * db2/Versions: Export it.
3497         * db2/makedb.c: Convert to use db2 API.
3498         * nss/nss_db/db-XXX.c: Likewise.
3499         * nss/nss_db/db-netgrp.c: Likewise.
3500         * nss/nss_db/db-alias.c: Likewise.
3501         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
3503 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3505         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
3506         sys_setresuid, already built automatically (or not).
3507         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
3508         instead of __syscall_setresuid and add back setresuid.
3509         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
3510         __syscall_setresuid.
3512 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3514         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
3516 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
3518         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
3519         BASH-ONLY marked region.
3520         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
3522 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
3524         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
3525         _IO_SYSSEEK fails.
3527         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
3529         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
3530         element.
3532 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
3534         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
3535         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
3536         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
3537         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
3538         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
3539         those magic comments, and to use /bin/sh for @BASH@.
3540         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
3541         * elf/ldd.sh.in: File removed.
3543 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
3545         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
3546         cast them to unsigned long int.
3547         * pwd/putpwent.c (putpwent): Likewise.
3548         Patch by John Tobey <jtobey@banta-im.com>.
3550 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
3552         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
3553         _IO_pos_BAD.
3555 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
3557         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
3558         _IO_SYSSEEK fails.
3560 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
3562         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
3563         Add umount and umount2.
3564         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
3565         * sysdeps/unix/sysv/linux/umount.S: New file.
3566         * sysdeps/unix/sysv/linux/umount2.S: New file.
3567         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
3568         Define MNT_FORCE.
3570         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
3571         Add sys/sendfile.h.
3572         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
3573         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
3575         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
3577         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
3578         sendfile.
3580 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
3582         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
3583         * elf/ldd.bash.in: Likewise.
3585         * elf/sln.c: Avoid warning for no main prototype.
3587         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
3588         O_WRITE.
3589         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
3590         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3592         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
3593         F_GETSIG.
3594         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
3595         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
3596         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3598 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
3600         * sysdeps/arm/fpu/ieee754.h: Move to...
3601         * sysdeps/arm/ieee754.h: ... here.
3603         * sysdeps/arm/__longjmp.S: Put return value in correct register.
3604         Don't set the condition flags unnecessarily.
3605         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
3606         registers correctly.
3608         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
3609         (patch from Scott Bambrough).
3611         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
3613         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
3614         NULL, just call it unconditionally.
3615         (__gmon_start__): Provide stub version as a weak symbol.
3617 1998-07-30  Philip Blundell  <philb@gnu.org>
3619         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
3620         by Scott Bambrough)
3622         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
3623         like `@' in .type directives.
3625         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
3626         * sysdeps/arm/bsd-_setjmp.S: Likewise.
3628         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
3630 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3632         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
3633         (F_GETOWN): Likewise.
3635         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
3636         Linux 2.1.117).
3638 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
3640         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
3641         already defined.
3643 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
3645         * include/features.h: Define __USE_EXTERN_INLINES for recent
3646         enough gcc.
3647         * argp/argp.h: Define extern inline functions only if
3648         __USE_EXTERN_INLINES is defined.
3649         * libio/stdio.h: Likewise.
3650         * math/math.h: Likewise.
3651         * stdlib/stdlib.h: Likewise.
3652         * string/argz.h: Likewise.
3653         * sysdeps/generic/bits/sigset.h: Likewise.
3654         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3655         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
3656         * sysdeps/wordsize-32/inttypes.h: Likewise.
3657         * sysdeps/wordsize-64/inttypes.h: Likewise.
3658         * wcsmbs/wchar.h: Likewise.
3660         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
3661         to allow compilation without optimization.
3663 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3665         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
3666         more entries.
3667         * nis/nss_compat/compat-initgroups.c: Likewise.
3668         * nis/nss_compat/compat-pwd.c: Likewise.
3669         * nis/nss_compat/compat-spwd.c: Likewise.
3670         * nis/nss_nis/nis-alias.c: Likewise.
3671         * nis/nss_nis/nis-ethers.c: Likewise.
3672         * nis/nss_nis/nis-grp.c: Likewise.
3673         * nis/nss_nis/nis-hosts.c: Likewise.
3674         * nis/nss_nis/nis-initgroups.c: Likewise.
3675         * nis/nss_nis/nis-network.c: Likewise.
3676         * nis/nss_nis/nis-proto.c: Likewise.
3677         * nis/nss_nis/nis-pwd.c: Likewise.
3678         * nis/nss_nis/nis-rpc.c: Likewise.
3679         * nis/nss_nis/nis-service.c: Likewise.
3680         * nis/nss_nis/nis-spwd.c: Likewise.
3682         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
3684         * nis/ypclnt.c: Try binding dir only first time, could be to old.
3686         * nis/yp_xdr.c: Remove 1024 byte limit.
3687         * nis/ypupdate_xdr.c: Likewise.
3689         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
3690         wrong data.
3692 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
3694         * Rules (binaries-static, binaries-shared static pattern rules):
3695         Depend on lib%, not just libc%, from $(link-libc{,-static}).
3697         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
3698         this here, overriding Makeconfig generic value so we link against
3699         the RPC libs.
3701 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
3703         * posix/tstgetopt.c (options): Add NULL entry at end
3704         Patch by Adrian Miranda <ade@psg.com>.
3706 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
3708         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
3709         to 9.
3711 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
3713         * elf/elf.h: Add PPC Diab relocations.
3715         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
3717 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
3719         * manual/texinfo.tex: Update.
3721 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
3723         * sysdeps/powerpc/backtrace.c: New file.
3725 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
3727         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
3728         sigjmp_save.
3729         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
3731 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3733         * Makefile (install-symbolic-link): Fix spelling.
3735 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3737         * elf/elf.h (SHT_HIOS): Fix value.
3739 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3741         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
3742         part of the expansion, this is undefined by the standard.
3744 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
3746         * posix/getconf.c: Add support for systems with incomplete confname.h.
3748         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
3750         * sysdeps/posix/wait3.c: Make it work.
3752 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3754         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
3755         (elf/ldso_install): Remove.
3757         * elf/Makefile (distribute): Add sln.c.
3758         (others): Add sln.
3759         (others-static): Add sln.
3760         (install-rootsbin): Add sln.
3761         (others-static): Add sln.
3762         (ldso_install): Remove.
3764 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3766         * Makerules (install-clean-symbolic-link-list): Make phony.
3767         * Makefile (install-symbolic-link): Make phony.  Depend on
3768         subdir_install for parallel makes.
3771 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
3773         * elf/Makefile (distribute): Add sln.c
3775 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
3777         * elf/sln.c: New file.
3779         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
3780         (install-clean-symbolic-link-list): New target.
3781         (install): Depend on install-clean-symbolic-link-list.
3782         (make-shlib-link): Changed for $(symbolic-link-list).
3784         * Makefile (install-symbolic-link): New target.
3785         (install): Depend on install-symbolic-link.
3787 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
3789         * include/unistd.h: Protect against multiple inclusion.
3791         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
3792         is defined, not is glob is defined.
3793         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
3795 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
3797         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
3798         xdr_string for ut_line, ut_name and ut_host.
3800 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3802         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
3803         /var/mail in accordance with FHS 2.0.
3804         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
3806 1998-08-12  Richard Henderson  <rth@cygnus.com>
3808         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
3809         Update aliases for cancelation.
3811         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
3812         playing with symbol versions.
3814 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
3816         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
3817         multiple inclusion protection.
3818         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
3819         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
3820         define all these to 1.
3821         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
3823 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
3825         * sysdeps/mach/usleep.c: Include <unistd.h>.
3826         (usleep): Return void.
3828 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
3830         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
3831         decl to inhibit warning in if_freenameindex defn.
3833         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
3835         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
3837         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
3838         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
3839         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
3840         * sysdeps/mach/usleep.c: Likewise.
3842         * sysdeps/mach/hurd/bind.c (bind): Add a const.
3844         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
3845         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
3846         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
3847         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
3848         * sysdeps/mach/usleep.c (usleep): Likewise.
3849         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
3850         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
3851         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3852         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
3854 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
3856         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
3857         (glob64): Fix typo.
3859         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
3860         %p arg to fprintf, since `void *' is the right type already.
3862 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
3864         * sysdeps/mach/hurd/getcwd.c
3865         (_hurd_canonicalize_directory_name_internal): Do not loop forever
3866         for unknown root directories.
3867         (__getcwd): Return NULL when the current root directory could not
3868         be reached.
3870 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
3872         * string/strsignal.c (strsignal): Count real-time signals from zero.
3875 See ChangeLog.8 for earlier changes.