Update.
[platform/upstream/glibc.git] / ChangeLog
1 1999-06-08  Ulrich Drepper  <drepper@cygnus.com>
2
3         * grp/Makefile (tests): Add tst_fgetgrent.
4         * grp/tst_fgetgrent.c: New file.
5         Patches by Andreas Jaeger <aj@arthur.rhein-neckar.de>.
6
7 1999-06-07  Roland McGrath  <roland@baalperazim.frob.com>
8
9         * db2/os/os_oflags.c (__db_oflags): Fix checking of O_ACCMODE bits to
10         be POSIX compliant.  Prior definition was broken for Hurd.
11         Reported by Mark Kettenis <kettenis@gnu.org>.
12
13 1999-06-08  Ulrich Drepper  <drepper@cygnus.com>
14
15         * ctype/ctype.h: Protect __tobody code by __extension__.
16
17 1999-06-07  Ulrich Drepper  <drepper@cygnus.com>
18
19         * grp/fgetgrent.c (fgetgrent): Remember position of stream before
20         reading and reset in case the buffer was too small.
21
22         * grp/fgetgrent_r.c (__fgetgrent_r): Set errno to ENOENT in case
23         of EOF.
24
25 1999-06-07  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
26
27         * sysdeps/unix/sysv/linux/if_index.c: Use SIGIOCGIFINDEX and fix
28         another SIOGIFNAME typo.
29
30 1999-06-07  Ulrich Drepper  <drepper@cygnus.com>
31
32         * elf/dl-lookup.c: Remove duplicated assert.h inclusion.
33
34         * sysdeps/generic/printf_fphex.c (__printf_fphex): Optimize a little
35         bit.
36
37 1999-06-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
38
39         * sysdeps/generic/printf_fphex.c (__printf_fphex): Don't ignore
40         the precision if the mantissa is zero.
41
42 1999-06-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
43
44         * manual/lang.texi (Floating Point Parameters): GCC already
45         supports long double for a long time.
46
47 1999-06-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
48
49         * math/libm-test.c (j0_test, j1_test, jn_test, y0_test, y1_test,
50         yn_test): Increase some epsilons.
51
52 1999-06-07  Ulrich Drepper  <drepper@cygnus.com>
53
54         * sysdeps/unix/sysv/linux/sys/sysmacros.h (makedev): Handle signed
55         parameters.
56
57 1999-06-06  Ulrich Drepper  <drepper@cygnus.com>
58
59         * sysdeps/unix/sysv/linux/kernel-features.h: Define
60         __ASSUME_SIOCGIFNAME for kernel >= 2.1.50.
61         * sysdeps/unix/sysv/linux/if_index.c: Correct typo (SIOGIFNAME ->
62         SIOCGIFNAME) and use __ASSUME_SIOCGIFNAME.
63
64         * sysdeps/libm-ieee754/w_j0.c: Remove __ from symbol definitions.
65         * sysdeps/libm-ieee754/w_j0f.c: Likewise.
66         * sysdeps/libm-ieee754/w_j0l.c: Likewise.
67         * sysdeps/libm-ieee754/w_j1.c: Likewise.
68         * sysdeps/libm-ieee754/w_j1f.c: Likewise.
69         * sysdeps/libm-ieee754/w_j1l.c: Likewise.
70         * sysdeps/libm-ieee754/w_jn.c: Likewise.
71         * sysdeps/libm-ieee754/w_jnf.c: Likewise.
72         * sysdeps/libm-ieee754/w_jnl.c: Likewise.
73
74         * stdio-common/vfprintf.c: Correct typos.
75
76         * math/libm-test.c (jn_test): Adjust delta.
77         (y1_test): Likewise.
78         (yn_test): Likewise.
79
80         * elf/do-lookup.h: It should never happen that if we expect a versioned
81         symbol from a file the file has no version table.  This should have
82         been checked in dl-version.c.
83         * elf/dl-lookup.c: Include assert.h.
84
85         * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct restorer
86         function handling.
87
88         * sysdeps/unix/sysv/linux/i386/sigaction.c (SA_RESTORER): New #define.
89
90 1999-06-06  Andi Kleen  <ak@muc.de>
91
92         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Set
93         SA_RESTORER flag.
94
95 1999-06-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
96
97         * math/libm-test.c (yn_test): Change one delta.
98         (jn_test): Likewise.
99         (j1_test): Likewise.
100         (y0_test): Likewise.
101
102 1999-06-06  Ulrich Drepper  <drepper@cygnus.com>
103
104         * malloc/malloc.c: Introduce local variable __libc_getpagesize to
105         avoid multiple calls to getpagesize() which might be a syscall.
106
107 1999-06-06  Philip Blundell  <philb@gnu.org>
108
109         * stdio-common/tstscanf.c (main): Test the half-word format "%hd".
110
111 1999-06-06  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
112
113         * manual/install.texi (Running make install): Correct typo in
114         dynamic linker invocation.
115
116 1999-06-05  Philip Blundell  <philb@gnu.org>
117
118         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Fix
119         problems with GOT addressing.
120
121 1999-06-05  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
122
123         * malloc/malloc.c (check_action): Change into bitmap so that both
124         diagnostic and abort can be requested by setting it to 3.
125         (mALLOC_SET_STATe): Disable malloc checking if necessary.
126
127 1999-06-03  Ulrich Drepper  <drepper@cygnus.com>
128
129         * configure.in: Few changes for HPUX.
130
131         * scripts/config.guess: Update from latest version.
132         * scripts/config.sub: Likewise.
133
134 1999-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
135
136         * Makerules: Set LC_ALL explicitly to archieve correct sorting of
137         map files.  Closes PR libc/1147.
138
139 1999-06-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
140
141         * math/libm-test.c (main): Add new test functions.
142         (jn_test): New tests.
143         (j1_test): Add some more tests.
144         (j0_test): Add some more tests.
145         (y0_test): Add some more tests.
146         (y1_test): Add some more tests.
147
148 1999-06-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
149
150         * sysdeps/libm-ieee754/e_j0.c (__ieee754_y0): Fix array indices.
151         Patch by mhagger@dera.gov.uk [PR libc/1145].
152
153         * math/libm-test.c (y1_test): New tests.
154         (y0_test): Likewise.
155         (j1_test): Likewise.
156         (j0_test): Likewise.
157         (main): Added new tests.
158
159 1999-06-02  Jakub Jelinek  <jj@ultra.linux.cz>
160
161         * stdlib/longlong.h: Define UDIV_TIME on sparc64.
162         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: New file.
163         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: New file.
164         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: New file.
165         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: New file.
166         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: New file.
167
168 1999-06-02  David S. Miller  <davem@redhat.com>
169
170         * nscd/nscd_gethst_r.c (nscd_gethst_r): Align the h_addr_list
171         pointers properly.
172
173 1999-06-02  Ulrich Drepper  <drepper@cygnus.com>
174
175         * sysdeps/unix/sysv/linux/i386/sigaction.c: Read kernel-features.h
176         and elide compatibility code if possible.
177
178 1999-06-01  Ulrich Drepper  <drepper@cygnus.com>
179
180         * manual/llio.texi: Remove menu entry for removed section.
181
182 1999-05-29  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
183
184         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo and avoid unused
185         variables.
186
187 1999-06-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
188
189         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_DDCMP): Add it
190         (from Linux 2.3.4).
191
192 1999-05-30  Ulrich Drepper  <drepper@cygnus.com>
193
194         * inet/netinet/in.h: Mark ntoh* and hton* as constant functions.
195
196 1999-05-30  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
197
198         * manual/stdio.texi: Fix some typos.
199
200 1999-05-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
201
202         * malloc/malloc.h: Properly handle future GCC versions.
203
204 1999-05-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
205
206         * sysdeps/unix/sysv/linux/configure.in: Change version checks to
207         use AC_EGREP_CPP.  Change sed pattern to not use alternation.  Fix
208         text of error message.
209
210         * aclocal.m4 (GLIBC_PROVIDES): Define AC_LANG to `C'.
211
212 1999-05-29  Ulrich Drepper  <drepper@cygnus.com>
213
214         * manual/filesys.texi: Extend (f)truncate documentation.
215         * manual/llio.texi: Remove duplicate (f)truncate definition.
216
217 1999-05-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
218
219         * manual/stdio.texi (Formatted Output Functions): Mention
220         semantics of snprintf in glibc 2.0.
221         Reported by Ben Pfaff <pfaffben@msu.edu>.
222
223 1999-05-29  Ulrich Drepper  <drepper@cygnus.com>
224
225         * include/features.h (__GLIBC_MINOR__): Bump to 2.
226
227 1999-05-27  Ulrich Drepper  <drepper@cygnus.com>
228
229         * math/libm-test.c: Adjust a few more deltas for the poor ARM
230         FPU emulator.
231
232 1999-05-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
233
234         * configure.in: Fix typo.
235
236 1999-05-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
237
238         * manual/socket.texi (Host Names): Remove statement that h_errno
239         needs to be declared since this isn't true anymore.
240         Closes PR libc/1138.
241
242 1999-05-26  Ulrich Drepper  <drepper@cygnus.com>
243
244         * config.h.in: Add __LINUX_KERNEL_VERSION.
245         * configure.in: Recognize --enable-kernel.
246         * sysdeps/unix/sysv/linux/configure.in: Check for correct kernel
247         headers if --enable-kernel is given and set __LINUX_KERNEL_VERSION
248         appropriately.
249         * sysdeps/unix/sysv/linux/init-first.c: If minimal kernel version is
250         given perform runtime test.
251
252         * sysdeps/unix/sysv/linux/kernel-features.h: New file.
253         * sysdeps/unix/sysv/linux/getcwd.c: Elide compatibility code if
254         minimal supported kernel is known to have the feature.
255         * sysdeps/unix/sysv/linux/poll.c: Likewise.
256         * sysdeps/unix/sysv/linux/pread.c: Likewise.
257         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
258         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
259         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
260         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
261         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
262         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
263         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
264         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
265         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
266         * sysdeps/unix/sysv/linux/i386/pread.c: Likewise.
267         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
268         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
269         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
270
271         * sysdeps/unix/sysv/linux/sysctl.c: Add __sysctl alias.
272
273 1999-05-25  Ulrich Drepper  <drepper@cygnus.com>
274
275         * sysdeps/posix/getcwd.c (__getcwd): Fix potential memory leaks.
276
277 1999-05-26  Jakub Jelinek   <jj@ultra.linux.cz>
278
279         * stdlib/longlong.h (add_ssaaaa, sub_ddmmss, umul_ppmm):
280         Optimized sparc64 routines.
281
282 1999-05-25  Ulrich Drepper  <drepper@cygnus.com>
283
284         * stdio-common/vfprintf.c (vfprintf): Don't handle long numbers if
285         they are the same as ints.
286         * stdio-common/vfscanf.c (_IO_vfscanf): Likewise.
287
288         * version.h (VERSION): Bump to 2.1.90.
289         (RELEASE): Mark as development.
290
291         * stdio-common/vfprintf.c (vfprintf): Don't implement special
292         handling for long long if it is the same as long.
293         * stdio-common/vfscanf.c (_IO_vfscanf): Likewise.
294
295         * stdlib/strtol.c: Moved to ...
296         * sysdeps/generic/strtol.c: ...here.
297         * stdlib/strtoul.c: Moved to ...
298         * sysdeps/generic/strtoul.c: ...here.
299         * stdlib/strtoll.c: Moved to ...
300         * sysdeps/generic/strtoll.c: ...here.
301         * stdlib/strtoull.c: Moved to ...
302         * sysdeps/generic/strtoull.c: ...here.
303         * stdlib/strtol_l.c: Moved to ...
304         * sysdeps/generic/strtol_l.c: ...here.
305         * stdlib/strtoul_l.c: Moved to ...
306         * sysdeps/generic/strtoul_l.c: ...here.
307         * stdlib/strtoll_l.c: Moved to ...
308         * sysdeps/generic/strtoll_l.c: ...here.
309         * stdlib/strtoull_l.c: Moved to ...
310         * sysdeps/generic/strtoull_l.c: ...here.
311
312         * sysdeps/wordsize-64/strtol.c: New file.
313         * sysdeps/wordsize-64/strtoul.c: New file.
314         * sysdeps/wordsize-64/strtoll.c: New file.
315         * sysdeps/wordsize-64/strtoull.c: New file.
316         * sysdeps/wordsize-64/strtol_l.c: New file.
317         * sysdeps/wordsize-64/strtoul_l.c: New file.
318         * sysdeps/wordsize-64/strtoll_l.c: New file.
319         * sysdeps/wordsize-64/strtoull_l.c: New file.
320
321         * wcsmbs/wcstol.c: Moved to ...
322         * sysdeps/generic/wcstol.c: ...here.
323         * wcsmbs/wcstoul.c: Moved to ...
324         * sysdeps/generic/wcstoul.c: ...here.
325         * wcsmbs/wcstoll.c: Moved to ...
326         * sysdeps/generic/wcstoll.c: ...here.
327         * wcsmbs/wcstoull.c: Moved to ...
328         * sysdeps/generic/wcstoull.c: ...here.
329         * wcsmbs/wcstol_l.c: Moved to ...
330         * sysdeps/generic/wcstol_l.c: ...here.
331         * wcsmbs/wcstoul_l.c: Moved to ...
332         * sysdeps/generic/wcstoul_l.c: ...here.
333         * wcsmbs/wcstoll_l.c: Moved to ...
334         * sysdeps/generic/wcstoll_l.c: ...here.
335         * wcsmbs/wcstoull_l.c: Moved to ...
336         * sysdeps/generic/wcstoull_l.c: ...here.
337
338         * sysdeps/wordsize-64/wcstol.c: New file.
339         * sysdeps/wordsize-64/wcstoul.c: New file.
340         * sysdeps/wordsize-64/wcstoll.c: New file.
341         * sysdeps/wordsize-64/wcstoull.c: New file.
342         * sysdeps/wordsize-64/wcstol_l.c: New file.
343         * sysdeps/wordsize-64/wcstoul_l.c: New file.
344         * sysdeps/wordsize-64/wcstoll_l.c: New file.
345         * sysdeps/wordsize-64/wcstoull_l.c: New file.
346
347 1999-05-24  Jakub Jelinek  <jj@ultra.linux.cz>
348
349         * sysdeps/sparc/bits/wordsize.h: New file.
350         * sysdeps/sparc/fpu/bits/fenv.h: New file.
351         * sysdeps/sparc/fpu/fpu_control.h: New file.
352         * sysdeps/sparc/gmp-mparam.h: New file.
353
354         * sysdeps/sparc/sparc32/fpu/bits/fenv.h: Remove.
355         * sysdeps/sparc/sparc32/fpu/fpu_control.h: Remove.
356         * sysdeps/sparc/sparc64/bits/wordsize.h: Remove.
357         * sysdeps/sparc/sparc64/fpu/bits/fenv.h: Remove.
358         * sysdeps/sparc/sparc64/fpu/fpu_control.h: Remove.
359         * sysdeps/sparc/sparc64/gmp-mparam.h: Remove.
360
361         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: New file.
362         * sysdeps/unix/sysv/linux/sparc/bits/types.h: New file.
363         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: New file.
364         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: New file.
365
366         * sysdeps/unix/sysv/linux/sparc/sparc32/sys/ucontext.h: Remove.
367         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Remove.
368         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Remove.
369         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Remove.
370         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: Remove.
371
372 1999-05-24  Ulrich Drepper  <drepper@cygnus.com>
373
374         * login/openpty.c (openpty): Make sure pty does not because
375         controlling TTY.
376
377         * ctype/ctype.h: Don't optimize toupper/tolower for C++.
378
379 1999-05-23  Roland McGrath  <roland@baalperazim.frob.com>
380
381         * hurd/set-host.c (_hurd_set_host_config): Use mode 0644, not 0600.
382         Do proper error return.
383
384 1999-05-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
385
386         * malloc/malloc.h: Add __THROW for __MALLOC_P to synch with usage
387         of __P in the rest of glibc; define __MALLOC_PMT and use it.
388         Reported by Stephan Kulow <coolo@kde.org>.
389
390 1999-05-23  Ulrich Drepper  <drepper@cygnus.com>
391
392         * sysdeps/alpha/fpu/bits/fenv.h: Pretty print.
393
394         * sysdeps/sparc/sparc64/fpu/bits/fenv.h: Remove unneeded #if.
395
396 1999-05-22  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
397
398         * sysdeps/m68k/fpu/bits/fenv.h (fenv_t): Prepend __ to member
399         names to protect from user's macro namespace.
400         * sysdeps/arm/fpu/bits/fenv.h (fenv_t): Likewise.
401         * sysdeps/generic/bits/fenv.h (fexcept_t, fenv_t): Likewise.
402         * sysdeps/i386/fpu/bits/fenv.h (fenv_t): Likewise.
403         * sysdeps/mips/bits/fenv.h (fenv_t): Likewise.
404         * sysdeps/m68k/fpu/feholdexcpt.c, sysdeps/m68k/fpu/fesetenv.c:
405         Adapted.
406         * sysdeps/arm/fpu/fegetenv.c, sysdeps/arm/fpu/feholdexcpt.c,
407         sysdeps/arm/fpu/fesetenv.c: Likewise.
408         * sysdeps/i386/fpu/fclrexcpt.c, sysdeps/i386/fpu/feholdexcpt.c,
409         sysdeps/i386/fpu/fesetenv.c, sysdeps/i386/fpu/fraiseexcpt.c,
410         sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
411         * sysdeps/mips/fesetenv.c: Likewise.
412
413 1999-05-22  Roland McGrath  <roland@baalperazim.frob.com>
414
415         * sysdeps/generic/bits/sigstack.h (enum SS_*): Remove trailing comma.
416
417 1999-05-20  Ulrich Drepper  <drepper@cygnus.com>
418
419         * configure.in: Recognize and allow gcc 2.95.
420
421 1999-05-19  Jakub Jelinek  <jj@ultra.linux.cz>
422
423         * sysdeps/generic/bits/elfclass.h: Version common to
424         wordsize-32 and wordsize-64.
425         * sysdeps/generic/bits/environments.h: Ditto.
426         * sysdeps/generic/stdint.h: Ditto.
427         * sysdeps/generic/inttypes.h: Ditto.
428
429         * sysdeps/generic/bits/wordsize.h: New file.
430         * stdlib/Makefile: Add bits/wordsize.h to headers.
431
432         * sysdeps/sparc/sparc64/bits/wordsize.h: New file.
433
434         * sysdeps/sparc/sparc64/fpu/bits/fenv.h: Allow the same exported
435         headers to be used for 32bit and 64bit ABI compilations.
436         * sysdeps/sparc/sparc64/fpu/fpu_control.h: Ditto.
437         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Ditto.
438         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Ditto.
439         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Ditto.
440         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: Ditto.
441
442         * sysdeps/wordsize-64/bits/elfclass.h: Remove.
443         * sysdeps/wordsize-64/bits/environments.h: Remove.
444         * sysdeps/wordsize-64/stdint.h: Remove.
445         * sysdeps/wordsize-64/inttypes.h: Remove.
446         * sysdeps/wordsize-64/bits/wordsize.h: New file.
447
448         * sysdeps/wordsize-32/bits/elfclass.h: Remove.
449         * sysdeps/wordsize-32/bits/environments.h: Remove.
450         * sysdeps/wordsize-32/stdint.h: Remove.
451         * sysdeps/wordsize-32/inttypes.h: Remove.
452         * sysdeps/wordsize-32/bits/wordsize.h: New file.
453
454 1999-05-19  Jakub Jelinek  <jj@ultra.linux.cz>
455
456         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_4, __align_cpy_8,
457         __align_cpy_16): New functions.
458         (__align_cpy_2, __align_cpy_1): New aliases to memcpy.
459
460         * sysdeps/sparc/sparc32/Versions: New file.
461         * sysdeps/sparc/sparc64/Versions: New file.
462         * sysdeps/sparc/Versions: Remove.
463
464 1999-05-19  Jakub Jelinek  <jj@ultra.linux.cz>
465
466         * sysdeps/unix/sysv/linux/configure.in:
467         On sparc64-*-linux*, set slibdir to /lib64 if prefix
468         is /usr, plus set libdir to ${exec_prefix}/lib64.
469         * sysdeps/unix/sysv/linux/configure: Regenerated.
470         * config.make.in: Propagate libdir settings from configure
471         to the Makefiles.
472         * shlib-versions: sparc64-*-linux* dynamic linker is
473         /lib64/ld-linux.so.2.
474
475 1999-05-18  Thorsten Kukuk  <kukuk@suse.de>
476
477         * nis/nis_lookup.c (nis_lookup): If we run out of memory, close
478         RPC connection.
479
480 1999-05-18  Jakub Jelinek  <jj@ultra.linux.cz>
481
482         * sysdeps/sparc/sparc64/rawmemchr.S: New file.
483         * sysdeps/sparc/sparc32/sparcv9/rawmemchr.S: New file.
484
485         * sysdeps/sparc/sparc64/memchr.S: Fix if the second argument
486         contains garbage in bits 8-63.
487         * sysdeps/sparc/sparc64/memset.S: Ditto.
488         * sysdeps/sparc/sparc64/strchr.S: Ditto.
489
490 1999-05-18  Ulrich Drepper  <drepper@cygnus.com>
491
492         * sysdeps/wordsize-64/stdint.h (INTPTR_MAX): Add missing ).
493
494 1999-05-17  David S. Miller  <davem@redhat.com>
495
496         * sysdeps/sparc/sparc32/atomicity.h: New file.
497         * sysdeps/sparc/sparc32/sparcv9/atomicity.h: New file.
498         * sysdeps/sparc/sparc64/atomicity.h: New file.
499         * sysdeps/sparc/sparc32/sparcv9/Makefile: Add -Wa,-Av9a to
500         sysdep-CFLAGS.
501
502 1999-05-18  Richard Henderson  <rth@twiddle.net>
503
504         * sysdeps/alpha/memchr.S: Zap high byte of length.  Reschedule.
505
506 1999-05-04  Zack Weinberg  <zack@rabi.phys.columbia.edu>
507
508         * argp/argp.h, assert/assert.h, misc/sys/cdefs.h,
509         posix/sys/types.h: Handle the case of __GNUC__=3,
510         __GNUC_MINOR__=(anything).
511
512 1999-05-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
513
514         * sysdeps/i386/i486/bits/string.h (rawmemchr): Remove unneccessary
515         if _FORCE_INLINES.
516
517 1999-05-17  Ulrich Drepper  <drepper@cygnus.com>
518
519         * elf/Makefile (distribute): Remove dl-origin.h.
520         Add dl-dst.h and gen-trusted-dirs.awk.
521
522 1999-05-17  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
523
524         * sysdeps/i386/i486/Versions: New file with inline functions from
525         sysdeps/i386/i486/bits/string.h for now.
526
527         * sysdeps/i386/Versions: Add inline functions from
528         sysdeps/i386/bits/string.h.
529
530         * string/Versions: Add inline functions from <bits/string2.h>.
531
532         * string/Makefile (routines): Add string-inlines.
533         * string/string-inlines.c: New file, used for implementation of
534         extern inline functions.
535
536         * sysdeps/i386/i486/bits/string.h: Use _FORCE_INLINES to generate
537         non inlined versions of functions.
538         * string/bits/string2.h: Likewise.
539         * sysdeps/i386/bits/string.h: Likewise.
540
541 1999-05-17  Ulrich Drepper  <drepper@cygnus.com>
542
543         * inet/arpa/tftp.h: Add second packed attribute.
544
545 1999-05-16  Wolfram Gloger  <wmglo@dent.med.uni-muenchen.de>
546
547         * malloc/malloc.c: Cleanup to bring in line with released
548         stand-alone version `ptmalloc'.  Update some comments.
549         (internal_function): Move fallback definition so that the source
550         compiles outside of libc, and use it in more places.
551         (malloc_atfork): Fix when malloc_check is in use.
552
553 1999-05-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
554
555         * stdlib/tst-strtod.c: Fix typo.
556
557 1999-05-16  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
558
559         * elf/dl-close.c (_dl_close): Add cast to avoid warning about
560         const incorrectness.
561
562 1999-05-16  Roland McGrath  <roland@baalperazim.frob.com>
563
564         * sysdeps/generic/bits/termios.h (CRTSCTS): New macro.
565
566 1999-05-16  Thorsten Kukuk  <kukuk@suse.de>
567
568         * sunrpc/etc.rpc: Add portmapper, rstat_svc and pcnfs.
569         * sunrpc/key_call.c: Fix memory leak, close file handle.
570         * nis/nis_creategroup.c: Use malloc instead of calloc,
571         set ctime and mtime.
572         * nis/nis_subr.c: Check for realloc result.
573         * nis/nis_file.c: Fix memory leak.
574         * nis/nis_table.c: Pretty print.
575         * nis/nis_getservlist.c: Likewise.
576         * nis/nis_ismember.c: Likewise.
577         * nis/nis_lookup.c: Likewise.
578         * nis/nis_ping.c: Likewise.
579         * nis/nis_removemember.c: Likewise.
580         * nis/nis_util.c: Likewise, check calloc result.
581
582 1999-05-16  Roland McGrath  <roland@baalperazim.frob.com>
583
584         * sysdeps/unix/sysv/linux/sys/socketvar.h: Moved to ...
585         * sysdeps/generic/sys/socketvar.h: ... here.
586         * sysdeps/unix/sysv/linux/netinet/in_systm.h: Moved to ...
587         * sysdeps/generic/netinet/in_systm.h: ... here.
588         * sysdeps/unix/sysv/linux/Dist: Remove netinet/in_systm.h,
589         sys/socketvar.h.
590         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Likewise.
591         * inet/Makefile (headers): Add netinet/in_systm.h here.
592         * socket/Makefile (headers): Add sys/socketvar.h here.
593
594 1999-05-15  Ulrich Drepper  <drepper@cygnus.com>
595
596         * stdlib/strtol.c: Optimize inner loop of long long versions.
597
598         * sysdeps/gnu/utmpx.h: Add needed type definitions according to
599         Unix98.  Add forward declaration of struct utmp.
600
601 1999-05-14  Ulrich Drepper  <drepper@cygnus.com>
602
603         * nis/nis_getservlist.c (nis_getservlist): Use malloc instead of
604         calloc.
605
606         * nis/nis_checkpoint.c (nis_checkpoint): Fix memory leaks.
607         * nis/nis_addmember.c (nis_addmember): Fix memory leak.  Test
608         memory allocation results.
609
610 1999-05-14  Mark Kettenis  <kettenis@gnu.org>
611
612         * sysdeps/generic/getutmp.c: Include <string.h>
613         (getutmp): Rewrite to only copy those members that are really
614         present in `struct utmp'.
615         * sysdeps/generic/getutmpx.c: Likewise.
616
617 1999-05-14  Ulrich Drepper  <drepper@cygnus.com>
618
619         * nss/getXXbyYY.c: Add free_mem function which disposes all
620         statically allocated memory when debugging.
621         * nss/getXXent.c: Likewise.
622         * nss/nsswitch.c: Likewise.
623
624 1999-05-13  Ulrich Drepper  <drepper@cygnus.com>
625
626         * sysdeps/gnu/getutmpx.c: New file.
627         * sysdeps/gnu/getutmp.c: New file.
628
629 1999-05-13  H.J. Lu  <hjl@gnu.org>
630
631         * login/Versions (getutmpx): Added to GLIBC_2.1.1.
632         (getutmp): Likewise.
633
634         * sysdeps/gnu/Makefile (sysdep_routines): Add getutmp and
635         getutmpx for login.
636
637         * sysdeps/gnu/utmpx.h (getutmp): Added.
638         (getutmpx): Likewise.
639
640         * sysdeps/generic/getutmp.c: New file.
641
642         * sysdeps/generic/getutmpx.c: New file.
643
644 1999-05-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
645
646         * glibcbug.in (BUGGLIBC): Change address to
647         libc-alpha@sourceware.cygnus.com.
648
649 1999-05-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
650
651         * resolv/arpa/nameser.h: Add C++ protectors.
652
653 1999-05-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
654
655         * iconvdata/gconv-modules: Fix alias for CP1255.  Reported by
656         Elad Tsur <eladts@post.tau.ac.il>.
657
658 1999-05-11  Ulrich Drepper  <drepper@cygnus.com>
659
660         * elf/Versions (ld.so) [GLIBC_2.1.1]: Add _dl_lazy.
661         * elf/dl-open.c (_dl_open_worker): Only relocate newly loaded objects
662         lazily if LD_BIND_NOW is not set.
663         * elf/dl-support.c (_dl_lazy): New variable.
664         (non_dynamic_init): Set _dl_lazy according to LD_BIND_NOW envvar.
665         * elf/rtld.c (_dl_lazy): new global variable.
666         ( dl_main): Remove lazy, replace it by _dl_lazy.
667
668 1999-05-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
669
670         * locale/setlocale.c (new_composite_name): Check also whether the
671         first category name differs.
672
673 1999-05-11  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
674
675         * sysdeps/unix/sysv/linux/ftime.c: Use the bsd implementation, not
676         the generic one.
677
678 1999-05-11  Philip Blundell  <pb@nexus.co.uk>
679
680         * sysdeps/generic/bits/socket.h (struct sockaddr_storage): New
681         structure; storage suitable for any socket address.
682         * sysdeps/unix/sysv/linux/bits/socket.h (struct sockaddr_storage):
683         Likewise.
684         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct
685         sockaddr_storage): Likewise.
686
687         * inet/netinet/in.h: Use ULONG_MAX not ~0 to test for a 64-bit
688         platform.
689
690 1999-05-10  Ulrich Drepper  <drepper@cygnus.com>
691
692         * hesiod/Versions: Change _nss_hesiod_getpwuid and
693         _nss_hesiod_getgrgid to _nss_hesiod_getpwuid_r and
694         _nss_hesiod_getgrgid_r respectively.  Fixes pr libc/1115.
695
696 1999-05-09  Mark Kettenis  <kettenis@gnu.org>
697
698         * hurd/get-host.c (_hurd_get_host_config): Return an empty value
699         if the file is empty.
700
701 1999-05-07  Ulrich Drepper  <drepper@cygnus.com>
702
703         * elf/do-lookup.h: Fix typo in comment.
704
705         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Set f_frsize to
706         f_bsize to help some broken programs.
707
708         * stdio-common/tst-printf.c: Add test case for last _itoa problem.
709
710         * stdio-common/vfprintf.c: Fix typo.
711
712 1999-05-06  Ulrich Drepper  <drepper@cygnus.com>
713
714         * elf/link.h (struct link_map): New field l_phdr_allocated.
715         * elf/dl-load.c (_dl_map_object_from_fd): Don't depend on having
716         the program header being part of any loaded segment.  If it is not
717         allocate memory and set l_phdr_allocated flag.
718         * elf/dl-close.c (_dl_close): Free l_phdr if necessary.
719
720         * nss/digits_dots.c: Correct return value interpretation of
721         inet_ntoa.  Fix PR libc/1109.
722
723 1999-05-06  Zack Weinberg  <zack@rabi.columbia.edu>
724
725         * sysdeps/sparc/sparc32/sparcv9/Dist: New file.
726
727 1999-05-06  Thorsten Kukuk  <kukuk@suse.de>
728
729         * stdlib/fpioconst.c (__tens): Export also for 64bit platforms.
730         * stdlib/fpioconst.c: Move #endif before end of struct.
731
732 1999-05-05  Ulrich Drepper  <drepper@cygnus.com>
733
734         * Versions.def (ld.so): Add GLIBC_2.1.1.
735         * elf/Makefile (routines): Add dl-origin.
736         (tests): Add origtest.  Add dependencies for the program.
737         * elf/Versions (ld.so) [GLIBC_2.1.1]: Add _dl_origin_path,
738         _dl_platformlen, _dl_dst_count and _dl_dst_substitute.
739         * elf/dl-deps.c (expand_dst): New macro.  Expand DSTs in filename.
740         (_dl_map_object_deps): Use expand_dst to expand DSTs in DT_NEEDED,
741         DT_AUXILIARY, and DT_FILTER filenames.
742         * elf/dl-load.c (expand_dynamic_string_token): Explode into
743         two functions and three macros.
744         (_dl_dst_count, _dl_dst_substitute): New functions.
745         * elf/dl-dst.h: New file.
746         * elf/dl-open.c (_dl_open): Take extra parameter with address of
747         caller.  Pass address in args structure.
748         (dl_open_worker): Recognize and expand DSTs in filename.
749         * elf/ldsodefs.h (_dl_open): Adapt prototype.
750         * elf/dlopen.c (dlopen_doit): Pass caller address to _dl_open.
751         (__dlopen_check): Pass caller address to dlopen_doit in args.
752         * elf/dlopendoit.c: Likewise.
753         * iconv/gconv_dl.c: Adapt call of _dl_open.
754         * nss/nsswitch.c: Likewise.
755         * elf/origtest.c: New file.
756         * sysdeps/generic/dl-origin.h: Moved to...
757         * sysdeps/generic/dl-origin.c: ...here.
758         * sysdeps/unix/sysv/linux/dl-origin.h: Moved to...
759         * sysdeps/unix/sysv/linux/dl-origin.c: ...here.
760
761         * stdio-common/_itoa.c (_itoa): Fix special 32bit platform case
762         with specific bases and only few bits set in second word.
763
764         * timezone/Makefile (install-others): Create target directory
765         before creating tzfiles.
766
767 1999-05-05  Thorsten Kukuk  <kukuk@suse.de>
768
769         * nis/nis_file.c (readColdStartFile): Allocate memory only after
770         the file is opened successfully.
771
772         * nis/nis_table.c: Fix some memory leaks.
773
774 1999-05-04  Ulrich Drepper  <drepper@cygnus.com>
775
776         * elf/dl-load.c (expand_dynamic_string_token): Rewrite to loose st
777         variable.
778
779         * elf/dl-load.c (expand_dynamic_string_token): Recognize { }
780         around DST.  Correctly ignore ORIGIN IN SUID binaries.
781
782 1999-05-03  Ulrich Drepper  <drepper@cygnus.com>
783
784         * sysdeps/generic/strtok_r.c: Use rawmemchr instead of strchr.
785         * sysdeps/generic/strtok.c: Likewise.
786
787         * string/tester.c: Add test of rawmemchr.
788
789         * sysdeps/i386/bits/select.h (__FD_ZERO): Remove memory output
790         specification.  It's not necessary.
791
792         * elf/Makefile (trusted-dirs.st): Use gen-trusted-dirs.awk.
793         * elf/gen-trusted-dirs.awk: New file.
794         * elf/dl-load.c (systems_dirs): Moved into file scope.  Initialize
795         from SYSTEM_DIRS macro.
796         (system_dirs_len): New variable.  Contains lengths of system_dirs
797         strings.
798         (fillin_rpath): Rewrite for systems_dirs being a simple string.
799         Improve string comparisons.  Change parameter trusted to be a flag.
800         Change all callers.
801         (_dt_init_paths): Improve using new format for system_dirs.
802
803         * elf/dl-load.c (expand_dynamic_string_token): Don't expand
804         $ORIGIN for SUID binaries.
805
806         * sysdeps/unix/sysv/linux/arm/Dist: Add sigrestorer.S.
807
808 1999-05-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
809
810         * sunrpc/Makefile: Generate dependencies for all flavors of
811         librpcsvc objects.
812         (rpcgen-cmd): Pass -Y flag here and remove it from the macro
813         invocations.
814
815 1999-05-02  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
816
817         * elf/dlopenold.c: Move #if down after includes to get
818         dependencies right.
819
820 1999-05-01  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
821
822         * sysdeps/generic/bzero.c: Undefine __bzero.
823
824 1999-05-02  Ulrich Drepper  <drepper@cygnus.com>
825
826         * sysdeps/unix/sysv/linux/netax25/ax25.h: Update from kernel header.
827         * sysdeps/unix/sysv/linux/netrom/netrom.h: Likewise.
828         * sysdeps/unix/sysv/linux/netrose/rose.h: Likewise.
829         Patch by Craig Small <csmall@scooter.eye-net.com.au>.
830
831         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Change fourth
832         parameter to struct gaih_servtuple *.  Adapt appropriately.
833         (gaih_inet): Use alloca to allocate room for gaih_inet_serv calls.
834         This fixes a memory leak.
835         Reported by Mikolaj J. Habryn <dichro-glibcbug@rcpt.to>.
836
837         * sysdeps/unix/sysv/linux/sys/procfs.h: Remove greg_t, gregset_t,
838         and fpregset_t definition.  They are defined in ucontext.h.
839
840 1999-04-14  Scott Bambrough  <scottb@netwinder.org>
841
842         * sysdeps/unix/sysv/linux/arm/net/ethernet.h: struct ether_addr
843         and struct ether_header must be packed on the ARM.  The default
844         alignment constraints add padding to the end of the structures.
845
846 1999-04-14  Scott Bambrough  <scottb@netwinder.org>
847
848         * inet/arpa/tftp.h: struct tftphdr must be packed on the ARM.  The
849         default alignment constraints add padding to the end of the
850         structure and between members.
851
852 1999-05-02  Ulrich Drepper  <drepper@cygnus.com>
853
854         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Use
855         _dl_cache_libcmp instead of strcmp.
856
857         * sysdeps/generic/glob.c (glob_in_dir): It's no error if opendir
858         fails on a file.
859         Reported by Sergei Ivanov <svivanov@pdmi.ras.ru> [PR libc/1032].
860
861 1998-03-30  Joel Klecker  <espy@debian.org>
862
863         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile
864         (sysdep-others,install-bin): Add lddlibc4.
865
866 1999-05-02  H.J. Lu  <hjl@gnu.org>
867
868         * timezone/zic.c (dolink): Remove the symlink destination first.
869
870         * catgets/open_catalog.c (__open_catalog): Set catalog->status
871         to "nonexisting" if failed to open the file.
872
873 1999-05-01  Ulrich Drepper  <drepper@cygnus.com>
874
875         * string/bits/string2.h: Only use __builtin_memset for egcs 1.1 and
876         gcc3.
877
878         * sysdeps/i386/i486/bits/string.h: Don't use and define __memset_gg.
879         Prevent warnings from multiplication with 0x01010101 by another cast.
880
881 1999-04-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
882
883         * string/bits/string2.h (memset): Revert to previous version if
884         unaligned writes are not available.
885
886 1999-04-30  Ulrich Drepper  <drepper@cygnus.com>
887
888         * sysdeps/i386/i486/bits/string.h (__memset_gc): Help generating
889         better code in presence of the asm.
890
891 1999-04-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
892
893         * stdlib/fmtmsg.c (keywords): Increase array size for faster
894         indexing.
895
896         * locale/localeinfo.h (_nl_category_names): Increase array element
897         size for faster indexing.
898         * locale/setlocale.c (_nl_category_names): Adjusted.
899
900 1999-04-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
901
902         * iconv/gconv_conf.c (add_alias): Remove wrong cast.
903
904 1999-05-01  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
905
906         * sysdeps/m68k/stackinfo.h: New file.
907
908 1999-04-30  Ulrich Drepper  <drepper@cygnus.com>
909
910         * string/tester.c (test_strchrnul): New function.
911         (test_memset): Test one more special case.
912
913         * sysdeps/i386/strchrnul.S: Fix bugs which lead to wrong results in
914         25% of all cases.
915
916         * sysdeps/i386/i486/bits/string.h: Replace __uintXX_t types with
917         base types.
918
919         * string/bits/string2.h: Fix bugs I introduced in last change.
920
921         * sysdeps/i386/i486/bits/string.h (memcmp): Don't introduce partial
922         register stall.
923         Extend memset optimization.
924         Correct i686 version of memchr.
925
926 1999-04-30  Roland McGrath  <roland@baalperazim.frob.com>
927
928         * sysdeps/i386/bzero.c: Add #undef __bzero.
929
930         * hurd/hurdinit.c (_hurd_new_proc_init): Don't do initial SIGTRAP if
931         EXEC_SIGTRAP was set in the incoming exec flags--that indicates the
932         exec server simulated a SIGTRAP before we even started up, so gdb is
933         already happy.
934
935 1999-04-30  Ulrich Drepper  <drepper@cygnus.com>
936
937         * nss/digits_dots.c: Always initialize not_ok.
938
939 1999-04-30 09:02 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
940
941         * string/bits/string2.h (memset): Avoid arithmetic overflow at
942         compile time, which produces obnoxious warnings.  If GCCv2 is
943         in use, map __bzero to __builtin_memset to enable that
944         optimization.
945
946 1999-04-29  Ulrich Drepper  <drepper@cygnus.com>
947
948         * string/bits/string2.h: Add more memset optimizations.
949
950         * resolv/inet_addr.c (inet_aton): Optimize switch statement away.
951
952         * resolv/inet_pton.c (inet_pton4): Little optimizations.
953         (inet_pton6): Likewise.
954
955         * nss/getXXbyYY_r.c: Include assert.h.
956         * nss/getXXbyYY.c: Likewise.
957
958 1999-04-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
959
960         * termios/tcgetsid.c (tcgetsid): Rename variable to
961         tiocgsid_does_not_work.
962
963 1999-04-29  Ulrich Drepper  <drepper@cygnus.com>
964
965         * inet/getnameinfo.c (nrl_domainname): Fix last patch.
966
967 1999-04-28  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
968
969         * nss/digits_dots.c: Use inet_aton to parse IPv4 numbers.
970         This allows e.g. gethostbyname to accept "10.1234".
971         Reported by Alexander V. Lukyanov <lav@long.yar.ru> [PR libc/1096].
972
973         * nss/test-netdb.c (test_hosts): Add test for gethostbyname and
974         non quad IPv4 numbers.
975
976 1999-04-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
977
978         * resolv/res_hconf.c (_res_hconf_init): Remove unused variable end.
979
980 1999-04-28  Ulrich Drepper  <drepper@cygnus.com>
981
982         * argp/argp-ba.c (argp_program_bug_address): Don't initialize with 0.
983         * argp/argp-parse.c (_argp_hang): Likewise.
984         * argp/argp-pv.c (argp_program_version): Likewise.
985         * argp/argp-pvh.c (argp_program_version_hook): Likewise.
986         * inet/ether_hton.c (ether_hton, startp): Likewise.
987         * inet/ether_ntoh.c (ether_ntoh, startp): Likewise.
988         * inet/getnetgrent_r.c (setup, startp): Likewise.
989         * intl/loadmsgcat.c (_nl_msg_cat_cntr): Likewise.
990         * intl/localealias.c (string_space, string_space_act, string_space_max,
991         nmap, maxmap): Likewise.
992         * libio/iopopen.c (proc_file_chain): Likewise.
993         * libio/oldiopopen.c (old_proc_file_chain): Likewise.
994         * locale/lc-collate.c (__collate_table, __collate_extra,
995         __collate_element_hash, __collate_element_strings,
996         __collate_element_values): Likewise.
997         * malloc/mcheck.c (mcheck_used): Likewise.
998         * malloc/mtrace.c (added_atexit_handler): Likewise.
999         * malloc/set-freeres.c (already_called): Likewise.
1000         * misc/getpass.c (getpass) [buf, bufsize]: Likewise.
1001         * misc/syslog.c (LogStat, LogTag): Likewise.
1002         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
1003         * nss/getXXbyYY_r.c (startp): Likewise.
1004         * posix/getopt.c (optarg, __getopt_initialized): Likewise.
1005         * posix/regex.c (init_syntax_once) [done]: Likewise.
1006         (debug): Likewise.
1007         * string/strfry.c (init): Likewise.
1008         * sunrpc/svc_run.c (svc_top): Likewise.
1009         * posix/euidaccess.c (have_ids): Likewise.
1010         * sysdeps/unix/sysv/linux/poll.c (must_emulate): Likewise.
1011         * sysdeps/unix/sysv/linux/ttyname.c (__ttyname, namelen): Likewise.
1012         * time/getdate.c (getdate_err): Likewise.
1013         * time/tzfile.c (transitions, type_idxs, types, zone_names, leaps):
1014         Likewise.
1015         * time/tzset.c (old_tz, is_initialized): Likewise.
1016
1017         * inet/getnameinfo.c (nrl_domainname): Rewrite to allow initialization
1018         of static data with zero.
1019         * signal/allocrtsig.c (init): Likewise.
1020
1021         * string/Makefile (routines): Add strchrnul.
1022         * string/Versions [GLIBC_2.1.1]: Add strchrnul.
1023         * string/string.c: Add strchrnul prototype.
1024         * include/string.h: Add __strchrnul prototype.
1025         * sysdeps/generic/strchrnul.c: New file.
1026         * sysdeps/i386/strchrnul.S: New file.
1027         * sysdeps/i386/bits/string.c: Add strchrnul optimization.
1028         * sysdeps/i386/i486/bits/string.c: Likewise.
1029         * argp/argp-help.c (argp_args_usage): Use __strchrnul.
1030         * inet/ether_line.c (ether_line): Likewise.
1031         * nscd/nscd_conf.c (nscd_parse_file): Likewise.
1032         * nss/nsswitch.c (nss_parse_file): Likewise.
1033         * posix/execvp.c (execvp): Likewise.
1034         * posix/fnmatch.c (internal_fnmatch): Likewise.
1035         * resolv/res_hconf.c (_res_hconv_init): Likewise.
1036         * resolv/res_init.c (res_init): Likewise.
1037         * stdlib/fmtmsg.c (init): Likewise.
1038         * stdlib/getsubopt.c (getsubopt): Likewise.
1039
1040         * catgets/catgets.c (catopen): Only allocate one memory block.
1041         (catclose): Only one free call necessary.
1042
1043         * catgets/open_catalog.c (__open_catalog): Simplify handling of
1044         file descriptor.
1045
1046         * ctype/ctype-extn.c: Make __toascii_l and __isascii_l alias instead
1047         of real functions.  Simplify _tolower and _toupper.
1048
1049         * grp/initgroups.c (compat_call): Remove unnecessary use of pointer
1050         variable.
1051
1052         * iconv/gconv.h (struct gconv_info): Change data element from pointer
1053         to array of size 0.
1054         * iconv/gconv_open.c (__gconv_open): Allocate structures accordingly.
1055         * iconv/gconv_close.c (__gconv_close): Don't free data.
1056
1057         * iconv/gconv_conf.c (add_alias): Avoid searching in tree twice to
1058         insert new alias.
1059
1060         * iconv/gconv_db.c (add_derivation): More efficient copying.  Check
1061         for error while inserting in tree.
1062
1063         * include/time.h: Pretty print.
1064
1065         * inet/ruserpass.c: Rewrite use of toktab to avoid string pointers
1066         in table and lots of relocations.
1067         * posix/regex.c (regerror): Rewrite use of re_error_msgid to avoid
1068         string pointers in table and lots of relocations.
1069
1070         * intl/finddomain.c: Remove definition of strchr macro.
1071
1072         * io/ftw.c (nftw_arr, ftw_arr): Make const.
1073
1074         * locale/loadlocale.c (_nl_load_locale): Optimize string copying.
1075
1076         * locale/localeinfo.h (_nl_category_names): Change into an array with
1077         fixed width char string elements.
1078         * locale/setlocale.c (_nl_category_names): Likewise.
1079         (_nl_current): Make global.
1080         * locale/nl_langinfo.c (nldata): Removed.  Use _nl_current now.
1081
1082         * malloc/Makefile (distribute): Add stackinfo.h.
1083         * sysdeps/generic/stackinfo.h: New file.
1084         * sysdeps/i386/stackinfo.h: New file.
1085         * posix/execl.c: Use stackinfo.h in optimizing alloca use.
1086         * posix/execle.c: Likewise.
1087         * posix/execlp.c: Likewise.
1088
1089         * nis/nis_table.c (__create_ib_request): Always use realloc.
1090
1091         * posix/execvp.c (execute): Rename to script_execute and keep only
1092         code to execute using shell.
1093         (execvp): Call execv directly and only fall back on script_execute.
1094
1095         * resolv/inet_net_pton.c (inet_net_pton_ipv4): Remove digits define
1096         and always use xdigits instead.
1097
1098         * resolv/res_init.c (res_init): Use rawmemchr instead of strchr
1099         where appropriate.
1100
1101         * stdlib/fpioconst.h (__tens): New declaration.
1102         (struct mp_power): Remove array, add arrayoff element.
1103         * stdlib/fpioconst.c: Replace definitions of _ten_p* arrays by one
1104         __tens array and add in _fpioconst_pow10 offsets into __tens.
1105         * stdio-common/printf_fp.c: Rewrite to use new __tens array.
1106         * stdlib/strtod.c: Likewise.
1107
1108         * stdlib/a64l.c (a64l_table): Avoid unnecessary elements.
1109
1110         * stdlib/exit.c: Rewrite to use __exit_funcs being as sign for end
1111         of the list.
1112         * stdlib/atexit.c (__exit_funcs): Don't initialize.
1113
1114         * stdlib/fmtmsg.c (keywords): Make name element fixed width array.
1115
1116         * sunrpc/clnt_perr.c: Rewrite clnt_sperrno and auth_errmsg to use
1117         a single and an array with offsets.
1118
1119         * sunrpc/des_soft.c (partab): Make it const.
1120
1121         * sunrpc/key_call.c (trytimeout, tottimeout): Make const.
1122         (__key_encryptsession_pk_LOCAL): Don't initialize with 0.
1123         (__key_decryptsession_pk_LOCAL): Likewise.
1124         (__key_gendes_LOCAL): Likewise.
1125         (MESSENGER): Mark const.
1126         (key_call_private_main): Don't initialize with 0.
1127         (use_keyenvoy): Don't initialize with 0.
1128         (key_call): Rewrite to reverse logic of use_doors variable.
1129
1130         * sunrpc/netname.c (OPSYS): Define as array, not pointer.
1131         (startp): Don't initialize with zero.
1132
1133         * sunrpc/openchild.c (_openchild): Make first argument const.
1134
1135         * sunrpc/pmap_rmt.c (timeout): Mark const.
1136         * sunrpc/xcrypt.c (hex): Likewise.
1137
1138         * sysdeps/unix/sysv/linux/getcwd.c: Rewrite to allow omitting
1139         initialization of global variables.
1140         * sysdeps/unix/sysv/linux/getpt.c: Likewise.
1141         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1142         * termios/tcgetsid.c: Likewise.
1143
1144         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags): Change
1145         fxsr to osfxsr.
1146
1147         * time/tzfile.c (__tzfile_read): Rewrite to allocate only one memory
1148         block.  Add function to free memory if wanted.
1149         * time/tzset.c (tzset_internal): Pass extra argument to __tzfile_read.
1150
1151         * wcsmbs/wcsmbsload.c (to_wc, to_mb): Correct initializers.
1152
1153         * wcsmbs/wmemset.c: Little code optimization.
1154
1155 1999-04-23  Paul Eggert  <eggert@twinsun.com>
1156
1157         * stdlib/strtoull.c: Surround strong_alias and weak_alias with
1158         ifdef _LIBC.
1159
1160 1999-04-28  Roland McGrath  <roland@baalperazim.frob.com>
1161
1162         * sysdeps/mach/hurd/getdents.c (__getdirentries): Remove
1163         implementation and just always fail with ENOSYS.  This entry point is
1164         obsolete.  Add link warning to that effect.
1165
1166 1999-04-27  Roland McGrath  <roland@baalperazim.frob.com>
1167
1168         * hurd/get-host.c: Include <hurd/lookup.h>.
1169
1170 1999-04-28  Ulrich Drepper  <drepper@cygnus.com>
1171
1172         * malloc/malloc.c (rEALLOc): Only free memory for size 0 if oldmem
1173         is != NULL.
1174
1175 1999-04-28  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1176
1177         * malloc/malloc.c (REALLOC_ZERO_BYTES_FREES): Define it to follow
1178         ISO C9x and Unix98.
1179
1180 1999-04-28  Ulrich Drepper  <drepper@cygnus.com>
1181
1182         * libio/iofopncook.c (_IO_cookie_seek): Correct return value.
1183         Patch by Peter Miller <millerp@canb.auug.org.au>.
1184
1185 1999-04-27  Thorsten Kukuk  <kukuk@suse.de>
1186
1187         * sunrpc/pmap_clnt.c: Add own get_myaddress function, which
1188         prefers loopback device.
1189
1190 1999-04-28  Ulrich Drepper  <drepper@cygnus.com>
1191
1192         * posix/fnmatch.c (internal_fnmatch): Finish incomplete
1193         no_leading_period change.
1194
1195         * posix/testfnm.c: More test cases.
1196
1197 1999-04-27  Ulrich Drepper  <drepper@cygnus.com>
1198
1199         * include/dirent.h: Remove __getdirentries declaration, add __getdents
1200         and __getdents64.
1201         * sysdeps/unix/readdir.c: Use __getdents, not __getdirentries.
1202         * sysdeps/unix/readdir_r.c: Likewise.
1203         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1204         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1205         * sysdeps/unix/sysv/linux/getdents.c: Define __getdents, not
1206         __getdirentries.  Remove fourth argument.
1207         * sysdeps/unix/sysv/linux/getdirentries.c: New file.
1208         * sysdeps/unix/sysv/linux/getdirentries64.c: New file.
1209         * sysdeps/unix/sysv/linux/Makefile [subdir=dirent] (sysdep_routines):
1210         Add getdirentries and getdirentries64.
1211         * sysdeps/unix/sysv/linux/Dist: Add getdirentries and getdirentries64.
1212
1213         * posix/fnmatch.c (internal_fnmatch): Correctly reset string
1214         pointer in case of an invalid [[: expression.
1215
1216         * posix/testfnm.c: Add more test cases.
1217
1218 1999-04-27  Roland McGrath  <roland@baalperazim.frob.com>
1219
1220         * hurd/hurdexec.c (_hurd_exec): If SIGKILL present in _hurdsig_traced
1221         set, pass EXEC_SIGTRAP flag in exec RPC.
1222
1223 1999-04-26  Ulrich Drepper  <drepper@cygnus.com>
1224
1225         * posix/fnmatch.c (internal_fnmatch): Renamed from fnmatch.  Take
1226         extra parameter.  Fix several more bugs involving wildcard and
1227         ranges.
1228         (fnmatch): New function.  Call internal_fnmatch.
1229
1230         * posix/testfnm.c: More test cases.
1231
1232 1999-04-03  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1233
1234         * manual/install.texi (Configuring and compiling): Explain that
1235         files are changed in the source directory.
1236         Closes PR libc/981.
1237         (Configuring and compiling): Explain situation with PARALLELMFLAGS
1238         in the source directory.
1239
1240 1999-04-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1241
1242         * locale/programs/ld-ctype.c: Spelling fixes.
1243         (ctype_finish): Fix argument of error message format.
1244         * locale/programs/ld-messages.c: Spelling fixes.
1245         * locale/programs/ld-monetary.c: Spelling fixes.
1246         * locale/programs/ld-time.c (time_finish): Make sure that name and
1247         format of era_entries are adjacent.
1248         (time_output): Reduce the size of the io vector.
1249
1250 1999-04-25  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1251
1252         * manual/filesys.texi (Attribute Meanings): Move a misplaced
1253         paragraph.
1254
1255 1999-04-23  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1256
1257         * locale/programs/ld-collate.c (collate_output): Convert
1258         undefined_offset to an array index.  Fix computation of other
1259         endian extra table.
1260
1261 1999-04-26  Roland McGrath  <roland@baalperazim.frob.com>
1262
1263         * hurd/get-host.c (_hurd_get_host_config): If ENOENT opening file,
1264         return success with empty value.
1265
1266 1999-04-26  Ulrich Drepper  <drepper@cygnus.com>
1267
1268         * posix/fnmatch.c: Include string.h also for glibc.
1269         (fnmatch, case '?'): Optimize if cascades a bit.
1270         (fnmatch, case '*'): Correct handling if FNM_PATHNAME is set.
1271
1272         * posix/testfnm.c: Add test cases for * with FNM_PATHNAME errors.
1273
1274 1999-04-24  Ulrich Drepper  <drepper@cygnus.com>
1275
1276         * iconv/gconv_builtin.h: Add definitions for UTF16 builtins.
1277         * iconv/gconv_int.h: Declare UTF16 functions.
1278         * iconv/gconv_simple.c: Add UTF16 conversion functions.
1279
1280 1999-04-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1281
1282         * posix/wordexp.c (parse_param): Fix type of offset to allow it to
1283         be used correctly as parameter for parse_dollars/parse_tilde.
1284
1285 1999-04-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1286
1287         * manual/conf.texi (Utility Limits): Remove duplicate description
1288         of BC_DIM_MAX.
1289
1290 1999-04-19  Ulrich Drepper  <drepper@cygnus.com>
1291
1292         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Correctly initialize
1293         outbufend for dst==NULL.
1294
1295 1999-04-18  Ulrich Drepper  <drepper@cygnus.com>
1296
1297         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Correctly initialize outbufend
1298         for dst==NULL.
1299         Fixes PR libc/1084.
1300
1301         * socket/sys/socket.h: Define SHUT_RD, SHUT_WR, and SHUT_RDWR.
1302         Fixes PR libc/1083.
1303
1304 1999-04-18  Thorsten Kukuk  <kukuk@suse.de>
1305
1306         * sunrpc/Makefile: Remove special handling of bootparam.x,
1307         add rpcsvc/bootparam.h to headers.
1308         * sunrpc/rpcsvc/bootparam.h: New, for backward compatibility.
1309         * sunrpc/rpcsvc/bootparam.x: Renamed to...
1310         * sunrpc/rpcsvc/bootparam_prot.x: ...this.
1311
1312 1999-04-18  Ulrich Drepper  <drepper@cygnus.com>
1313
1314         * sysdeps/unix/bsd/poll.c (__poll): Add more compatiblity code to
1315         detect and handle invalid descriptors.
1316
1317 1999-04-17  Thorsten Kukuk  <kukuk@suse.de>
1318
1319         * timezone/zic.c (dolink): Append complete path not only filename
1320         to ../ list.
1321
1322 1999-04-17  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1323
1324         * iconvdata/ibm874.c (TABLES, CHARSET_NAME): Follow name change.
1325
1326 1999-04-17  Ulrich Drepper  <drepper@cygnus.com>
1327
1328         * iconvdata/gconv-modules: Rename CP874 to IBM874.
1329         * iconvdata/Makefile: Likewise.
1330         * iconvdata/cp874.h: Removed.
1331         * iconvdata/cp874.c: Renamed to...
1332         * iconvdata/ibm874.c: ...this.
1333
1334 1999-04-16  Ulrich Drepper  <drepper@cygnus.com>
1335
1336         * sysdeps/unix/sysv/linux/bits/types.h: Correct
1337         signed/unsigned-ness of blkcnt and fsblkcnt.
1338         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
1339         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
1340
1341         * sysdeps/unix/sysv/linux/bits/socket.h: Add SOL_PACKET, SOL_ATM,
1342         SOL_AAL, and SOL_IRDA.
1343
1344 1999-04-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1345
1346         * sysdeps/unix/sysv/linux/fstatvfs.c: Set f_frsize to zero.  Don't
1347         include "linux_fsinfo.h".
1348         Based on a patch by H.J. Lu <hjl@gnu.org>.
1349
1350 1999-04-16  Thorsten Kukuk  <kukuk@suse.de>
1351
1352         * sunrpc/rpc_cout.c (print_header): Use int32_t pointer, not long.
1353
1354 1999-04-16  Ulrich Drepper  <drepper@cygnus.com>
1355
1356         * nscd/cache.c (prune_cache): Only disable file checking for
1357         future if the file does not exist.
1358         Update file_mtime if cache was flushed.
1359
1360 1999-04-15  David S. Miller  <davem@redhat.com>
1361
1362         * sysdeps/sparc/sparc32/strcat.S: Avoid using register g6.
1363         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
1364
1365 1999-04-15  Scott Bambrough  <scottb@netwinder.org>
1366
1367         * sysdeps/unix/sysv/linux/arm/sigaction.c: Fix typo in preventing
1368         compilation of file.
1369
1370 1999-04-15  Ulrich Drepper  <drepper@cygnus.com>
1371
1372         * Versions.def: Add GLIBC_2.1.1 to libpthread.
1373
1374         * iconvdata/Makefile (modules): Add KOI8-U.
1375         (distribute): Add koi8-u.c.
1376         (gen-8bit-gap-modules): Add koi8-u.
1377         * iconvdata/gconv-modules: Add KOI8-U entries.
1378         * iconvdata/koi8-u.c: New file.
1379
1380 1999-04-13  Thorsten Kukuk  <kukuk@suse.de>
1381
1382         * sunrpc/auth_des.c: 64bit fixes, security fixes.
1383         * sunrpc/auth_none.c: Pretty print.
1384         * sunrpc/auth_unix.c: Likewise.
1385         * sunrpc/authdes_prot.c: Likewise.
1386         * sunrpc/authuxprot.c: Likewise.
1387         * sunrpc/bindrsvprt.c: Likewise.
1388         * sunrpc/clnt_gen.c: Likewise.
1389         * sunrpc/rpc/xdr.h: Likewise.
1390         * sunrpc/rpc/auth_des.h: Add rpc_timeval struct.
1391         * sunrpc/rpc_cmsg.c: Don't use *long pointers.
1392         * sunrpc/rtime.c: Use new rpc_timeval.
1393         * sunrpc/svc_authux.c: Don't use *long pointers.
1394         * sunrpc/svcauth_des.c: Likewise + security fixes.
1395         * sunrpc/xdr_mem.c: Don't use *long pointers.
1396         * sunrpc/xdr_rec.c: Likewise.
1397         * sunrpc/xdr_sizeof.c: Likewise.
1398         * sunrpc/xdr_stdio.c: Likewise.
1399
1400 1999-04-15  Ulrich Drepper  <drepper@cygnus.com>
1401
1402         * sunrpc/clnt_udp.c (clntudp_call): Move initialization of anyup
1403         so that it is redone for each sending.
1404
1405 1999-04-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1406
1407         * sunrpc/clnt_udp.c (clntudp_call): Initialize anyup.
1408
1409 1999-04-15  Ulrich Drepper  <drepper@cygnus.com>
1410
1411         * iconv/gconv_db.c (__gconv_find_transform): If conversion is
1412         known to not exist don't try to load shared objects.
1413         Patch by Petr Vandrovec Ing. VTEI <VANDROVE@vc.cvut.cz>.
1414
1415         * nscd/cache.c (prune_cache): The table might not be unused.  In
1416         this case do nothing.
1417
1418         * catgets/gencat.c (read_input_file): Don't drop white spaces
1419         between number/identifier and string.
1420         Patch by Dima Barsky <dima@pwd.hp.com>.
1421         If no white space at all follows number/identifier remove existing
1422         message with the number/identifier.
1423
1424 1999-04-14  H.J. Lu  <hjl@gnu.org>
1425
1426         * sunrpc/clnt_udp.c (is_network_up): New function.
1427         (clntudp_call): Call is_network_up () to check if any network
1428         interface is up in case of timeout.
1429
1430 1999-04-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1431
1432         * wctype/test_wcfuncs.c: New file, tests towlower and towupper.
1433         * wctype/Makefile (tests): Add test_wcfuncs.
1434
1435 1999-04-14  Jakub Jelinek  <jj@ultra.linux.cz>
1436
1437         * scripts/config.sub: Allow sparcv[6789]-* and sparcv8plus{,a}-*
1438         architectures.
1439         * sysdeps/sparc/sparc32/sparcv8/Makefile: Use sysdep-CFLAGS
1440         instead of CFLAGS.
1441         * sysdeps/sparc/sparc32/sparcv8/Makefile: Use sysdep-CFLAGS
1442         instead of CFLAGS. For gnulib and string directories use
1443         -Wa,-Av9a gcc ASFLAGS.
1444         * sysdeps/sparc/sparc32/sparcv9/memmove.c: New file.
1445         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: New file.
1446         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: New file.
1447         * shlib-versions: Handle sparcv[6789]-* and sparcv8plus{,a}-*
1448         the same way as sparc-*.
1449
1450 1999-04-14  Ulrich Drepper  <drepper@cygnus.com>
1451
1452         * locale/programs/locfile.c (locfile_read): Fix typo.
1453         Patch by Kaoru Fukui <k_fukui@highway.ne.jp>.
1454
1455 1999-04-14  Scott Bambrough  <scottb@netwinder.org>
1456
1457         * sysdeps/unix/sysv/linux/arm/socket.S: Socket calls could not be
1458         restarted after being interrupted by a signal.  The parameters on
1459         the stack were corrupted by the signal handler.
1460
1461         * sysdeps/unix/sysv/linux/arm/mmap.S: mmap calls could not be
1462         restarted after being interrupted by a signal.  The parameters on
1463         the stack were corrupted by the signal handler.
1464
1465 1999-04-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1466
1467         * wctype/wcfuncs.c (towlower): Use __ctype_tolower.
1468         Reported by Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>
1469
1470 1999-04-12  Tim Waugh  <tim@cyberelk.demon.co.uk>
1471
1472         * posix/wordexp-test.c: In field-splitting test cases where
1473         subshells were involved, unset IFS first: some shells (ash) use
1474         IFS even when no expansion is performed.
1475
1476 1999-04-13  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1477
1478         * libio/obprintf.c (_IO_obstack_overflow): Put the write end at
1479         the real end of the chunk, not some random point inbetween.
1480         (_IO_obstack_xsputn): Likewise.  Actually copy the data into the
1481         obstack when growing.  Use fast version of obstack_blank when
1482         shrinking.
1483         (struct _IO_obstack_file): Use _IO_FILE_plus instead of explicitly
1484         allocating the vtable pointer.
1485         (_IO_obstack_vprintf): Adjust for above change and avoid
1486         unnecessary casts.  Use fast version of obstack_blank when
1487         shrinking.
1488         Fixes PR libc/1075.
1489
1490 1999-04-12  Ulrich Drepper  <drepper@cygnus.com>
1491
1492         * iconvdata/gconv-modules: Fix typo.  Add UJIS alias.
1493         Reported by GOTO Masanori <gotom@cs.titech.ac.jp>.
1494
1495 1999-04-11  Tim Waugh  <tim@cyberelk.demon.co.uk>
1496
1497         * posix/wordexp.c (wordexp): Fix a leak when an invalid character
1498         is seen, as well as fixing semantics.  Don't reset the word count
1499         to zero when an invalid character is seen, but leave it as it was
1500         (this makes a difference with WRDE_APPEND).
1501
1502         * posix/wordexp-test.c: More test cases.
1503
1504         * posix/wordexp.c (parse_param): In words like ${var#pattern},
1505         always expand pattern when it is needed.  Also, handle quoting in
1506         pattern properly.
1507
1508 1999-04-12  Philip Blundell  <philb@gnu.org>
1509
1510         * elf/elf.h: Update ARM definitions to match current gas2.
1511
1512         * sysdeps/arm/bits/endian.h: Support big endian operation.
1513
1514         * sysdeps/unix/sysv/linux/arm/ioperm.c (_outw, _outb, _outl):
1515         Don't bother range checking the port number.
1516
1517         * sysdeps/unix/sysv/linux/arm/vfork.S: New file.
1518
1519         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Include
1520         the syscall name in assembler output for ease of debugging.
1521
1522         * sysdeps/unix/sysv/linux/arm/sigaction.c: Don't rely on undefined
1523         compiler behaviour.
1524         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: New file.
1525         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = signal]
1526         (sysdep_routines): Add sigrestorer.
1527
1528         * string/tester.c (test_strcpy): Add new tests for unaligned
1529         arguments.
1530         * sysdeps/arm/bits/string.h: Delete inline implementations of
1531         strcpy and stpcpy.
1532
1533 1999-04-11  Ulrich Drepper  <drepper@cygnus.com>
1534
1535         * libio/Makefile (CPPFLAGS-.o): Don't define IO_DEBUG.
1536
1537 1999-04-10  Mark Kettenis  <kettenis@gnu.org>
1538
1539         * sysdeps/mach/hurd/Dist: Add clk_tck.c.
1540
1541 1999-04-10  Ulrich Drepper  <drepper@cygnus.com>
1542
1543         * iconvdata/Makefile (modules): Add TIS-620.
1544         (distribute): Add tis-620.c.
1545         (gen-8bit-gap-modules): tis-620.
1546         * iconvdata/tis-620.c: New file.
1547         * iconvdata/gconv-modules: Add TIS-620 entries.
1548
1549         * iconvdata/asmo_449.c: Correct comment.
1550
1551 1999-04-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1552
1553         * manual/install.texi (Configuring and compiling): Comment out
1554         description of --disable-static since this doesn't work currently
1555         (see change by Ulrich Drepper on 1998-12-07 for configure.in).
1556
1557 1999-04-10  Ulrich Drepper  <drepper@cygnus.com>
1558
1559         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Rewrite to
1560         use binary search.
1561         Based on a patch by Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>.
1562
1563 1999-04-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1564
1565         * scripts/test-installation.pl (installation_problem): Skip
1566         libnss1_* libraries from glibc-compat add-on.
1567
1568 1999-04-07  H.J. Lu  <hjl@gnu.org>
1569
1570         * io/Versions (__dup2, __pipe): Added to GLIBC_2.0 for
1571         libstdc++ 2.7.2.
1572         * posix/Versions (__waitpid): Likewise.
1573
1574 1999-04-08  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1575
1576         * manual/install.texi (Reporting Bugs): Add section about reported
1577         bugs and correct email address of glibcbug script.
1578
1579 1999-04-01  Thorsten Kukuk  <kukuk@suse.de>
1580
1581         * sunrpc/Versions: Add new xdr functions to GLIBC_2.1.1
1582         * sunrpc/xdr.c: Add xdr_hyper, xdr_u_hyper, xdr_longlong_t and
1583         xdr_u_longlong_t. Based on patch from Dan Shechter
1584         <damageboy@isdn.net.il>.
1585         * sunrpc/xdr_intXX_t.c: Implement xdr_int64_t, xdr_uint64_t
1586         * sunrpc/rpc/xdr.h: Add prototypes for new xdr functions.
1587
1588         * nis/nis_lookup.c (nis_lookup): Don't overwrite RPC error code.
1589
1590 1999-04-07  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1591
1592         * sysdeps/unix/sysv/linux/getdents.c (__getdirentries): Return
1593         directly if getdents returns with error set.
1594
1595 1999-04-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1596
1597         * locale/langinfo.h (THOUSEP): Rename second occurence of
1598         THOUSANDS_SEP to THOUSEP.
1599         Reported by Roman Belenov <roman@nstl.nnov.ru>.
1600
1601 1999-04-05  Roland McGrath  <roland@baalperazim.frob.com>
1602
1603         * hurd/STATUS: File removed.  Moved items that are still relevant into
1604         TODO list in hurd source.
1605
1606 1999-03-26  Mark Kettenis  <kettenis@gnu.org>
1607
1608         * sysdeps/mach/hurd/bits/time.h: New file.
1609         * sysdeps/mach/hurd/getrusage.c: New file.
1610         * sysdeps/mach/hurd/clk_tck.c: New file.
1611         * sysdeps/mach/hurd/Versions (libc) [GLIBC_2.1.1]: Add __libc_clk_tck.
1612         * sysdeps/mach/hurd/Makefile [$(subdir) = posix]
1613         (sysdep_routines): Add clk_tck.
1614         * sysdeps/mach/hurd/times.c: Removed, since getrusage is now
1615         implemented.
1616
1617 1999-04-02  Ulrich Drepper  <drepper@cygnus.com>
1618
1619         * misc/syslog.c (closelog_internal): Do not reset LogTag here.
1620         (closelog): But instead here.
1621         Patch by Alan Curry <pacman@cqc.com> [PR libc/1061].
1622
1623 1999-04-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1624
1625         * elf/Makefile (CFLAGS-multiload.c): Change to allow building in
1626         the source directory.  Fixes PR libc/1059.
1627
1628 1999-04-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1629
1630         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Terminate the string.
1631         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
1632
1633 1999-04-01  Ulrich Drepper  <drepper@cygnus.com>
1634
1635         * iconvdata/TESTS: Add ISO-8859-14 and ISO-8859-15.
1636         * iconvdata/testdata/ISO-8859-14: New file.
1637         * iconvdata/testdata/ISO-8859-14..UTF8: New file.
1638         * iconvdata/testdata/ISO-8859-15: New file.
1639         * iconvdata/testdata/ISO-8859-15..UTF8: New file.
1640
1641 1999-03-31  Ulrich Drepper  <drepper@cygnus.com>
1642
1643         * iconvdata/testdata/CP1258: New file.
1644         * iconvdata/testdata/CP1258..UTF8: New file.
1645         * iconvdata/TESTS: Add CP1258 entry.
1646
1647         * iconvdata/cp874.h (to_ucs4): Add Euro sign.
1648
1649         * timezone/africa: Update from tzdata1999d.
1650         * timezone/europe: Likewise.
1651         * timezone/northamerica: Likewise.
1652
1653 1999-03-31  Mark Kettenis  <kettenis@gnu.org>
1654
1655         * login/programs/pt_chown.c (main): Save effective user ID before
1656         dropping priviliges and use this to check if the program is
1657         properly installed.
1658
1659 1999-03-31  Ulrich Drepper  <drepper@cygnus.com>
1660
1661         * iconvdata/testdata/CP1254: Update for charmap changes.
1662         * iconvdata/testdata/CP1254..UTF8: Likewise.
1663         * iconvdata/testdata/CP1255: Likewise.
1664         * iconvdata/testdata/CP1255..UTF8: Likewise.
1665         * iconvdata/testdata/CP1256: Likewise.
1666         * iconvdata/testdata/CP1256..UTF8: Likewise.
1667         * iconvdata/testdata/CP1257: Likewise.
1668         * iconvdata/testdata/CP1257..UTF8: Likewise.
1669
1670         * iconvdata/Makefile (distribute): Remove cp1258.h.
1671         (gen-8bit-gap-modules): Add cp1258.
1672         * iconvdata/cp1258.h: Removed.
1673
1674 1999-03-30  Ulrich Drepper  <drepper@cygnus.com>
1675
1676         * timezone/tst-timezone.c (tests): Add more cases.
1677         (check_tzvars): Mark errors clearer.
1678         (main): Likewise.
1679
1680 1999-03-30 20:59 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1681
1682         * login/programs/pt_chown.c: Drop privileges if invoked with
1683         arguments.  Don't close the master pty.
1684
1685 1999-03-30  Ulrich Drepper  <drepper@cygnus.com>
1686
1687         * time/tzfile.c (__tzfile_read): Process transitions from the rear.
1688         Minor optimization.
1689
1690 1999-03-29  Ulrich Drepper  <drepper@cygnus.com>
1691
1692         * elf/rtld.c (process_envvars): Do not automatically prevent lazy
1693         relocation for SUID binaries.
1694
1695 1999-03-29  Paul Eggert  <eggert@twinsun.com>
1696
1697         * libio/iopopen.c (_IO_new_proc_open): Don't modify proc_file_chain
1698         while in child process.
1699
1700 1999-03-29  Jakub Jelinek  <jj@ultra.linux.cz>
1701
1702         * sysdeps/sparc/sparc32/sparcv8/Makefile: New file.
1703         * sysdeps/sparc/sparc32/sparcv8/rem.S: Delay after write %y.
1704         * sysdeps/sparc/sparc32/sparcv8/sdiv.S: Likewise.
1705         * sysdeps/sparc/sparc32/sparcv8/udiv.S: Likewise.
1706         * sysdeps/sparc/sparc32/sparcv8/urem.S: Likewise.
1707
1708         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: New file.
1709         * sysdeps/sparc/sparc32/sparcv9/bzero.c: New file.
1710         * sysdeps/sparc/sparc32/sparcv9/memchr.S: New file.
1711         * sysdeps/sparc/sparc32/sparcv9/memcmp.S: New file.
1712         * sysdeps/sparc/sparc32/sparcv9/memcpy.S: New file.
1713         * sysdeps/sparc/sparc32/sparcv9/memset.S: New file.
1714         * sysdeps/sparc/sparc32/sparcv9/stpcpy.S: New file.
1715         * sysdeps/sparc/sparc32/sparcv9/strcat.S: New file.
1716         * sysdeps/sparc/sparc32/sparcv9/strchr.S: New file.
1717         * sysdeps/sparc/sparc32/sparcv9/strcmp.S: New file.
1718         * sysdeps/sparc/sparc32/sparcv9/strcpy.S: New file.
1719         * sysdeps/sparc/sparc32/sparcv9/strcspn.S: New file.
1720         * sysdeps/sparc/sparc32/sparcv9/strlen.S: New file.
1721         * sysdeps/sparc/sparc32/sparcv9/strncpy.S: New file.
1722         * sysdeps/sparc/sparc32/sparcv9/strpbrk.S: New file.
1723         * sysdeps/sparc/sparc32/sparcv9/strrchr.c: New file.
1724         * sysdeps/sparc/sparc32/sparcv9/strspn.S: New file.
1725         * sysdeps/sparc/sparc32/sparcv9/dotmul.S: New file.
1726         * sysdeps/sparc/sparc32/sparcv9/rem.S: New file.
1727         * sysdeps/sparc/sparc32/sparcv9/sdiv.S: New file.
1728         * sysdeps/sparc/sparc32/sparcv9/udiv.S: New file.
1729         * sysdeps/sparc/sparc32/sparcv9/umul.S: New file.
1730         * sysdeps/sparc/sparc32/sparcv9/urem.S: New file.
1731         * sysdeps/sparc/sparc32/sparcv9/Makefile: New file.
1732         * sysdeps/sparc/sparc32/sparcv9/stpncpy.S: New file.
1733         * sysdeps/sparc/sparc32/sparcv9/strncmp.S: New file.
1734
1735         * sysdeps/sparc/sparc32/bcopy.c: New file.
1736         * sysdeps/sparc/sparc32/bzero.c: New file.
1737         * sysdeps/sparc/sparc32/memchr.S: New file.
1738         * sysdeps/sparc/sparc32/memcpy.S: New file.
1739         * sysdeps/sparc/sparc32/memmove.c: New file.
1740         * sysdeps/sparc/sparc32/memset.S: New file.
1741         * sysdeps/sparc/sparc32/stpcpy.S: New file.
1742         * sysdeps/sparc/sparc32/strchr.S: New file.
1743         * sysdeps/sparc/sparc32/strrchr.c: New file.
1744         * sysdeps/sparc/sparc32/strcpy.S: New file.
1745         * sysdeps/sparc/sparc32/strlen.S: New file.
1746         * sysdeps/sparc/sparc32/strcat.S: New file.
1747         * sysdeps/sparc/sparc32/strcmp.S: New file.
1748
1749         * sysdeps/sparc/sparc64/bcopy.c: New file.
1750         * sysdeps/sparc/sparc64/bzero.c: New file.
1751         * sysdeps/sparc/sparc64/memchr.S: New file.
1752         * sysdeps/sparc/sparc64/memcmp.S: New file.
1753         * sysdeps/sparc/sparc64/memcpy.S: New file.
1754         * sysdeps/sparc/sparc64/memset.S: New file.
1755         * sysdeps/sparc/sparc64/stpcpy.S: New file.
1756         * sysdeps/sparc/sparc64/strcat.S: New file.
1757         * sysdeps/sparc/sparc64/strchr.S: New file.
1758         * sysdeps/sparc/sparc64/strcmp.S: New file.
1759         * sysdeps/sparc/sparc64/strcpy.S: New file.
1760         * sysdeps/sparc/sparc64/strcspn.S: New file.
1761         * sysdeps/sparc/sparc64/strlen.S: New file.
1762         * sysdeps/sparc/sparc64/strncpy.S: New file.
1763         * sysdeps/sparc/sparc64/strpbrk.S: New file.
1764         * sysdeps/sparc/sparc64/strrchr.c: New file.
1765         * sysdeps/sparc/sparc64/strspn.S: New file.
1766         * sysdeps/sparc/sparc64/stpncpy.S: New file.
1767         * sysdeps/sparc/sparc64/strncmp.S: New file.
1768
1769         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (ASFLAGS-.os):
1770         Append -fPIC, don't replace.
1771
1772         * configure.in: Recognize sparcv8plus / sparcv9.
1773
1774 1999-03-27  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1775
1776         * malloc/obstack.h (obstack_free): Explicitly convert __obj to
1777         char * to avoid C++ warning.
1778         Patch by yasushi@cs.washington.edu [PR libc/1035].
1779
1780 1999-03-29  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1781
1782         * manual/filesys.texi (Temporary Files): mktemp and mkstemp are
1783         declared in stdlib.h, correct return value of mkstemp.
1784         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>.
1785
1786         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHDRD_FC*): New defines
1787         from Linux 2.2.5.
1788
1789 1999-03-28  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1790
1791         * misc/regexp.h (compile): Cast some pointers to (char *) to avoid
1792         C++ warning.
1793
1794         * ctype/ctype.h (tolower, toupper): Add __THROW declaration to
1795         inline functions.  Closes PR libc/1049.
1796
1797 1999-03-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1798
1799         * timezone/README: Update from tzdata1999c and tzcode1999c.
1800
1801         * timezone/africa: Update from tzdata1999c.
1802         * timezone/antarctica: Likewise.
1803         * timezone/asia: Likewise.
1804         * timezone/australasia: Likewise.
1805         * timezone/europe: Likewise.
1806         * timezone/northamerica: Likewise.
1807         * timezone/southamerica: Likewise.
1808         * timezone/zone.tab: Likewise.
1809
1810         * timezone/zic.c: Update from tzcode1999c.
1811
1812 1999-03-26  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1813
1814         * Makerules: Add $(common-objpfx)Versions.all to common-generated
1815         outside of ifndef avoid-generated.
1816
1817         * libio/oldiofdopen.c (_IO_old_fdopen): Bring over recent changes
1818         in iofdopen.c.
1819         * libio/oldiofopen.c (_IO_old_fopen): Bring over recent changes in
1820         iofopen.c.
1821         * libio/oldiofclose.c (_IO_old_fclose): Bring over recent changes
1822         in iofclose.c.
1823         * libio/oldfileops.c (_IO_old_file_underflow, _IO_old_file_sync,
1824         _IO_old_file_seekoff): Bring over recent changes in fileops.c.
1825
1826 1999-03-26  Mark Kettenis  <kettenis@gnu.org>
1827
1828         * sysdeps/mach/hurd/Makefile: Only install libc_p.a linker script
1829         if we build the profiled library.
1830
1831 1999-03-26  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1832
1833         * math/Makefile (gmp-objs): Add inlines.  Reported by Andreas
1834         Jaeger <aj@arthur.rhein-neckar.de>
1835
1836 1999-03-25  Roland McGrath  <roland@yaumatei.ai.mit.edu>
1837
1838         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = csu]
1839         (CFLAGS-initfini.s): New variable, add -DWEAK_GMON_START.
1840         This does for Hurd/i386 what the 1998-09-08 change did for Linux/i386.
1841
1842 1999-03-24  Roland McGrath  <roland@baalperazim.frob.com>
1843
1844         * Makeconfig (sysd-sorted): Use $(..) on rhs of patsubst, so this rule
1845         works properly in subdirs.
1846
1847 1999-03-23  Roland McGrath  <roland@baalperazim.frob.com>
1848
1849         * sysdeps/mach/hurd/Makefile: Undo last change.
1850         [$(subdir) = mach] (lib-noranlib): Depend on libmachuser-link.so.
1851         [$(subdir) = hurd] (lib-noranlib): Depend on libhurduser-link.so.
1852
1853         * mach/Machrules (+preinit, +postinit, +interp,
1854         LDFLAGS-$(interface.so)): Variables removed.  Interface libraries get
1855         linked just like other shared libraries.
1856         (interface.so): Fix typo in defn, so it works.
1857         ($(objpfx)$(interface.so)): Make it depend on libc.so.
1858
1859 1999-03-21  Roland McGrath  <roland@baalperazim.frob.com>
1860
1861         * sysdeps/mach/hurd/Makefile (subdir_lib): Depend on
1862         $(link-rpcuserlibs).
1863
1864 1999-03-22  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1865
1866         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name),
1867         $(inst_slibdir)/$(rtld-installed-name), ldso_install): Disable
1868         targets if not building shared libraries.
1869
1870 1999-03-22  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1871
1872         * configure.in: Also look in $PATH when searching for
1873         install-info.  Remove autoconf bug workaround and require autoconf
1874         2.13.
1875
1876 1999-03-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1877
1878         * db/Makefile: Don't try to install shared library link if not
1879         building with shared libs.
1880
1881 1999-03-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1882
1883         * rt/Makefile: Link against static library if no shared lib is
1884         available.
1885
1886         * localedata/Makefile: The shells scripts implementing the test
1887         require the dynamic linker which is not available with
1888         --disable-shared.  Skip the test if --disable-shared is given.
1889
1890         * linuxthreads/Makefile: Link test against static libpthread if no
1891         shared lib is available.
1892
1893         * iconvdata/Makefile (tests): Run iconv-test only if we're
1894         building shared libraries.
1895         * elf/Makefile (tests): Likewise for elf tests.
1896
1897         * posix/Makefile: The test frameworks globtest and wordexp-test
1898         require the dynamic linker which is not available with
1899         --disable-shared.  Skip the test if --disable-shared is given.
1900
1901         * grp/Makefile (otherlibs): For static nss build link against
1902         necessary libs.
1903
1904 1999-03-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1905
1906         * debug/Makefile (install-bin): Install and build catchsegv only
1907         if build-shared == yes.  Reported by jussi@jlaako.pp.fi [PR
1908         libc/965].
1909
1910 1999-03-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1911
1912         * time/tzfile.c (__tzfile_read): Handle the case where there are
1913         transitions but no DST.
1914
1915 1999-03-20  Roland McGrath  <roland@baalperazim.frob.com>
1916
1917         * mach/Machrules (extra-libs-others): Add $(interface-library) here
1918         too, so it gets built in the others pass rather than the lib pass.
1919         This is necessary since the RPC libraries need to be linked against
1920         libc.
1921
1922 1999-03-19  Roland McGrath  <roland@baalperazim.frob.com>
1923
1924         * sysdeps/generic/segfault.c: Include <stdio-common/_itoa.h> for
1925         _itoa_word decl.
1926
1927         * sysdeps/mach/hurd/Makefile (link-rpcuserlibs): New variable.
1928         ($(common-objpfx)libc.so): Depend on that instead of $(rpcuserlibs).
1929         ($(link-rpcuserlibs)): New static pattern rule; link intermediate
1930         versions of lib{mach,hurd}user.so without reference to libc.so,
1931         then link libc.so against that to get deps and symbol versions, then
1932         finally link real lib*user.so against libc.so.
1933
1934         * sysdeps/mach/hurd/fcntl.c (__fcntl: case F_GETLK,F_SETLK,F_SETLKW):
1935         Support whole-file locking (only) by using the file_lock RPC.  This
1936         has very wrong semantics, but is better than nothing for the time
1937         being.  (Correct POSIX.1 locking will require new RPCs in the Hurd
1938         protocols that will be somewhat hairy to specify.)
1939
1940 1999-03-17  Mark Kettenis  <kettenis@gnu.org>
1941
1942         * sysdeps/mach/hurd/ptsname.c: New file.
1943
1944 1999-03-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1945
1946         * timezone/asia: Fix rule in Asia/Nicosia entry.
1947
1948 1999-03-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1949
1950         * manual/getopt.texi (Using Getopt): Explain "::" in option
1951         string.  Reported by Yuri Niyazov <yuricake@geocities.com>.
1952
1953 1999-03-18  Thorsten Kukuk  <kukuk@suse.de>
1954
1955         * sunrpc/clnt_unix.c: Fix creation of parameters for
1956         sendmsg/recvmsg on non intel platforms.
1957         * sunrpc/svc_unix.c: Likewise.
1958
1959 1999-03-18  Philip Blundell  <philb@gnu.org>
1960
1961         * sysdeps/unix/sysv/linux/arm/getgroups.c: New file.  Use the i386
1962         implementation.
1963
1964 1999-03-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1965
1966         * timezone/africa: Update from tzdata1999b.
1967         * timezone/asia: Likewise.
1968         * timezone/australasia: Likewise.
1969         * timezone/europe: Likewise.
1970         * timezone/northamerica: Likewise.
1971         * timezone/southamerica: Likewise.
1972         * timezone/zone.tab: Likewise.
1973
1974         * timezone/README: Mention tzdata1999b.
1975
1976 1999-03-17  Ulrich Drepper  <drepper@cygnus.com>
1977
1978         * sysdeps/generic/segfault.c (write_strsignal): New function.
1979         (catch_segfault): Use it instead of calling strsignal.
1980
1981 1999-03-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1982
1983         * iconv/gconv.c (__gconv): Change type of last_start to unsigned
1984         char to avoid warning.
1985
1986 1999-03-15  Ulrich Drepper  <drepper@cygnus.com>
1987
1988         * iconv/iconv.c (iconv): Correctly cast parameters for __gconv.
1989
1990         * iconvdata/iso-2022-kr.c (EMIT_SHIFT_TO_INIT): Change type of
1991         outbuf to unsigned char to avoid warning.
1992
1993 1999-03-11  David S. Miller  <davem@redhat.com>
1994
1995         * sysdeps/sparc/sparc32/fpu/fpu_control.h: Add missing trap enable
1996         masks.
1997         * sysdeps/sparc/sparc64/fpu/fpu_control.h: Likewise.
1998
1999 1999-03-15  Ulrich Drepper  <drepper@cygnus.com>
2000
2001         * iconv/gconv.h (gconv_fct): Change parameter from `char' to
2002         `unsigned char'.
2003         (gconv_step_data): Likewise.
2004         * iconv/gconv_int.h (__gconv): Likewise.
2005         (__BUILINT_TRANS): Likewise.
2006         * iconv/gconv.c (__gconv): Likewise.
2007         * iconv/iconv.c (iconv): Add casts for call of __gconv.
2008         * iconv/skeleton.c: Change local parameters and variable from `char' to
2009         `unsigned char'.  Remove casts from calls into modules.
2010         * iconvdata/iso-2022-jp.c (gconv): Change local variable outbuf from
2011         `char' to `unsigned char'.
2012         * wcsmbs/btowc.c: Change pointers from `char *' to `unsigned char *'.
2013         * wcsmbs/mbrtowc.c: Likewise.
2014         * wcsmbs/mbsnrtowcs.c: Likewise.
2015         * wcsmbs/mbsrtowcs.c: Likewise.
2016         * wcsmbs/wcrtomb.c: Likewise.
2017         * wcsmbs/wcsnrtombs.c: Likewise.
2018         * wcsmbs/wcsrtombs.c: Likewise.
2019         * wcsmbs/wctob.c: Likewise.
2020
2021 1999-03-15  Mark Kettenis  <kettenis@gnu.org>
2022
2023         * sysdeps/mach/hurd/Versions (ld.so) [GLIBC_2.0]: Add
2024         __hurd_sigthread_stack_base, __hurd_sigthread_stack_end,
2025         __hurd_sigthread_variables, __hurd_threadvar_stack_mask,
2026         __hurd_threadvar_stack_offset, __close, __fxstat, __getcwd,
2027         __getpid, __libc_read, __libc_write, __lseek, __mmap, __open,
2028         __xstat, _exit, _hurd_intr_rpc_mach_msg and abort.
2029
2030 1999-03-15  Mark Kettenis  <kettenis@gnu.org>
2031
2032         * sysdeps/mach/hurd/poll.c (__poll): Correctly pass NULL to
2033         _hurd_select if TIMEMOUT is -1.
2034
2035 1999-03-15  Mark Kettenis  <kettenis@gnu.org>
2036
2037         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Allow ADDR to be NULL.
2038
2039 1999-03-15  Ulrich Drepper  <drepper@cygnus.com>
2040
2041         * elf/dl-load.c: Compute rtld_search_dir array size correctly.
2042         Reported by Yasushi Saito <yasushi@cs.washington.edu>.
2043
2044 1999-03-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2045
2046         * manual/libc.texinfo: Undo last change for now.
2047
2048 1999-03-15  Ulrich Drepper  <drepper@cygnus.com>
2049
2050         * intl/locale.alias: Add entries for Croatian.
2051         Patch by Tomislav Vujec <tvujec@CARNet.hr>.
2052
2053 1999-03-13  Mark Kettenis  <kettenis@gnu.org>
2054
2055         * sysdeps/unix/bsd/getpt.c (__getpt): Do not use `isatty' to check
2056         if the opened master pty really is a pty.  `isatty' checks for
2057         tty-ness and a pty is not a tty.  Return ENOENT instead of ENFILE
2058         if we are out of pty's.
2059
2060 1999-03-13  Mark Kettenis  <kettenis@gnu.org>
2061
2062         * sysdeps/generic/utmp_file.c (setutent_file): Make sure the just
2063         opened file is closed on exec.
2064         * login/utmp_daemon.c (setutent_daemon): Likewise for the just
2065         opened socket.
2066
2067 1999-03-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2068
2069         * manual/llio.texi (File Position Primitive): Reformat @end
2070         command.  Patch by Bruno Haible <haible@ilog.fr> [PR libc/1020].
2071
2072 1999-03-14  Ulrich Drepper  <drepper@cygnus.com>
2073
2074         * nscd/nscd_getpw_r.c (nscd_getpw_r): Set `errno' correctly if no
2075         entry is found.
2076         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2077         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2078
2079         * locale/programs/localedef.c (main): Initialize `cat' to please
2080         the compiler.
2081
2082 1999-03-14  Roland McGrath  <roland@baalperazim.frob.com>
2083
2084         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Under O_NOFOLLOW,
2085         check for root-owned symlinks and reject them too.
2086
2087 1999-03-09  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2088
2089         * stdio-common/printf_fphex.c: Move to ...
2090         * sysdeps/generic/printf_fphex.c: ... here.  Fix exponent of
2091         extended precision number.
2092         * sysdeps/m68k/printf_fphex.c: New file.
2093
2094 1999-03-09  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2095
2096         * manual/stdio.texi: Fix typos.
2097
2098 1999-03-09  Ulrich Drepper  <drepper@cygnus.com>
2099
2100         * version.h (VERSION): Bump to 2.1.1.
2101
2102 1999-03-09  Thorsten Kukuk  <kukuk@suse.de>
2103
2104         * nis/ypclnt.c: Try only twice to connect to NIS server.
2105
2106 1999-03-09  Roland McGrath  <roland@baalperazim.frob.com>
2107
2108         * hurd/hurdexec.c (_hurd_exec): Add missing `else' in last change.
2109
2110 1999-03-09  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2111
2112         * stdlib/strtod.c (round_and_return): Fix rounding of denormals.
2113         (DENORM_EXP): New define.  Use it as the exponent for a denormal.
2114         * stdlib/strtold.c: Moved to ...
2115         * sysdeps/generic/strtold.c: ... here.
2116         * sysdeps/m68k/strtold.c: New file.
2117
2118 1999-03-09  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2119
2120         * stdio-common/printf_fphex.c (__printf_fphex): Print no decimal
2121         point if the precision is zero, even if the mantissa is non-zero.
2122
2123 1999-03-09  Roland McGrath  <roland@baalperazim.frob.com>
2124
2125         * sysdeps/mach/hurd/ioctl.c (__ioctl): Move the marshalling of the
2126         arguments into the request message buffer inside `send_rpc'
2127         subfunction.  We must repeat the marshalling when retrying the RPC
2128         after a SIGTTOU delivery.
2129
2130         * hurd/ctty-input.c (_hurd_ctty_input): Use early short-circuit code
2131         path when there is no ctty port.
2132         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2133         Move sigstate check inside loop so we recheck after handling a signal.
2134
2135 1999-03-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2136
2137         * manual/llio.texi (Open-time Flags): Clarify that O_SHLOCK and
2138         O_EXLOCK are BSD extensions.
2139         Reported by Jochen Voss <voss@mathematik.uni-kl.de> [PR libc/985].
2140
2141 1999-03-08  Ulrich Drepper  <drepper@cygnus.com>
2142
2143         * manual/signal.texi (Termination in Handler): Correct example.
2144         Install default handler before reraising the signal.
2145         Patch by Jochen Voss <voss@mathematik.uni-kl.de>.
2146
2147 1999-03-08  Roland McGrath  <roland@baalperazim.frob.com>
2148
2149         * hurd/hurdexec.c (_hurd_exec): Handle ARGV or ENVP parameters being
2150         null, in which case send an empty string.
2151
2152 1999-03-02  Mark Kettenis  <kettenis@gnu.org>
2153
2154         * Makerules (LD_FLAGS-c.so): Add -u __register_frame to force the
2155         backward compatibility EH functions to be linked when using
2156         gcc-2.8.1.  Patch by Zack Weinberg <zack@rabi.columbia.edu>.
2157
2158 1999-03-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2159
2160         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Undo last change.
2161         /dev/pts status may change during runtime.
2162
2163 1999-03-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2164
2165         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Undo last
2166         change.  /dev/pts status can change during runtime.
2167
2168 1999-03-07  Thorsten Kukuk  <kukuk@suse.de>
2169
2170         * sunrpc/svc_tcp.c (readtcp): go into fatal error state if
2171         poll reports error.
2172         * nis/nss_nisplus/nisplus-parser.c: Avoid duplicate strlen calls,
2173         add some more sanity checks.
2174         * nis/nss_nisplus/nisplus-pwd.c: Include nisplus-parser.h for
2175         parser prototype.
2176
2177 1999-03-05  Thorsten Kukuk  <kukuk@suse.de>
2178
2179         * sunrpc/rpc/xdr.h: Add x_getint32/x_putint32 to xdr_ops,
2180         change XDR_GETINT32/XDR_PUTINT32 to sue new functions.
2181         * sunrpc/xdr_mem.c: Add xdrmem_getint32, xdrmem_putint32.
2182         * sunrpc/xdr_rec.c: Add xdrrec_getint32, xdrrec_putint32.
2183         * sunrpc/xdr_sizeof.c: Add x_putint32, add dummy function
2184         for x_getint32.
2185         * sunrpc/xdr_stdio.c: Add xdrstdio_getint32, xdrstdio_putint32.
2186         * nis/nis_print.c: Fix ctime argument for platforms where
2187         sizeof (time_t) != sizeof (int).
2188
2189 1999-03-07  Mark Kettenis  <kettenis@gnu.org>
2190
2191         * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Use
2192         CLOCKS_PER_SEC instead of CLK_TCK.
2193
2194 1999-03-05  Ulrich Drepper  <drepper@cygnus.com>
2195
2196         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remember
2197         whether /dev/pts is available.
2198         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Fix handling of
2199         dev_pts_available.
2200
2201         * posix/globtest.sh: Make common_objpfx path absolute and and db2
2202         and hesiod directory to library path [PR libc/1007].
2203
2204 1999-03-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2205
2206         * resolv/inet_addr.c (inet_aton): Don't allow componets >
2207         255.  Patch by Bruno Haible <haible@ilog.fr> [PR libc/1010].
2208
2209 1999-03-05  Geoff Keating  <geoffk@ozemail.com.au>
2210
2211         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
2212         DT_PLTGOT has already been relocated.
2213         (__elf_machine_fixup_plt): Likewise.
2214         Minor cleanups.
2215
2216 1999-03-04  Roland McGrath  <roland@baalperazim.frob.com>
2217
2218         * hurd/hurdlookup.c (__hurd_file_name_lookup): Comment fix.
2219
2220 1999-03-03  Ulrich Drepper  <drepper@cygnus.com>
2221
2222         * wcsmbs/wcsmbsload.c (add_slashes): Rename to norm_add_slashes
2223         and fold string to uppercase [PR libc/1005].
2224
2225 1999-03-03  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2226
2227         * elf/dl-load.c (lose): Fix return type.
2228
2229 1999-03-03  Roland McGrath  <roland@baalperazim.frob.com>
2230
2231         * sysdeps/mach/hurd/bits/fcntl.h
2232         [__USE_GNU] (O_NOFOLLOW, O_DIRECTORY): New macros.
2233         * hurd/hurdlookup.c (__hurd_file_name_lookup): If O_NOFOLLOW is set,
2234         set O_NOTRANS as well.
2235         (__hurd_file_name_lookup_retry): At successful end of lookup,
2236         if O_NOFOLLOW set, io_stat the resultant port and fail with ENOENT if
2237         it is a translated node not owned by root.
2238         (__hurd_file_name_lookup): If O_DIRECTORY is set, put a trailing slash
2239         on the file name passed to LOOKUP.
2240
2241 1999-03-02  Ulrich Drepper  <drepper@cygnus.com>
2242
2243         * manual/time.texi (High Resolution Timer): Correct computation in
2244         example.  Reported by jjf@devel.cemsys.com.
2245
2246 1999-03-02  Philip Blundell  <pb@nexus.co.uk>
2247
2248         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): DT_PLTGOT
2249         entry is already relocated.
2250
2251 1999-03-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2252
2253         * resolv/res_hconf.c (parse_line): Skip empty lines.  Bug reported
2254         by Marcus Harnisch <marcus@harnisch.isdn.cs.tu-berlin.de>.
2255
2256 1999-03-01  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2257
2258         * sysdeps/i386/sys/ucontext.h (ucontext): Rename field uc_links to
2259         uc_link which is the right name according to Unix98.
2260         Reported by Craig Metz [PR libc/1001].
2261         * sysdeps/arm/sys/ucontext.h (ucontext): Likewise.
2262         * sysdeps/m68k/sys/ucontext.h (ucontext): Likewise.
2263         * sysdeps/mips/sys/ucontext.h (ucontext): Likewise.
2264         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (ucontext): Likewise.
2265         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h (ucontext): Likewise
2266         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext): Likewise.
2267
2268 1999-02-25  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2269
2270         * manual/libc.texinfo: Wrap @top node inside @ifnottex instead of
2271         @ifinfo.
2272
2273 1999-02-25  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2274
2275         * iconvdata/Makefile: Always include iconv-rules, but disable rule
2276         to regenerate it if avoid-generated.
2277
2278         * Makeconfig: Always include sys-dirs, but disable rule to
2279         regenerate it when avoid-generated.
2280
2281         * sysdeps/unix/Makefile: Put `ifndef avoid-generated' only around
2282         rule to generate sysd-syscalls.
2283
2284         * elf/Makefile (generated): Remove $(objpfx) from names.
2285
2286 1999-02-28  Mark Kettenis  <kettenis@gnu.org>
2287
2288         * sysdeps/mach/hurd/getsockname.c (getsockname): Set *LEN to the
2289         actual length if the adress length is smaller than the input
2290         value.  Change type of *LEN paramater to socklen_t.
2291         * sysdeps/mach/hurd/getpeername.c (getpeername): Likewise.
2292         * sysdeps/mach/hurd/accept.c (accept): Likewise.
2293         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Likewise.
2294         * sysdeps/mach/hurd/sendto.c (sendto): Change type of ADDR_LEN
2295         paramater to socklen_t.
2296
2297 1999-02-28  Roland McGrath  <roland@baalperazim.frob.com>
2298
2299         * hurd/hurd-raise.c (_hurd_raise_signal): Send "poll request"
2300         msg_sig_post RPC (with SIGNO=0), rather than generating signal (again)
2301         with the RPC.
2302
2303 1999-02-27  Roland McGrath  <roland@baalperazim.frob.com>
2304
2305         * sysdeps/mach/getsysstats.c (__get_nprocs_conf, __get_nprocs,
2306         __get_phys_pages): Cast &HBI to silence warning.
2307
2308         * hurd/Makefile (routines): Add hurdchdir and hurdfchdir.
2309         * hurd/hurdchdir.c: New file.
2310         * hurd/hurdfchdir.c: New file.
2311         * sysdeps/mach/hurd/chroot.c: Call
2312         _hurd_change_directory_port_from_name to do the work.
2313         * sysdeps/mach/hurd/chdir.c: Likewise.
2314         * sysdeps/mach/hurd/fchdir.c: Call
2315         _hurd_change_directory_port_from_fd to do the work.
2316         * hurd/fchroot.c: Likewise.
2317         * hurd/hurd.h: Declare them.
2318
2319 1999-02-27  Ulrich Drepper  <drepper@cygnus.com>
2320
2321         * elf/dl-load.c (lose): Add more comments to explain the `why'.
2322         (_dl_map_object): Remove redundant test.
2323
2324 1999-02-27  Roland McGrath  <roland@baalperazim.frob.com>
2325
2326         * hurd/hurdselect.c (_hurd_select): When bailing for bogus fd, don't
2327         try to _hurd_port_free a lower-numbered descriptor that was not in any
2328         fd_set.
2329
2330 1999-02-26  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2331
2332         * wcsmbs/wcstold_l.c [__NO_LONG_DOUBLE_MATH]: Add prototype
2333         declaration for ____wcstod_l_internal.
2334
2335         * stdlib/strtold.c [__NO_LONG_DOUBLE_MATH]: Include <stdlib.h> for
2336         __strtod_internal prototype.
2337         * stdlib/strtold_l.c [__NO_LONG_DOUBLE_MATH]
2338         (____strtold_l_internal): Add prototype declaration.
2339         (__strtold_l): Call correct function.
2340
2341 1999-02-24  Ulrich Drepper  <drepper@cygnus.com>
2342
2343         * elf/elf.h: Add 32bit HPPA definitions.
2344
2345 1999-02-23  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2346
2347         * malloc/malloc.c (mALLOC_SET_STATe): Handle the case where a
2348         non-checked heap is restored when malloc checking was requested by
2349         the user.
2350         (struct malloc_state): Add using_malloc_checking.
2351         (MALLOC_STATE_VERSION): Increment minor.
2352         (using_malloc_checking, disallow_malloc_check): New variables.
2353         (__malloc_check_init): Use them.
2354         (mALLOC_GET_STATe): Use mALLOc to allocate the malloc_state, so
2355         that it can the chunk is properly instrumented when malloc
2356         checking is enabled.  Set the new using_malloc_checking field.
2357         (malloc_hook_ini): Correct signature when _LIBC is not defined.
2358
2359 1999-02-23  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2360
2361         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
2362         (DISTINGUISH_LIB_VERSIONS): Don't relocate DT_STRTAB a second
2363         time.
2364
2365         * elf/rtld.c (dl_main): Rename paths_initialized to rtld_is_main.
2366         Don't call elf_get_dynamic_info and _dl_setup_hash a second time
2367         if ld.so is the main program.
2368
2369 1999-02-23  Ulrich Drepper  <drepper@cygnus.com>
2370
2371         * stdio-common/vfprintf.c (vfprintf): If precision or width is too
2372         large for work_buffer, allocate new buffer.
2373         (printf_unknown): Likewise.  [PR libc/988]
2374
2375 1999-02-22  Ulrich Drepper  <drepper@cygnus.com>
2376
2377         * sysdeps/unix/sysv/linux/ttyname.c: Use __xstat and __fxstat
2378         instead of stat and fstat.
2379         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2380
2381 1999-02-23  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2382
2383         * elf/dl-error.c (_dl_signal_cerror): New function.
2384         (_dl_signal_error): Don't call receiver function.
2385         * elf/dl-lookup.c (_dl_lookup_symbol): Call _dl_signal_cerror
2386         instead of _dl_signal_error when reporting references to undefined
2387         symbols or versions.
2388         (_dl_lookup_versioned_symbol): Likewise.
2389         (_dl_lookup_versioned_symbol_skip): Likewise.
2390         * elf/dl-version.c (match_symbol): Likewise.
2391
2392         * elf/ldsodefs.h: Declare _dl_signal_cerror.
2393
2394 1999-02-22  Ulrich Drepper  <drepper@cygnus.com>
2395
2396         * misc/getttyent.c (getttyent): Release lock on stream later to
2397         also protect global variable zapchar.
2398
2399         * sysdeps/unix/sysv/linux/clock.c: Don't test return value of
2400         __times [PR libc/990].
2401
2402 1999-02-21  David S. Miller  <davem@redhat.com>
2403
2404         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Fix
2405         parentheses in Feb 2 changes.
2406         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
2407
2408 1999-02-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2409
2410         * sysdeps/generic/glob.c (glob): Save previous errno.
2411
2412 1999-02-21  Ulrich Drepper  <drepper@cygnus.com>
2413
2414         * sysdeps/generic/glob.c (glob): Enlarge buffers for reentrant
2415         lookup functions if it is too small.
2416
2417 1999-02-20  Ulrich Drepper  <drepper@cygnus.com>
2418
2419         * elf/dl-deps.c (_dl_map_object_deps): Don't add dummy objects created
2420         for tracing to the scope lists.
2421         * elf/do-lookup.h: Remove test for l_opencount == 0 after above change.
2422         DT_SYMTAB is always available according to ELF spec.
2423
2424         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Before first do_lookup
2425         call test whether there is any scope left.
2426         (_dl_lookup_versioned_symbol_skip): Likewise.
2427
2428         * elf/Makefile (distribute): Add do-lookup.h.
2429         * elf/do-lookup.h: New file.  Split out from dl-lookup.c.
2430         * elf/dl-lookup.c: Move do_lookup function in separate file and
2431         include the file twice, for handling versioning and without it.
2432
2433         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): DT_PLTGOT
2434         entry is already relocated.
2435         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
2436         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
2437         * sysdeps/mips/dl-machine.h (elf_machine_runtime_setup): Likewise.
2438         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
2439         Likewise.
2440         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
2441         Likewise.
2442         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_setup):
2443         Likewise.
2444
2445         * elf/dynamic-link.h (elf_get_dynamic_info): Take new argument with
2446         load address.  Relocate d_ptr in DT_DTRTAB, DT_SYMTAB, DT_RELA, DT_REL,
2447         DT_JMPREL, DT_PLTGOT, and DT_VERSYM l_info entry.
2448         (_ELF_DYNAMIC_DO_RELOC): Take extra argument which specifies whether
2449         rel and rela relocations can both happen and skip one test if this
2450         is not possible.
2451         (ELF_DYNAMIC_DO_RELA, ELF_DYNAMIC_DO_REL): Call _ELF_DYNAMIC_DO_RELOC
2452         appropriately.
2453         * elf/dl-addr.c (_dl_addr): DT_SYMTAB and DT_STRTAB entries are
2454         already relocated.
2455         * elf/dl-deps.c (_dl_map_object_deps): DT_STRTAB entry is already
2456         relocated.
2457         * elf/dl-load.c (_dl_init_paths): DT_STRTAB entry is already relocated.
2458         (_dl_map_object_from_fd): Call elf_get_dynamic_info with new argument.
2459         (_dl_map_object): DT_STRTAB entry is already relocated.
2460         * elf/dl-lookup.c (do_lookup): DT_STRTAB and DT_SYMTAB entries are
2461         already relocated.
2462         * elf/dl-reloc.c (_dl_relocate_object): DT_STRTAB entry is already
2463         relocated.
2464         * elf/dl-runtime.c (fixup): DT_SYMTAB, DT_STRTAB, DT_JMPREL, and
2465         DT_VERSYM entries are already relocated.
2466         (profile_fixup): Likewise.
2467         * elf/dl-version.c: Rename VERSTAG macro into VERSYMIDX.  Replace
2468         all users.
2469         (match_symbol): DT_STRTAB entry is already relocated.
2470         (_dl_check_map_versions): Likewise.  Also fo DT_VERSYM.
2471         * elf/do-rel.h (elf_dynamic_do_rel): reladdr is now assumed to be
2472         relocated already.  DT_SYMTAB and DT_VERSYM entries are also relocated.
2473         * elf/rtld.c (_dl_start): Pass extra argument to elf_get_dynamic_info.
2474         (find_needed): DT_STRTAB entry is already relocated.
2475         (dl_main): Pass extra argument to elf_get_dynamic_info.
2476         DT_STRTAB entry is already relocated.
2477         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): DT_JMPREL and
2478         DT_PLTGOT entries are already relocated.
2479         (elf_machine_rela): Likewise for DT_SYMTAB.
2480         * sysdeps/arm/dl-machine.h (elf_machine_rel): DT_STRTAB is already
2481         relocated.
2482         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2483         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
2484         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
2485         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2486         * sysdeps/powerpc/dl-machine.c (__process_machine_rela): Likewise.
2487         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Likewise.
2488         (elf_machine_got_rel): Likewise for DT_SYMTAB and DT_STRTAB.
2489         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2490
2491         * grp/initgroups.c (initgroups): If function in current module was
2492         successful don't stop but continue to process to get all the groups.
2493
2494         * elf/dl-load.c (_dl_map_object_from_fd): Use global
2495         _dl_pf_to_proot array to convert p_flags value.
2496         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2497
2498         * elf/dynamic-link.h (elf_get_dynamic_info): Use memset instead of
2499         loop to clear `info'.
2500
2501         * sysdeps/i386/i486/bits/string.h: If fill byte is constant let gcc
2502         do the work and don't use inline assembler.
2503
2504 1999-02-19  Ulrich Drepper  <drepper@cygnus.com>
2505
2506         * elf/ldsodefs.h (_dl_signal_error): Mark as __noreturn__.
2507         * elf/dl-load.c (lose): Make it a function at the toplevel, mark as
2508         noreturn, and prevent it from being inlined.
2509         Define LOSE appropriately.
2510         (_dl_map_object_from_fd): Compare all bytes in e_ident at once.
2511         Optimize decoding of p_flags for certain platforms.
2512
2513 1999-02-19  Philip Blundell  <pb@nexus.co.uk>
2514
2515         * Makeconfig (link-libc): When doing a static link, make sure that
2516         libgcc.a is included both before and after libc.a.
2517
2518 1999-02-18  Thorsten Kukuk  <kukuk@suse.de>
2519
2520         * nis/nss_compat/compat-spwd.c: Fix handling of default values for
2521         sp_warn, sp_inact, sp_expire and sp_flag.
2522
2523 1999-02-18  Ulrich Drepper  <drepper@cygnus.com>
2524
2525         * elf/link.h (link_map): Add l_dev and l_ino.
2526         * elf/dl-load.c (_dl_map_object_from_fd): Test dev/ino of newly
2527         loaded shared object with all loaded objects.  Initialize l_ino
2528         and l_dev in case it's new.
2529         * elf/rtld.c (dl_main): Explain situation is l_dev/l_ino with main
2530         object.
2531         * elf/Makefile: Compile and run new test.
2532         * elf/multiload.c: New file.
2533
2534         * nss/nsswitch.h (service_user): Change name field from const char *
2535         to char[0].
2536         (name_database_entry): Likewise.
2537         * nss/nsswitch.c (nss_parse_service_list): Adjust memory allocation
2538         for change of `service_user'.
2539         (nss_getline): Adjust memory allocation for change of
2540         `name_database_entry'.
2541
2542         * catgets/catgets.c: Correctly handle NLSPATH from environment
2543         [PR libc/980].
2544
2545         * io/Makefile (routines): Add lock64.
2546         * io/Versions: Add lockf64 for GLIBC_2.1.1.
2547         * sysdeps/generic/lockf64.c: New file.
2548
2549 1999-02-16  Ulrich Drepper  <drepper@cygnus.com>
2550
2551         * string/bits/string2.h: Only use strncmp optimization if count
2552         argument is constant.
2553
2554 1999-02-16  Roland McGrath  <roland@baalperazim.frob.com>
2555
2556         * sysdeps/mach/hurd/revoke.c: New file.
2557
2558 1999-02-16  Ulrich Drepper  <drepper@cygnus.com>
2559
2560         * wctype/wctype.h (_ISwbit): Cast result of shift operations to
2561         int to avoid warning about `ISO C restricts enumerator values to
2562         range of `int''.
2563
2564 1999-02-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2565
2566         * elf/dlfcn.h: Fix typo.
2567         * sysdeps/generic/bits/dlfcn.h: Likewise.
2568         * sysdeps/mips/bits/dlfcn.h: Likewise.
2569
2570 1999-02-16  Ulrich Drepper  <drepper@cygnus.com>
2571
2572         * sysdeps/i386/i486/bits/string.h (memcmp): Correctly set flags
2573         for the case N == 0.
2574
2575         * db2/Makefile (distribute): Add LICENSE.
2576
2577 1999-02-03  Jeff Bailey  <jbailey@nisa.net>
2578
2579         * sysdeps/unix/make_errlist.c: Add i18n and copyright to
2580         generated files.
2581
2582         * sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c: Fix typo.
2583
2584 1999-02-16  Ulrich Drepper  <drepper@cygnus.com>
2585
2586         * time/mktime.c: Use ISO C form for function definitions and
2587         remove unnecessary prototypes.
2588
2589         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix typo in last change.
2590
2591         * time/time.h: Avoid unneccesary #ifdef.
2592
2593 1999-02-15  Geoff Keating  <geoffk@ozemail.com.au>
2594
2595         * stdio-common/_itoa.c (_itoa): Correct parameters to
2596         udiv_qrnnd_preinv.
2597
2598 1999-02-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2599
2600         * misc/sys/cdefs.h: Undefine __PMT since it might be defined
2601         before (e.g. in glob.h).
2602         Closes PR libc/959.
2603
2604 1999-02-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2605
2606         * sysdeps/mips/fpu_control.h: Fix typo.
2607         Patch by Sylvain Pion <Sylvain.Pion@sophia.inria.fr>.
2608         Remove __setfpucw.
2609
2610 1999-02-10  Roland McGrath  <roland@baalperazim.frob.com>
2611
2612         * sysdeps/mach/hurd/pipe.c (__pipe): Don't call __socket_shutdown on
2613         the "unused" ends of the sockets.  Let pipes be bidirectional.
2614
2615 1999-02-15  Ulrich Drepper  <drepper@cygnus.com>
2616
2617         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Correct test for
2618         invalid ai_flags.
2619
2620 1999-02-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2621
2622         * manual/llio.texi (Waiting for I/O): Correct meaning.  Patch by
2623         Jochen Voss <voss@mathematik.uni-kl.de> [PR libc/969].
2624
2625         * manual/setjmp.texi (Non-Local Exits and Signals): Fix
2626         typo.  Patch by Jochen Voss <voss@mathematik.uni-kl.de> [PR libc/970].
2627
2628 1999-02-15  Ulrich Drepper  <drepper@cygnus.com>
2629
2630         * string/Versions: Add __strverscmp to GLIBC_2.1.1.
2631
2632 1999-02-13  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2633
2634         * misc/syslog.c (vsyslog): Remember errno for %m format.  Fix
2635         check for priority mask.
2636
2637 1999-02-14  Ulrich Drepper  <drepper@cygnus.com>
2638
2639         * resolv/netdb.h (AI_NUMERICHOST): Change to 4.
2640         Reported by Craig Metz <cmetz@inner.net> .
2641
2642 1999-02-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2643
2644         * stdio-common/Makefile (tests): tllformat added.
2645
2646         * stdio-common/tllformat.c: New program, based on tiformat.c with
2647         examples from Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2648
2649 1999-02-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2650
2651         * posix/test-vfork.c: Fix exit status test.
2652
2653 1999-02-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2654
2655         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Add some
2656         missing cases.  Reported by Craig Metz <cmetz@inner.net> [PR libc/964].
2657
2658 1999-02-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2659
2660         * sysdeps/m68k/fpu/s_modf.c: Optimized by using __m81_test instead
2661         of separare explicit comparisons.
2662
2663 1999-02-11  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2664
2665         * sysdeps/wordsize-64/inttypes.h: Always define ldiv_t if not yet
2666         defined.
2667
2668         * sysdeps/wordsize-32/inttypes.h: Always define lldiv_t if not yet
2669         defined.
2670
2671 1999-02-09  Ulrich Drepper  <drepper@cygnus.com>
2672
2673         * po/el.po: Update from translation team.
2674
2675 1999-02-09  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2676
2677         * intl/locale.alias: Fix slovenian entry [PR libc/948].
2678
2679 1999-02-09  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2680
2681         * elf/sprof.c: assert.h isn't used anymore, remove inclusion.
2682         * inet/ruserpass.c: Likewise.
2683         * locale/programs/stringtrans.c: Likewise.
2684         * locale/programs/localedef.c: Likewise.
2685         * nscd/grpcache.c: Likewise.
2686         * nss/nss_files/files-XXX.c: Likewise.
2687         * stdlib/canonicalize.c: Likewise.
2688         * sysdeps/posix/sigwait.c: Likewise.
2689
2690 1999-02-09  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2691
2692         * sunrpc/pmap_rmt.c (clnt_broadcast): We need 32 bit comparison
2693         even on 64 bit platforms.
2694
2695         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
2696         Patch by Loic Prylli <Loic.Prylli@ens-lyon.fr>.
2697
2698 1999-02-09  Ulrich Drepper  <drepper@cygnus.com>
2699
2700         * intl/dcgettext.c: Include locale.h is available.
2701
2702 1999-02-08  Ulrich Drepper  <drepper@cygnus.com>
2703
2704         * po/nl.po: Update from translation team.
2705
2706         * sysdeps/libm-i387/s_asinhf.S: Correct computing absolute value.
2707
2708         * Makefile: Allow calling goals for po subdir.
2709
2710         * sysdeps/unix/sysv/linux/alpha/bits/signum.h: Add missing RT
2711         signal definitions.
2712
2713         * po/el.po: New file.
2714
2715 1999-02-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2716
2717         * elf/dl-load.c (_dl_map_object_from_fd): Replace magic constant
2718         when processing DT_SYMBOLIC objects.
2719
2720 1999-02-07  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2721
2722         * elf/dl-load.c (_dl_map_object_from_fd): When looking for the
2723         program headers without PT_PHDR only require that they are
2724         contained within one of the loaded segments.  Don't use assert,
2725         since that would be a bug in the object, not the dynamic linker.
2726
2727 1999-02-08  Richard Henderson  <rth@cygnus.com>
2728
2729         * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Save and
2730         restore all call-clobbered fp regs.
2731
2732 1999-02-08  Ulrich Drepper  <drepper@cygnus.com>
2733
2734         * po/cs.po: New file.
2735
2736         * resolv/res_hconf.c (_res_hconf_init): Don't use ENV_HOSTCONF for
2737         SUID binaries.
2738
2739 1999-02-07  Ulrich Drepper  <drepper@cygnus.com>
2740
2741         * signal/signal.h: Don't declare __libc_allocate_rtsig.
2742         * include/signal.h: Declare __libc_allocate_rtsig here.
2743
2744         * elf/dl-lookup.c: Increment _dl_num_relocations in the four entry
2745         point functions, not do_lookup since the later can be called more
2746         than once.
2747
2748 1999-02-03  Jakub Jelinek  <jj@ultra.linux.cz>
2749
2750         * sysdeps/generic/segfault.c: Add ADVANCE_STACK_FRAME
2751         macro, so that architectures which need to add some special
2752         offset to stack pointer can share this file.
2753
2754         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: New file.
2755         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: New file.
2756         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h: New file.
2757         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: New file.
2758
2759         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/mman.h: Remove.
2760         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/mman.h: Remove.
2761         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: New file - common
2762         between sparc32 and sparc64.
2763
2764         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Remove.
2765         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Remove.
2766         * sysdeps/unix/sysv/linux/sparc/vfork.S: New file - common
2767         between sparc32 and sparc64.
2768
2769         * sysdeps/unix/sysv/linux/sparc/sparc32/fork.S: Remove.
2770         * sysdeps/unix/sysv/linux/sparc/sparc64/fork.S: Remove.
2771         * sysdeps/unix/sysv/linux/sparc/fork.S: New file - common
2772         between sparc32 and sparc64.
2773
2774         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.S: Remove.
2775         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.S: Remove.
2776         * sysdeps/unix/sysv/linux/sparc/sysdep.S: New file - common
2777         between sparc32 and sparc64.
2778
2779 1999-02-07  Ulrich Drepper  <drepper@cygnus.com>
2780
2781         * Versions.def: New version GLIBC_2.1.1 for libc.
2782         * stdlib/Versions: Add _Exit, imaxdiv, and imaxdiv to GLIBC_2.1.1.
2783         * stdlib/labs.c: Moved to...
2784         * sysdeps/generic/labs.c: ...here.
2785         * stdlib/llabs.c: Moved to...
2786         * sysdeps/generic/llabs.c: ...here.
2787         * stdlib/stdlib.h: Allow definition of ldiv_t and lldiv_t in other
2788         header.  Declare _Exit.
2789         * sysdeps/generic/_exit.c: Add alias _Exit.
2790         * sysdeps/mach/hurd/_exit.c: Likewise.
2791         * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
2792         * sysdeps/standalone/i960/nindy960/_exit.c: Likewise.
2793         * sysdeps/standalone/m68k/m68020/mvme136/_exit.c: Likewise.
2794         * sysdeps/unix/_exit.c: Likewise.
2795         * sysdeps/wordsize-32/inttypes.h: Define imaxdiv_t and declare
2796         imaxdiv and imaxabs.  Declare lldiv_t if necessary.
2797         * sysdeps/wordsize-64/inttypes.h: Likewise.
2798         * sysdeps/wordsize-32/llabs.c: New file.
2799         * sysdeps/wordsize-32/lldiv.c: New file.
2800         * sysdeps/wordsize-64/labs.c: New file.
2801         * sysdeps/wordsize-64/ldiv.c: New file.
2802         * manual/arith.texi: Document imaxabs, imaxdiv_t, and imaxdiv.
2803         * manual/startup.texi: Document _Exit.
2804
2805 1999-02-07  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2806
2807         * nscd/cache.c: Include <arpa/inet.h> for inet_ntop.
2808
2809 1999-02-06  Ulrich Drepper  <drepper@cygnus.com>
2810
2811         * Versions.def: Add versions for ld.so.
2812         * csu/Versions: Remove __libc_stack_end here.
2813         * elf/Versions: Split libc definitions in libc and ld.so definitions.
2814         * elf/Makefile (ld-map): Change to ld.so.map.
2815         * scripts/versions.awk: Recognize dot in library names.
2816
2817         * ctype/ctype.h: Remove definitions of __tolower and __toupper.
2818         Don't use __tolower and __toupper in inline functions.
2819         Add optimizing macros for tolower and toupper.
2820         * ctype/ctype-extn.c (_tolower): Don't use __tolower.
2821         (_toupper): Don't use __toupper.
2822         * ctype/ctype.c (tolower): Don't use __tolower.
2823         (toupper): Don't use toupper.
2824
2825         * nscd/cache.c (prune_cache): Correct printing of debugging messages.
2826
2827         * resolv/Versions (libresolv): Export __ns_name_unpack and
2828         __ns_name_ntop.
2829         * resolv/res_comp.c: Rename ns_name_unpack to __ns_name_unpack and
2830         make it global.  Change all users.  Similar for ns_name_ntop.
2831         * resolv/nss_dns/dns-host.c: Don't use dn_expand when extracting in
2832         user-provided buffer.  Use __ns_name_unpack and __ns_name_ntop
2833         directly to detect too small buffer.
2834         * resolv/nss_dns/dns-network.c: Likewise.
2835
2836         * stdio-common/Makefile (tests): Add scanf12.
2837         * stdio-common/scanf12.c: New file.
2838         * stdio-common/scanf12.input: New file.
2839         * stdio-common/vfscanf.c (__vfscanf): Handle +/- at beginning of
2840         floating-point correctly if the number is invalid.
2841
2842         * stdio-common/vfscanf.c: Don't use non-reentrant multibyte conversion
2843         functions.
2844         * stdio-common/printf_fp.c: Likewise.
2845         * stdio-common/printf_fphex.c: Likewise.
2846         * stdio-common/vfprintf.c: Likewise.
2847
2848
2849 See ChangeLog.9 for earlier changes.