Update.
[platform/upstream/glibc.git] / ChangeLog
1 1998-12-11  Ulrich Drepper  <drepper@cygnus.com>
2
3         * sysdeps/ieee754/dbl2mpn.c: Changed '#include "ieee754.h"' to
4         '#include <ieee754.h>'.  ARM port has its own version of 'ieee754.h'
5         due to its big endian floating point format.
6         * sysdeps/ieee754/ldbl2mpn.c: Likewise.
7         * sysdeps/ieee754/mpn2dbl.c: Likewise.
8         * sysdeps/ieee754/mpn2ldbl.c: Likewise.
9         * sysdeps/ieee754/mpn2flt.c: Likewise.
10         Patch by Scott Bambrough <scottb@corelcomputer.com>.
11
12 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
13
14         * sysdeps/unix/sysv/linux/adjtime.c: Undo last change.
15
16         * posix/PTESTS: Fix typo.
17
18         * po/es.po: Update from translation team.
19         * po/fr.po: Likewise.
20
21 1998-12-10  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
22
23         * nis/nss_compat/compat-pwd.c: Fix handling of +/- entries.
24
25 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
26
27         * sunrpc/Makefile: Call rpcgen program which -Y parameter so that
28         it can find the preprocessor.
29
30 1998-12-09  Geoff Keating  <geoffk@ozemail.com.au>
31
32         * sysdeps/unix/sysv/linux/sys/procfs.h: Use sys/user.h not
33         asm/user.h.
34         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
35
36         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: New file,
37         like linux/sys/procfs.h but uses uid_t and gid_t.
38         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: New file,
39         don't include <linux/ptrace.h>.
40
41 1998-12-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42
43         * posix/runptests.c (main): Check that regcomp did not succeed
44         unexpectedly.
45         * posix/runtests.c (run_a_test): Likewise.  Return appropriate
46         exit code.
47         * posix/TESTS: Regexp "a[b-a]" should not compile.
48         * posix/PTESTS: Comment out bogus tests GA113(2), GA145(2) and
49         GA147(2).
50
51 1998-12-09  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
52
53         * locale/programs/ld-ctype.c (allocate_arrays): Don't crash if
54         there is no codeset name.
55         * locale/programs/ld-collate.c (collate_output): Don't crash if a
56         character has no weight.
57
58 1998-12-10  Ulrich Drepper  <drepper@cygnus.com>
59
60         * inet/getnetgrent_r.c (innetgr): Check host and domain name with
61         strcasecmp, not strcmp.  [PR libc/894].
62
63 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
64
65         * posix/regex.h: Declare re_comp, re_exec if compiling for libc to
66         get prototypes.
67
68         * wctype/wctype.h: Add prototypes for __iswblank_l and iswblank.
69
70 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
71
72         * sysdeps/unix/sysv/linux/gethostid.c: Include <netdb.h> to get
73         prototype for __gethostbyname_r.
74
75         * include/time.h: Add declarations of internal interfaces.
76
77         * time/tzset.c: Remove declarations of internal interfaces.
78         * time/gmtime.c: Likewise.
79         * time/localtime.c: Likewise.
80         * time/offtime.c: Likewise.
81         * time/tzfile.c: Likewise.
82
83 1998-12-01 09:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
84
85         * sysdeps/unix/sysv/linux/sys/timex.h: Copy out
86         user-space-relevant definitions from linux/timex.h of kernel
87         2.1.130 and remove include of kernel header.
88
89         * sysdeps/unix/sysv/linux/adjtime.c: Remove portability crud.
90
91 1998-12-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
92
93         * posix/regex.c: Get regex.h from system path, not from local
94         directory.
95
96         * posix/regex.h: Move internal interfaces to ...
97         * include/regex.h: ...here.
98
99         * posix/unistd.h: Move internal interfaces to ...
100         * include/unistd.h: ...here.
101
102         * math/math.h: Move internal interfaces to ...
103         * include/math.h: ...here.
104
105         * posix/glob.h: Move internal interfaces to ...
106         * include/glob.h: ...here.
107
108         * string/string.h: Move internal interfaces to ...
109         * include/string.h: ...here.
110
111         * time/sys/time.h: Move internal interfaces to ...
112         * include/sys/time.h: ...here.
113
114         * resolv/netdb.h: Move internal interfaces to ...
115         * include/netdb.h: ...here.
116
117 1998-12-08  Ulrich Drepper  <drepper@cygnus.com>
118
119         * iconvdata/eucjp.c: Handle Yen in overscore conversion from ISO 10646
120         correctly.
121         * iconvdata/iso-2022-jp.c: Handle Kana in 2022-JP2 correctly
122         Fix various bugs in conversion routine.
123         * iconvdata/jis0201.h: Correct variable name.
124         * iconvdata/jis0208.c: Correct script to generate tables and regenerate
125         them.
126         * iconvdata/jis0208.h: Likewise.
127         * iconvdata/jis0212.c: Likewise.
128         * iconvdata/sjis.c: Likewise.
129         Patch by HANATAKA Shinya <hanataka@abyss.rim.or.jp>.
130
131 1998-12-07  Ulrich Drepper  <drepper@cygnus.com>
132
133         * sysdeps/unix/sysv/linux/speed.c (IBAUD0): New definition.  Bit
134         set in c_iflag if cfsetispeed is call with SPEED set to zero.
135         (cfgetispeed): Return zero if prior if IBAUD0 is set.
136         (cfsetospeed): Clear IBAUD0 bit.
137         (cfgetispeed): Set IBAUD0 bit if necessary.
138         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Clear
139         the IBAUD0 bit in c_iflag when making the system call.
140         Work around a Linux kernel bug which silently changes the
141         PARENB/CREAD/CSIZE bits in c_cflag on pty.
142         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed): Make a real
143         function.  Don't set speed is SPEED parameter is zero since this
144         means set it to the output speed.
145         Based on a patch by H.J. Lu <hjl@gnu.org>.
146
147         * version.h (VERSION): Bump to 2.0.106.
148
149         * Makeconfig (link-libc-static): Don't use link-libc since this
150         includes the shared object.  Use gnulib only.
151
152         * configure.in: Disable --disable-static.
153
154 1998-12-07 12:06  Ulrich Drepper  <drepper@cygnus.com>
155
156         * po/de.po: Update from translation team.
157         * po/ko.po: Likewise.
158
159 1998-12-07  Richard Henderson  <rth@cygnus.com>
160
161         * sysdeps/unix/sysv/linux/alpha/select.S: Save a4 through
162         both paths.
163
164 1998-12-05  Roland McGrath  <roland@baalperazim.frob.com>
165
166         * sysdeps/mach/hurd/pselect.c: New file.
167
168         * sysdeps/mach/hurd/poll.c: New file.
169
170         * hurd/Makefile (routines): Add hurdselect.
171         * hurd/hurdselect.c: New file.
172         (_hurd_select): New function, guts taken from ...
173         * sysdeps/mach/hurd/select.c (__select): ... here.
174         Now work by just calling _hurd_select.
175         * hurd/hurd/fd.h: Declare _hurd_select.
176
177 1998-12-05  Roland McGrath  <roland@baalperazim.frob.com>
178
179         * time/strptime.c: Fix unterminated comment in last change.
180
181 1998-12-05  Ulrich Drepper  <drepper@cygnus.com>
182
183         * ctype/ctype.h (_ISbit): Protect use of parameter with
184         parentheses.
185         * wctype/wctype.h (_ISwbit): Likewise.
186
187         * locale/Versions: Make experimental locale interface available in
188         GLIBC_2.1.
189
190         * sysdeps/gnu/bits/utmp.h (struct exit_status): Define members
191         without leading __ only for __USE_GNU.
192         * sysdeps/gnu/bits/utmpx.h (struct __exit_status): Likewise.
193
194 1998-12-04  Ulrich Drepper  <drepper@cygnus.com>
195
196         * argp/argp.h: Add __restrict.
197         * dirent/dirent.h: Likewise.
198         * elf/dlfcn.h: Likewise.
199         * grp/grp.h: Likewise.
200         * iconv/iconv.h: Likewise.
201         * inet/aliases.h: Likewise.
202         * libio/libio.h: Likewise.
203         * libio/stdio.h: Likewise.
204         * locale/locale.h: Likewise.
205         * misc/mntent.h: Likewise.
206         * posix/wordexp.h: Likewise.
207         * pwd/pwd.h: Likewise.
208         * resolv/netdb.h: Likewise.
209         * rt/aio.h: Likewise.
210         * stdio-common/printf.h: Likewise.
211         * stdlib/monetary.h: Likewise.
212         * stdlib/stdlib.h: Likewise.
213         * string/argz.h: Likewise.
214         * string/envz.h: Likewise.
215         * string/string.h: Likewise.
216         * time/time.h: Likewise.
217
218 1998-12-04  Zack Weinberg  <zack@rabi.phys.columbia.edu>
219
220         * misc/sys/cdefs.h: Only include features.h if _FEATURES_H isn't
221         defined.  gcc's redundant include optimizer isn't clever enough to
222         prevent a reinclusion here.
223         Define __restrict to the empty string only if not GCC or
224         GCC version less than 2.92.
225
226 1998-12-03  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
227
228         * sysdeps/unix/sysv/linux/configure.in: Fix last change.
229
230 1998-12-03  Mark Kettenis  <kettenis@phys.uva.nl>
231
232         * time/strptime.c (strptime_internal): Make use of `%C' format
233         specifier if it is seen together with the `%y' specifier.
234
235 1998-12-04  Ulrich Drepper  <drepper@cygnus.com>
236
237         * po/sk.po: New file.
238
239 1998-12-03  Scott Bambrough  <scottb@corelcomputer.com>
240
241         * sysdeps/arm/dl-machine.h (dl_start_user): Incorrect address
242         for _dl_main_searchlist passed to _dl_init_next.
243
244 1998-12-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
245
246         * math/libm-test.c: Expand literal tabs in strings.  Normalize
247         whitespace.
248
249 1998-12-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
250
251         * sysdeps/unix/sysv/linux/sys/fsuid.h: Fix spelling.
252
253 1998-12-04  Mark Kettenis  <kettenis@phys.uva.nl>
254
255         Provide backwards binary compatibility for the Hurd.
256         * hurd/geteuids.c [PIC && DO_VERSIONING]: Make __getuids a weak
257         alias for geteuids.
258         * hurd/Versions [GLIBC_2.0]: Add __getuids,
259         __hurd_file_name_lookup and _hurd_umask.
260         [GLIBC_2.1]: Add _hurd_proc_init.
261         * hurd/Makefile [versioning] (routines): Add compat-20.
262         (shared-only-routines): Likewise.
263         * hurd/hurdinit.c (_hurd_new_proc_init): Renamed from
264         _hurd_proc_init.  Use it as the default _hurd_proc_init version
265         for GLIBC_2.1.
266         * hurd/compat-20.c: New file.
267         * mach/Versions [GLIBC_2.0]: Add __vm_allocate.
268
269 1998-12-02  Ulrich Drepper  <drepper@cygnus.com>
270
271         * elf/elf.h: Add R_MIPS_JALR and adjust R_MIPS_NUM appropriately.
272
273 1998-12-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
274
275         * inet/Versions: Remove inet6_isipv4mapped.
276
277 1998-12-02  Philip Blundell  <pb@nexus.co.uk>
278
279         * inet/in6_addr.c (inet6_isipv4mapped): Obsolete, deleted.
280
281 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
282
283         * manual/time.texi (Formatting Date and Time): Fix typo.
284
285 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
286
287         * sysdeps/unix/sysv/linux/configure.in: Only check for symlinks
288         when configuring natively.  Use autoconf macros instead of rolling
289         our own.  Handle defaulted prefix.
290
291 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
292
293         * version.h (VERSION): Bump to 2.0.105.
294
295         * sysdeps/generic/Dist: Add bits/libc-tsd.h.
296
297         * sysdeps/mach/hurd/Dist: Add bits/libc-tsd.h.
298
299         * sysdeps/unix/sysv/linux/mips/Dist: Add xstatconv.c.
300
301 1998-11-29 1998  H.J. Lu  <hjl@gnu.org>
302
303         * libio/genops.c (_IO_unbuffer_write): Renamed from
304         _IO_unbuffer_all.
305         (_IO_cleanup): Call _IO_unbuffer_write instead of
306         _IO_unbuffer_all.
307
308 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
309
310         * intl/localealias.c: Use *_unlocked version of stdio function if
311         _LIBC_REENTRANT is defined, not _LIBC.
312
313 1998-12-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
314
315         * include/grp.h: Add prototypes for internal functions
316         __getgrgid_r and __getgrnam_r.
317
318         * inet/herrno.c: Include <netdb.h> for prototype, undef h_errno.
319
320         * resolv/nsap_addr.c: Include <arpa/inet.h> for inet_nsap_addr and
321         inet_nsap_ntoa prototypes.
322
323 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
324
325         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Pass -I option
326         to gcc to have it find the correct system header.
327         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
328
329         * Makefile (postclean): Add sysd-sorted.
330         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
331
332 1998-12-01  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
333
334         * sunrpc/auth_des.c: Use new XDR int32 functions for integers.
335         * sunrpc/rpc/xdr.h: Add IXDR INT32 functions.
336         * sunrpc/rpc_hout.c: Remove (u_long) casts in defines to avoid
337         conflicts with new solaris version.
338         * sunrpc/rpc_main.c: Fix bug in generating Makefile name (malloc
339         doesn't zero allocated memory).
340         * sunrpc/rpc_svcout.c: Local variables now starts with a _ to avoid
341         conflicts with xdr functions.  Solves PR libc/877.
342         * nis/rpcsvc/nis.x: Use always uint32_t.
343         * nis/rpcsvc/nis.h: Likewise.
344         * nis/rpcsvc/nis_object.x: Likewise.
345
346 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
347
348         * math/libm-test.c: Various cleanups.  Patch by Zack Weinberg.
349
350         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use correct type for
351         parameter.  Patch by Christian Gafton.
352
353         * string/envz.h: Add prototype for envz_remove.
354         Reported by Andreas Jaeger.
355
356 1998-11-30  Mark Kettenis  <kettenis@phys.uva.nl>
357
358         * mach/Versions [libc, GLIBC_2.0]: Add __spin_lock,
359         __spin_lock_init,  __mutex_lock, __mutex_trylock,
360         __mutex_unlock.
361         Remove get_priviliged_ports.  Moved to hurd/Versions.
362
363         * hurd/Versions [libc, GLIBC_2.0]: Add _end.  This makes the Hurd
364         brk implementation see the end of the data segment of the program
365         instead of the shared library.
366         Add __hurd_errno_location.  This inline function is used in user
367         programs.
368         Add _hurd_critical_section_lock, _hurd_critical_section_unlock,
369         _hurd_fd_get, _hurd_port_free, _hurd_port_get,
370         _hurd_port_locked_get.  These inline functions are used by macros
371         used in mail.local in the Hurd distribution.
372         Add get_privileged_ports.  Moved here from mach/Versions.
373         Remove __hurd_file_name_lookup, __hurd_file_name_lookup_retry,
374         __hurd_file_name_split, __hurd_file_name_path_lookup.  These are
375         not used outside libc.
376
377 1998-11-30  Mark Kettenis  <kettenis@phys.uva.nl>
378
379         * hurd/hurdstartup.c: Really include set-hooks.h with <> instead
380         of "".
381
382 1998-11-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
383
384         * sunrpc/Makefile: Add xdr_intXX_t to routines.
385         * sunrpc/Versions: Add xdr_int8_t, xdr_uint8_t, xdr_in16_t and
386           xdr_uint16_t.
387         * sunrpc/rpc/xdr.h: Add prototypes for new xdr_intXX_t functions.
388         * sunrpc/xdr.c: Remove xdr_int32_t and xdr_uint32_t.
389         * sunrpc/xdr_intXX_t.c: New, contains all xdr_intXX_t functions.
390
391         * nis/Depend: New.
392         * nis/nss_nis/nis-service.c: Include generated prototype for parser.
393
394 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
395
396         * nscd/nscd_getpw_r.c: Include nscd_proto.h for prototypes.
397
398         * sysdeps/generic/errno-loc.c: Include <errno.h> for prototype,
399         undefine errno to get variable.
400
401         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Include <sys/fsuid.h>
402         instead of <unistd.h> for prototype.
403         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
404
405 1998-11-30  Ulrich Drepper  <drepper@cygnus.com>
406
407         * misc/err.h: Correct comments and use protected attribute keywords.
408         Reported by Joseph Myers <jsm28@cam.ac.uk>.
409
410 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
411
412         * malloc/thread-m.h [_LIBC]: Include <bits/libc-tsd.h>, and
413         remove tsd stuff from pthreads/cthreads libc sections.
414         Use __libc_tsd_define for MALLOC key.
415         [_LIBC] (tsd_key_t, tsd_key_create): Define to a zero-size type and a
416         no-op, respectively.
417         [_LIBC] (tsd_setspecific, tsd_getspecific): Use __libc_tsd_get/set.
418
419         * elf/dl-error.c: Include <bits/libc-tsd.h>.
420         Use __libc_tsd_define for DL_ERROR key.
421         (tsd_setspecific, tsd_getspecific): Rewritten using __libc_tsd_get/set.
422
423         * sysdeps/mach/hurd/bits/libc-tsd.h: New file.
424         * sysdeps/generic/bits/libc-tsd.h: New file.
425         * Makefile (distribute): Add bits/libc-tsd.h.
426
427 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
428
429         * elf/dl-error.c: Remove kludge to check for ld.so load address.
430         There is no need if weak undefined symbols are not used in ld.so;
431         see linuxthreads/ChangeLog for changes to files
432         linuxthreads/sysdeps/pthread/bits/libc-lock.h and
433         linuxthreads/sysdeps/pthread/bits/libc-tsd.h.
434
435 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
436
437         * sysdeps/i386/bits/string.h (__memset_cc): Fix typo (s->__s).
438
439         * sysdeps/i386/i486/bits/string.h: Add prototypes for all new
440         inline functions.
441         * sysdeps/i386/bits/string.h: Likewise.
442
443 1998-11-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
444
445         * sysdeps/unix/sysv/linux/alpha/bits/ipc.h: Remove ipc_kludge.
446
447 1998-11-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
448
449         * db2/progs/db_load/db_load.c (main): Avoid -Wparentheses warning.
450
451 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
452
453         * sysdeps/mach/hurd/dl-sysdep.c: Do not define
454         __hurd_threadvar_max.  Add comment explaining why we define
455         __hurd_threadvar_stack_offset and __hurd_threadvar_stack_mask here.
456
457 1998-07-29  Mark Kettenis  <kettenis@phys.uva.nl>
458
459         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
460         __hurd_sigthread_stack_end, __hurd_sigthread_variables): Define to
461         prevent inclusion of Hurd signal handling code.
462         (__libc_write): New function.
463         (_dl_sysdep_output): Removed.  The implementation in
464         `elf/dl-misc.c' now also works for the Hurd.
465
466 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
467
468         * hurd/hurdstartup.c: Do not include hurdmalloc.h; _hurd_startup
469         does not use any of malloc/realloc/free anymore.  Include
470         set-hooks.h with <> instead of "".
471
472 1998-11-29  Roland McGrath  <roland@baalperazim.frob.com>
473
474         * sunrpc/svc_unix.c (__msgread): Move ON local var inside block
475         within #ifdef SO_PASSCRED.  Avoids unused var when no SO_PASSCRED.
476         * sunrpc/clnt_unix.c (__msgread): Likewise.
477
478 1998-11-28  Roland McGrath  <roland@baalperazim.frob.com>
479
480         * hurd/setuids.c: Renamed to ...
481         * hurd/seteuids.c: this.
482         (setuids): Renamed to seteuids.
483         * hurd/getuids.c: Renamed to ...
484         * hurd/geteuids.c: this.
485         (__getuids): Renamed to geteuids, no aliases.
486         * hurd/hurd.h (geteuids, seteuids): Declare them.
487         * hurd/Versions: Replace getuids; __getuids with geteuids; seteuids.
488         * hurd/Makefile (routines): Updated.
489
490 1998-11-29  Ulrich Drepper  <drepper@cygnus.com>
491
492         * sysdeps/generic/segfault.c (install_handler): Correct test for
493         SEGFAULT_HANDLER=all.
494         Patch by Zack Weinberg.
495
496 1998-11-28 23:23 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
497
498         * sysdeps/unix/sysv/linux/configure.in: Test for symlinks in
499         $prefix/include that may be clobbered on installation.
500
501 1998-11-27  Philip Blundell  <pb@nexus.co.uk>
502
503         Fixes to allow compilation with static NSS:
504         * nss/Makefile: Make explicit the dependency of getent on
505         libnss_files.a.
506         [build_static_nss]: Define $(otherlibs) appropriately.
507         * nss/Depend: Add a dependency on `resolv'.
508
509 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
510
511         Partial support for MIPS ISO C 9x exception handling:
512         * sysdeps/mips/fclrexcpt.c: New file.
513         * sysdeps/mips/ftestexcept.c: New file.
514         * sysdeps/mips/fgetexcptflg.c: New file.
515         * sysdeps/mips/fesetround.c: New file.
516         * sysdeps/mips/fegetround.c: New file.
517         * sysdeps/mips/fegetenv.c: New file.
518         * sysdeps/mips/fesetenv.c: New file.
519         * sysdeps/mips/feupdateenv.c: Likewise.
520         * sysdeps/mips/bits/fenv.h: New file.
521
522 1998-11-28  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
523
524         * sysdeps/unix/sysv/linux/mips/bits/signum.h: Remove inclusion of
525         <asm/signal.h> and add needed symbols from <asm/signal.h>; bring
526         in sync with linux specific version.
527
528         Patches by Ralf Baechle <ralf@uni-koblenz.de> for mips-linux:
529
530         * sysdeps/unix/mips/sysdep.S: Define _errno as weak_alias, rewrite
531         errno declaration.
532
533         * sysdeps/unix/sysv/linux/mips/ustat.c: Use INLINE_SYSCALL instead
534         of calling __syscall_*.
535         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
536
537         * sysdeps/unix/sysv/linux/mips/syscalls.list: Update entries.
538
539         * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Add missing SYS_*
540         constants, correct values according to Linux 2.1.130.
541
542         * sysdeps/unix/sysv/linux/mips/pwrite.c: New file.
543         * sysdeps/unix/sysv/linux/mips/pwrite64.c: New file.
544         * sysdeps/unix/sysv/linux/mips/pread.c: New file.
545         * sysdeps/unix/sysv/linux/mips/pread64.c: New file.
546
547         * sysdeps/mips/Makefile (sysdep_routines): Use += instead of a
548         :=.
549
550         * sysdeps/unix/sysv/linux/mips/bits/ipc.h: Remove ipc_kludge.
551
552         * sysdeps/unix/sysv/linux/mips/xstatconv.c: New file.
553
554         * sysdeps/unix/sysv/linux/mips/xstat.c: Removed.
555
556         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: New file.
557
558         * sysdeps/unix/sysv/linux/mips/kernel_termios.h: Add copyright
559         message, change name of include protection, remove inclusion of
560         <bits/termios.h>.
561
562         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
563         (old_kernel_sigaction): Define.
564         (struct kernel_sigaction): Rename sa_handler to k_sa_handler.
565
566         * sysdeps/unix/sysv/linux/mips/bits/time.h: Removed, we can use
567         the general linux version.
568         * sysdeps/unix/sysv/linux/mips/bits/stat.h (_STAT_VER_KERNEL): Added.
569
570         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Update file.
571
572 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
573
574         * sysdeps/arm/bits/endian.h (__FLOAT_WORD_ORDER): Define to big
575         endian.
576         * math/math_private.h: Use __FLOAT_WORD_ORDER rather than
577         BYTE_ORDER.
578         * string/endian.h: If __FLOAT_WORD_ORDER wasn't defined by
579         <bits/endian.h>, make it the same as __BYTE_ORDER.
580
581 1998-11-27  Ulrich Drepper  <drepper@cygnus.com>
582
583         * math/math.h: Avoid using long double functions in generic macros
584         if __NO_LONG_DOUBLE_MATH.
585
586         * sysdeps/arm/dl-machine.h: Fix handling of weak undefined symbols
587         during bootstrapping.
588         * scripts/config.sub: Add Netwinder specific matches.
589         Patch by Scott Bambrough <scottb@corelcomputer.com>.
590
591 1998-11-26  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
592
593         * Makeconfig ($(common-objpfx)sysd-dirs): Use automatic variables
594         if possible.
595         ($(common-objpfx)sysd-sorted): Likewise.
596
597 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
598
599         * sysdeps/libm-ieee754/e_log.c (__ieee754_log): Add declaration of
600         local variables t1,t2 only if needed.
601
602         * sysdeps/libm-ieee754/e_atan2.c: Added braces to avoid compiler
603         warnings.
604         * sysdeps/libm-ieee754/s_truncf.c (__truncf): Likewise.
605         * sysdeps/libm-ieee754/s_trunc.c (__trunc): Likewise.
606
607         * sysdeps/mips/mul_1.S (Loop): Add closing comment to avoid
608         warning.
609
610 1998-11-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
611
612         * math/math.h: Add brace to correct #if expression.
613
614 1998-11-26  Philip Blundell  <philb@gnu.org>
615
616         Undo change of 1998-11-12:
617         * sysdeps/unix/sysv/linux/netlink/netlink.h: Deleted.
618         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
619         netlink/netlink.h.
620         * sysdeps/unix/sysv/linux/Dist: Likewise.
621
622 1998-11-22  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
623
624         * nis/nis_print.c (nis_print_entry): Changes to match Solaris output.
625
626 1998-11-26  Ulrich Drepper  <drepper@cygnus.com>
627
628         * sysdeps/mips/dl-machine.h (ELF_MACHINE_NO_PLT): New defined macro.
629         (elf_machine_got_rel): Remove scope variable.  Use scope from the map.
630         Don't modify _dl_global_scope_end in the end.
631         (__dl_runtime_resolv): Also use scope from the map.
632         * sysdeps/mips/mips64/dl-machine.h: Likewise.
633         * elf/dl-runtime.c: Don't define fixup and profile_fixup if
634         ELF_MACHINE_NO_PLT is defined.
635         * sysdeps/mips/sys/ucontext.h: New file.
636         Patches by kaz Kojima <kkojima@rr.iij4u.or.jp>.
637
638 1998-11-26  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
639
640         * sysdeps/generic/pselect.c (__pselect): Change interface,
641         set/restore sigmask.
642
643         * misc/sys/select.h: Change declaration according to Stevens' Unix
644         Network Programming.
645         * include/sys/select.h (__pselect): Likewise.
646         Reported by <bwelling@anomaly.munge.com> [PR libc/872].
647
648         * include/fpu_control.h: New file, contains __setfpucw
649         declaration.
650
651         * sysdeps/generic/fpu_control.h: Remove __setfpucw declaration,
652         it's an internal symbol.
653         * sysdeps/alpha/fpu/fpu_control.h: Likewise.
654         * sysdeps/arm/fpu/fpu_control.h: Likewise.
655         * sysdeps/i386/fpu_control.h: Likewise.
656         * sysdeps/m68k/fpu_control.h: Likewise.
657         * sysdeps/powerpc/fpu_control.h: Likewise.
658         * sysdeps/sparc/sparc32/fpu/fpu_control.h: Likewise.
659         * sysdeps/sparc/sparc64/fpu/fpu_control.h: Likewise.
660
661 1998-11-25  Ulrich Drepper  <drepper@cygnus.com>
662
663         * version.h (VERSION): Bump to 2.0.104.
664
665 1998-11-25  Mark Kettenis  <kettenis@phys.uva.nl>
666
667         * libio/bits/stdio.h (fread_unlocked): Add missing parentheses
668         around parameter n.
669
670 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
671
672         * time/tzfile.c (__tzfile_read): Fix comment.
673
674 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
675
676         * Makerules (build-shlib): Pass -O1 down to linker to get
677         optimized shared libraries.
678
679 1998-11-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
680
681         * Makeconfig ($(common-objpfx)sysd-dirs): Cope with no Subdirs
682         file.  Strip "-" from inhibited subdir name.  Combine into a
683         single awk program.
684         ($(common-objpfx)sysd-sorted): Fix sed command.
685
686 1998-11-25  Roland McGrath  <roland@baalperazim.frob.com>
687
688         * sysdeps/mach/hurd/i386/init-first.c (init): Restored as inline fn.
689         Use constant _HURD_THREADVARS_MAX for temporary array size.
690
691         * Makeconfig ($(common-objpfx)sysd-sorted): Use @ instead of / as sed
692         s separator, since $(..) might contain a /.
693
694 1998-11-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
695
696         * configure.in (mips): Fix typo (Replace ,, by ;;).
697
698         * libio/Versions: Clean up entries.
699
700 1998-11-23  Ulrich Drepper  <drepper@cygnus.com>
701
702         * sysdeps/i386/fpu/bits/mathinline.h: Add optimizations for lrint
703         and llrint.
704
705 1998-11-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
706
707         * sysdeps/unix/sysv/linux/netinet/ip_fw.h: Removed.  There are too
708         many differences between the Linux 2.0 and 2.1 versions of this
709         file and it's too difficult to convert all calls.  The file should
710         only be needed by the ipfw program which has to take care of the
711         correct kernel version and include files.
712
713         * sysdeps/unix/sysv/linux/Dist: Remove netinet/ip_fw.h.
714         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Likewise.
715
716 1998-11-23  Ulrich Drepper  <drepper@cygnus.com>
717
718         * Makeconfig: Don't read sysd-sorted unless sysd-dirs is read.
719         Patch by Zack Weinberg.
720
721         * math/bits/mathcalls.h: Adjust comments.  Remove gamma_r prototype.
722
723         * sysdeps/i386/fpu/bits/mathinline.h: Make log2 only available if
724         __USE_ISOC9X is defined.  Provide rint optimization.
725
726 1998-11-21  H.J. Lu  <hjl@gnu.org>
727
728         * libio/Versions (_IO_popen, _IO_proc_open, _IO_proc_close,
729         popen, pclose): Add to GLIBC_2.1.
730
731         * libio/Makefile (routines): Add oldiopopen and oldpclose.
732         (shared-only-routines): Likewise.
733
734         * libio/pclose.c (pclose): Make it default for GLIBC_2.1.
735         * libio/iopopen.c (_IO_proc_open, _IO_popen, popen,
736         _IO_proc_close): Likewise.
737
738         * libio/iolibio.h (_IO_new_popen, _IO_old_popen, __new_pclose,
739         __old_pclose): New prototypes.
740
741         * libio/libioP.h (_IO_new_file_jumps): Removed.
742         (_IO_old_proc_jumps): Added.
743         (_IO_new_proc_open, _IO_old_proc_open): New prototypes.
744
745         * libio/oldiopopen.c: New file.
746
747         * libio/oldpclose.c: New file.
748
749 1998-11-22  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
750
751         * nss/Makefile: Build and install getent.
752         * nss/getent.c: New, get entries from administrative database.
753
754 1998-11-22  Roland McGrath  <roland@baalperazim.frob.com>
755
756         * sysdeps/mach/hurd/i386/init-first.c (init): Provide temporary storage
757         for the per-thread variables of the main user thread to make it
758         possible to use malloc as soon as _hurd_preinit_hook has been run.
759         For cthreads, copy values to new stack from there.
760         For non-cthreads, malloc threadvar array here and copy from temp space.
761         (init1): No longer initialize threadvars here.
762         (doinit1): Made static void at top level.
763         (init): Folded into [PIC] _init or [!PIC] doinit1, since GCC cannot
764         inline a function that uses dynamic auto arrays.
765
766 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
767
768         * version.h (VERSION): Bump to 2.0.103.
769
770         * aclocal.m4 (LIBC_PROG_BINUTILS): Also add AR and RANLIB using the
771         same method.
772         * configure.in: Don't define AR and RANLIB here.
773
774         * inet/gethstbyad_r.c: Define NEED__RES_HCONV and POSTPROCESS for
775         host name res_hconf code.
776         * inet/gethstbynm_r.c: Likewise.
777         * nss/getXXbyYY_r.c: Include resolv/res_hconf.h if NEED__RES_HCONF
778         is defined.  Call res_hconf_init if necessary.  If POSTPROCESS is
779         defined execute the code.
780         * resolv/Makefile (routines): Add res_hconf.
781         (headers): Add res_hconf.h.
782         * resolv/res_hconf.c: Pretty print.
783         * resolv/res_hconf.h: Likewise.
784
785 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
786
787         * sysdeps/generic/bits/byteswap.h: Fix typos in non-GCC
788         definitions.  Reported by Scott Bambrough <scottb@corelcomputer.com>.
789
790 1998-11-20 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
791
792         * math/libm-test.c: Raise some epsilons a bit.
793
794 1998-11-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
795
796         * Makeconfig ($(common-objpfx)sysd-sorted): Fix portability problems.
797
798 1998-11-20  Ulrich Drepper  <drepper@cygnus.com>
799
800         * Makefile (distribute): Add scripts/gen-sorted.awk.
801
802 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
803
804         * posix/regex.c (regex_compile): Handle extra long class names
805         correctly.
806
807 1998-11-19  Geoff Keating  <geoffk@ozemail.com.au>
808
809         * elf/rtld.c (_dl_start): Handle weak undefined symbols in ld.so
810         correctly.
811
812 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
813
814         * misc/error.c: Undo last change.
815
816         * ctype/Versions: Add _tolower and _toupper.
817
818 1998-11-19  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
819
820         * sunrpc/svc_unix.c (readunix): Check for POLLERR, POLLHUP and
821         POLLNVAL.
822
823 1998-11-19  Ulrich Drepper  <drepper@cygnus.com>
824
825         * Makeconfig: Add comment to all-subdirs definition.
826         Add rule to generate sysd-sorted.  Include this file and and set
827         subdirs value to $(sorted-subdirs).
828         * scripts/gen-sorted.awk: New file.
829         * Make-dist (+tsrcs): Add Depend.
830         * nscd/Depend: New file.
831         * nss/Depend: New file.
832         * rt/Depend: New file.
833
834 1998-11-18  Ulrich Drepper  <drepper@cygnus.com>
835
836         * sysdeps/unix/bsd/poll.c (__poll): Add code to extend sets if any
837         passed file descriptor exceeds the size determined by
838         getdtablesize.
839
840         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Update
841         from inline version in bits/socket.h.
842
843         * sysdeps/unix/sysv/linux/bits/socket.h: Define __cmsg_nxthdr as
844         inline function only is __USE_EXTERN_INLINES is defined.
845
846         * time/strftime.c (my_strftime): Make code a bit clearer.
847         Patch by Paul Eggert <eggert@twinsun.com>.
848
849         * io/Makefile (CFLAGS-ftw.c): Removed.
850
851         * manual/errno.texi: Change the short text for ENODEV to
852         "No such device".
853
854 1998-11-18  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
855
856         * io/Makefile (tests): Make sure that the test program has an
857         explicit directory part.
858
859 1998-11-18  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
860
861         * configure.in: Fix last change.
862
863 1998-11-18  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
864
865         * sunrpc/Makefile (routines): Add create_xid.
866
867         * sunrpc/clnt_tcp.c: Use non-guessable xid.
868         * sunrpc/clnt_udp.c: Likewise.
869         * sunrpc/clnt_unix.c: Likewise.
870         * sunrpc/pmap_rmt.c: Likewise.
871         * sunrpc/create_xid.c: New, create non-guessable xid.
872
873         * sunrpc/svc_tcp.c: Remove patch from 1998-06-15, use poll instead
874         of select.
875         * sunrpc/svc_unix.c: Use poll instead of select.
876
877 1998-11-17  Ulrich Drepper  <drepper@cygnus.com>
878
879         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Make Unix98 compliant
880         by removing SIG_IGN handler for SIGCHLD if necessary.
881         Patch by H.J. Lu <hjl@lucon.org>.
882
883         * stdio-common/printf_fphex.c (__printf_fphex): Correct printing
884         of denormalized numbers.
885
886 1998-10-06  Geoff Keating  <geoffk@ozemail.com.au>
887
888         * sysdeps/powerpc/dl-machine.h (elf_machine_load_address): Suppress
889         another parentheses warning, make nano-optimisation.
890
891         * sysdeps/powerpc/dl-machine.h (_dl_runtime_resolve): Preserve
892         saved LR on stack so _mcount works.
893         (_dl_prof_resolve): Likewise.
894         * sysdeps/powerpc/register-dump.h: Print FPRs.  Adjust for correct
895         signal handler calling convention.
896         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Adjust for
897         correct signal handler calling convention---more like x86 linux and
898         mklinux, less like linux-ppc versions between 2.1 and 2.1.126.
899
900 1998-11-17  Ulrich Drepper  <drepper@cygnus.com>
901
902         * configure.in: Correct allowed makeinfo version.
903
904 1998-11-17  Philip Blundell  <pb@nexus.co.uk>
905
906         * sysdeps/generic/bits/mathdef.h: Fix typo.
907
908 1998-11-17  Geoff Keating  <geoffk@ozemail.com.au>
909
910         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Prototype the syscall
911         under the right name (squish warning).
912         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
913
914 1998-11-17  Geoff Keating  <geoffk@ozemail.com.au>
915
916         * stdio-common/_itoa.c (_itoa): Add redundant parentheses to
917         prevent warnings.
918
919 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
920
921         * intl/locale.alias: Change `japanese' alias to match X11R6's.
922         Add `japanese.euc' alias.
923
924         * manual/Makefile (%.info): Set LANGUAGE and LC_ALL explicitly to C
925         before running makeinfo.
926
927         * math/Makefile (libm-routines): $(strip) entire value.
928
929         * nss/nss_db/db-XXX.c (internal_setent): Rewrite to avoid warning.
930
931 1998-10-24  H.J. Lu  <hjl@gnu.org>
932
933         * libio/libio.h (_IO_cookie_io_functions_t): Protect with __USE_GNU.
934         (_IO_cookie_file): Likewise.
935
936 1998-11-16  Philip Blundell  <philb@gnu.org>
937
938         * inet/netinet/icmp6.h: Correct naming of constants.
939
940 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
941
942         * sysdeps/unix/opendir.c: Use o_directory_works differently.  Treat
943         zero value as uninitialized so that variable can go into .bss.
944
945         * dirent/opendir-tst1.c: Print error strings to stdout.
946
947         * sysdeps/unix/sysv/linux/mmap64.c: New file.  Empty.
948         * sysdeps/unix/sysv/linux/syscalls.list: Add mmap with mmap64 alias.
949         * sysdeps/unix/sysv/linux/arm/mmap.S: Add mmap64 alias.
950         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
951         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
952
953 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
954
955         * time/tzfile.c (__tzfile_read): Check that types[i].isdst is in
956         range.
957
958 1998-11-16  Ulrich Drepper  <drepper@cygnus.com>
959
960         * libio/bits/stdio.h (fread_unlocked): Do handle zero size and number.
961         (fwrite_unlocked): Likewise.
962
963 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
964
965         * libio/bits/stdio.h (fread_unlocked): Don't evaluate non-constant
966         twice.  Don't bother handling zero size.
967         (fwrite_unlocked): Likewise.
968
969 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
970
971         * configure.in: Fix regex for makeinfo version string.
972
973 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
974
975         * sunrpc/rpc_sample.c (write_sample_server): Avoid -Wparentheses
976         warning.
977         * sunrpc/rpc_svcout.c (write_program): Likewise.
978
979 1998-11-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
980
981         * time/Makefile (CFLAGS-test_time.c): Add -Wno-format.
982
983 1998-11-16  Ulrich Drepper  <drepper@cygnus.com
984
985         * misc/sys/mman.h: Pretty print prototypes.
986
987 1998-11-15  Ulrich Drepper  <drepper@cygnus.com
988
989         * misc/error.c (error): Don't use result of strerror_r call directly
990         since at least DEC Unix has a wrong return type.
991         Patch by Johan Danielsson <joda@pdc.kth.se>.
992
993 1998-11-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
994
995         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Undo
996         last change.
997
998 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
999
1000         * stdio-common/vfscanf.c: Don't return -1 in case of an invalid
1001         format, just stop.
1002
1003         * version.h (VERSION): Bump to 2.0.102.
1004
1005         * stdio-common/tstdiomisc.c (t2): Update test case for last scanf
1006         change.
1007         * stdio-common/scanf7.c (main): Likewise.
1008
1009 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
1010
1011         * stdio-common/vfscanf.c: Return EOF for invalid format
1012         characters.
1013
1014         * version.h (VERSION): Bump to 2.0.101.
1015
1016         * Makerules (Versions.all): Generate this file from all Versions.def
1017         files.
1018         (sysd-versions): Use Versions.all instead of Versions.def.
1019
1020 1998-11-13  Philip Blundell  <philb@gnu.org>
1021
1022         * sysdeps/arm/fpu/bits/setjmp.h (__JMP_BUF_SP): Correct value.
1023         Reported by Scott Bambrough.
1024
1025 1998-11-11  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1026
1027         * locale/programs/config.h: Define HAVE_STRING_H for xstrdup.c.
1028
1029 1998-11-13  Ulrich Drepper  <drepper@cygnus.com>
1030
1031         * libio/bits/stdio.h: Correct and improve fread_unlocked and
1032         fwrite_unlocked optimizations.
1033
1034         * time/tzfile.c (__tzfile_read): Set __tzname based on last names
1035         in time not to last entries in the file.
1036         (__tzfile_compute): Likewise.  Fix for PR libc/863.
1037
1038         * timezone/Makefile: Generate GB timezone data for test.
1039         * timezone/tst-timezone.c: More tests for DST switching time (disabled
1040         for now).
1041
1042 1998-11-13  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1043
1044         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Remove
1045         d0 from clobber list.
1046
1047 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1048
1049         * inet/netinet/in.h: Add a few more IPPROTO_* macros.
1050
1051         * libio/Makefile (headers): Add bits/stdio.h.
1052         * libio/iofread_u.c: Undefine fread_unlocked before definition.
1053         * libio/iofwrite_u.c: Undefine fwrite_unlocked before definition.
1054         * libio/stdio.h: Move optimizations into ...
1055         * libio/bits/stdio.h: ...here.  New file.
1056
1057         * libio/iofread.c: Pretty print.
1058
1059 1998-11-12  Mark Kettenis  <kettenis@phys.uva.nl>
1060
1061         * sysdeps/gnu/bits/utmpx.h: Protect members of struct
1062         __exit_status with `__'.  Rename pad member of struct utmpx to
1063         __unused.
1064         (RUN_LVL): Define unconditionally.
1065         * sysdeps/gnu/bits/utmp.h: Rename pad member of struct utmp to
1066         __unused.
1067
1068 1998-11-12  Philip Blundell  <philb@gnu.org>
1069
1070         * sysdeps/unix/sysv/linux/netlink/netlink.h: New file, support for
1071         Linux AF_NETLINK sockets (needed since the kernel version is
1072         unusable).
1073         * sysdeps/unix/sysv/linux/Makefile: Install it.
1074         * sysdeps/unix/sysv/linux/Dist: Distribute it.
1075
1076 1998-11-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1077
1078         * timezone/tst-timezone.c (tests): Add entry for America/Chicago
1079         to test for bug in PR libc/863.
1080
1081 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1082
1083         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Cleanup comment.
1084
1085         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Rename macro
1086         parameter lazy to do_lazy to avoid clashing with struct member name.
1087         Reported by Ralf Baechle <ralf@uni-koblenz.de>.
1088
1089 1998-11-10  H.J. Lu  <hjl@gnu.org>
1090
1091         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine NR_OPEN
1092         if it is defined in <linux/limits.h>.
1093
1094 1998-11-09 13:07 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1095
1096         * include/protocols/routed.h: Include the real header with
1097         a full path from the top of the source tree.
1098         * include/protocols/rwhod.h: Likewise.
1099         * include/protocols/talkd.h: Likewise.
1100         * include/protocols/timed.h: Likewise.
1101
1102         * timezone/Makefile: Don't include z.ZONE files if no_deps
1103         is set, not if avoid-generated is set.
1104
1105 1998-11-12  Ulrich Drepper  <drepper@cygnus.com>
1106
1107         * signal/signal.h: Undo last change.  Get definition of timespec
1108         if __USE_POSIX199309.
1109
1110         * string/bits/string2.h (__strpbrk_c2): Add intermediate cast to
1111         size_t to prevent gcc warning when using -Wqual-cast.
1112         (__strpbrk_c3): Likewise.
1113         Suggested by Alan Curry <pacman@cqc.com>.
1114
1115 1998-11-11  Roland McGrath  <roland@baalperazim.frob.com>
1116
1117         * hurd/hurdsig.c (_hurdsig_init): Add assertion that no pending,
1118         unblocked signals are set in the startup masks.
1119
1120         * hurd/hurdsig.c (_hurdsig_init): Take new args, INTARRAY and
1121         INTARRAYSIZE.  Initialize main thread's sigstate from INIT_SIG* ints.
1122
1123         * hurd/hurd/signal.h: Update _hurdsig_init decl.
1124         * hurd/hurdinit.c (_hurd_proc_init): Take new args, INTARRAY and
1125         INTARRAYSIZE, pass them down to _hurdsig_init.
1126         * hurd/hurd.h: Update _hurd_proc_init decl.
1127
1128 1998-11-10  Ulrich Drepper  <drepper@cygnus.com>
1129
1130         * math/cabs.c: Replace complex by _Complex.
1131         * math/cabsf.c: Likewise.
1132         * math/cabsl.c: Likewise.
1133         * math/cimag.c: Likewise.
1134         * math/cimagf.c: Likewise.
1135         * math/cimagl.c: Likewise.
1136         * math/conj.c: Likewise.
1137         * math/conjf.c: Likewise.
1138         * math/conjl.c: Likewise.
1139         * math/creal.c: Likewise.
1140         * math/crealf.c: Likewise.
1141         * math/creall.c: Likewise.
1142
1143         * sysdeps/alpha/fpu/bits/mathdef.h: Define ISO C 9X stuff only if
1144         included from math.h and __USE_ISOC9X is defined.
1145         * sysdeps/generic/bits/mathdef.h: Likewise.
1146         * sysdeps/generic/i386/fpu/mathdef.h: Likewise.
1147         * sysdeps/generic/m68k/fpu/mathdef.h: Likewise.
1148         * sysdeps/generic/powerpc/bits/mathdef.h: Likewise.
1149         * sysdeps/generic/sparc/fpu/bits/mathdef.h: Likewise.
1150
1151 1998-11-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1152
1153         * sysdeps/i386/fpu/bits/mathdef.h: Allow direct inclusion by
1154         <complex.h>.
1155         * sysdeps/alpha/fpu/bits/mathdef.h: Likewise.
1156         * sysdeps/generic/bits/mathdef.h: Likewise.
1157         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1158         * sysdeps/powerpc/bits/mathdef.h: Likewise.
1159         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1160
1161 1998-11-09  Ulrich Drepper  <drepper@cygnus.com>
1162
1163         * extra-lib.mk: Fix typo in last change.
1164
1165         * math/complex.h: Include bits/mathdef.h to get __NO_LONG_DOUBLE_MATH
1166         is needed.
1167         Don't define long double functions if __NO_LONG_DOUBLE_MATH is defined.
1168         Don't define `complex' but instead `_Complex'.  The later is the
1169         reserved keyword.
1170         * math/bits/cmathcalls.c: Define _Mdouble_complex_ using _Complex,
1171         not complex.
1172
1173 1998-11-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1174
1175         * manual/libc.texinfo: Remove colon from category name.
1176         * manual/Makefile (dir-add.info): Likewise.
1177
1178 1998-11-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1179
1180         * configure.in: Avoid autoconf bug.
1181
1182 1998-10-28  H.J. Lu  <hjl@gnu.org>
1183
1184         * posix/getopt.h: Add "__" to arguments in prototypes.
1185
1186 1998-11-05  H.J. Lu  <hjl@gnu.org>
1187
1188         * libio/iofgets.c (_IO_fgets): Don't report error
1189         if something was read in and errno is set to
1190         EAGAIN.
1191         * libio/iofgets_u.c (fgets_unlocked): Likewise.
1192
1193 1998-11-05  Philip Blundell  <philb@gnu.org>
1194
1195         * sysdeps/unix/sysv/linux/net/if_packet.h: Don't include kernel
1196         header; it defines too much.  Provide a local definition of struct
1197         sockaddr_pkt and a comment advising against its use.
1198
1199 1998-11-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1200
1201         * extra-lib.mk: Avoid empty include list.
1202
1203 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1204
1205         * extra-lib.mk: Add support for $(lib)-shared-only-routines.
1206
1207         * elf/Makefile (libdl-routines): Add dlopenold only if doing
1208         versioning.
1209         (libdl-shared-only-routines): New variable.
1210
1211 1998-11-06  Paul Eggert  <eggert@twinsun.com>
1212
1213         Don't invoke localtime_r or gmtime_r unless it's the GNU C
1214         library's localtime_r and gmtime_r; there are too many buggy
1215         implementations of localtime_r and gmtime_r out there, and
1216         it's not worth keeping track of all the different bugs.
1217
1218         * time/mktime.c (__EXTENSIONS__): Remove.
1219         (<unistd.h>): No need to include.
1220         * time/strftime.c: Likewise.
1221
1222         * time/mktime.c (_POSIX_THREAD_SAFE_FUNCTIONS, HAVE_LOCALTIME_R):
1223         Remove.
1224         (my_mktime_localtime_r): Renamed from localtime_r; all uses changed.
1225         Base it on localtime unless _LIBC.
1226
1227         * time/strftime.c (my_strftime_gmtime_r): Renamed from gmtime_r;
1228         all uses changed.
1229         (my_strftime_localtime_r): Renamed from localtime_r; all uses changed.
1230         Base them on localtime/gmtime if not _LIBC.
1231
1232 1998-11-07  Ulrich Drepper  <drepper@cygnus.com>
1233
1234         * sysdeps/generic/isastream.c: Always return 0 unless it is an invalid
1235         file descriptor.  This makes this function actually usable.
1236         Proposed by Mark Kettenis <kettenis@phys.uva.nl>.
1237
1238 1998-11-05  Ulrich Drepper  <drepper@cygnus.com>
1239
1240         * math/math.h: Unconditionally include bits/mathdef.h.  Declare
1241         long double functions only if __NO_LONG_DOUBLE_MATH is not
1242         defined.
1243         * sysdeps/generic/bits/mathdef.h: Define only if __USE_ISOC9X.
1244         Define __NO_LONG_DOUBLE_MATH.
1245         * sysdeps/m68k/fpu/bits/mathdef.h: Define only if __USE_ISOC9X.
1246         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1247
1248         * elf/rtld.c: Add a few __builtin_expects where they will improve
1249         a lot.
1250
1251 1998-11-05  Ulrich Drepper  <drepper@cygnus.com>
1252
1253         * version.h (VERSION): Bump to 2.0.100.
1254
1255         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Fix fldl -> fld.
1256
1257         * sysdeps/libm-i387/s_fma.S: Optimize a bit.
1258         * sysdeps/libm-i387/s_fmaf.S: Likewise.
1259
1260 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1261
1262         * libio/genops.c (_IO_least_marker): Add additional parameter
1263         end_p replacing fp->_IO_read_end.
1264         (save_for_backup): Likewise.  All callers changed.  Use _IO_size_t
1265         and _IO_ssize_t instead of int.
1266         (_IO_switch_to_main_get_area): Remove use of _IO_save_ptr.
1267         (_IO_switch_to_backup_area): Likewise.  Fix comments.
1268         (_IO_seekmark): Undo last change.
1269         (_IO_default_pbackfail): Correct use of backup area.
1270         * libio/libio.h (_IO_FILE_complete): Remove _IO_save_ptr.
1271
1272 1998-11-04 19:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1273
1274         * configure.in: Search for install-info and substitute it.
1275         Determine whether install-info is the buggy Debian version
1276         that doesn't understand INFO-DIR-SECTION.
1277         * config.make.in: Add INSTALL_INFO and OLD_DEBIAN_INSTALL_INFO
1278         to be substituted.
1279         * manual/Makefile: If OLD_DEBIAN_INSTALL_INFO, give
1280         install-info the --section argument it needs to work properly.
1281         (dir-add.texinfo): Delete target.
1282         (dir-add.info): Generate this directly.  Sort entries.  Put a
1283         colon at the end of the INFO-DIR-SECTION line.
1284         * manual/libc.texinfo: Put a colon at the end of the
1285         @dircategory line.
1286
1287 1998-11-05  Paul Eggert  <eggert@twinsun.com>
1288
1289         * time/mktime.c (__mktime_internal): Adopt the traditional (and
1290         problematic) notion of what to do when tm_isdst doesn't match.
1291
1292 1998-11-04  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1293
1294         * posix/PTESTS: Fix spelling.
1295
1296 1998-11-04  Ulrich Drepper  <drepper@cygnus.com>
1297
1298         * misc/efgcvt_r.c (fcvt_r): Remove code which tries to use libm
1299         functions.  Reduce error in computing normalized value by multiplying
1300         factor in loop and compute result in one step.
1301         Reported by Christian Gafton.
1302
1303         * sysdeps/libm-i387/e_hypot.S: New file.
1304         * sysdeps/libm-i387/e_hypotf.S: New file.
1305
1306 1998-11-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1307
1308         * elf/dlopenold.c: Compile only if DO_VERSIONING is also defined.
1309
1310 1998-11-03  H.J. Lu  <hjl@gnu.org>
1311
1312         * libio/fileops.c (new_do_write): New function.
1313         (_IO_new_do_write): Call new_do_write.
1314         (_IO_new_file_xsputn): Likewise.
1315
1316         * libio/oldfileops.c (old_do_write): New function.
1317         (_IO_old_do_write): Call old_do_write.
1318         (_IO_old_file_xsputn): Likewise.
1319
1320 1998-11-04  Ulrich Drepper  <drepper@cygnus.com>
1321
1322         * time/mktime.c (__mktime_internal): Correct last change.  We must
1323         stop searching for the right isdst value before stepping to the
1324         initial value.
1325
1326         * malloc/malloc.c: Make sure calloc really returned zeroed memory.
1327         Patch by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>.
1328
1329 1998-11-02 16:12 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1330
1331         * sysdeps/generic/bits/signum.h: Define signals with their
1332         historical numbers when those are in the 1-15 range and
1333         consistent across platforms.
1334         Define compatibility aliases (SIGIOT, SIGCLD) if __USE_MISC.
1335         Define SIG_DFL, SIG_IGN, SIG_ERR as numeric constants cast
1336         appropriately instead of with fake function declarations
1337         (would cause link errors).
1338         If __USE_UNIX98, define SIG_HOLD.
1339
1340 1998-10-29  H.J. Lu  <hjl@gnu.org>
1341
1342         * sysdeps/unix/sysv/linux/bits/sigaction.h (sigaction): Use
1343         union only if __USE_POSIX199309 is defined.
1344
1345         * misc/sys/select.h (pselect): Declared only if __USE_GNU is
1346         defined.
1347
1348 1998-11-03  Ulrich Drepper  <drepper@cygnus.com>
1349
1350         * time/mktime.c (__mktime_internal): Handle broken down times
1351         around the time of the DST switches more correctly.
1352
1353 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1354
1355         * elf/Makefile (libdl-routines): Add dlopenold.
1356         * elf/Versions [libdl, GLIBC_2.1]: Add dlopen.
1357         * elf/dl-open.c (_dl_open): Check whether RTLD_LAZY or RTLD_GLOBAL
1358         is set and bounce otherwise.
1359         * elf/dlopen.c: Rename function to __dlopen_check and make version
1360         named dlopen.
1361         * elf/dlopenold.c: New file.
1362
1363 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1364
1365         * elf/Versions [libc, GLIBC_2.01]: Add _dl_global_scope_alloc.
1366         * elf/dl-open.c (_dl_global_scope_alloc): Move definition to
1367         * elf/dl-deps.c: ...here.
1368         * elf/dl-open.c (dl_open_worker): Call _dl_map_object_deps with
1369         new parameter and expect result.  Remove code handling RTLD_GLOBAL.
1370         Add return value of _dl_map_object_deps to
1371         _dl_main_searchlist->r_nlist.
1372         * elf/dl-deps.c (_dl_map_object_deps): Change to return value.
1373         If we parameter GLOBAL is nonzero add object and dependencies to
1374         the global scope.
1375         * elf/ldsodefs.h: Adapt prototype for _dl_map_object_deps.
1376         * elf/rtld.c (dl_main): Call _dl_map_object_deps with new parameter.
1377         Mark all objects as in global scope.
1378         * elf/dl-object.c (_dl_new_object): Initialize l_global to zero.
1379
1380         * sysdeps/unix/sysv/linux/bits/sockunion.h: Add Econet support.
1381
1382         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add .L prefix to symbols
1383         used in macro magic.
1384
1385 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1386
1387         * sysdeps/unix/sysv/linux/netatalk/at.h: Include <linux/atalk.h>
1388         before <sys/socket.h> to make sockaddr_at available to
1389         <sys/socket.h>.
1390
1391         * posix/glob.h: Remove __P from parameter lists of declarations.
1392
1393 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1394
1395         * time/tzset.c (tz_compute): Remove unused parameter timer.
1396         Change caller.
1397
1398 1998-11-02  Mark Kettenis  <kettenis@phys.uva.nl>
1399
1400         * sysdeps/generic/bits/types.h (__ipc_pid_t): New typedef.
1401
1402 1998-11-02  Ulrich Drepper  <drepper@cygnus.com>
1403
1404         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Remove
1405         unnecessary test and add cast.
1406
1407 1998-11-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1408
1409         * posix/getconf.c: Add initializer SYSCONF for CHARCLASS_NAME_MAX.
1410
1411         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Remove unused
1412         parameter fd.
1413         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
1414
1415 1998-11-02  Mark Kettenis  <kettenis@phys.uva.nl>
1416
1417         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
1418         fds_bits member.
1419         (__FDMASK): Use __fd_mask instead of unsigned long int in cast.
1420
1421 1998-10-31  Richard Henderson  <rth@cygnus.com>
1422
1423         * math/Makefile (gmp-objs): Add udiv_qrnnd.
1424
1425         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL*): New.
1426         (inline_syscall*): New.
1427         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): New.
1428         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Kill __syscall* bits.
1429
1430 1998-10-31  Ulrich Drepper  <drepper@cygnus.com>
1431
1432         * aclocal.m4 (LIBC_PROG_FOO_GNU): Name output file using -o to
1433         avoid ld test generating an unwanted file.
1434
1435         * posix/PTESTS: Remove comment about incorrect test (it is correct).
1436
1437 1998-10-30  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1438
1439         * sunrpc/Versions: Add xdr_uint32_t and xdr_int32_t.
1440         * sunrpc/pmap_rmt.c: Initialize clnt_stat variable.
1441         * sunrpc/rpc/auth_des.h: Use uint32_t for time values.
1442         * sunrpc/rpc/xdr.h: Add INT32 support.
1443         * sunrpc/xdr.c: Implement xdr_int32_t and xdr_uint32_t .
1444
1445         * nis/nis_call.c: Changes for new 64bit clean NIS+ interface.
1446         * nis/nis_callback.c: Likewise.
1447         * nis/nis_creategroup.c: Likewise.
1448         * nis/nis_defaults.c: Likewise.
1449         * nis/nis_intern.h: Likewise.
1450         * nis/nis_lookup.c: Likewise.
1451         * nis/nis_ping.c: Likewise.
1452         * nis/nis_print.c: Likewise.
1453         * nis/nis_table.c: Likewise.
1454         * nis/nis_util.c: Likewise.
1455         * nis/nis_xdr.c: Likewise.
1456         * nis/rpcsvc/nis.h: Likewise.
1457         * nis/rpcsvc/nis.x: Likewise.
1458         * nis/rpcsvc/nis_callback.h: Likewise.
1459         * nis/rpcsvc/nis_object.x: Likewise.
1460         * nis/rpcsvc/nislib.h: Likewise.
1461
1462         * nis/rpcsvc/yp.h: Remove casts to (u_long).
1463         * nis/rpcsvc/yp_prot.h: Likewise.
1464         * nis/rpcsvc/ypupd.h: Likewise.
1465         * nis/ypclnt.c: Change %ld to %d in sprintf.
1466
1467 1998-10-29  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1468
1469         * manual/locale.texi (Formatting Numbers): Fix strfmon examples.
1470
1471 1998-10-28  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1472
1473         * sysdeps/generic/bits/select.h (__FD_ZERO): Change '\0' to plain
1474         0, __fd_mask is usually not a char.
1475
1476 1998-10-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1477
1478         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Allow
1479         compilation on systems without rt_* syscalls (e.g. on Linux 2.0).
1480         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
1481         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1482         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1483         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise
1484         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
1485         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
1486
1487         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Allow
1488         compiling on systems without rt_sigaction syscall.
1489         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction):
1490         Likewise.
1491
1492 1998-10-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1493
1494         * time/strptime.c (HERE_D_FMT): Fix typo.
1495         Reported by Claus Heine <heine@math1.rwth-aachen.de>, PR libc/842.
1496
1497 1998-10-30  Ulrich Drepper  <drepper@cygnus.com>
1498
1499         * catgets/Makefile (tests): Add rules to run gencat on test1.msg.
1500         (generate): Add test1.cat and test1.h.
1501         (distribute): Add test1.msg.
1502         * catgets/test1.msg: New file.
1503
1504         * catgets/gencat.c: Do a better job in initializing dynamic
1505         memory [PR libc/844].
1506
1507 1998-10-30 18:11  Ulrich Drepper  <drepper@cygnus.com>
1508
1509         * iconv/gconv_conf.c (__gconv_read_conf): Don't define as
1510         internal_function since it is called through a pointer.
1511         * iconv/gconv_db.c (free_derivation): Likewise.
1512         * iconv/gconv_int.h: Adjust prototype od __gconv_read_conf.
1513
1514         * posix/wordexp.c: Add internal_function to parse_backtick definition.
1515         * rt/aio_misc.c: Add internal_function to __aio_free_request,
1516         __aio_find_req, __aio_find_req_fd, and __aio_enqueue_request
1517         definitions.
1518         * rt/aio_notify.c: Add internal_function to __aio_notify_only and
1519         __aio_notify definitions.
1520         * wcsmbsload.c: Add internal_function to __wcsmbs_load_conv definition.
1521
1522 1998-10-30  Ulrich Drepper  <drepper@cygnus.com>
1523
1524         * Makerules (build-shlib): Add -O to generate optimized shared
1525         objects.
1526
1527 1998-10-30 11:15  Ulrich Drepper  <drepper@cygnus.com>
1528
1529         * sysdeps/libm-i387/e_fmod.S: Remove invalid operand size suffix.
1530         * sysdeps/libm-i387/e_fmodf.S: Likewise.
1531         * sysdeps/libm-i387/e_fmodl.S: Likewise.
1532         * sysdeps/libm-i387/s_ilogb.S: Likewise.
1533         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
1534         * sysdeps/libm-i387/s_logb.S: Likewise.
1535         * sysdeps/libm-i387/s_logbf.S: Likewise.
1536         * sysdeps/libm-i387/s_remquo.S: Likewise.
1537         * sysdeps/libm-i387/s_remquof.S: Likewise.
1538         * sysdeps/libm-i387/s_remquol.S: Likewise.
1539         * sysdeps/libm-i387/s_significand.S: Likewise.
1540         * sysdeps/libm-i387/s_significandf.S: Likewise.
1541
1542 1998-10-30  Geoff Keating  <geoffk@ozemail.com.au>
1543
1544         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Really correct
1545         _llseek.
1546
1547 1998-10-30  Geoff Keating  <geoffk@ozemail.com.au>
1548
1549         * math/libm-test.c: Loosen deltas for sin(0.9)^2+cos(0.9)^2.
1550
1551 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
1552
1553         * stdio-common/vfprintf.c (vfprintf): Fix the remaining premature
1554         returns without cleaning up the lock.
1555         (printf_unknown): Add label all_done.
1556
1557         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Keep Linux 2.0
1558         kernels in mind when reading /proc/self/fd/FD.
1559         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
1560
1561         * nscd/nscd.c (doc): It's "Name Service" not "Name Switch".
1562
1563         * malloc/mtrace.c (tr_where): Replace snprintf call by mempcpy and
1564         _fitoa.
1565
1566         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Try reading
1567         /prof/self/fd/FD first.
1568         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
1569
1570         * stdio-common/_itoa.h (_fitoa_word): New inline function.  Write
1571         formatted number starting at given position and return pointer to
1572         following byte.
1573         (_fitoa): Likewise, for long long.
1574
1575 1998-10-29  Roland McGrath  <roland@baalperazim.frob.com>
1576
1577         * sysdeps/unix/sysv/linux/bits/sem.h,
1578         sysdeps/unix/sysv/linux/bits/ipc.h,
1579         sysdeps/unix/sysv/linux/bits/shm.h,
1580         sysdeps/unix/sysv/linux/bits/msq.h: Moved to ...
1581         * sysdeps/gnu/bits/sem.h, sysdeps/gnu/bits/ipc.h,
1582         sysdeps/gnu/bits/shm.h, sysdeps/gnu/bits/msq.h: ... here,
1583         so the same bits will be used for the Hurd.
1584
1585 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
1586
1587         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Allow
1588         compiling on systems without rt_sigaction syscall.
1589
1590 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
1591
1592         * Makeconfig (sysdep-subdirs): Allow Subdirs files to remove
1593         directories as well as add them.
1594
1595 1998-10-28  Philip Blundell  <pb@nexus.co.uk>
1596
1597         * sysdeps/unix/sysv/linux/neteconet/ec.h: New file.  Support for
1598         AF_ECONET sockets as found in recent Linux 2.1 kernels.
1599         * sysdeps/unix/sysv/linux/Dist: Distribute it.
1600         * sysdeps/unix/sysv/linux/Makefile: Install it.
1601
1602 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1603
1604         * string/bits/string2.h: __USE_GNU already implies __USE_MISC.
1605
1606 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1607
1608         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
1609         fds_bits member.
1610         * sysdeps/unix/sysv/linux/alpha/bits/types.h (__FDS_BITS): Likewise.
1611         * sysdeps/unix/sysv/linux/bits/types.h (__FDS_BITS): Likewise.
1612         * sysdeps/unix/sysv/linux/mips/bits/types.h (__FDS_BITS): Likewise.
1613         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h (__FDS_BITS):
1614         Likewise.
1615         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h (__FDS_BITS):
1616         Likewise.
1617         * sysdeps/generic/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
1618         __FD_ISSET): Use it.
1619         * sysdeps/i386/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
1620         __FD_ISSET): Likewise.
1621
1622 1998-10-28  Geoff Keating  <geoffk@ozemail.com.au>
1623
1624         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Tidy up, correct
1625         llseek.
1626
1627         * sysdeps/unix/sysv/linux/powerpc/pread.c: Do not use the i386 version.
1628         Instead call the system call wrapper function using an 64bit argument.
1629         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
1630         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
1631         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
1632
1633 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
1634
1635         * signal/signal.h: Don't include <time.h> for timespec, add
1636         forward declaration.
1637
1638         * sysdeps/i386/bits/select.h [!__USE_XOPEN]: Add special version
1639         of __FD_* macros which use __fds_bits.
1640         * sysdeps/generic/bits/select.h: Likewise.
1641         Reported by Matt McLean <keys@yikes.com>.
1642
1643 1998-10-27  Philip Blundell  <pb@nexus.co.uk>
1644
1645         * elf/elf.h: Update ARM definitions.
1646
1647 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
1648
1649         * signal/signal.h: Include bits/sigthread.h only for Unix98.
1650
1651 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
1652
1653         * include/libc-symbols.h: If HAVE_BUILTIN_EXPECT is not defined
1654         define __builtin_expect as a macro substituting to the first
1655         argument.
1656         * config.h.in: Define HAVE_BUILTIN_EXPECT.
1657         * configure.in: Add test for __builtin_expect.
1658
1659         * sysdeps/unix/sysv/linux/bits/types.h: Include
1660         bits/pthreadtypes.h only not for POSIX 199506.
1661         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
1662         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
1663         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
1664
1665 1998-10-26  Mark Kettenis  <kettenis@phys.uva.nl>
1666
1667         * sysdeps/unix/sysv/linux/Versions: Move shutdown ...
1668         * socket/Versions [libc, GLIBC_2.0]: ... to here.
1669
1670 1998-10-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1671
1672         * include/stdio.h: Included <stddef.h> for size_t.
1673
1674         * stdio/stdio.h: Move __path_search, __gen_tempname, __libc_fatal
1675         to ...
1676         * include/stdio.h: ...here.
1677         * libio/stdio.h: Removed __path_search, __gen_tempname, __libc_fatal.
1678
1679 1998-10-26 11:09  Ulrich Drepper  <drepper@cygnus.com>
1680
1681         * time/Makefile (tests): Add tst-posixtz.
1682         * time/tst-posixtz.c: New file.
1683
1684 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1685
1686         * elf/rtld.c (process_envvars): Accept any non-null value of
1687         LD_BIND_NOW, as mandated by the ABI.
1688
1689 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1690
1691         * sysdeps/unix/sysv/linux/pread.c: Rename __syscall_pread64 to
1692         __syscall_pread.
1693         * sysdeps/unix/sysv/linux/pwrite.c: Rename __syscall_pwrite64 to
1694         __syscall_pwrite.
1695         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1696         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
1697         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1698         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1699         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.  Remove
1700         duplicate entries.
1701         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Remove
1702         s_pread64 and s_pwrite64.
1703         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1704
1705 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1706
1707         * sysdeps/unix/sysv/linux/llseek.c: Use INLINE_SYSCALL.
1708         * sysdeps/unix/sysv/linux/arm/syscalls.list: Rename __sys_llseek
1709         to __syscall__llseek.
1710         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1711         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1712         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove entry for
1713         __sys_llseek.
1714
1715 1998-10-26  Cristian Gafton  <gafton@redhat.com>
1716
1717         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add s_setfsgid
1718         and s_setfsuid.
1719
1720 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
1721
1722         * time/tzset.c (tz_compute): Correct last patch and describe this
1723         in a comment.
1724
1725 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1726
1727         * sysdeps/unix/sysv/linux/m68k/Makefile [subdir=signal]: Remove
1728         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo,
1729         rt_sigaction and rt_sigpending.
1730         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Remove all entries
1731         for __syscall_* functions.
1732         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Implement INLINE_SYSCALL.
1733
1734 1998-10-26  Roland McGrath  <roland@baalperazim.frob.com>
1735
1736         * hurd/Versions: Add _hurd_dtable, _hurd_dtablesize,
1737         _hurd_dtable_lock, _hurd_intern_fd.
1738
1739         * sysdeps/mach/hurd/Versions: Add cthread_keycreate,
1740         cthread_getspecific, cthread_setspecific, __libc_getspecific.
1741
1742         * mach/Versions: Fix typo in last change.
1743
1744 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
1745
1746         * time/tzset.c (tz_compute): If time to switch to DST is later in
1747         the year switch back in the next year.
1748         Reported by jwitford@hutch.com.au.
1749
1750 1998-10-24  Mark Kettenis  <kettenis@phys.uva.nl>
1751
1752         * mach/Versions: Add evc_wait, mach_error, mach_error_string,
1753         mach_error_type, mach_msg_destroy, mig_deallocate_reply_port.
1754         Remove __mach_host_self, __mach_reply_port, __mach_setup_thread,
1755         __mach_port_allocate, __mach_port_allocate_name,
1756         __mach_port_insert_right __mutex_trylock, __mutex_lock,
1757         __mutex_unlock, __swtch, __switch, __task_create, __task_suspend,
1758         __task_set_special_port, __task_terminate, __thread_depress_abort,
1759         __thread_switch, __vm_allocate, __vm_deallocate, __vm_map.  These
1760         functions are not used outside libc.
1761
1762         * sysdeps/mach/hurd/Versions: New file.
1763         [libc, GLIBC_2.0]: Add _cthread_exit_routine and
1764         _cthread_init_routine.  These are set by the Hurd cthreads library.
1765         Add __getcwd, __mmap.  If we don't add these, the weak definitions in
1766         the dynamic linker will not be replaced by the corresponding shared
1767         library routines once they are loaded.
1768
1769 1998-10-21  Mark Kettenis  <kettenis@phys.uva.nl>
1770
1771         * sysdeps/mach/hurd/i386/init-first.c: Only define
1772         __libc_enable_secure if PIC is not defined.
1773
1774 1998-10-25  Roland McGrath  <roland@baalperazim.frob.com>
1775
1776         * argp/Versions: Add _argp_unlock_xxx.  Lock-savvy functions call this
1777         to recurse into argp.
1778
1779 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
1780
1781         * include/features.h: Define __USE_POSIS199506 is _POSIX_C_SOURCE is
1782         greater or equal than 199506L.
1783
1784         * sysdeps/generic/bits/types.h (__fd_set): Define element as fds_bits
1785         only is __USE_XOPEN.  Otherwise use __fds_bits.
1786         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
1787         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
1788         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
1789         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1790         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
1791
1792 1998-10-24  H.J. Lu  <hjl@gnu.org>
1793
1794         * locale/programs/charmap.c (parse_charmap): Accept tok_string
1795         for <code_set_name>.
1796
1797 1998-10-25  H.J. Lu  <hjl@gnu.org>
1798
1799         * locale/programs/ld-ctype.c (ctype_finish): Also check
1800         <space>.
1801
1802 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
1803
1804         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX199506.
1805
1806         * sysdeps/unix/sysv/linux/bits/types.h: Include pthreadtypes.h only
1807         if __USE_POSIX199506 or __USE_UNIX98.
1808
1809 1998-10-24 22:34 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1810
1811         * string/bits/string2.h: Inline strdup+friends only if
1812         __USE_MISC || __USE_GNU (prevents namespace pollution).
1813
1814 1998-10-24  H.J. Lu  <hjl@gnu.org>
1815
1816         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (LOCK_SH,
1817         LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD.
1818         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (LOCK_SH, LOCK_EX,
1819         LOCK_NB, LOCK_UN): Likewise.
1820         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (LOCK_SH, LOCK_EX,
1821         LOCK_NB, LOCK_UN): Likewise.
1822         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (LOCK_SH, LOCK_EX,
1823         LOCK_NB, LOCK_UN): Likewise.
1824         * sysdeps/unix/sysv/linux/bits/fcntl.h (LOCK_SH, LOCK_EX,
1825         LOCK_NB, LOCK_UN): Likewise.
1826
1827 1998-10-24  H.J. Lu  <hjl@gnu.org>
1828
1829         * libio/ioseekoff.c (_IO_seekoff): Check the valid dir value.
1830
1831         * libio/rewind.c (rewind): Clear the error.
1832
1833 1998-10-24  H.J. Lu  <hjl@gnu.org>
1834
1835         * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to
1836         "buffer".
1837
1838 1998-10-24  H.J. Lu  <hjl@gnu.org>
1839
1840         * sysdeps/unix/sysv/linux/alpha/bits/time.h (timeval): Protect
1841         with __need_timeval.
1842         * sysdeps/unix/sysv/linux/mips/bits/time.h (timeval): Likewise.
1843         * sysdeps/unix/sysv/linux/bits/time.h (timeval): Likewise.
1844
1845 1998-10-24  H.J. Lu  <hjl@gnu.org>
1846
1847         * signal/signal.h (timespec, siginfo_t, sigwaitinfo, sigtimedwait,
1848         sigqueue): Protect with __USE_POSIX199309.
1849
1850 1998-10-24  H.J. Lu  <hjl@gnu.org>
1851
1852         * time/time.h (timespec): Protect with __USE_POSIX199309 instead of
1853         __USE_POSIX.
1854
1855 1998-10-24  H.J. Lu  <hjl@gnu.org>
1856
1857         * libio/fileops.c (_IO_new_file_seekoff): Always resync with
1858         the kernel file offset.
1859         * libio/oldfileops.c (_IO_old_file_seekoff): Likewise.
1860
1861 1998-10-24  H.J. Lu  <hjl@gnu.org>
1862
1863         * time/tzfile.c (__tzfile_default): Set num_types to 2.
1864
1865 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1866
1867         * rt/aio.h: Move __aio_init to...
1868         * include/aio.h: ...here.
1869
1870 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1871
1872         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate
1873         definition of O_LARGEFILE.
1874
1875 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1876
1877         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path
1878         as first argument to statfs.
1879
1880 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1881
1882         * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else.
1883
1884 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1885
1886         * malloc/mtrace.c: Include <string.h> for strlen.
1887
1888 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
1889
1890         * sysdeps/mach/hurd/bits/environments.h: New file.
1891
1892         * sysdeps/mach/hurd/dl-sysdep.c (__getcwd): New weak function.
1893
1894         * mach/Versions, hurd/Versions: Add numerous symbols.
1895         Remove libmachuser and libhurduser sections, punt
1896         versioning for those libraries for now.
1897
1898         * misc/Versions: Add reboot here; it exists on all platforms.
1899         * sysdeps/unix/sysv/linux/Versions: Remove reboot here.
1900
1901 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
1902
1903         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOFOLLOW): New
1904         macro.
1905         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
1906         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1907         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_LARGEFILE,
1908         O_NOFOLLOW, O_DIRECT): New macros.
1909         (O_DIRECTORY): Correct definition according to official 2.1.126.
1910         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECTORY,
1911         O_NOFOLLOW): New macros.
1912
1913 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
1914
1915         * include/ldsodefs.h: Test HAVE_ELF instead of __ELF__.
1916
1917         * sysdeps/mach/hurd/opendir.c (__opendir): Return ENOENT for "".
1918         (__opendir): Add trailing slash to name for open, for ENOTDIR check.
1919
1920 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
1921
1922         * sysdeps/unix/sysv/linux/i386/Dist: Add setresuid.c, setresgid.c,
1923         setfsuid.c, and setfsgid.c.
1924         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
1925         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
1926         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
1927
1928         * version.h (VERSION): Bump to 2.0.99.
1929
1930         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove duplicate
1931         ustat definition.
1932
1933         * sysdeps/unix/sysv/linux/i386/Dist: Remove s_pread64.c and
1934         s_pwrite64.c.
1935
1936         * posix/fnmath.h: Don't redefine __P when used in glibc.
1937         * posix/glob.h: Likewise.
1938
1939         * inet/rcmd.c (__ivaliduser2): Fix memory leak.
1940         Patch by Dick Streefland <dick_streefland@tasking.com>.
1941
1942         * stdio-common/tst-ungetc.c: Add more test cases.
1943
1944         * sysdeps/unix/sysv/linux/Dist: Add linux_fsinfo.h.
1945         * sysdeps/unix/sysv/linux/fstatvfs.c: Move filesystem magic number
1946         definitions to ...
1947         * sysdeps/unix/sysv/linux/linux_fsinfo.h: ...here.  New file.
1948         * sysdeps/unix/sysv/linux/fpathconf.c: New file.
1949         * sysdeps/unix/sysv/linux/pathconf.c: New file.
1950         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Handle _PC_LINK_MAX here.
1951         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
1952
1953 1998-10-20  Philip Blundell  <pb@nexus.co.uk>
1954
1955         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: Include
1956         <asm/ptrace.h> to define struct pt_regs.
1957         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Don't bother
1958         including <asm/ptrace.h> here.
1959
1960         * sysdeps/unix/sysv/linux/arm/sysdep.S: Remove spurious call to
1961         C_SYMBOL_NAME macro.
1962
1963 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1964
1965         * sysdeps/generic/sys/ptrace.h (__ptrace_request): Remove comma at
1966         end of enumerator list.
1967         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Likewise.
1968         * posix/wordexp.h: Likewise.
1969
1970         * db/db.h: Use __PMT instead of __P in typedefs.
1971         * db/mpool.h: Likewise.
1972         * sysdeps/generic/bits/siginfo.h: Likewise.
1973         * nis/rpcsvc/ypclnt.h: Likewise.
1974
1975 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
1976
1977         * libio/genops.c (_IO_seekmark): When switching to backup buffer
1978         make sure all characters from the read buffer are read after
1979         switching back to it.
1980
1981 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
1982
1983         * configure.in: Add support for Cygnus GNUPro compilers.
1984
1985 1998-10-22  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1986
1987         * stdio/stdio.h: Use __PMT instead of __P in typedefs.
1988
1989         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use __PMT instead
1990         of __P for sa_restorer.
1991         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1992         * sysdeps/unix/sysv/linux/kernel_sigaction.h (struct
1993         kernel_sigaction, old_kernel_sigaction): Likewise.
1994
1995 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
1996
1997         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add __syscall_pread
1998         and __syscall_pwrite aliases.
1999
2000         * sunrpc/rpc/auth.h (AUTH_DH): New macro.  Alias for AUTH_DES.
2001
2002         * sysdeps/unix/sysv/linux/i386/sysdep.h: Drastically simplify and
2003         improve INLINE_SYSCALL using macro assembler magic.
2004
2005 1998-10-22  H.J. Lu  <hjl@gnu.org>
2006
2007         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Add
2008         sanity check for n.
2009         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Likewise.
2010
2011         * sysdeps/posix/fpathconf.c (__fpathconf): Set errno to
2012         EINVAL if errno == ENODEV.  Tested by VSX-PCT.
2013
2014         * sysdeps/posix/isatty.c (__isatty): Don't reset errno.  Tested
2015         by VSX-PCT.
2016
2017         * posix/execvp.c (execvp): Check "".  Tested by VSX-PCT.
2018
2019 1998-10-22  Philip Blundell  <pb@nexus.co.uk>
2020
2021         * sysdeps/unix/arm/sysdep.h: Wrap assembler macros in #ifdef
2022         __ASSEMBLER__.
2023
2024 1998-10-21  Ulrich Drepper  <drepper@cygnus.com>
2025
2026         * sysdeps/unix/sysv/linux/i386/sysdep.h: Remove EXTRAVARS_* macros
2027         and adjust formats.
2028
2029 1998-10-21 14:38  Ulrich Drepper  <drepper@cygnus.com>
2030
2031         * sysdeps/unix/sysdep.h (INLINE_SYSCALL): New macro.  Simply call
2032         __syscall_* function.
2033         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Use INLINE_SYSCALL instead
2034         of calling __syscall_* function.
2035         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2036         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2037         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2038         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2039         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
2040         * sysdeps/unix/sysv/linux/getresgid.c: Likewise.
2041         * sysdeps/unix/sysv/linux/getresuid.c: Likewise.
2042         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2043         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2044         * sysdeps/unix/sysv/linux/poll.c: Likewise.
2045         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2046         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2047         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2048         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2049         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2050         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2051         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
2052         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2053         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
2054         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2055         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2056         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2057         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2058         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2059         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2060         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2061         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2062         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2063         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2064         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2065         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2066         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2067         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2068         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2069         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2070         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2071         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
2072         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
2073         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2074         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2075         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2076         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
2077
2078         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INLINE_SYSCALL using
2079         inline assembler.
2080         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove various
2081         __syscall_* definitions.
2082
2083         * sysdeps/unix/sysv/linux/syscalls.list: Move various __syscall_*
2084         definitions to...
2085         * sysdeps/unix/sysv/linux/alpha/syscalls.list: ...here...
2086         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
2087         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
2088         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
2089         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
2090         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
2091         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
2092
2093         * sysdeps/unix/sysv/linux/Makefile [subdir=signal] (sysdep_routines):
2094         Move definition to...
2095         * sysdeps/unix/sysv/linux/alpha/Makefile: ...here...
2096         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
2097         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
2098         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
2099         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
2100         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
2101         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
2102
2103         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
2104         (sysdep_routines): Remove s_pread64 and s_pwrite64.
2105
2106         * sysdeps/unix/sysv/linux/i386/pread.c: New file.
2107         * sysdeps/unix/sysv/linux/i386/pread64.c: New file.
2108         * sysdeps/unix/sysv/linux/i386/pwrite.c: New file.
2109         * sysdeps/unix/sysv/linux/i386/pwrite64.c: New file.
2110         * sysdeps/unix/sysv/linux/i386/s_pread64.S: Removed.
2111         * sysdeps/unix/sysv/linux/i386/s_pwrite64.S: Removed.
2112
2113 1998-10-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2114
2115         * sysdeps/unix/sysv/linux/siglist.h: Fix some typos in these files
2116         and bring them in synch.
2117         * sysdeps/unix/siglist.c: Likewise.
2118         Reported by Vladimir Michl <michlv@risc.upol.cz> [PR libc/832].
2119
2120 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2121
2122         * sysdeps/unix/sysv/linux/i386/setresuid.c: Allow -1 as arguments.
2123         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2124
2125         * sysdeps/unix/sysv/linux/i386/setreuid.c: New file.
2126         * sysdeps/unix/sysv/linux/i386/setregid.c: New file.
2127         * sysdeps/unix/sysv/linux/m68k/setreuid.c: New file.
2128         * sysdeps/unix/sysv/linux/m68k/setregid.c: New file.
2129         * sysdeps/unix/sysv/linux/arm/setreuid.c: New file.
2130         * sysdeps/unix/sysv/linux/arm/setregid.c: New file.
2131         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: New file.
2132         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: New file.
2133         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add s_setreuid and
2134         s_setregid.
2135         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
2136         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2137         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2138
2139 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2140
2141         * sunrpc/rpc_main.c (close_output, close_input): New functions.
2142         (c_output, h_output, s_output, l_output, t_output, svc_output,
2143         clnt_output, mkfile_output): Call them at the end.
2144
2145 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2146
2147         * db/Makefile (LDFLAGS-db1.so): New variable, to avoid duplicating
2148         link command.
2149
2150 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2151
2152         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Add real contents.
2153         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add s_setfs[ug]id.
2154
2155 1998-10-20  Ulrich Drepper  <drepper@cygnus.com>
2156
2157         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_pread64 and
2158         s_pwrite64.
2159         * sysdeps/unix/sysv/linux/powerpc/pread.c: New file.
2160         * sysdeps/unix/sysv/linux/powerpc/pread64.c: New file.
2161         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: New file.
2162         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: New file.
2163         Patch by Geoffrey KEATING <geoffk@discus.anu.edu.au>.
2164
2165 1998-10-18  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2166
2167         * sysdeps/unix/opendir.c: Check at runtime for kernel support for
2168         O_DIRECTORY.
2169
2170 1998-10-20  H.J. Lu  <hjl@gnu.org>
2171
2172         * sysdeps/unix/sysv/linux/i386/setresuid.c (__setresuid): Fix
2173         argument types.
2174
2175 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2176
2177         * math/tgmath.h: Make nested function calls work.
2178
2179         * include/ldsodefs.h: Fix typo.
2180
2181         * posix/Makefile (tests): Add tst-preadwrite.
2182         * posix/tst-preadwrite.c: New file.
2183
2184         * sysdeps/unix/opendir.c (__opendir): Add back fstat call to make
2185         sure that descriptor is in any case for a directory.
2186
2187 1998-10-19 18:59 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2188
2189         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val.
2190         (atan2): Takes two arguments.
2191
2192 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2193
2194         * include/ldsodefs.h: New file.
2195
2196         * iconv/gconv.c: Include ldsodefs.h, not elf/ldsodefs.h.
2197         Remove change to avoid using _CALL_DL_FCT.
2198         * iconv/gconv_db.c: Likewise.
2199         * iconv/gconv_dl.c: Likewise.
2200         * iconv/skeleton.c: Likewise, here for DL_CALL_FCT.
2201         * malloc/mtrace.c: Include ldsodefs.h, not elf/ldsodefs.h.
2202         * nss/nsswitch.c: Likewise.
2203         * nss/nsswitch.h: Likewise.
2204
2205 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2206
2207         * sunrpc/Makefile (otherlibs): If static NSS is in use, set to the
2208         required libraries.
2209         * login/Makefile (otherlibs): Likewise.
2210         * nscd/Makefile (otherlibs): Likewise.
2211         * Makeconfig (link-libc) [! build_shared]: Add $(otherlibs).
2212
2213         * debug/Makefile (install-bin): Only build catchsegv if using ELF.
2214
2215         * inet/Makefile: Add -DSTATIC_NSS to CFLAGS.
2216
2217 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2218
2219         * sysdeps/unix/sysv/linux/arm/syscalls.list: Added setfsgid
2220         and setfsuid.
2221
2222 1998-10-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2223
2224         * nscd/connections.c: Fix typos in comments and strings.
2225
2226         * nscd/nscd.conf: Update according to recent changes to nscd.
2227
2228         * nscd/cache.c (prune_cache): Remove wrong comment.
2229
2230 1998-10-19 13:24  Ulrich Drepper  <drepper@cygnus.com>
2231
2232         * locale/programs/ld-collate.c (collate_startup): Clear bit for this
2233         category in copy_posix.
2234         (collate_finish): Don't warn about UNDEFINED not being defined.
2235         * locale/programs/ld-ctype.c (ctype_startup): Clear bit for this
2236         category in copy_posix.
2237         * locale/programs/ld-messages.c (messages_startup): Likewise.
2238         * locale/programs/ld-monetary.c (monetary_startup): Likewise.
2239         * locale/programs/ld-numeric.c (numeric_startup): Likewise.
2240         * locale/programs/ld-time.c (time_startup): Likewise.
2241         * locale/programs/localedef.c: Move copy_def_list_t definition into
2242         locales.h.  Define copy_posix variable.
2243         (main): Before processing copy list add &copy_posix to copy_list.
2244         * locale/programs/locales.h: Add definition of copy_def_list_t.
2245         * locale/programs/locfile.c: Clear bit for appropriate category in
2246         copy_posix.mask for copy instruction.
2247
2248 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2249
2250         * sysdeps/unix/sysv/linux/i386/setresgid.c: Remove #include of
2251         non-existing file with generic implementation.
2252         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2253
2254 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
2255
2256         * iconv/gconv_db.c: Include ELF header only if STATIC_GCONV is not
2257         defined.  Avoid using _CALL_DL_FCT if it is not defined.
2258         * iconv/gconv.c: Likewise.
2259
2260 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
2261
2262         * nscd/connections.c (dbs): Define defualt values for timeouts and
2263         set enabled to 0 by default.
2264         (CACHE_PRUNE_INTERVAL): New constant.  Use it instead of magical 15 in
2265         nscd_run.
2266
2267         * locale/C-ctype.c (_nl_C_LC_CTYPE_class): Clear ISCNTRL bit for
2268         character >= 0x80.
2269         (_nl_C_LC_CTYPE_class32): Likewise.
2270         Reported by HJ Lu.
2271
2272 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2273
2274         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
2275         _HURD_THREADVAR_DL_ERROR.
2276
2277         * hurd/Makefile (user-interfaces): Add login, password.
2278
2279         * sysdeps/mach/hurd/Makefile (+cflags): Append -Wno-parentheses.
2280
2281 1998-08-06  Mark Kettenis  <kettenis@phys.uva.nl>
2282
2283         [submitted 1998-08-06]
2284         * mach/Machrules: Create target directory and force re-evaluation
2285         of Makefile to prevent `make' from optimizing away most of the
2286         implicit rules and `vpath' directives.
2287
2288 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2289
2290         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): If _hurd_msgport_thread
2291         is null, short-circuit to __mach_msg.
2292
2293         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): New function,
2294         broken out of init1.
2295         (init1) [PIC]: Call it.
2296         (__libc_init_first) [! PIC]: Call it.
2297
2298         * sysdeps/mach/hurd/i386/init-first.c (init1): Don't call
2299         __libc_init_secure.  Instead set __libc_enable_secure here from
2300         the exec flags.
2301         (__libc_enable_secure): New variable it.
2302         * sysdeps/mach/hurd/enbl-secure.c: New file, empty placeholder module.
2303
2304 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
2305
2306         * nscd/nscd-client.h: New file, broken out of "nscd.h".
2307         * nscd/nscd.h: Move defns needed by clients to "nscd-client.h",
2308         and #include that.
2309         * nscd/Makefile (distribute): Add nscd-client.h.
2310         * nscd/nscd_getgr_r.c, nscd/nscd_gethst_r.c, nscd/nscd_getpw_r.c:
2311         Include "nscd-client.h" instead of "nscd.h"
2312
2313 1998-10-18  Ulrich Drepper  <drepper@cygnus.com>
2314
2315         * sysdeps/posix/getcwd.c (__getcwd): Don't stop processing
2316         directory entries when a lstat call fails.
2317         Patch by Colin Plumb <colin@nyx.net>.
2318
2319         * resolv/nss_dns/dns-host.c: Add missing errnop parameter to the
2320         NSS functions.
2321         * resolv/nss_dns/dns-network.c: Likewise.
2322
2323         * grp/Makefile: Don't search for linuxthreads in add-ons, use
2324         have-thread-library to determine whether threads are available.
2325         * pwd/Makefile: Remove wrong comment.
2326
2327         * inet/Makefile: Define CFLAGS-gethstbyad_r.c, CFLAGS-gethstbynm_r.c,
2328         and CFLAGS-gethstbynm2_r.c to -DUSE_NSCD=1.
2329
2330         * locale/C-messages.c: Define default strings for YESTR and NOSTR.
2331
2332         * nss/Versions: Add __nss_hosts_lookup.
2333
2334         * nss/getXXbyYY.c: Remove unneeded assignment.
2335
2336         * nss/getXXbyYY_r.c: Include nscd/nscd_proto.h only if needed.
2337
2338         Almost complete rewrite of the NSCD to make it smaller, faster,
2339         add more functionnality and make it easier to extend.
2340         * nscd/Makfile (routines): Add nscd_gethst_r.
2341         (nscd-modules): Add hstcache, gethstbyad_r, gethstbynm2_r, and cache.
2342         * nscd/cache.c: New file.
2343         * nscd/gethstbyad_r.c: New file.
2344         * nscd/gethstbynm2_r.c: New file.
2345         * nscd/hstcache.c: New file.
2346         * nscd/nscd_gethst_r.c: New file.
2347         * nscd/connections.c: Rewritten.  Don't start new thread for every
2348         new connection.  Use a fixed set of threads which handle all
2349         connections and also the cache cleanup.
2350         * nscd/grpcache.c: Rewritten to use generic cache handling functions
2351         in cache.c.
2352         * nscd/nscd.c: Recognize new parameter nthreads.  Adjust initialization
2353         for rewrite.  Remove handle_requests function.
2354         * nscd/nscd.h (NSCD_VERSION): Bump to 2.
2355         Define new data structure for the new unified cache and the host
2356         database entries.
2357         * nscd/nscd_conf.c: Rewrite parsing partly to allow adding of more
2358         databases easily.  Recognize check-files and threads definitions.
2359         * nscd/nscd.conf: Add definition of enable-cache and check-files to
2360         passwd and group definitions.  Add new set of definitions for hosts.
2361         * nscd/nscd_getgr_r.c: Rewrite for new protocol.
2362         * nscd/nscd_getpw_r.c: Likewise.
2363         * nscd/nscd_proto.h: Add prototype for host database functions.
2364         * nscd/nscd_stat.c: Rewrite to simplify printing of information
2365         for many databases.
2366         * nscd/dbg_log.c: Remove unnecessary variable initializations.
2367         Global variable debug_flag is renamed to dbg_level.
2368         * nscd/dbg_log.h: Declare set_logfile.
2369
2370 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2371
2372         * sysdeps/unix/sysv/linux/bits/fcntl.h: Add dummy definition of
2373         O_LARGEFILE back.
2374
2375 1998-10-16  Paul Eggert  <eggert@shade.twinsun.com>
2376
2377         * time/mktime.c: Some systems require <unistd.h> to be
2378         included before <time.h> for localtime_r to be declared
2379         properly.
2380         * time/strftime.c: Likewise.
2381
2382 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2383
2384         * db/Makefile: Add rule to generate shared object with the soname
2385         from glibc 2.0.
2386
2387         * sysdeps/unix/opendir.c: Use O_DIRECTORY if available.  If not
2388         available double check to verify it's a directory.
2389
2390         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add O_DIRECTORY.
2391         * sysdeps/unix/sysv/linux/mips/bits/fcntl: Likewise.
2392         * sysdeps/unix/sysv/linux/bits/fcntl.h: Remove O_* constants which
2393         are not generally available.
2394         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: New file.
2395
2396         * sysdeps/unix/sysv/linux/i386/setgroups.c: Add range check for values.
2397         * sysdeps/unix/sysv/linux/arm/Makefile: New file.
2398         * sysdeps/unix/sysv/linux/arm/setegid.c: New file.
2399         * sysdeps/unix/sysv/linux/arm/seteuid.c: New file.
2400         * sysdeps/unix/sysv/linux/arm/setfsgid.c: New file.
2401         * sysdeps/unix/sysv/linux/arm/setfsuid.c: New file.
2402         * sysdeps/unix/sysv/linux/arm/setgid.c: New file.
2403         * sysdeps/unix/sysv/linux/arm/setgroups.c: New file.
2404         * sysdeps/unix/sysv/linux/arm/setresgid.c: New file.
2405         * sysdeps/unix/sysv/linux/arm/setresuid.c: New file.
2406         * sysdeps/unix/sysv/linux/arm/setuid.c: New file.
2407         * sysdeps/unix/sysv/linux/i386/setegid.c: New file.
2408         * sysdeps/unix/sysv/linux/i386/seteuid.c: New file.
2409         * sysdeps/unix/sysv/linux/i386/setfsgid.c: New file.
2410         * sysdeps/unix/sysv/linux/i386/setfsuid.c: New file.
2411         * sysdeps/unix/sysv/linux/i386/setgid.c: New file.
2412         * sysdeps/unix/sysv/linux/i386/setgroups.c: New file.
2413         * sysdeps/unix/sysv/linux/i386/setresgid.c: New file.
2414         * sysdeps/unix/sysv/linux/i386/setresuid.c: New file.
2415         * sysdeps/unix/sysv/linux/i386/setuid.c: New file.
2416         * sysdeps/unix/sysv/linux/m68k/setegid.c: New file.
2417         * sysdeps/unix/sysv/linux/m68k/seteuid.c: New file.
2418         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: New file.
2419         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: New file.
2420         * sysdeps/unix/sysv/linux/m68k/setgid.c: New file.
2421         * sysdeps/unix/sysv/linux/m68k/setgroups.c: New file.
2422         * sysdeps/unix/sysv/linux/m68k/setresgid.c: New file.
2423         * sysdeps/unix/sysv/linux/m68k/setresuid.c: New file.
2424         * sysdeps/unix/sysv/linux/m68k/setuid.c: New file.
2425         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: New file.
2426         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: New file.
2427         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: New file.
2428         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: New file.
2429         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: New file.
2430         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: New file.
2431         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
2432         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
2433         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: New file.
2434
2435         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add s_setgid, s_setresuid,
2436         s_setresgid, and s_setuid.
2437         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
2438         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
2439         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
2440         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
2441         (sysdep_routines): Add setfsgid, setfsuid, setresgid, and setresuid.
2442         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2443         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
2444
2445 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
2446
2447         * time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
2448         localtime_t declaration on some systems.
2449
2450 1998-10-16 10:07  Ulrich Drepper  <drepper@cygnus.com>
2451
2452         * iconv/Makefile [! elf]: Define CFLAGS-gconv_simple.c to
2453         -DSTATIC_GCONV.
2454         * iconv/skeleton.c: Include ELF header only of STATIC_GCONV is not
2455         defined.  Avoid using DL_CLL_FCT if it is not defined.
2456
2457 1998-10-16 10:40 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2458
2459         * resolv/arpa/nameser.h: Include sys/types.h unconditionally.
2460         Include endian.h unconditionally.  Remove portability goop
2461         depending on #ifdef linux, #ifdef BSD, #ifdef machine-type.
2462
2463 1998-10-16 11:39 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2464
2465         * sunrpc/rpc/types.h: Mark file so fixincludes won't modify it.
2466
2467 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
2468
2469         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Remove __kernel_termios
2470         again.  Use char[44] to define size of the struct.
2471
2472         * sysdeps/unix/sysv/linux/arm/Dist: Add bits/armsigctx.h.
2473
2474 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2475
2476         * string/bits/string2.h (strcmp): Don't cache the result of
2477         __builtin_constant_p in variables, otherwise constant folding
2478         can fail in big functions.
2479
2480 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2481
2482         * string/bits/string2.h: Add prototypes for the new inline
2483         functions.
2484
2485 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
2486
2487         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Include termios.h to
2488         have all types defined.
2489         Patch by Matti Aarnio <matti.aarnio@sonera.fi>.
2490
2491 1998-10-08  Paul Eggert  <eggert@twinsun.com>
2492
2493         * time/mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
2494         Define also if HAVE_LOCALTIME_R && defined localtime_r, with
2495         a body that merely expands localtime_r; this works around a
2496         bug in Digital Unix 4.0A and 4.0D.
2497
2498 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
2499
2500         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_ioctl.
2501         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: New file. Define
2502         __ioctl to __syscall_ioctl and include Linux version of this file.
2503         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2504         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: New file.  Redirect
2505         ioctl calls which handle struct termios.
2506         Based on a patch by Dan Jacobowitz <drow@false.org>.
2507
2508 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
2509
2510         * version.h (VERSION): Bump to 2.0.98.
2511
2512         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Define __kernel_termios
2513         here instead of including kernel_termios.h.
2514
2515 1998-10-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2516
2517         * sysdeps/unix/opendir.c (__opendir): Remove label lose2 which is
2518         unnecessary after the changes of 1998-10-12.
2519
2520 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
2521
2522         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
2523         parameter format string.
2524         (inline_outw): Likewise.
2525
2526         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
2527         string.h to get memcpy prototype and NULL definition.
2528
2529 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2530
2531         * misc/sys/cdefs.h (__THROW): New macro.
2532         * argp/argp.h: Use it to replace the kludgey __P in inline
2533         function definitions.
2534         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2535         * stdlib/stdlib.h: Likewise.
2536         * wcsmbs/wchar.h: Likewise.
2537         * libio/stdio.h: Likewise.
2538         * stdio/stdio.h: Likewise.
2539         * sysdeps/wordsize-64/inttypes.h: Likewise.
2540         * sysdeps/wordsize-32/inttypes.h: Likewise.
2541         * string/argz.h: Likewise.
2542         * io/sys/stat.h: Likewise.
2543
2544 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2545
2546         * Rules (stdio_lim): New variable.
2547         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
2548         on Rules and config.make, use $(move-if-change) to avoid unnessary
2549         recompilations, and cleanup command.
2550         (common-generated): Add bits/stdio_lim.st.
2551
2552 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
2553
2554         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
2555         variable to prevent warnings from use of modern CPU instructions.
2556         Patch by Richard Henderson <rth@cygnus.com>.
2557
2558         * sysdeps/unix/opendir.c: Test whether NAME is directory before
2559         opening it.
2560
2561 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
2562
2563         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
2564         semicolon so that profiling works.
2565
2566 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
2567
2568         * sysdeps/generic/glob.c: #undef mempcpy before #define.
2569
2570         * sysdeps/unix/bsd/clock.c: Use prototype defns.
2571
2572 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
2573
2574         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
2575         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
2576
2577         * string/bits/string2.h [!_STRING_ARCH_unaligned]
2578         (__mempcpy_small): Add parameter for 1 byte copy and use it.
2579         Reported by Geoff Keating <geoffk@ozemail.com.au>.
2580
2581 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
2582
2583         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
2584         it is already defined in <bits/environments.h>.
2585
2586 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
2587
2588         * posix/ptestcases.h: Fix typo.
2589
2590 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2591
2592         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
2593         (regexec): Allocate regs.start and regs.end as one block.
2594
2595 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2596
2597         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
2598         enum decl.
2599
2600 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
2601
2602         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
2603         sigcontext union to ...
2604         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
2605         file.
2606         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
2607         version 2.0 kernels.
2608
2609 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
2610
2611         * malloc/mtrace.c (tr_reallochook): Produce better output for real
2612         reallocation case.
2613
2614         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
2615         * argp/argp-xinl.c: Likewise.
2616
2617         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
2618         Ruffian entry back.
2619         Patch by Christian Gafton.
2620
2621 1998-10-08  Paul Eggert  <eggert@twinsun.com>
2622
2623         * time/mktime.c (__mktime_internal): When the requested time falls
2624         in a spring-forward gap of size DT, return a time that is DT away
2625         from the requested time, preferring a time whose tm_isdst differs
2626         from the requested value.  Bump the max number of probes from 4 to
2627         6 to account for the extra probes needed to discover a
2628         spring-forward gap in the worst case.
2629
2630 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
2631
2632         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
2633         of the weird alpha architectures.
2634         Patch by Cristian Gafton <gafton@redhat.com>.
2635
2636 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
2637
2638         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
2639         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
2640
2641 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
2642
2643         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
2644         (dl_open_worker): Use realloc, not malloc to resize array.
2645         * elf/rtld.c (_dl_initial_searchlist): New variable.
2646         (_dl_main): Copy content of _dl_main_searchlist to
2647         _dl_initial_searchlist.
2648         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
2649         _dl_global_scope_alloc.
2650         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
2651         * elf/dl-close.c (_dl_close): When removing object with global
2652         scope remove allocated searchlist if no dynamically loaded object
2653         is on it anymore.
2654         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
2655         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
2656
2657         * malloc/mtrace.c (tr_where): Don't print space in location string,
2658         print it afterwards.  Print better symbol name information.
2659
2660 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2661
2662         * manual/filesys.texi (Setting Permissions): Fix example for
2663         reading umask.
2664
2665 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2666
2667         * elf/sprof.c (load_profdata): Fix typo in error message.
2668
2669 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2670
2671         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
2672         flag.
2673
2674 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
2675
2676         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
2677
2678 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
2679
2680         * version.h (VERSION): Bump to 2.0.97.
2681
2682 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2683
2684         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
2685         in definitions of inline stat functions so that they match the
2686         declaration.
2687         * stdlib/stdlib.h: Likewise.
2688         * wcsmbs/wchar.h: Likewise.
2689         * libio/stdio.h: Likewise.
2690         * stdio/stdio.h: Likewise.
2691         * sysdeps/wordsize-64/inttypes.h: Likewise.
2692         * sysdeps/wordsize-32/inttypes.h: Likewise.
2693         * string/argz.h: Likewise.
2694         * argp/argp.h: Likewise.
2695
2696 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
2697
2698         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
2699         netinet/in.h.
2700
2701 1998-10-05  Philip Blundell  <philb@gnu.org>
2702
2703         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
2704         and constants.  Tidy up formatting a little.
2705
2706         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
2707         Move definitions to in.h.
2708
2709 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2710
2711         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
2712         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
2713         Remove inclusion of <linux/swap.h>.
2714
2715 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
2716
2717         * io/sys/stat.h: Use __P in definitions of inline stat functions
2718         so that they match the declaration.
2719
2720 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2721
2722         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
2723
2724 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2725
2726         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
2727         linux 2.1 version.
2728
2729 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
2730
2731         * sysdeps/arm/dl-machine.h: Fix typo in last change.
2732
2733         * sysdeps/arm/bits/huge_val.h: New file.
2734
2735 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2736
2737         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
2738
2739         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
2740         define.
2741
2742 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
2743
2744         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
2745         store result of realloc instead of using BUF.
2746
2747 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2748
2749         * misc/sgtty.h (_SGTTY_H): Correct spelling.
2750         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
2751
2752 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2753
2754         * manual/memory.texi (Obstacks): Document
2755         obstack_alloc_failed_handler usage.
2756
2757         * malloc/obstack.h: Enhance comment about
2758         obstack_alloc_failed_handler usage.
2759         * malloc/obstack.c: Likewise.
2760
2761 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
2762
2763         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
2764         gcc before 2.8 is used.
2765
2766 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
2767
2768         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
2769         from Scott Bambrough.
2770
2771         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
2772
2773         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
2774         include the lock member.
2775
2776 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
2777
2778         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
2779
2780 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
2781
2782         * timezone/zic.c: Update from tzcode1998h.
2783         * timezone/europe: Update from tzdata1998i.
2784         * timezone/southamerica: Likewise.
2785
2786         * sys/types.h: Protect use of long long by __extension__.
2787         * stdlib/stdlib.h: Likewise.
2788         * string/string.h: Likewise.
2789         * sysdeps/i386/bits/byteswap.h: Likewise.
2790         * sysdeps/geeric/bits/byteswap.h: Likewise.
2791         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
2792         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2793         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2794         * sysdeps/wordsize-32/inttypes.h: Likewise.
2795         * sysdeps/wordsize-32/stdint.h: Likewise.
2796         * wcsmbs/wchar.h: Likewise.
2797
2798 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2799
2800         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
2801         expression.
2802         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
2803         __strsep): Greatly reduce size of expansion by combining common
2804         expressions.
2805         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
2806         inline function.
2807         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
2808         by the above definitions.
2809
2810 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
2811
2812         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
2813         correct struct ipc_perm definition.
2814
2815 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2816
2817         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
2818
2819 1998-09-29  Cristian Gafton  <gafton@redhat.com>
2820
2821         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
2822         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
2823         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
2824         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
2825         Add net/if_shaper.h.
2826
2827 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
2828
2829         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
2830
2831         * nis/ypclnt.c: Remove not needed close calls.
2832
2833 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
2834
2835         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
2836         check a bit.  Also close socket of domain client.  Close socket
2837         in IPPORT_RESERVED error case.
2838
2839 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
2840
2841         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
2842         CMSG_ALIGN (fixes a bug) and correct test for availability of
2843         another entry.
2844         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
2845         Linux version.
2846         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
2847         availability of another entry.
2848         Patch by ak@muc.de.
2849
2850         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
2851         Patch by ak@muc.de.
2852
2853         * libio/libio.h [!__STDC__]: Define const only if not defined.
2854
2855 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2856
2857         * posix/annexc.c (xsystem): New function.  Use it instead of
2858         system.
2859
2860 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
2861
2862         * stdlib/longlong.h: Remove #endif for #if removed in last change.
2863
2864 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
2865
2866         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
2867         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
2868         allow using `ut' parameter.
2869         [!emacs]: Define ut_argument, ut_argument_spec, and
2870         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
2871         argument_spec to prototypes and definitions.
2872         (my_strftime): Don't call tzset of ut != 0.
2873         Compute diff as 0 is ut != 0;
2874         [emacs]: Define new emacs_strftime function.
2875         Based on a patch by Paul Eggert.
2876
2877 1998-09-24  Paul Eggert  <eggert@twinsun.com>
2878
2879         * time/strftime.c (my_strftime): When asking for the length of the
2880         subformatted buffer, do not limit the length to look for;
2881         otherwise, we have no reliable way to distinguish between the
2882         empty buffer and an error.
2883
2884 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
2885
2886         * math/Makefile (gmp-objs): Add mp_clz_tab.
2887
2888 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
2889
2890         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
2891         set them.
2892         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
2893         cpus lacking hardware multiply and divide.
2894
2895 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2896
2897         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
2898         $(<F), not $(^F).
2899
2900 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2901
2902         * db/btree/bt_delete.c: Fix -Wparentheses warning.
2903
2904 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2905
2906         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
2907         $(do-install).
2908
2909 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
2910
2911         * debug/catchsegv.sh: Also produce output if clone process died.
2912
2913 1998-09-24  Paul Eggert  <eggert@twinsun.com>
2914
2915         * time/strftime.c (f_wkday): Remove duplicate definition.
2916         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
2917         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
2918         1998-09-11 fix to this case.
2919         (wkday_len, month_len): Remove these macros; they're no longer needed.
2920
2921 1998-09-24  Paul Eggert  <eggert@twinsun.com>
2922
2923         * time/strftime.c (my_strftime): Don't store past the end of a
2924         zero-sized buffer.
2925
2926 1998-09-24  Paul Eggert  <eggert@twinsun.com>
2927
2928         * time/strftime.c (underlying_strftime):
2929         Set the buffer to a nonzero value before calling
2930         strftime, and check to see whether strftime has set the buffer to zero.
2931         This lets us distinguish between an empty buffer and an error.
2932
2933 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
2934
2935         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
2936         This fix is propagated from tzcode1998g.tar.gz.
2937
2938 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
2939
2940         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
2941         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
2942         sys_siglist.  This is handled correctly by the weak_alias macro.
2943
2944 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
2945
2946         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
2947         of mempcpy.  Reported by Andreas Jaeger.
2948
2949         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
2950         pollute the namespace since the compiler will resolve it inline.
2951         Reported by Florian La Roche <florian@suse.de>.
2952
2953 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
2954
2955         * timezone/private.h: Update from tzcode1998g.
2956
2957         * timezone/africa: Update from tzdata1998h.
2958         * timezone/asia: Likewise.
2959         * timezone/australasia: Likewise.
2960         * timezone/europe: Likewise.
2961         * timezone/northamerica: Likewise.
2962         * timezone/southamerica: Likewise.
2963         * timezone/zone.tab: Likewise.
2964
2965 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2966
2967         * misc/sys/mman.h: New file.
2968
2969         * sysdeps/generic/bits/mman.h: New file.
2970         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
2971         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
2972         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
2973         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
2974
2975         * sysdeps/generic/sys/mman.h: Removed.
2976         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
2977         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
2978         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
2979         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
2980         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
2981
2982         * include/sys/mman.h: Look directly for misc/sys/mman.h.
2983         * misc/Makefile (headers): Add bits/mman.h.
2984         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
2985         bits/mman.h.
2986
2987         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
2988         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2989         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
2990         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
2991         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
2992         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2993         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
2994         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2995
2996 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2997
2998         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
2999         * sysdeps/mach/alpha/thread_state.h: Likewise.
3000         * sysdeps/mach/i386/sysdep.h: Likewise.
3001         * sysdeps/mach/i386/thread_state.h: Likewise.
3002         * sysdeps/mach/mips/sysdep.h: Likewise.
3003         * sysdeps/mach/mips/thread_state.h: Likewise.
3004         * sysdeps/posix/profil.c: Likewise.
3005         * sysdeps/i386/i586/memcopy.h: Likewise.
3006         * sysdeps/mach/pagecopy.h: Likewise.
3007
3008 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
3009
3010         * libio/stdio.h: Define __need_getopt and include getopt.h to define
3011         getopt stuff.
3012         * posix/unistd.h: Likewise.
3013         * stdio/stdio.h: Likewise.
3014         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
3015         define only getopt and the variables.
3016
3017 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3018
3019         * scripts/test-installation.pl (installation_problem): Don't link
3020         the test program against libdb1.
3021
3022 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
3023
3024         * Makeconfig (all-subdirs): Add db.
3025         * Versions.def: Add definition for libdb1.
3026         * shlib-versions: Add definitions for libdb1.
3027         * db/Makefile (extra-libs): Replace by libdb1.
3028         (libdb-routines): Rename to libdb1-routines.
3029         (headers): Rename to db1-headers.
3030         (distribute): Add $(db1-headers).
3031         (install-others): Define to install symlink libdb.so.NN and the
3032         $(db1-headers).
3033         (CPPFLAGS): Add -DUSE_LIBDB1
3034         Remove rules to build makedb.
3035         * db/Versions: Rename libdb to libdb1.
3036         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
3037         * db/makedb.c: Removed.
3038
3039         * scripts/versions.awk: Recognize digits in library names.
3040
3041         * db/btree/bt_open.c: Fix compiler warnings.
3042         * db/btree/bt_put.c: Likewise.
3043         * db/btree/bt_split.c: Likewise.
3044         * db/hash/hash.c: Likewise.
3045         * db/hash/hash_bigkey.c: Likewise.
3046         * db/recno/rec_close.c: Likewise.
3047
3048         * Makefile: Add localedata/% goal.
3049
3050 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3051
3052         * posix/execvp.c: Don't give up searching the PATH if execve
3053         returns ENOTDIR.
3054
3055 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
3056
3057         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
3058         if _dl_fpu_control_set is set.
3059         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
3060         * elf/rtld.c: Don't define _dl_fpu_control_set.
3061         * elf/Versions: Remove _dl_fpu_control_set.
3062
3063 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
3064
3065         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
3066         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
3067         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
3068         Correct values of other SA_* macros according to kernel headers.
3069
3070 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3071
3072         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
3073         variable l.
3074         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
3075         old.
3076
3077 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3078
3079         * elf/ldsodefs.h: Fix typo in comment.
3080
3081 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3082
3083         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
3084         char when comparing buffer contents with putback character.
3085
3086 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3087
3088         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
3089         Undo last change.
3090         * elf/Versions: Undo last change.  Export _dl_fpu_control and
3091         _dl_fpu_control_set.
3092         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
3093         variables.  Include <fpu_control.h>.
3094         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
3095         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
3096         to indicate that is was seen.
3097         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
3098         only if _dl_fpu_control was set and is equal to desired value.
3099         * math/Makefile (aux): Undo last change.
3100         * math/Versions: Export __fpu_control with version GLIBC_2.0.
3101
3102 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3103
3104         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
3105         optimized.
3106
3107 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
3108
3109         * string/bits/string2.h: Add mempcpy optimization.
3110         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
3111         * intl/localealias.c: Define mempcpy only if not already defined.
3112
3113         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
3114         defined.
3115
3116 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3117
3118         * csu/abi-note.S: Emit the note directly instead of defining
3119         a preprocessor macro that's only used once.  Don't include sysdep.h.
3120         * abi-tags: Generalize Solaris entry.
3121
3122 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3123
3124         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
3125         Change to array to avoid runtime relocation.
3126         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
3127
3128 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3129
3130         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
3131         * math/Makefile ($(objpfx)libieee.a): Likewise.
3132
3133 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
3134
3135         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
3136         Patch by John Tobey <jtobey@banta-im.com>.
3137
3138 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
3139
3140         * login/Makefile (distribute): Remove pty-internal.h, add
3141         pty-private.h.
3142
3143         * stdlib/tst-strtol.c: Add more checks.
3144         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
3145
3146 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
3147
3148         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
3149         * elf/elf.h: Add AT_FPUCW.
3150         * elf/Makefile (dl-routines): Add fpu_control.
3151         (elide-routines.os): Add fpu_control.
3152         (rtld-routines): Add fpu_control.
3153         * math/Makefile (aux): Remove fpu_control.
3154         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
3155         (_dl_show_auxv): Likewise.
3156         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
3157         if different from OS default.
3158
3159         * stdio-common/tstscanf.c: Add test case for (nil).
3160
3161 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
3162
3163         * libio/fileops.c (_IO_new_file_underflow): Before allocating
3164         buffer make sure the pushback buffer is destroyed.
3165         (_IO_new_file_seekoff): Likewise.
3166         If mode==0 quit early with the result.
3167         Clear OEF flag after successful fseek.
3168         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
3169         * libio/ftello.c (ftello): Add offset from original buffer if
3170         stream has pushed back characters.
3171         * libio/ftello64.c (ftello64): Likewise.
3172         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
3173         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
3174         * libio/ioftell.c (_IO_ftell): Likewise.
3175         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
3176         and _IO_save_ptr.
3177         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
3178         (_IO_default_pbackfail): Only stored push back character in original
3179         buffer if it is the same as the one in the file at this position.
3180         * libio/iofclose.c: Free backup buffer if one is available.
3181         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
3182         mode!=0.
3183
3184         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
3185
3186         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
3187
3188         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
3189
3190 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
3191
3192         * login/programs/pt_chown.c (more_help): Correct message that
3193         describes the purpose of the program.
3194
3195         * login/openpty.c: Do not include pty-private.h.
3196         (pts_name): New function.  Return name of slave pseudo terminal in
3197         an allocated buffer if necessary.
3198         (openpty): Use pts_name to get name of the slave end of the pseudo
3199         terminal pair.
3200
3201         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
3202         pts_name before return.
3203
3204 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
3205
3206         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
3207
3208 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3209
3210         * login/openpty.c: Include pty-private.h instead of
3211         pty-internal.h.
3212
3213 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
3214
3215         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
3216
3217 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
3218
3219         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
3220         recent ld.so changes.
3221         (elf_machine_runtime_setup): Correct behaviour when profiling.
3222
3223 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
3224
3225         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
3226         Patch by John Tobey <jtobey@banta-im.com>.
3227
3228 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
3229
3230         * login/pty-internal.h: Removed.  Moved constants related to the
3231         `grantpt' helper program protocol to ...
3232         * login/pty-private.h: ... here.  New file.
3233         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
3234         to make the function work with kernels >= 2.1.115.
3235         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
3236         version if using the cloning device fails.
3237         * sysdeps/unix/sysv/linux/grantpt.c: New file.
3238         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
3239         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
3240         use by Linux specific code.
3241         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
3242         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
3243         function.  (grantpt): Use pts_name, check group and permission
3244         mode in addition to owner.  Try to set the owner, group and
3245         permission mode first without invoking the helper program.
3246         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
3247         internationalization support.  Use symbolic constants instead of
3248         hardwired numbers for permission mode.
3249         * sysdeps/unix/bsd/ptsname.c: New file.
3250
3251 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
3252
3253         * posix/wordexp-test.c: Undo last change.
3254
3255         * posix/wordexp.c: Undo last change.
3256
3257 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
3258
3259         * nscd/grpcache.c (save_grp): Partly undo last change.
3260
3261         * nscd/pwdcache.c (save_pwd): Undo last change.
3262
3263 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3264
3265         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
3266         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
3267
3268 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
3269
3270         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
3271         Add profiling support.
3272         (TRAMPOLINE_TEMPLATE): New macro.
3273         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
3274         (RTLD_START): Prettify, and set __libc_stack_end properly.
3275         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
3276         and check for sym being NULL instead.
3277         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
3278         of stack space.
3279         * sysdeps/sparc/sparc64/lshift.S: Likewise.
3280         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
3281         * sysdeps/sparc/sparc64/rshift.S: Likewise.
3282         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
3283         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
3284         MEDANY code model %g4 usage.
3285         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
3286         MEDANY code model %g4 usage.
3287         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
3288         code model address formation.
3289         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
3290         include elf/ldsodefs.h
3291         (DT_SPARC): Remove.
3292         (elf_machine_matches_host): It is now EM_SPARCV9.
3293         (elf_machine_dynamic): Clean up to remove ugly cast.
3294         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
3295         new PLT formats.
3296         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
3297         Prettify rest of function.
3298         [R_SPARC_COPY]: Check for sym being NULL.
3299         [R_SPARC_32]: Handle it.
3300         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
3301         MEDMID code model.
3302         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
3303         MEDANY code model.
3304         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
3305         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
3306         Add profiling support.
3307         (TRAMPOLINE_TEMPLATE): New macro.
3308         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
3309         (RTLD_START): Prettify and set __libc_stack_end.
3310         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
3311         Define.
3312         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
3313         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
3314         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
3315         unused variable scratch.
3316         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3317         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
3318         Declare.
3319         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
3320         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
3321         old format kernel sigaction structures.
3322         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
3323         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
3324         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
3325         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
3326         ucontext include.
3327         (_JMPBUF_UNWINDS): Define.
3328         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
3329         statfs64 structure, which is exactly the same as the normal one.
3330         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
3331         of stack.  Use correct syscall trap number.  Add branch prediction
3332         settings to branch instructions.  Remove old MEDANY code model %g4
3333         referneces for non-PIC.
3334         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
3335         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
3336         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
3337         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3338         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3339         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
3340         __libc_longjmp and __libc_siglongjmp strong aliases.
3341         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
3342         Also define to __no__readdir64_decl around readdir.c inclusion.
3343         (__readdir64): Add strong alias.
3344         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
3345         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
3346         Set strong and weak names properly.
3347
3348 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3349
3350         * manual/Makefile (AWK): Default to gawk if standalone.
3351
3352 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3353
3354         * Makefile (distribute): Undo last change.
3355         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
3356         for sysdep headers.
3357         (+subdir-headers): Removed, unused.
3358
3359 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3360
3361         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
3362         $(do-install).
3363
3364 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3365
3366         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
3367         absolute name in $(config-sysdirs), can never happen.
3368         ($(+sysdir_pfx)sysd-rules): Likewise.
3369         * Makeconfig (full-config-sysdirs): Likewise.
3370         (all-Subdirs-files): Prepend $(..).
3371
3372         * configure.in: Don't check for absolute name in $add_ons_pfx, can
3373         not happen.  Let --enable-add-ons=yes work if no add-ons actually
3374         exist.
3375
3376 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3377
3378         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
3379         continuations in command.
3380
3381 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3382
3383         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
3384
3385 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
3386
3387         * posix/wordexp-test.c: If expansion or substitution occurs
3388         anywhere in a word, the entire word is subject to field-splitting.
3389
3390         * posix/wordexp.c (parse_glob): Look for end of word instead of
3391         end of field when deciding what to glob.
3392         (field_split_word): New function, now the only place where
3393         field-splitting is performed.
3394         (parse_dollars): New parameter - tell the caller if
3395         field-splitting should be performed on this word.
3396
3397         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
3398         succeeded (or failed with WRDE_NOSPACE).
3399
3400 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
3401
3402         * posix/wordexp.c (wordexp): Don't convert IFS characters to
3403         blanks.
3404
3405         * posix/wordexp-test.c: Words not the result of expansion or
3406         substitution should remain unchanged.
3407
3408 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
3409
3410         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
3411         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
3412
3413 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3414
3415         * stdio-common/Makefile: Include Makeconfig so that
3416         $(inst_includedir) is defined.
3417
3418 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3419
3420         * io/pwd.c: Include <mcheck.h>.
3421
3422 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
3423
3424         * nscd/pwdcache.c (save_pwd): Correct copying.
3425         * nscd/grpcache.c (save_grp): Likewise.
3426
3427 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
3428
3429         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
3430         (free_pwd): Adjust for this change.
3431         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
3432         (free_grp): Adjust for this change.
3433
3434 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
3435
3436         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
3437
3438 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
3439
3440         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
3441         (install-others): Add bits/stdio_lim.h.
3442         Add rule to install bits/stdio_lim.h.
3443
3444         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
3445
3446         * Makefile (distribute): Add include/sys/mman.h.
3447
3448         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
3449         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
3450         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
3451
3452         * grp/initgroups.c: Include stdlib.h.
3453         Patch by Zack Weinberg.
3454
3455 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
3456
3457         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
3458         for field-splitting :abc: is correct, and that two fields should
3459         result. Revert tests to reflect this.
3460
3461         * posix/wordexp.c (w_emptyword): Remove function.
3462         (exec_comm): Don't use w_emptyword.
3463         (parse_param): Likewise.
3464
3465 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
3466
3467         * sysdeps/arm/fpu/Dist: Moved to...
3468         * sysdeps/arm/Dist: ...here.
3469         * sysdeps/posix/Dist: Removed.
3470         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
3471         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
3472
3473 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
3474
3475         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
3476
3477 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
3478
3479         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
3480
3481 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3482
3483         * libc-work/nis/nss_nisplus/nisplus-service.c
3484         (_nss_nisplus_parse_servent): Convert port in network byte order.
3485
3486 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3487
3488         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
3489         to provide only malloc and calloc.
3490         * include/stdlib.h: Support the above.
3491         * string/bits/string2.h: Use __need_malloc_and_calloc when
3492         including stdlib.h.
3493         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
3494
3495         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
3496         * iconvdata/iso646.c: Include <stdlib.h>.
3497
3498 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3499
3500         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
3501         * sysdeps/libm-ieee754/w_pow.c: Likewise.
3502         * sysdeps/libm-ieee754/w_powf.c: Likewise.
3503         * sysdeps/libm-ieee754/w_powl.c: Likewise.
3504
3505 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3506
3507         * stdio-common/stdio_lim.h.in: New file.  All parameters
3508         are adjustable at build time.
3509         * Rules: Add a rule to build bits/stdio_lim.h from
3510         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
3511         all subdirectories know how to make the file.  It can't be
3512         in Makerules because then it gets built at top level and the
3513         dependencies are wrong.)
3514
3515         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
3516         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
3517         stdio_lim.h.
3518         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
3519         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
3520         * sysdeps/posix/Makefile: Removed.
3521         * sysdeps/posix/mk-stdiolim.c: Removed.
3522         * sysdeps/generic/bits/stdio_lim.h: Removed.
3523
3524 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3525
3526         * argp/argp-help.c: Fixup indentation.
3527         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
3528         * resolv/nss_dns/dns-network.c: Likewise.
3529         * resolv/res_send.c: Likewise.
3530         * rt/aio_cancel.c: Likewise.
3531         * rt/aio_misc.c: Likewise.
3532
3533 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3534
3535         * Makefile (install-symbolic-link): Remove the link list file at last.
3536         * Makerules (install-clean-symbolic-link-list): Removed.
3537
3538 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3539
3540         * timezone/tst-timezone.c: Print time in UTC to get consistent
3541         output.
3542
3543 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3544
3545         * elf/rtld.c (_dl_rpath): Removed.
3546         * elf/dl-support.c (_dl_path): Removed.
3547         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
3548         (CFLAGS-dl-support.c): Removed.
3549
3550         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
3551         uses changed.
3552         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
3553         instead of appending it to the main map's rpath info.
3554         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
3555         DT_RPATHs.  This makes it effective again.
3556         (decompose_rpath): Remove second parameter, callers changed.
3557         (fillin_rpath): Allocate enough space in curwd.
3558         (expand_dynamic_string_token): Cope with get_origin returning -1.
3559
3560 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3561
3562         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
3563         passwd.adjunct.
3564
3565         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
3566         invalid password.
3567
3568 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
3569
3570         * locale/programs/locale.c: Update dates.
3571
3572 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
3573
3574         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
3575         size_t is defined.  Some reordering of definitions to make
3576         maintaining this file in parallel with the linux-specific file easier.
3577
3578 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
3579
3580         * io/pwd.c (main): Add call to mtrace.
3581
3582         * malloc/mtrace.pl: Quote @ in string.
3583
3584 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
3585
3586         * posix/wordexp.c (parse_arith): Fix memory leaks.
3587         (exec_comm): Likewise.
3588         (parse_param): Likewise.
3589         (wordexp): Likewise.
3590         (exec_comm): Reduce number of function return points.
3591         (parse_param): Likewise.
3592         (wordexp): Likewise.
3593
3594 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
3595
3596         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
3597         yield three fields, not two.  Test both parameter expansion and
3598         command substitution for correct field-splitting behaviour.
3599
3600         * posix/wordexp.c (w_emptyword): New function.
3601         (parse_param): Use it.
3602         (exec_comm): Likewise, for consistency with the way parse_param
3603         splits fields.
3604         (parse_param): Fix some memory leaks.
3605
3606 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
3607
3608         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
3609         Don't mark asm `volatile'.
3610         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
3611         from the data cache too.  Assume it isn't in the instruction cache yet.
3612         (__elf_machine_fixup_plt): Clear the modified address from the caches.
3613
3614 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
3615
3616         * sysdeps/generic/segfault.c (install_handler): Install signal
3617         handler with SA_ONSTACK instead of setting the stack flags to
3618         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
3619         defined.
3620
3621 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3622
3623         * signal/signal.h: Fix multiple inclusion guard to cover the
3624         entire file.
3625         * wcsmbs/wchar.h: Remove prototype of internal function
3626         __mbsrtowcs.
3627         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
3628         arithmetic on `void *'.
3629
3630 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
3631
3632         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
3633
3634         * posix/wordexp.c (wordexp): Perform word-splitting instead of
3635         field-splitting here.
3636         (wordexp): If out of memory mid-word, free the word (but still
3637         leave pwordexp alone for caller to see).
3638         (parse_param): Allow for zero-length fields (smarter checking of
3639         memory allocation failure).
3640         (w_addword): Convert NULL words to "".
3641         (wordexp): Convert left-over IFS characters to blanks (like bash).
3642
3643 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
3644
3645         * configure.in: Use test -f instead of test -e.
3646         Patch by John Tobey <jtobey@banta-im.com>.
3647
3648         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
3649         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
3650         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
3651         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
3652         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
3653         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
3654         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
3655         Patches by John Tobey <jtobey@banta-im.com>.
3656
3657         * time/strftime.c (my_strftime): Delay use of *tp values until
3658         latest possible point to allow partly initialized structures
3659         (e.g., from strptime).
3660
3661         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
3662         and NATS-SEFI.
3663         Define *-routines variables for new modules.
3664         (distribute): Add .c files for new modules.
3665         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
3666         and nats-sefi.h.
3667         Add rules for header generation.
3668         * iconvdata/gconv-modules: Add entries for new modules.
3669         * iconvdata/iso_10367-box.c: New file.
3670         * iconvdata/mac-is.c: New file.
3671         * iconvdata/nats-dano.c: New file.
3672         * iconvdata/nats-sefi.c: New file.
3673
3674 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
3675
3676         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
3677         loader if PIC is not defined.
3678
3679 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
3680
3681         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
3682         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
3683         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
3684         and ISO_5428.
3685         Define *-routines variables for new modules.
3686         (distribute): Add .c files for new modules.
3687         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
3688         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
3689         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
3690         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
3691         Add rules for header generation.
3692         * iconvdata/gconv-modules: Add entries for new modules.
3693         * iconvdata/csn_369103.c: New file.
3694         * iconvdata/cwi.c: New file.
3695         * iconvdata/dec-mcs.c: New file.
3696         * iconvdata/ecma-cyrillic.c: New file.
3697         * iconvdata/gost_19768-74.c: New file.
3698         * iconvdata/greek-ccitt.c: New file.
3699         * iconvdata/greek7-old.c: New file.
3700         * iconvdata/greek7.c: New file.
3701         * iconvdata/inis-8.c: New file.
3702         * iconvdata/inis-cyrillic.c: New file.
3703         * iconvdata/inis.c: New file.
3704         * iconvdata/iso6937-2.c: New file.
3705         * iconvdata/iso_2033.c: New file.
3706         * iconvdata/iso_5427-ext.c: New file.
3707         * iconvdata/iso_5427.c: New file.
3708         * iconvdata/iso_5428.c: New file.
3709
3710         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
3711         entries.
3712         Convert U02dd correctly.
3713
3714 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
3715
3716         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
3717         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
3718         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
3719         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
3720
3721 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
3722
3723         * resolv/res_init.c (res_init): Handle resolv.conf file with only
3724         one nameserver correctly.  Patch by HJ Lu.
3725
3726         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
3727         and ANSI_X3.110.
3728         Define *-routines variables for new modules.
3729         (distribute): Add .c files for new modules.
3730         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
3731         Add rules for hedaer generation.
3732         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
3733         * iconvdata/ansi_x3.110.c: New file.
3734         * iconvdata/asmo_449.c: New file.
3735         * iconvdata/baltic.c: New file.
3736         * iconvdata/iec_p27-1.c: New file.
3737
3738         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
3739         entries.
3740         Convert U02dc correctly.
3741
3742         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
3743         * math/atest-exp2.c: Likewise.
3744         * math/atest-sincos.c: Likewise.
3745
3746         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
3747         is defined.
3748
3749 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3750
3751         * string/strcoll.c: Optimize a few expressions.
3752         * string/strxfrm.c: Likewise.
3753
3754 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3755
3756         * manual/locale.texi: Fix typos.
3757
3758 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
3759
3760         * stdlib/random_r.c (__setstate_r): Allow call with same state
3761         array as currently used (PR libc/774).
3762
3763         * include/limits.h: Include gcc's header even if this file is
3764         found more than once before it (PR libc/778)
3765
3766         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
3767         (sysdep_headers): Remove sys/debugreg.h.
3768         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
3769         (sysdep_headers): Add sys/debugreg.h.
3770         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
3771         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
3772
3773         * stdio-common/tmpnam.c: Move local static variable buf to
3774         toplevel and rename to tmpnam_buffer to ease debugging.
3775         Patch by Joe Keane <jgk@jgk.org>.
3776         Optimize s == NULL case a bit.
3777
3778         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
3779         correction.
3780
3781 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
3782
3783         * resolv/res_init.c (res_init): Initialize _res.nscount and
3784         _res.nsaddr.sin_port differently for the can when no loopback
3785         is available to allow immediate timeout in non-networking environments.
3786         Patch by Cristian Gafton <gafton@redhat.com>.
3787
3788 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3789
3790         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
3791         BAR and not EM DASH.
3792         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
3793         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
3794         Fixes PR libc/717.
3795
3796 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
3797
3798         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
3799         for test.
3800         * timezone/tst-timezone.c (tests): Fix typo in last patch.
3801
3802         * time/tzfile.c (__tzfile_read): Handle case when there are no
3803         transitions.  Set __timezone based on computed offset.
3804         * time/tzset.c (tzset_internal): Set __timezone before returning.
3805
3806         * time/tzset.c (tzset_internal): Optimize handling of local string
3807         copy.
3808
3809 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3810
3811         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
3812         libc/776).
3813
3814 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
3815
3816         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
3817         (csqrt_test): Likewise.
3818         * sysdeps/powerpc/bits/fenv.h: Add parens.
3819
3820 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
3821
3822         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
3823         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
3824         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
3825
3826 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
3827
3828         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
3829         the special `-1' pointer.
3830
3831 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
3832
3833         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
3834         inline.
3835
3836 1998-09-07  Paul Eggert  <eggert@twinsun.com>
3837
3838         * time/mktime.c (__EXTENSIONS__): Define if not defined.
3839         (_REENTRANT): Remove.  It has undesirable consequences in
3840         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
3841         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
3842         is what we want.
3843         * time/strftime.c: Likewise.
3844
3845 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3846
3847         * elf/dl-error.c: Fix spelling.
3848
3849 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3850
3851         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
3852         * stdio-common/_itoa.c: Likewise.
3853         * stdio-common/printf_fp.c: Likewise.
3854         * stdio-common/vfscanf.c: Likewise.
3855         * wcsmbs/wcstok.c: Likewise.
3856         * sysdeps/generic/glob.c: Likewise.
3857         * posix/getopt.c: Likewise.
3858         * sysdeps/posix/getaddrinfo.c: Likewise.
3859         * posix/wordexp.c: Likewise.
3860         * io/ftw.c: Likewise.
3861         * io/fts.c: Likewise.
3862         * misc/getpass.c: Likewise.
3863         * iconv/gconv_conf.c: Likewise.
3864         * argp/argp-fmtstream.c: Likewise.
3865         * argp/argp-help.c: Likewise.
3866         * elf/dl-load.c: Likewise.
3867         * locale/programs/stringtrans.c: Likewise.
3868         * catgets/gencat.c: Likewise.
3869         * posix/getconf.c: Likewise.
3870         * iconv/gconv_conf.c: Likewise.
3871         * iconv/iconv_prog.c: Likewise.
3872
3873         * string/strcoll.c: Optimize a few expressions.
3874         * string/strxfrm.c: Likewise.
3875
3876 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3877
3878         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
3879         level to avoid uninit variable warning.
3880
3881 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3882
3883         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
3884         instead of _dl_default_scope[2] as argument to _dl_init_next.
3885
3886         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
3887         C9x macro.
3888
3889 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
3890
3891         Fix compatibility problems introduced in last change.
3892         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
3893         defined.
3894         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
3895         -DWEAK_GMON_START to CFLAGS-initfini.s.
3896
3897         * elf/dl-object.c (_dl_new_object): Store map address in
3898         _dl_loaded if _dl_loaded is NULL.
3899         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
3900
3901         * sysdeps/generic/setrlimit64.c: Remove stub warning.
3902
3903 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
3904
3905         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
3906         quiet.
3907         * db2/btree/bt_cursor.c: Likewise.
3908         * db2/common/db_region.db_c: Likewise.
3909         * db2/common/db_salloc.db_c: Likewise.
3910         * db2/db/db.c: Likewise.
3911         * db2/db/db_rec.c: Likewise.
3912         * db2/hash/hash.c: Likewise.
3913         * db2/hash/hash_page.c: Likewise.
3914         * db2/hash/hash_rec.c: Likewise.
3915         * db2/log/log_findckp.c: Likewise.
3916         * db2/log/log_get.c: Likewise.
3917         * db2/log/log_put.c: Likewise.
3918         * db2/mp/mp_fget.c: Likewise.
3919         * db2/mp/mp_fput.c: Likewise.
3920         * db2/mp/mp_region.c: Likewise.
3921         * stdlib/strtol.c: Likewise.
3922         * string/strcoll.c: Likewise.
3923         * string/strxfrm.c: Likewise.
3924         * argp/argp-help.c: Likewise.
3925         * argp/argp-parse.c: Likewise.
3926         * resolv/res_debug.c: Likewise.
3927
3928 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
3929
3930         * math/tgmath.h (scalb): Only define for __USE_MISC or
3931         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
3932
3933 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3934
3935         * libio/stdio.h: Fix comment.
3936
3937         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
3938         __USE_ISOC9X.
3939
3940 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
3941
3942         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
3943
3944         * elf/dl-open.c: Quiet -Wparentheses warnings.
3945         * iconvdata/johab.c: Likewise.
3946         * iconvdata/uhc.c: Likewise.
3947         * inet/inet_net.c: Likewise.
3948         * io/fts.c: Likewise.
3949         * locale/newlocale.c: Likewise.
3950         * misc/getttyent.c: Likewise.
3951         * misc/mntent_r.c: Likewise.
3952         * misc/ttyslot.c: Likewise.
3953         * nscd/nscd_conf.c: Likewise.
3954         * nss/nsswitch.c: Likewise.
3955         * resolv/gethnamaddr.c: Likewise.
3956         * resolv/nsap_addr.c: Likewise.
3957         * resolv/res_debug.c: Likewise.
3958         * stdio-common/_itoa.c: Likewise.
3959         * stdlib/strtod.c: Likewise.
3960         * string/strverscmp.c: Likewise.
3961         * sunrpc/svc.c: Likewise.
3962         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
3963         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
3964         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
3965         * sysdeps/posix/getaddrinfo.c: Likewise.
3966
3967 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
3968
3969         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
3970         for use of global scope.
3971         * elf/dlvsym.c (dlvsym_doit): Likewise.
3972
3973 1998-09-02  Paul Eggert  <eggert@twinsun.com>
3974
3975         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
3976         copy the redundant bytes at the end of the format as-is; don't
3977         just copy their first byte and then rescan, as that might get
3978         us an encoding error.
3979         Account correctly for the length of multibyte sequences in the
3980         format.
3981
3982 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
3983
3984         * posix/wordexp-test.c: Add tests for different IFS values.
3985         Change unquoted-newline test so that newline is not in IFS.
3986
3987         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
3988         determining IFS characters.  Return WRDE_BADCHAR for unquoted
3989         special characters _except_ if they are separators.
3990
3991 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
3992
3993         * include/tgmath.h: New file.
3994
3995         * libio/stdio.h: Correct reversed #ifs.
3996         Patch by Zack Weinberg.
3997
3998         * manual/creature.texi: Better explain reason for feature select
3999         macros.
4000         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
4001
4002 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
4003
4004         * include/alloca.h: Add multiple-inclusion guard.
4005         * include/db.h: Likewise.
4006         * include/db_185.h: Likewise.
4007         * include/dlfcn.h: Likewise.
4008         * include/fcntl.h: Likewise.
4009         * include/grp.h: Likewise.
4010         * include/libintl.h: Likewise.
4011         * include/mntent.h: Likewise.
4012         * include/pwd.h: Likewise.
4013         * include/sched.h: Likewise.
4014         * include/search.h: Likewise.
4015         * include/setjmp.h: Likewise.
4016         * include/shadow.h: Likewise.
4017         * include/signal.h: Likewise.
4018         * include/stdio.h: Likewise.
4019         * include/stdlib.h: Likewise.
4020         * include/string.h: Likewise.
4021         * include/termios.h: Likewise.
4022         * include/time.h: Likewise.
4023         * include/ulimit.h: Likewise.
4024         * include/utmp.h: Likewise.
4025         * include/wchar.h: Likewise.
4026         * include/sys/file.h: Likewise.
4027         * include/sys/gmon.h: Likewise.
4028         * include/sys/ioctl.h: Likewise.
4029         * include/sys/mman.h: Likewise.
4030         * include/sys/resource.h: Likewise.
4031         * include/sys/select.h: Likewise.
4032         * include/sys/socket.h: Likewise.
4033         * include/sys/statfs.h: Likewise.
4034         * include/sys/time.h: Likewise.
4035         * include/sys/times.h: Likewise.
4036         * include/sys/wait.h: Likewise.
4037
4038 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
4039
4040         * version.h (VERSION): Bump to 2.0.96.
4041
4042         Rewrite runtime linker to be truly thread-safe.  There is now no
4043         global variable specifying the scope.  We create all needed
4044         scopes at the time the link maps are created.
4045         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
4046         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
4047         l_symbolic_searchlist, l_scope, and l_local_scope elements in
4048         struct link_map.
4049         * elf/dl-close.c: Rewritten accordingly.
4050         * elf/dl-deps.c: Likewise.
4051         * elf/dl-error.c: Likewise.
4052         * elf/dl-init.c: Likewise.
4053         * elf/dl-load.c: Likewise.
4054         * elf/dl-lookup.c: Likewise.
4055         * elf/dl-object.c: Likewise.
4056         * elf/dl-open.c: Likewise.
4057         * elf/dl-reloc.c: Likewise.
4058         * elf/dl-runtime.c: Likewise.
4059         * elf/dl-support.c: Likewise.
4060         * elf/dl-symbol.c: Likewise.
4061         * elf/dl-version.c: Likewise.
4062         * elf/dlsym.c: Likewise.
4063         * elf/dlvsym.c: Likewise.
4064         * elf/ldsodefs.h: Likewise.
4065         * elf/rtld.c: Likewise.
4066         * iconv/gconv_dl.c: Likewise.
4067         * nss/nsswitch.c: Likewise.
4068         * sysdeps/i386/dl-machine.h: Likewise.
4069         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4070
4071         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
4072         Define RTLD_DEFAULT.
4073
4074 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
4075
4076         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
4077         __getopt_clean_environment with __environ instead of envp.
4078
4079 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
4080
4081         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
4082
4083         * string/argz-extract.c (__argz_extract): Add de-consting cast for
4084         setting results.
4085
4086         * string/argz.h (argz_next): Add de-consting cast for return.
4087         * string/argz-next.c (__argz_next): Likewise.
4088
4089         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
4090         Don't add netinet/udp.h, netinet/ip_icmp.h here.
4091         * sysdeps/gnu/Makefile: Do it here instead.
4092         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
4093         * sysdeps/gnu/Dist: ... to here.
4094
4095         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
4096         sysdeps/unix/sysv/linux/netinet/tcp.h,
4097         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
4098
4099 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
4100
4101         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
4102         * string/argz-next.c, string/argz-extract.c: Fix defns.
4103
4104 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
4105
4106         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
4107
4108         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
4109         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
4110         * sysdeps/generic/sysd-stdio.c: Likewise.
4111
4112 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
4113
4114         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
4115         (_dl_map_object_from_fd): Make NAME argument const.
4116         Remove last parameter in _dl_new_object call.
4117         (print_search_path): Correct construction of composed path name.
4118         (_dl_map_object): Prevent looking at RPATH of the main map twice.
4119         Remove last parameter in _dl_new_object call.
4120         * elf/dl-object.c: Remove last parameter.  Determine whether create
4121         origin entry based on empty realname.  Handle file in root directory
4122         correctly.
4123         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
4124         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
4125         Remove last parameter in _dl_new_object call.
4126         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
4127         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
4128
4129 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
4130
4131         * elf/dl-close.c (_dl_close): Add more comments and correct some.
4132         Free l_searchlist and l_dupsearchlist.
4133
4134         * debug/catchsegv.sh: Add one more pair of quotes.
4135
4136 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
4137
4138         * elf/dl-load.c (add_name_to_object): Change return type to void and
4139         make NAME parameter const.  Allocate room for NAME in same memory
4140         block used for l_libname entry.
4141         (_dl_map_object_from_fd): Don't free NAME on failure.
4142         (map_segment): Pass SONAME to add_name_to_object, not a copy.
4143         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
4144         _dl_map_object_from_fd.
4145         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
4146         memory block used for l_libname entry.
4147         * elf/dl-close.c: Adjust free()ing for this change.
4148
4149 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
4150
4151         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
4152
4153         * malloc/mtrace.c: Add bug report address.  Update email address.
4154         Add more @XXX@ to print correct address size.
4155
4156         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
4157         really initialized.
4158
4159         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
4160         for munmap call instead of examining phdr again.
4161         Free all malloc()ed strings and arrays.
4162
4163 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
4164
4165         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
4166         dl-machine.h.
4167         * sysdeps/powerpc/dl-machine.c: New file.
4168         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
4169         files.  Revise ELF_PREFERRED_ADDRESS to take account of
4170         the new mapping information (fixes bug involving huge bloated
4171         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
4172         * sysdeps/powerpc/dl-start.S: New file.
4173
4174         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
4175         l_map_end.
4176         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
4177         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
4178         others.  Call elf_dynamic_do_##reloc only once (to save even more
4179         space).
4180         * elf/link.h: Add new members l_map_start and l_map_end to keep
4181         track of the memory map.
4182         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
4183         the executable.
4184
4185 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
4186
4187         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
4188         Reported by Andreas Jaeger.
4189
4190         * posix/glob.h: Use __size_t instead of size_t in definitions and
4191         make sure this is defined.
4192
4193 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
4194
4195         * manual/locale.texi: Almost complete rewrite.  Document more functions
4196         and functionality.
4197         * manual/arith.texi: Correct reference.
4198         * manual/string.texi: Pretty printing.
4199
4200         * manual/texinfo.tex: Update from last available version.
4201
4202 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
4203
4204         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
4205         invalid password.
4206         (_nss_nis_getpwuid_r): Likewise.
4207         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
4208
4209         * inet/rcmd.c: Implement netgroup support.
4210         Patch by Dick Streefland <dick_streefland@tasking.com>.
4211
4212 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4213
4214         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
4215         object on the list is removed.  Don't use this code for PIC.
4216         Reported by HJ Lu [PR libc/770].
4217
4218 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
4219
4220         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
4221
4222         * include/stdio.h: Add __vsscanf.
4223
4224         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
4225         __USE_ISOC9X.
4226         Remove __vsscanf declaration.
4227         Always declare fgetpos and fsetpos.
4228
4229         * math/math.h: Define isinf as macro.
4230         * math/bits/mathcalls.h: Change to declare __isinf all the time.
4231         Don't declare scalb for ISO C 9x.
4232
4233         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
4234
4235         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
4236
4237         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
4238         sys/ucontext.h.
4239
4240         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
4241         macros.
4242
4243 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4244
4245         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
4246         Reported by jreising@frequentis.com [PR libc/767].
4247
4248 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4249
4250         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
4251         fl.l_start at beginning of function.
4252         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
4253
4254 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4255
4256         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
4257         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
4258
4259         * nscd/nscd.init: Make it work in RedHat systems.
4260         Patch by Christian Gafton.
4261
4262 1998-08-29  Philip Blundell  <philb@gnu.org>
4263
4264         * catgets/Makefile: Don't try to run test programs when
4265         cross-compiling.
4266
4267 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
4268
4269         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
4270         Reported by Zack Weinberg.
4271
4272 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4273
4274         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
4275         * elf/Makefile (distribute): Remove ldd.sh.in.
4276
4277 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4278
4279         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
4280         variable.
4281
4282 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
4283
4284         * sysdeps/i386/register-dump.h: Move to ...
4285         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
4286
4287 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
4288
4289         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
4290         with load address, not map address.
4291         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
4292         parameter and use this value.
4293         * sysdeps/arm/dl-machine.h: Likewise.
4294         * sysdeps/i386/dl-machine.h: Likewise.
4295         * sysdeps/m68k/dl-machine.h: Likewise.
4296         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
4297         parameter.
4298         * sysdeps/powerpc/dl-machine.h: Likewise
4299         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
4300         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
4301
4302 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
4303
4304         * elf/rtld.c (process_envvars): Fix copy&paste error.
4305
4306         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
4307         memalign hook.
4308         (realloc_hook_ini): Don't overwrite memalign hook.
4309         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
4310         Reported by Philippe Troin <phil@fifi.org>.
4311
4312         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
4313         Patch by Philippe Troin <phil@fifi.org>.
4314
4315 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4316
4317         * sysdeps/generic/segfault.c (install_handler): Protect the
4318         non-POSIX signals with #ifdef.
4319         (catch_segfault): Add missing mode parameter for open.
4320         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
4321         other termination signals.
4322
4323 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4324
4325         * debug/Makefile (distribute): Add register-dump.h.
4326
4327 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4328
4329         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
4330
4331 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
4332
4333         * elf/Makefile (distribute): Add dl-origin.h.
4334         * sysdeps/generic/dl-origin.h: New file.
4335         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
4336         * elf/link.h (struct link_map): Add l_origin field.
4337         * elf/dl-load.c (expand_dynamic_string_token): New function.
4338         (decompose_path): Remove WHERE argument, take link map pointer instead.
4339         Call expand_dynamic_string_token instead of local_strdup to make copy
4340         of rpath.
4341         (_dl_init_paths): Call decompose_path with correct argument.
4342         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
4343         not defined.
4344         Check EI_OSABI and EI_ABIVERSION fields in header.
4345         Call _dl_new_object with extra argument.
4346         (_dl_map_object): Call decompose_path with correct argument.
4347         Call expand_dynamic_string_token instead of local_strdup to also
4348         expand DST.
4349         Call _dl_new_object with extra argument.
4350         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
4351         but the main one if new argument is nonzero.
4352         * elf/ldsodefs.h: Adjust for _dl_new_object change.
4353         * elf/dl-support.c: Define _dl_origin_path.
4354         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
4355         (dl_main): Call _dl_new_object with extra argument.
4356
4357         * elf/dl-close (_dl_close): Free l_name and l_origin.
4358
4359         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
4360         modifier in asm, not c.
4361
4362         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
4363         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
4364
4365 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
4366
4367         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
4368         variable so that map can be freed.
4369         Reported by Philippe Troin <phil@fifi.org>.
4370
4371         * elf/dl-open.c (dl_open_worker): Correct test for extending global
4372         scope array.
4373         Patch by Philippe Troin <phil@fifi.org>.
4374
4375 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
4376
4377         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
4378         Don't call writev() with a 100-element vector.
4379         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
4380         return address.
4381
4382         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
4383         In particular, set __libc_stack_end.
4384         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
4385         undefined.  Fix copyright notice.
4386
4387 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4388
4389         * math/Makefile (gmp-objs): New variable.
4390         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
4391         Depend on it.
4392         (tests): Add atest-exp atest-sincos atest-exp2.
4393         (tests-static): Remove atest-exp atest-sincos atest-exp2.
4394
4395 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
4396
4397         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
4398         to toplevel.
4399         (_dl_unload_cache): New function.
4400         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
4401         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
4402         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
4403
4404         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
4405         Correct comment for O_LARGEFILE.
4406         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
4407         Change O_LARGEFILE to correct value.
4408
4409 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
4410
4411         * libio/iogetline.c (_IO_getline_info): Don't read anything for
4412         N == 0.  Patch by HJ Lu.
4413
4414 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
4415
4416         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
4417
4418 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
4419
4420         * argp/argp.h: Use __inline__ not inline.
4421
4422         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
4423         an input register as being clobbered.
4424         * sysdeps/i386/memset.c (memset): Likewise.
4425         * sysdeps/i386/bzero.c (__bzero): Likewise.
4426         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
4427
4428 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4429
4430         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
4431         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
4432
4433 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
4434
4435         * debug/catchsegv.sh: Handle text preceding backtrace better.
4436         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
4437         to be installed for other signals than SIGSEGV.
4438         * sysdeps/generic/register-dump.h: New file.
4439         * sysdeps/i386/register-dump.h: New file.
4440         * sysdeps/powerpc/register-dump.h: New file.
4441
4442         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
4443         sigcontextinfo.h.
4444         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
4445
4446 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
4447
4448         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
4449
4450 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
4451
4452         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
4453         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
4454         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
4455         getresuid, getresgid.
4456
4457 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
4458
4459         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
4460         pointer in userland.
4461
4462 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4463
4464         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
4465         and fix value.
4466
4467 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4468
4469         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
4470         over arguments Bourne shell compatible.  Don't exit unsuccessfully
4471         if nonelf returns successfully.  Avoid duplicating most of the
4472         script.
4473         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
4474         around $file.
4475
4476 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4477
4478         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
4479         sys/reg.h.
4480         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
4481         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
4482
4483 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
4484
4485         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
4486         __modify_ldt and modify_ldt.
4487         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
4488
4489         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4490         Use orl $-1 instead of movl $-1 to save two bytes.
4491         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
4492         Likewise.
4493
4494 1998-08-17  H.J. Lu  <hjl@gnu.org>
4495
4496         * libio/Versions (_IO_do_write, _IO_file_attach,
4497         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4498         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4499         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4500         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
4501
4502         * libio/fileops.c (_IO_do_write, _IO_file_attach,
4503         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4504         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4505         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4506         _IO_file_write, _IO_file_xsputn): Change the prefix to
4507         "_IO_new_". Added to GLIBC_2.1.
4508
4509         * libio/libioP.h (_IO_do_write, _IO_file_attach,
4510         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4511         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4512         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4513         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
4514         "_IO_new_".
4515
4516         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
4517         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
4518         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
4519         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
4520         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
4521
4522 1998-08-23  Richard Henderson  <rth@cygnus.com>
4523
4524         * Makeconfig (LDFLAGS): Remove.
4525
4526         * csu/initfini.c: Return to .text before __gmon_start__.
4527
4528         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
4529         (STO_MIPS_*): Rename from STO_*.
4530         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
4531         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
4532
4533         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
4534         (main): e3s is negative on zero.
4535         * math/atest-exp2.c: Likewise.
4536         * math/atest-sincos.c: Likewise.
4537
4538 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4539
4540         * Makerules (install): Add comment about absolute paths.
4541
4542 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
4543
4544         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
4545         array to NUL to handle maxlen==1 case correctly.
4546         Patch by HJ Lu.
4547
4548 1998-08-23  Richard Henderson  <rth@cygnus.com>
4549
4550         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
4551         * sysdeps/alpha/elf/crtend.S: Likewise.
4552         * sysdeps/alpha/elf/start.S: Likewise.
4553
4554         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
4555         non-standard pv usage.
4556
4557         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
4558         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
4559         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4560         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4561         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
4562         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4563         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4564         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4565         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4566         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4567         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4568
4569         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
4570         a finite non-denormal, deferring to the full IEEE version otherwise.
4571
4572         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
4573         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
4574         * sysdeps/alpha/fpu/s_floor.c: New.
4575         * sysdeps/alpha/fpu/s_floorf.c: New.
4576         * sysdeps/alpha/fpu/s_ceil.c: New.
4577         * sysdeps/alpha/fpu/s_ceilf.c: New.
4578
4579 1998-08-22  Philip Blundell  <philb@gnu.org>
4580
4581         * sysdeps/arm/bits/string.h: New file.
4582
4583 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4584
4585         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
4586         document it.
4587
4588         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
4589         test for recent Linux 2.1.100+ headers.
4590
4591 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
4592
4593         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
4594
4595 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
4596
4597         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
4598
4599 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4600
4601         * Makefile (elf/ldso_install): Put back.  The problem still persists.
4602         * elf/Makefile (ldso_install): Likewise.
4603
4604 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4605
4606         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
4607         create weak alias.
4608         * include/db.h: Declare __nss_db_open.
4609         * db2/Versions: Export it.
4610
4611         * db2/makedb.c: Convert to use db2 API.
4612         * nss/nss_db/db-XXX.c: Likewise.
4613         * nss/nss_db/db-netgrp.c: Likewise.
4614         * nss/nss_db/db-alias.c: Likewise.
4615         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
4616
4617 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4618
4619         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
4620         sys_setresuid, already built automatically (or not).
4621         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
4622         instead of __syscall_setresuid and add back setresuid.
4623         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
4624         __syscall_setresuid.
4625
4626 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4627
4628         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
4629
4630 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
4631
4632         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
4633         BASH-ONLY marked region.
4634         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
4635
4636 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
4637
4638         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
4639         _IO_SYSSEEK fails.
4640
4641         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
4642
4643         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
4644         element.
4645
4646 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
4647
4648         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
4649         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
4650         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
4651         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
4652         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
4653         those magic comments, and to use /bin/sh for @BASH@.
4654         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
4655         * elf/ldd.sh.in: File removed.
4656
4657 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
4658
4659         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
4660         cast them to unsigned long int.
4661         * pwd/putpwent.c (putpwent): Likewise.
4662         Patch by John Tobey <jtobey@banta-im.com>.
4663
4664 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
4665
4666         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
4667         _IO_pos_BAD.
4668
4669 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
4670
4671         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
4672         _IO_SYSSEEK fails.
4673
4674 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
4675
4676         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
4677         Add umount and umount2.
4678         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
4679         * sysdeps/unix/sysv/linux/umount.S: New file.
4680         * sysdeps/unix/sysv/linux/umount2.S: New file.
4681         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
4682         Define MNT_FORCE.
4683
4684         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
4685         Add sys/sendfile.h.
4686         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
4687         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
4688
4689         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
4690
4691         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
4692         sendfile.
4693
4694 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
4695
4696         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
4697         * elf/ldd.bash.in: Likewise.
4698
4699         * elf/sln.c: Avoid warning for no main prototype.
4700
4701         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
4702         O_WRITE.
4703         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
4704         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4705
4706         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
4707         F_GETSIG.
4708         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
4709         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
4710         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4711
4712 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
4713
4714         * sysdeps/arm/fpu/ieee754.h: Move to...
4715         * sysdeps/arm/ieee754.h: ... here.
4716
4717         * sysdeps/arm/__longjmp.S: Put return value in correct register.
4718         Don't set the condition flags unnecessarily.
4719         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
4720         registers correctly.
4721
4722         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
4723         (patch from Scott Bambrough).
4724
4725         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
4726
4727         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
4728         NULL, just call it unconditionally.
4729         (__gmon_start__): Provide stub version as a weak symbol.
4730
4731 1998-07-30  Philip Blundell  <philb@gnu.org>
4732
4733         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
4734         by Scott Bambrough)
4735
4736         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
4737         like `@' in .type directives.
4738
4739         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
4740         * sysdeps/arm/bsd-_setjmp.S: Likewise.
4741
4742         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
4743
4744 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4745
4746         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
4747         (F_GETOWN): Likewise.
4748
4749         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
4750         Linux 2.1.117).
4751
4752 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
4753
4754         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
4755         already defined.
4756
4757 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
4758
4759         * include/features.h: Define __USE_EXTERN_INLINES for recent
4760         enough gcc.
4761         * argp/argp.h: Define extern inline functions only if
4762         __USE_EXTERN_INLINES is defined.
4763         * libio/stdio.h: Likewise.
4764         * math/math.h: Likewise.
4765         * stdlib/stdlib.h: Likewise.
4766         * string/argz.h: Likewise.
4767         * sysdeps/generic/bits/sigset.h: Likewise.
4768         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4769         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
4770         * sysdeps/wordsize-32/inttypes.h: Likewise.
4771         * sysdeps/wordsize-64/inttypes.h: Likewise.
4772         * wcsmbs/wchar.h: Likewise.
4773
4774         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
4775         to allow compilation without optimization.
4776
4777 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
4778
4779         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
4780         more entries.
4781         * nis/nss_compat/compat-initgroups.c: Likewise.
4782         * nis/nss_compat/compat-pwd.c: Likewise.
4783         * nis/nss_compat/compat-spwd.c: Likewise.
4784         * nis/nss_nis/nis-alias.c: Likewise.
4785         * nis/nss_nis/nis-ethers.c: Likewise.
4786         * nis/nss_nis/nis-grp.c: Likewise.
4787         * nis/nss_nis/nis-hosts.c: Likewise.
4788         * nis/nss_nis/nis-initgroups.c: Likewise.
4789         * nis/nss_nis/nis-network.c: Likewise.
4790         * nis/nss_nis/nis-proto.c: Likewise.
4791         * nis/nss_nis/nis-pwd.c: Likewise.
4792         * nis/nss_nis/nis-rpc.c: Likewise.
4793         * nis/nss_nis/nis-service.c: Likewise.
4794         * nis/nss_nis/nis-spwd.c: Likewise.
4795
4796         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
4797
4798         * nis/ypclnt.c: Try binding dir only first time, could be to old.
4799
4800         * nis/yp_xdr.c: Remove 1024 byte limit.
4801         * nis/ypupdate_xdr.c: Likewise.
4802
4803         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
4804         wrong data.
4805
4806 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
4807
4808         * Rules (binaries-static, binaries-shared static pattern rules):
4809         Depend on lib%, not just libc%, from $(link-libc{,-static}).
4810
4811         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
4812         this here, overriding Makeconfig generic value so we link against
4813         the RPC libs.
4814
4815 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
4816
4817         * posix/tstgetopt.c (options): Add NULL entry at end
4818         Patch by Adrian Miranda <ade@psg.com>.
4819
4820 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
4821
4822         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
4823         to 9.
4824
4825 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
4826
4827         * elf/elf.h: Add PPC Diab relocations.
4828
4829         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
4830
4831 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
4832
4833         * manual/texinfo.tex: Update.
4834
4835 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
4836
4837         * sysdeps/powerpc/backtrace.c: New file.
4838
4839 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
4840
4841         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
4842         sigjmp_save.
4843         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
4844
4845 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4846
4847         * Makefile (install-symbolic-link): Fix spelling.
4848
4849 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4850
4851         * elf/elf.h (SHT_HIOS): Fix value.
4852
4853 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4854
4855         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
4856         part of the expansion, this is undefined by the standard.
4857
4858 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
4859
4860         * posix/getconf.c: Add support for systems with incomplete confname.h.
4861
4862         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
4863
4864         * sysdeps/posix/wait3.c: Make it work.
4865
4866 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4867
4868         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
4869         (elf/ldso_install): Remove.
4870
4871         * elf/Makefile (distribute): Add sln.c.
4872         (others): Add sln.
4873         (others-static): Add sln.
4874         (install-rootsbin): Add sln.
4875         (others-static): Add sln.
4876         (ldso_install): Remove.
4877
4878 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4879
4880         * Makerules (install-clean-symbolic-link-list): Make phony.
4881         * Makefile (install-symbolic-link): Make phony.  Depend on
4882         subdir_install for parallel makes.
4883
4884
4885 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
4886
4887         * elf/Makefile (distribute): Add sln.c
4888
4889 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
4890
4891         * elf/sln.c: New file.
4892
4893         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
4894         (install-clean-symbolic-link-list): New target.
4895         (install): Depend on install-clean-symbolic-link-list.
4896         (make-shlib-link): Changed for $(symbolic-link-list).
4897
4898         * Makefile (install-symbolic-link): New target.
4899         (install): Depend on install-symbolic-link.
4900
4901 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
4902
4903         * include/unistd.h: Protect against multiple inclusion.
4904
4905         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
4906         is defined, not is glob is defined.
4907         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
4908
4909 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
4910
4911         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
4912         xdr_string for ut_line, ut_name and ut_host.
4913
4914 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
4915
4916         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
4917         /var/mail in accordance with FHS 2.0.
4918         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
4919
4920 1998-08-12  Richard Henderson  <rth@cygnus.com>
4921
4922         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
4923         Update aliases for cancelation.
4924
4925         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
4926         playing with symbol versions.
4927
4928 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
4929
4930         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
4931         multiple inclusion protection.
4932         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
4933         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
4934         define all these to 1.
4935         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
4936
4937 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
4938
4939         * sysdeps/mach/usleep.c: Include <unistd.h>.
4940         (usleep): Return void.
4941
4942 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
4943
4944         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
4945         decl to inhibit warning in if_freenameindex defn.
4946
4947         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
4948
4949         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
4950
4951         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
4952         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
4953         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
4954         * sysdeps/mach/usleep.c: Likewise.
4955
4956         * sysdeps/mach/hurd/bind.c (bind): Add a const.
4957
4958         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
4959         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
4960         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
4961         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
4962         * sysdeps/mach/usleep.c (usleep): Likewise.
4963         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
4964         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
4965         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
4966         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
4967
4968 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
4969
4970         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
4971         (glob64): Fix typo.
4972
4973         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
4974         %p arg to fprintf, since `void *' is the right type already.
4975
4976 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
4977
4978         * sysdeps/mach/hurd/getcwd.c
4979         (_hurd_canonicalize_directory_name_internal): Do not loop forever
4980         for unknown root directories.
4981         (__getcwd): Return NULL when the current root directory could not
4982         be reached.
4983
4984 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
4985
4986         * string/strsignal.c (strsignal): Count real-time signals from zero.
4987
4988
4989 See ChangeLog.8 for earlier changes.