40b76c5bae98af4acc5d1361467b1913353ba521
[platform/upstream/glibc.git] / ChangeLog
1 2000-08-19  Andreas Jaeger  <aj@suse.de>
2
3         * malloc/mtrace.pl (usage): Inform about --help.
4
5 2000-08-19  Wolfram Gloger  <wg@malloc.de>
6
7         * malloc/malloc.c (new_heap): try harder to get an aligned chunk of
8         size HEAP_MAX_SIZE.
9
10 2000-08-19  Andreas Jaeger  <aj@suse.de>
11
12         * shlib-versions: Remove libnss_db, libdb and libdb1.
13
14 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
15
16         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
17         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
18         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
19         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
20         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
21         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
22         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
23         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
24         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
25         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
26         getdents.
27         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
28         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
29
30 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
31
32         * include/glob.h (__glob64): Add prototype.
33         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
34         define glob and glob_in_dir.
35         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
36         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
37         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
38         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
39         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
40         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
41         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
42         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
43
44 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
45
46         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
47
48 2000-08-17  Andreas Jaeger  <aj@suse.de>
49
50         * math/test-fenv.c (fe_single_test): New function.
51         (fe_env_tests): Use fe_single_test.
52         (feenable_test): New tests for feenable/fedisable and
53         fegetexcpetions.
54         (feexcp_mask_test): New function.
55         (feexcp_nomask_test): New function.
56
57 2000-08-19  Richard Henderson  <rth@cygnus.com>
58
59         * sysdeps/alpha/fpu/fenv_libc.h: New file.
60         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
61         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
62         * sysdeps/alpha/fpu/fesetround.c: Likewise.
63         * sysdeps/alpha/fpu/fegetround.c: Likewise.
64         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
65         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
66         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
67         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
68         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
69         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
70         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
71         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
72         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
73         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
74         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
75         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
76
77 2000-08-19  Andreas Jaeger  <aj@suse.de>
78
79         * elf/constload1.c: Include <stdio.h> for puts prototype.
80
81 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
82
83         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
84         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
85         a dynamically loaded object remove old l_initfini list.
86         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
87         remove some dynamically allocated memory blocks in the dynamic
88         loading data structures.
89         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
90         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
91         Instead call _dl_check_map_versions only for the dependencies.
92         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
93         information of initial objects as not free-able.
94         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
95         element.
96
97         * elf/filter.c: Call mtrace.
98         * elf/restest1.c: Likewise.  Close the objects.
99         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
100         debug information.
101
102         * elf/constload1.c: Add comment explaining not freed memory.
103
104 2000-08-18  Andreas Jaeger  <aj@suse.de>
105
106         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
107         alignment for structs stat and stat64.
108         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
109
110 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
111
112         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
113         handling.  Patch by Richard Henderson <rth@twiddle.net>.
114
115         * nss/Versions: Remove libnss_db information.
116
117 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
118
119         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
120         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
121         * sysdeps/sparc/fpu/fegetexcept.c: New file.
122         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
123
124         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
125         to match Solaris.
126
127 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
128
129         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
130         (_FPU_SETCW): Likewise.
131         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
132
133         * stdio-common/printf_fp.c: Fix chars_needed computation.
134         Patch by Greg McGary <greg@mcgary.org>.
135
136 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
137
138         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
139         _dl_loaded are NULL.
140
141 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
142
143         * manual/arith.texi (feholdexcept): Returns 0 on success.
144
145 2000-08-17  Andreas Jaeger  <aj@suse.de>
146
147         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
148         (ifr_newname): New.
149         Reported by Andi Kleen <ak@suse.de>.
150
151 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
152
153         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
154         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
155         * sysdeps/alpha/fpu/fegetexcept.c: New file.
156
157 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
158
159         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
160         of buf->st_ino and kbuf->st_ino, not __st_ino.
161         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
162         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
163         directive so that only linux/getdents.c is used, not some
164         architecture specific one.
165
166 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
167
168         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
169         enabled, not disabled exceptions.
170         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
171         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
172
173 2000-08-17  Greg McGary  <greg@mcgary.org>
174
175         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
176         from test program name when constructing suffix for $(LDLIBS-*).
177         (bounded-thread-library): New variable.
178         * crypt/Makefile
179         [build-shared, build-static] (libcrypt-dep): Remove variable.
180         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
181         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
182         * linuxthreads/Makefile (libpthread, librt): Remove variables.
183         (librt-tests): Add variable.  (tests): Use it.
184         [build-shared, build-static]
185         ($(addprefix $(objpfx),$(tests)),
186         $(addprefix $(objpfx),$(librt-tests))):
187         Consolidate individual dependencies.
188         [build-bounded]
189         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
190         Add dependencies.
191         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
192         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
193         * misc/Makefile
194         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
195         * rt/Makefile
196         [build-shared, build-static]
197         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
198         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
199
200 2000-08-17  Greg McGary  <greg@mcgary.org>
201
202         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
203         * sysdeps/unix/make-syscalls.sh: Likewise.
204         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
205         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
206         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
207         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
208         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
209
210 2000-08-17  Greg McGary  <greg@mcgary.org>
211
212         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
213         Wrap extern symbols in BP_SYM ().
214         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
215         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
216         * sysdeps/i386/fpu/s_remquo.S: Likewise.
217         * sysdeps/i386/fpu/s_remquof.S: Likewise.
218         * sysdeps/i386/fpu/s_remquol.S: Likewise.
219         * sysdeps/i386/fpu/s_sincos.S: Likewise.
220         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
221         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
222         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
223         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
224
225 2000-08-16  Andreas Schwab  <schwab@suse.de>
226
227         * sysdeps/m68k/fpu/fegetexcept.c: New file.
228         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
229         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
230
231 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
232
233         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
234         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
235         * elf/dl-support.c: Define _nl_nloaded.
236         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
237         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
238         object to global list.
239         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
240         from _dl_loaded list.
241         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
242         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
243         number here.
244
245         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
246         unmask, exceptions.
247         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
248         exceptions.
249         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
250
251 2000-08-16  Andreas Jaeger  <aj@suse.de>
252
253         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
254
255 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
256
257         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
258
259 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
260
261         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
262         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
263         (sysdep_routines): Add oldgetrlimit64.
264         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
265         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
266
267         * include/link.h: Undo last patches.  Hurd now has stat64.
268         * elf/Makefile: Likewise.
269         * elf/dl-load.c: Likewise.
270         * elf/dl-misc.c: Likewise.
271         * elf/dl-profile.c: Likewise.
272         * sysdeps/generic/sysd-link.h: Removed.
273         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
274
275         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
276         thread event callback function.
277         (__aio_notify_only): Use function above.
278         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
279
280 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
281
282         * sysdeps/mach/hurd/lseek64.c: New file.
283
284 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
285
286         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
287         Remove typedefs.
288         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
289         typedefs.
290         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
291         typedefs.
292         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
293
294 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
295
296         * sysdeps/mach/hurd/xstatconv.c: New file.
297         * sysdeps/mach/hurd/fxstat64.c: New file.
298         * sysdeps/mach/hurd/lxstat64.c: New file.
299         * sysdeps/mach/hurd/xstat64.c: New file.
300         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
301
302 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
303
304         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
305         Initialize, needed for change in common symbol handling in newer
306         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
307
308 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
309
310         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
311         * elf/constload2.c: Add destructor to unload constload3.
312
313         * include/link.h: Include sysd-link.h.
314         * sysdeps/generic/sysd-link.h: New file.
315         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
316         * elf/Makefile (distribute): Add sysd-link.h.
317         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
318         types and functions directly.
319         * elf/dl-misc.c: Likewise.
320         * elf/dl-profile.c: Likewise.
321
322         * elf/loadfail.c (main): Close all successfully loaded objects.
323
324         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
325         free wd.
326         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
327         there is already one.
328
329         * elf/dl-close.c: Pretty print.
330
331 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
332
333         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
334         global (with file scope).  Add __libc_subfreeres function to free the
335         string.
336         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
337         in ttyname function.
338
339         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
340
341         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
342
343         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
344         mapping them to /x5c and /x7e respectively.
345
346         * locale/programs/ld-ctype.c: Add support for more definitions after
347         copy statement.
348
349 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
350
351         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
352         * sysdeps/unix/sysv/linux/kernel-features.h
353         (__ASSUME_GETDENTS64_SYSCALL): Define.
354         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
355         syscall if available to get d_type fields.
356         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
357         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
358         __lxstat64): Export at GLIBC_2.2.
359         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
360         Likewise.
361         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
362         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
363         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
364         getdirentries64, versionsort64): Remove.
365         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
366         getdirentries64, versionsort64): Remove.
367
368 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
369
370         * posix/Makefile: Remove rules to generate glob package.
371
372         * posix/Makefile (tests): Add tst-regexloc.
373         (tst-regexloc-ENV): Add LOCPATH.
374         * posix/tst-regexloc.c: New file.
375
376 2000-08-12  Andreas Jaeger  <aj@suse.de>
377
378         * include/features.h (__STDC_ISO_10646__): Define.
379         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
380
381 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
382
383         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
384
385         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
386         for revision 6 and up).
387
388         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
389         including <time.h>.
390         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
391         to get definitions of just these types.
392
393         * signal/signal.h: Define thread signal handling functions also for
394         POSIX95.
395
396         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
397         POSIX95.
398         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
399         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
400         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
401         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
402
403         * sysvipc/sys/shm.h: Define pid_t for XPG.
404
405         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
406         they are not anymore required here.
407
408         * wcsmbs/wchar.h: Make the various wide char string and stream
409         functions available for the respective XPG versions.
410
411         * nss/Makefile: Remove rules to build and distribute nss_db.
412
413         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
414         * sysdeps/generic/scandir64.c: Likewise.
415         * sysdeps/generic/versionsort64.c: Likewise.
416
417 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
418             Benjamin Koznik  <bkoz@redhat.com>
419
420         * libio/fileops.c: Merge with libstdc++-v3.
421         * libio/genops.c: Likewise.
422         * libio/iofclose.c: Likewise.
423         * libio/iofopen.c: Likewise.
424         * libio/iofwide.c: Likewise.
425         * libio/libio.h: Likewise.
426         * libio/libioP.h: Likewise.
427         * libio/stdfiles.c: Likewise.
428         * libio/stdio.c: Likewise.
429         * libio/wfileops.c: Likewise.
430         * libio/wgenops.c: Likewise.
431
432         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
433
434 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
435
436         * locale/programs/localedef.c: Implement --prefix option to allow
437         writing in standard places of alternative install directories.
438
439         * posix/regex.c (compile_range): Implement collation sequence
440         handling for glibc.  Use simple character ordering otherwise and
441         not strcoll.
442
443 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
444
445         * sysdeps/generic/scandir64.c: Include <dirent.h>.
446
447 2000-08-12  Andreas Jaeger  <aj@suse.de>
448
449         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
450         __USE_FILE_OFFSET64 correctly for locking.
451         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
452
453 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
454
455         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
456         Define for 2.4.1 on sparc as well.
457         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
458         for F_GETLK64, F_SETLK64, and F_SETLKW64.
459         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
460         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
461
462 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
463
464         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
465         defined.
466
467 2000-08-12  Andreas Jaeger  <aj@suse.de>
468
469         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
470         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
471
472         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
473         mips2 for assembler.
474
475         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
476         if fnctl64 is not available for F_*LK*64.
477
478         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
479
480 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
481
482         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
483         Define for 2.4.1 on x86.
484         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
485         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
486         for F_GETLK64, F_SETLK64, and F_SETLKW64.
487
488         * dirent/dirent.h: Define DT_WHT.
489
490         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
491         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
492         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
493         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
494         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
495         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
496
497 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
498
499         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
500         lookup, pass pointer to array with NULL pointer [PR libc/1858].
501         * inet/Makefile (tests): Add tst-gethnm.
502         * inet/tst-gethnm.c: New file.
503
504         * rt/aio_cancel.c: If canceling a specific request which is running
505         *really* do nothing.
506         * rt/aio_misc.h: Add `done' to states of a request.
507         * rt/aio_misc.c: Add several tests for the correct state.
508         Simplify request table memory handling.
509
510 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
511
512         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
513         * dirent/scandir64.c: Move...
514         * sysdeps/generic/scandir64.c: ...here.
515         * dirent/alphasort64.c: Move...
516         * sysdeps/generic/alphasort64.c: ...here.
517         * dirent/versionsort64.c: Move...
518         * sysdeps/generic/versionsort64.c: ...here.
519         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
520         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
521         Export symbols at GLIBC_2.2.
522         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
523         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
524         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
525         __versionsort64): Add prototypes.
526         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
527         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
528         unused prototype.
529         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
530         and GLIBC_2.2.
531         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
532         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
533         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
534         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
535         __u_quad_t.
536         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
537         Adjust for kernel-2.4.0-test6 layout.
538         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
539         GLIBC_2.1 and GLIBC_2.2.
540         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
541         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
542         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
543         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
544         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
545         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
546         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
547         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
548         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
549         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
550         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
551         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
552         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
553         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
554         __u_quad_t.
555         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
556         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
557         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
558         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
559         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
560         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
561         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
562         __u_quad_t.
563         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
564         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
565         Define.
566         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
567         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
568         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
569         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
570         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
571         Define.
572         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
573         alpha/readdir.c.
574         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
575         alpha/readdir_r.c
576         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
577         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
578         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
579         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
580         st_ino from __st_ino.
581         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
582         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
583         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
584         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
585         set __st_ino in addition to st_ino.
586         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
587         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
588         __old_getdents64 as well.
589         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
590         getdirentries64 and old_getdirentries64 as well.
591         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
592         __GETDENTS): Define.
593         (GETDENTS64): Remove.
594         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
595         Define.
596         (GETDENTS64): Remove.
597         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
598         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
599         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
600         as well.
601         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
602         __old_readdir64_r as well.
603         * sysdeps/unix/sysv/linux/kernel-features.h: Define
604         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
605
606 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
607
608         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
609         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
610         define of the kernel.
611         Add missing __SEG_PSTKOVF definition.
612         Adjust the padding of struct siginfo and struct sigevent to
613         match the fact that sigval_t is 64 bit.
614
615 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
616
617         * timezone/zic.c: Update from tzcode2000f.
618         * timezone/australasia: Update from tzdata2000f.
619         * timezone/europe: Likewise.
620         * timezone/southamerica: Likewise.
621         * timezone/yearistype: Likewise.
622
623 2000-08-10  Andreas Jaeger  <aj@suse.de>
624
625         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
626         stat with current MIPS kernel.
627
628 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
629
630         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
631         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
632         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
633         Remove the junk that's only relevant in the Linux kernel itself.
634         Add a warning saying that this file is now obsolete, and include
635         <sys/procfs.h>.
636         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
637         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
638         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
639         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
640         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
641         and add the notice that the file is primarily there for GDB.
642         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
643
644 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
645
646         * time/tzfile.c (__tzfile_compute): __tzstring zones
647         from zone_names.
648
649 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
650
651         * resolv/resolv.h (__res_state): Surround prototype with
652         __BEGIN_DECLS/__END_DECLS.
653         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
654
655 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
656
657         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
658         Make independant of asm/resource.h from the Linux kernel.
659
660 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
661
662         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
663
664 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
665
666         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
667         * locale/Makefile (locale-CPPFLAGS): Likewise.
668
669 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
670
671         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
672         for AMD processors.
673
674 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
675
676         * misc/Versions (mincore): Export at GLIBC_2.2.
677
678 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
679
680         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
681
682 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
683
684         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
685         socketpair.  Made socketpair a weak alias.
686         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
687         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
688         conforming, but fall back on the old protocol if the socket server
689         doesn't support it.
690         * include/sys/socket.h: Add prototype for __socketpair.
691
692 2000-08-09  Andreas Schwab  <schwab@suse.de>
693
694         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
695         long long modifier is seen.
696
697         * elf/nodelete.c (do_test): Remove reference to undefined member
698         sa_restorer.
699         * rt/tst-aio4.c (do_test): Likewise.
700
701         * configure.in: Add `-lm' when checking for libgd.
702         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
703         linking.
704
705 2000-08-09  Andreas Jaeger  <aj@suse.de>
706
707         * configure.in: Change required make versions.
708
709         * manual/install.texi (Tools for Compilation): Document required
710         make version.
711         (Supported Configurations): Update list of supported
712         configurations.
713
714 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
715
716         * locale/linereader.c (get_string): Don't print an error is a string
717         contains an unknown character.
718
719 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
720
721         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
722         (new_symbol): Take new parameters with name of the symbol.
723         Adjust callers.
724         (handle_ellipsis): Don't only allow character symbols.
725         (collate_read): Allow string of collating elements contain invalid
726         characters; ignore entry in this case.
727         Handle ellipsis of collating symbols before first order_start.
728         Allow ellipsis in state 0.
729
730 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
731
732         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
733         error message.
734         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
735
736 2000-08-04  Greg McGary  <greg@mcgary.org>
737
738         * posix/regex.c (SET_HIGH_BOUND): New macro.
739         (MOVE_BUFFER_POINTER): Use it.
740         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
741         (EXTEND_BUFFER): Use it.
742
743 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
744
745         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
746         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
747         _wide_data but from _IO_FILE directly.
748         * libio/iofclose.c: Likewise.
749         * libio/wfileops.c: Likewise.
750
751         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
752         * libio/libioP.h: Change prototypes.
753
754 2000-08-03  Greg McGary  <greg@mcgary.org>
755
756         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
757         frame pointer early so that we save caller's frame pointer.
758         * sysdeps/i386/elf/setjmp.S: Likewise.
759
760         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
761         * io/test-utime.c: Test passing NULL as utimbuf* arg.
762
763         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
764         (MOVE_BUFFER_POINTER): Handle high_bound properly.
765         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
766
767 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
768
769         * iconvdata/big5.c: Updated.
770         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
771
772 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
773
774         * Makeconfig (all-subdirs): Add conform.
775         * conform/Makefile: Include ../Rules.
776
777         * Makefile (README): Add rules to generate here as well.
778
779 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
780
781         * version.h (VERSION): Bump to 2.1.92.
782
783         * sysdeps/ia64/Dist: Add _mcount.S.
784
785         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
786
787         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
788
789         * elf/Makefile (distribute): Add missing modules.
790
791         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
792
793         * posix/regex.c (compile_range): Translate range start and end
794         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
795
796         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
797         asm/resource.h.
798
799         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
800
801 2000-08-02  Andreas Jaeger  <aj@suse.de>
802
803         * elf/elf.h (EM_S390): Added.
804         (R_390_*): New relocs for S390.
805
806         * sysdeps/unix/sysv/linux/s390/Dist: New file.
807         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
808         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
809         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
810         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
811         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
812         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
813         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
814         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
815         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
816         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
817         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
818         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
819         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
820         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
821         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
822         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
823         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
824         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
825         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
826         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
827         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
828         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
829         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
830         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
831         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
832         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
833         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
834         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
835         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
836         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
837         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
838         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
839         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
840         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
841         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
842         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
843         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
844         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
845         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
846         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
847         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
848         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
849         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
850         * sysdeps/s390/sysdep.h: New file.
851         * sysdeps/s390/sys/ucontext.h: New file.
852         * sysdeps/s390/sub_n.S: New file.
853         * sysdeps/s390/strncpy.S: New file.
854         * sysdeps/s390/strcpy.S: New file.
855         * sysdeps/s390/stackinfo.h: New file.
856         * sysdeps/s390/setjmp.S: New file.
857         * sysdeps/s390/s390-mcount.S: New file.
858         * sysdeps/s390/mul_1.S: New file.
859         * sysdeps/s390/memusage.h: New file.
860         * sysdeps/s390/memset.S: New file.
861         * sysdeps/s390/memcpy.S: New file.
862         * sysdeps/s390/memchr.S: New file.
863         * sysdeps/s390/machine-gmon.h: New file.
864         * sysdeps/s390/ldbl2mpn.c: New file.
865         * sysdeps/s390/gmp-mparam.h: New file.
866         * sysdeps/s390/fpu/fpu_control.h: New file.
867         * sysdeps/s390/fpu/fesetround.c: New file.
868         * sysdeps/s390/fpu/fegetround.c: New file.
869         * sysdeps/s390/fpu/fclrexcpt.c: New file.
870         * sysdeps/s390/fpu/bits/fenv.h: New file.
871         * sysdeps/s390/ffs.c: New file.
872         * sysdeps/s390/elf/start.S: New file.
873         * sysdeps/s390/elf/setjmp.S: New file.
874         * sysdeps/s390/elf/bsd-setjmp.S: New file.
875         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
876         * sysdeps/s390/dl-machine.h: New file.
877         * sysdeps/s390/bzero.S: New file.
878         * sysdeps/s390/bsd-setjmp.S: New file.
879         * sysdeps/s390/bsd-_setjmp.S: New file.
880         * sysdeps/s390/bits/string.h: New file.
881         * sysdeps/s390/bits/setjmp.h: New file.
882         * sysdeps/s390/bits/huge_val.h: New file.
883         * sysdeps/s390/bits/endian.h: New file.
884         * sysdeps/s390/bits/byteswap.h: New file.
885         * sysdeps/s390/bcopy.S: New file.
886         * sysdeps/s390/backtrace.c: New file.
887         * sysdeps/s390/atomicity.h: New file.
888         * sysdeps/s390/asm-syntax.h: New file.
889         * sysdeps/s390/addmul_1.S: New file.
890         * sysdeps/s390/add_n.S: New file.
891         * sysdeps/s390/abort-instr.h: New file.
892         * sysdeps/s390/__longjmp.c: New file.
893         * sysdeps/s390/Makefile: New file.
894         * sysdeps/s390/Implies: New file.
895         * sysdeps/s390/Dist: New file.
896         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
897
898 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
899
900         Remove incompatible IPv6 extension of RPC.
901         * sunrpc/Makefile: Undo changes.
902         * sunrpc/rpc_main.c: Likewise.
903         * sunrpc/rpc/clnt.h: Likewise.
904         * sunrpc/rpc/svc.h: Likewise.
905         * sunrpc/bindrsvprt6.c: Removed.
906         * sunrpc/clnt_tcp6.c: Removed.
907         * sunrpc/clnt_udp6.c: Removed.
908         * sunrpc/svc_tcp6.c: Removed.
909         * sunrpc/svc_udp6.c: Removed.
910
911         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
912         dgettext, and dcgettetxt.
913
914         * intl/locale.alias: Update japanese aliases.
915
916         * sysdeps/ia64/bits/byteswap.h: New file.
917         Patch by Dan Pop <Dan.Pop@cern.ch>.
918
919         * misc/sys/cdefs.h: Define __attribute_format_arg__.
920         * intl/libintl.h: Use it here instead of using __attribute__ directly.
921
922 2000-07-13  H.J. Lu  <hjl@gnu.org>
923
924         * posix/regex.c (re_max_failures): Set to 4000.
925
926 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
927
928         * gnulib/Makefile (tests): Add tst-gcc.
929         * gnulib/tst-gcc.c: New file.
930
931         * assert/Makefile (routines): Add __assert.
932         * assert/Versions: Export __assert for glibc 2.2.
933         * assert/__assert.c: New file.
934         * assert/assert.h: Declare __assert.
935
936 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
937
938         * locale/localeinfo.h (_ISCTYPE): New macro.
939         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
940         LC_CTYPE locale format.
941         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
942         (ctype_output): Output class_b[nr] right before class_3level[nr].
943         (allocate_arrays): Fill class_b, similarly to class_3level.
944
945 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
946             Joseph S. Myers  <jsm28@cam.ac.uk>
947
948         * math/tgmath.h: Make standard compliant.  Don't ask how.
949
950 2000-07-04  H.J. Lu  <hjl@gnu.org>
951
952         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
953         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
954         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
955
956 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
957
958         * include/features.h (_XOPEN_SOURCE): Update the explanation.
959         (__USE_LARGEFILE): Add an explanation.
960         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
961         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
962
963 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
964
965         * libio/Makefile: Enable exception handling for genops, wgenops,
966         fileops, and wfileops.
967
968 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
969
970         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
971         acount that elf/rtld's main program might remove some varibales
972         from the environment if we're trying to be secure.  Move the Hurd
973         startup data if necessary, or, if we there is no startup data,
974         make sure the magical convention that ARGV[0] is stored just after
975         the environment list.
976
977 2000-08-01  Philip Blundell  <philb@gnu.org>
978
979         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
980         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
981         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
982         oldsetrlimit for GLIBC_2.0.
983
984 2000-08-01  Andreas Jaeger  <aj@suse.de>
985
986         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
987         (LINE_PARSER): Allow any number of spaces between ip address and
988         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
989
990         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
991
992         * include/netdb.h: Remove getipnodebyaddr and friends, leave
993         constants in.
994
995         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
996         _nss_nisplus_getipnodebyname_r.
997
998         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
999         now, getipnodebyname is deprecated.
1000         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
1001         Likewise.
1002
1003         * inet/Makefile (routines): Don't build getipnodebyaddr and
1004         friends.
1005
1006         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
1007
1008         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
1009
1010         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
1011
1012         * wctype/Makefile (distribute): Add wchar-lookup.h.
1013
1014         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
1015
1016         * iconvdata/Makefile (distribute): Add isiri-3342.h.
1017
1018 2000-08-01  Andreas Schwab  <schwab@suse.de>
1019
1020         * Make-dist (dist): Resolve `..' in file names.
1021
1022 2000-08-01  Andreas Jaeger  <aj@suse.de>
1023
1024         * stdio-common/Makefile (distribute): Remove removed files, add
1025         new files.
1026
1027         * Makefile (distribute): Remove include/db_185.h and db.h.
1028
1029         * include/db_185.h: Remove, it's not needed anymore.
1030         * include/db.h: Likewise.
1031
1032 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
1033
1034         * inet/Makefile (tests): Remove tst-ipnode.
1035         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
1036         now.
1037
1038 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
1039
1040         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
1041         endp statements have already been added.
1042
1043 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
1044
1045         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
1046         <sysdeps/ia64/sysdep.h>.
1047
1048         * sysdeps/ia64/_mcount.S: New file.
1049
1050         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
1051         __gmon_start__.  Fix up extraneous whitespace.
1052
1053 2000-01-12  H.J. Lu  <hjl@gnu.org>
1054
1055         * sysdeps/ia64/elf/initfini.c: New file.
1056
1057 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
1058
1059         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
1060         dependency between branch and ar.pfs write.
1061
1062 2000-07-31  H.J. Lu  <hjl@gnu.org>
1063
1064         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
1065         handle the wchar_t array.
1066
1067 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
1068
1069         * iconvdata/gb18030.c: Don't map to and from positions in ISO
1070         10646 which are not yet assigned.
1071         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
1072
1073 2000-07-31  Andreas Jaeger  <aj@suse.de>
1074
1075         * inet/Versions: Remove getipnodebyaddr and friends from
1076         GLIBC_2.2.
1077
1078         * resolv/netdb.h: Remove getipnodebyaddr and friends.
1079
1080 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1081
1082         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
1083         ch >= 0x81 && ch2 < 0x40 as invalid.
1084
1085 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1086
1087         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
1088         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
1089
1090 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1091
1092         * iconvdata/johab.c (BODY for TO_LOOP): After calling
1093         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
1094
1095 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1096
1097         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
1098         0xb8.
1099         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
1100
1101 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1102
1103         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
1104
1105 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1106
1107         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
1108         (from_ucs4): Change values of U+00A4 and U+00ED.
1109         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
1110
1111 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1112
1113         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
1114         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
1115
1116 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1117
1118         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
1119         * iconvdata/isiri-3342.h: New file.
1120         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
1121         treat 0x80 as a gap.
1122
1123 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
1124
1125         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
1126         (utf8_encode): Use simple shifts instead.  Fix return value.
1127
1128 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
1129
1130         * timezone/private.h: Update from tzcode2000e.
1131         * timezone/asia: Update from tzdata2000e.
1132         * timezone/australasia: Likewise.
1133         * timezone/europe: Likewise.
1134         * timezone/northamerica: Likewise.
1135         * timezone/zone-tab: Likewise.
1136
1137 2000-07-30  Ralf Baechle  <ralf@gnu.org>
1138
1139         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
1140         the order of struct sigaltstack members is different.
1141
1142 2000-07-26  Philip Blundell  <philb@gnu.org>
1143
1144         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
1145
1146 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
1147
1148         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
1149         * locale/programs/ld-ctype.c: Adjust for this.
1150
1151         * locale/programs/ld-collate.c: Add more alignment checks.
1152         * locale/string/strcoll.c: Likewise.
1153
1154 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
1155
1156         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
1157         outside USE_IN_LIBIO block.
1158
1159 2000-07-26  Philip Blundell  <philb@gnu.org>
1160
1161         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
1162         (elf_machine_rel): Use it for out-of-range PC24 relocs.
1163
1164 2000-07-28  Philip Blundell  <philb@gnu.org>
1165
1166         * math/test-fpucw.c: Ignore reserved bits in control word.
1167
1168 2000-07-28  Philip Blundell  <philb@gnu.org>
1169
1170         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
1171         (ret): Redefine to PSEUDO_RET.
1172         (PSEUDO): Remove jump to syscall_error.
1173
1174 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
1175
1176         * resolv/README: Add some information about using the resolver in
1177         multi-threaded code and with C++.  Spelling fixes.
1178
1179 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
1180
1181         * resolv/resolv.h (struct __sockaddr_in): Remove.
1182         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
1183
1184 2000-07-29  Greg McGary  <greg@mcgary.org>
1185
1186         * Rules (test-bp-inputs, make-test-out): New variables.
1187         ($(objpfx)%-bp.out): New rule.
1188         ($(objpfx)%.out): Rewrite in terms of new variables.
1189
1190         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
1191         internal function that uses vtable.
1192         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
1193         * libio/vswprintf.c (_IO_vswprintf): Likewise.
1194
1195         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
1196         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
1197         (chunk_align): Likewise.
1198
1199         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
1200         in a way that conforms to decl, and avoids spurious bounds violation.
1201
1202         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
1203         * sysdeps/generic/frame.h: Likewise.
1204         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
1205         around return value.
1206         (__backtrace): Qualify frame-pointer chain and return address
1207         pointers as __unbounded.  Wrap bounds around variable `current'.
1208         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
1209         around return value.
1210         (catch_segfault): Qualify frame-pointer chain and return address
1211         pointers as __unbounded.  Wrap bounds around variable `current'.
1212         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
1213         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
1214         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
1215         __unbounded.
1216         (__backtrace): Qualify frame-pointer chain and return address
1217         pointers as __unbounded.  Wrap bounds around variable `current'.
1218
1219         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
1220         * sysdeps/i386/mul_1.S: Likewise.
1221         * sysdeps/i386/submul_1.S: Likewise.
1222         * sysdeps/i386/i586/addmul_1.S: Likewise.
1223         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
1224         * sysdeps/i386/i586/submul_1.S: Likewise.
1225
1226 2000-07-27  Andreas Jaeger  <aj@suse.de>
1227
1228         * libio/Depend: New file, libio needs localedata for tests.
1229         * posix/Depend: Likewise.
1230
1231 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
1232
1233         * stdio-common/_i18n_itoa.c: Removed.
1234         * stdio-common/_i18n_itoa.h: Removed.
1235         * stdio-common/_i18n_itowa.c: Removed.
1236         * stdio-common/_i18n_itowa.h: Removed.
1237         * stdio-common/_i18n_number.h: New file.
1238         * stdio-common/Depend: New file.
1239         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
1240         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
1241         printing.  Change printing of numbers with locale specific digits to
1242         use new code in _i18n_number.h.
1243         * stdio-common/Makefile (routines): Remove _i18n_itoa and
1244         _i18n_itowa.
1245
1246         * stdio-common/bug13.c: Improve messages.
1247
1248         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
1249         (set_class_defaults): Always search also for Uxxxx names.
1250         Detect insufficient number of outdigits.
1251
1252         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
1253
1254 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
1255
1256         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
1257         _NL_CTYPE_MAP_NAMES.
1258         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
1259         * wctype/wcfuncs.c (towlower, towupper): Use them.
1260         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
1261         * wctype/wctrans.c (wctrans): Likewise.
1262         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1263
1264 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
1265
1266         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
1267         Use the optimized version of this function outside glibc as well.
1268
1269 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
1270
1271         * locale/indigits.h (indigit_value): Correct.
1272         * locale/indigitswc.h (indigitwc_value): Correct.
1273         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
1274         conversion, add GROUP checking for it, fix GROUP number
1275         conversion with strlen(thousands) > 1.
1276         Honour width correctly in the presence of floating
1277         decimal points and thousands separators.
1278         * stdio-common/tst-sscanf.c: New test.
1279         * stdio-common/Makefile: Add it to tests.
1280         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
1281         thousands separators and group argument is non-zero.
1282
1283 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
1284
1285         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
1286         starts at GLIBC_2.2.
1287
1288 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1289
1290         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
1291         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
1292         _test_and_set.
1293         (headers): Add sys/tas.h.
1294         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
1295         GLIBC_2.2 from libc.
1296         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
1297         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
1298         _test_and_set.
1299
1300 2000-07-28  Andreas Jaeger  <aj@suse.de>
1301
1302         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
1303
1304         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
1305         ($(objpfx)tst-dladdr.out): new.
1306         (tests): Add tst-dladdr.
1307         ($(objpfx)glrefmain): Use libdl.
1308
1309         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
1310         <vs@caldera.de>.
1311
1312 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
1313
1314         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
1315         ftruncate(64) calls.
1316
1317 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
1318
1319         * intl/tst-translit.c: Include string.h to get prototype for
1320         strcmp().
1321
1322 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
1323
1324         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
1325         name and add weak alias for __fork.
1326
1327         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
1328         & pwrite to use __libc_<name> as strong names instead of
1329         __syscall_<name>.
1330
1331         * include/sched.h: Add clone2 prototype.
1332
1333 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
1334
1335         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
1336         procedure name twice.
1337
1338 2000-07-27  Philip Blundell  <philb@gnu.org>
1339
1340         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
1341
1342 2000-07-27  Andreas Jaeger  <aj@suse.de>
1343
1344         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
1345         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
1346         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1347         Reported by Andi Kleen <ak@suse.de>.
1348
1349         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
1350         (do_wait): Test requests with aio_return64.
1351         (do_test): Change callers of do_wait.
1352
1353 2000-07-26  Andreas Jaeger  <aj@suse.de>
1354
1355         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
1356         (do_wait): Test requests with aio_return.
1357         (do_test): Change callers of do_wait.
1358
1359 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
1360
1361         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
1362         from request list.  Don't do the list handling here, call
1363         __aio_remove_request.
1364         * rt/aio_misc.h: Add prototype for __aio_remove_request.
1365         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
1366         request might already be processed.  Don't do the list handling
1367         here, call __aio_remove_request.
1368
1369         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
1370         LIO_DSYNC.
1371
1372         * rt/aio_misc.c: Add comment explaining why writer memory barriers
1373         are missing.
1374
1375 2000-07-27  Greg McGary  <greg@mcgary.org>
1376
1377         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
1378         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
1379         in union init.  Pass zero for ignored semnum arg to semctl.
1380         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
1381
1382 2000-07-26  Greg McGary  <greg@mcgary.org>
1383
1384         * sysdeps/gnu/bits/msq.h: Qualify kernel's
1385         data structure pointers as __unbounded.
1386         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
1387         * sysdeps/generic/bp-semctl.h: New file.
1388         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
1389         pointers as __unbounded.  Check bounds of syscall args.
1390         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1391         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
1392         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
1393         * sysdeps/unix/sysv/linux/semop.c: Likewise.
1394         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
1395         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1396         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
1397         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
1398         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
1399         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
1400         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
1401         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
1402         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
1403         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
1404         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
1405         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
1406
1407 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
1408
1409         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
1410         by default.
1411         * locale/C-ctype.c: Likewise.
1412         * wcsmbs/wcsmbsload.c: Likewise.
1413
1414 2000-07-26  Greg McGary  <greg@mcgary.org>
1415
1416         * Makeconfig (+link-bounded, link-libc-bounded,
1417         link-extra-libs-bounded): New variables.
1418         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
1419         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
1420         * Rules (tests-bp.out): New variable.
1421         (tests): Conditionally add BP tests.
1422         (binaries-bounded): Add variable and associated rule.
1423         * csu/Makefile [build-bounded] (extra-objs, install-lib):
1424         Move conditional stuff after place where condition is defined.
1425
1426         * malloc/malloc.c (bp-checks.h): Add #include.
1427         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
1428         (_bin_at): Add unbounded version of bin_at.
1429         (IAV, chunk_alloc): Use unbounded _bin_at.
1430         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
1431         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
1432         Wrap BOUNDED_N around return value.
1433         (chunk_realloc): Adjust oldsize once.
1434
1435         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
1436         (__ubp_memchr): Add correct decl.
1437         (_CHECK_STRING): Use __ubp_memchr.
1438         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
1439         New alias for unbounded-pointer __memchr.
1440         * sysdeps/i386/memchr.S: Likewise.
1441         * sysdeps/ia64/memchr.S: Likewise.
1442         * sysdeps/m68k/memchr.S: Likewise.
1443         * sysdeps/sparc/sparc32/memchr.S: Likewise.
1444         * sysdeps/sparc/sparc64/memchr.S: Likewise.
1445         * sysdeps/vax/memchr.s: Likewise.
1446
1447         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
1448         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
1449         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
1450         * sysdeps/i386/i686/strtok.S: Likewise.
1451         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
1452         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
1453
1454         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
1455         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
1456
1457         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
1458         bounds of copy_result to mount_proc.
1459
1460 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
1461
1462         * wctype/wctype.h (__wctrans_l): New declaration.
1463         * wctype/wctrans_l.c: New file.
1464         * wctype/Makefile (routines): Add wctrans_l.
1465
1466 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
1467
1468         * posix/fnmatch_loop.c: Fixes for use outside glibc.
1469         Patch by MacGyver <macgyver@tos.net>.
1470
1471 2000-07-26  Andreas Jaeger  <aj@suse.de>
1472
1473         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
1474         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
1475         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
1476
1477         * rt/tst-aio.c (test_file): Fix typo.
1478         * rt/tst-aio64.c (test_file): Likewise.
1479
1480         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
1481         * rt/Makefile: Add rules to build and run tst-aio3.
1482
1483         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
1484         it's not needed and confuses only.
1485
1486 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
1487
1488         * resolv/res_init.c: Add support for nameserver communication with
1489         IPv6.
1490         * resolv/res_send.c: Likewise.
1491         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
1492         in nsaddrs field.
1493         Patch by <venaas@nvg.ntnu.no>.
1494
1495 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
1496
1497         * locale/programs/ld-ctype.c (wctype_table_get): New function.
1498         (wcwidth_table_get): New function.
1499         (wcwidth_table_add): Call it.
1500         (wctrans_table_get): New function.
1501         (wctrans_table_add): Call it.
1502
1503 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
1504
1505         * rt/lio_listio.c (lio_listio): Always disable individual
1506         notification.
1507         * rt/Makefile: Add rules to build and run tst-aio2.
1508         * rt/tst-aio2.c: New file.
1509
1510         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
1511         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
1512
1513 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
1514
1515         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
1516         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
1517         leading and trailing spaces from host, user and domain name.
1518
1519 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
1520
1521         * csu/defs.awk: Add support for need_endp.
1522
1523 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
1524
1525         * resolv/resolv.h: Remove __P from res_send_qhook and
1526         res_send_rhook typedefs.
1527
1528 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
1529
1530         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
1531
1532 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
1533
1534         * iconv/gconv_builtin.h: Add WCHAR_T alias.
1535
1536 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
1537
1538         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
1539         calling thread, set the cancellation flag and return success
1540         instead of EINTR.
1541
1542 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
1543
1544         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
1545         * libio/tst-widetext.c: New file.
1546         * libio/tst-widetext.input: New file.
1547
1548         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
1549
1550         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
1551         empty external buffer correctly.
1552
1553 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1554
1555         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
1556         __STRING(entry) and not #entry.
1557         (_RTLD_EPILOGUE): Likewise.
1558         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1559
1560 2000-07-25  Andreas Jaeger  <aj@suse.de>
1561
1562         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
1563         according to changes in test program, run also with static only
1564         builds.
1565         ($(objpfx)tst-printf.out): Likewise.
1566
1567         * stdio-common/tst-unbputc.sh: Likewise.
1568         * stdio-common/tst-printf.sh: Likewise.
1569
1570 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
1571
1572         * libio/wfileops.c (_IO_wdo_write): Correct return value.
1573
1574         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
1575         loop.
1576
1577         * libio/fileops.c: Pretty print.
1578
1579 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
1580
1581         * wctype/wchar-lookup.h: New file.
1582         * wctype/iswctype.c: Include "wchar-lookup.h".
1583         (__iswctype): Support alternate locale format with 3-level tables.
1584         * wctype/iswctype_l.c (__iswctype_l): Likewise.
1585         * wctype/towctrans.c (__towctrans): Likewise.
1586         * wctype/towctrans_l.c (__towctrans_l): Likewise.
1587         * wctype/wcfuncs.c: Include "wchar-lookup.h".
1588         (__ctype32_wctype, __ctype32_wctrans): Declare external.
1589         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
1590         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
1591         __iswxdigit, towlower, towupper): Support alternate locale format
1592         with 3-level tables.
1593         * wctype/wcextra.c (iswblank): Likewise.
1594         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
1595         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1596         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1597         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
1598         format with 3-level tables.
1599         * wctype/wcextra_l.c (__iswblank_l): Likewise.
1600         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
1601         format, return a 3-level table pointer.
1602         * wctype/wctype_l.c (__wctype_l): Likewise.
1603         * wctype/wctrans.c (wctrans): Likewise.
1604         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
1605         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
1606         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
1607         (iswctype): Remove macro definition.
1608         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
1609         (internal_wcwidth): Support alternate locale format with 3-level
1610         tables.
1611         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
1612         New nl_items.
1613         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
1614         Define them as being type "word".
1615         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
1616         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
1617         __ctype32_width): New exported variables.
1618         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
1619         alternate locale format. Don't initialize __ctype_names and
1620         __ctype_width in the alternate locale format.
1621         * locale/programs/localedef.h (oldstyle_tables): New declaration.
1622         * locale/programs/localedef.c (oldstyle_tables): New variable.
1623         (OPT_OLDSTYLE): New macro.
1624         (options): Add --old-style option.
1625         (parse_opt): Handle --old-style option.
1626         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
1627         map_offset, class_3level, map_3level, width_3level members.
1628         (ctype_output): Support for alternate locale format: Computation of
1629         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
1630         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
1631         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
1632         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
1633         now contain both class and map tables.
1634         (struct wctype_table): New type.
1635         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
1636         functions.
1637         (struct wcwidth_table): New type.
1638         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
1639         functions.
1640         (struct wctrans_table): New type.
1641         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
1642         functions.
1643         (allocate_arrays): Support for alternate locale format: Set
1644         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
1645         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
1646         to the first 256 characters. Compute ctype->map_3level. Set
1647         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
1648         instead of ctype->width.
1649
1650 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
1651
1652         * libio/iogetwline.c (_IO_getwline_info): Use wide character
1653         string functions.
1654
1655 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
1656
1657         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
1658         in wide characters, not bytes.
1659         * libio/tst_putwc.c (do_test): Add test for writing lots of data
1660         into file.
1661
1662 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
1663
1664         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
1665         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
1666         LC_MEASUREMENT, LC_IDENTIFICATION.
1667
1668         * locale/xlocale.h (struct __locale_struct): Increase size of
1669         __locales array.
1670         * locale/duplocale.c (__duplocale): Copy newly added categories as
1671         well.
1672         * locale/freelocale.c (__freelocale): Free newly added categories.
1673         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
1674         If a base is given, use it, don't simply return it.
1675
1676 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
1677
1678         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
1679         variables, copied_key and copied_salt, instead of boolean variables.
1680
1681 2000-07-24  Andreas Jaeger  <aj@suse.de>
1682
1683         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
1684         check for offset.
1685
1686         * grp/initgroups.c (initgroups_dyn_function): Renamed from
1687         initgroups_function, adopted prototype for change from 2000-07-23.
1688         (initgroups): Follow type change.
1689
1690         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
1691         & PAGE_MASK case, reformat.
1692
1693         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
1694         from stdin and setup environment.
1695
1696 2000-07-24  Andreas Schwab  <schwab@suse.de>
1697
1698         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
1699
1700 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
1701
1702         * string/endian.h: Explain the _*_ENDIAN constant values a bit
1703         more.  Patch by scarlet@mit.edu [PR libc/1799].
1704
1705         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
1706         [PR libc/1792].
1707
1708         * argp/argp-parse.c (parser_finalize): Reverse order in which
1709         parsers are run for ARGP_KEY_END.  [PR libc/1755].
1710
1711         * grp/initgroups.c (initgroups): Don't limit the possible number
1712         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
1713         the setgroups call while the call fails and descrease the number
1714         of groups each round.
1715         The name of the initgroups function in the NSS modules changed.
1716         (compat_call): Adapt for dynamic resizing.
1717         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
1718         Implement dynamic resizing.
1719         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
1720         Likewise.
1721         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
1722         * hesiod/Versions: Change exported interface name.
1723         * nis/Versions: Change exported interface name.
1724
1725 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
1726
1727         * locale/iso-639.def: Some errors corrected.
1728         Patch by Keld Simonsen.
1729
1730         * include/limits.h: Update non-gcc portion.
1731         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
1732
1733 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
1734
1735         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
1736         program's data space, reallocate only the space that was just
1737         deallocated to release its backing space.
1738
1739 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
1740
1741         * stdio-common/vfprintf.c (process_string_arg): For wide character
1742         version, handle precision also correctly.
1743
1744         * nss/nss_files/files-hosts.c: Correct problem with three or more
1745         entries with the same name.
1746
1747         * nss/nss_files/files-hosts.c: Implement multi handling.
1748         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
1749
1750 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
1751
1752         * nss/nss_files/files-parse.c: Don't pollute namespace by using
1753         strcasecmp.
1754
1755         * grp/Makefile: Change Makefiles and tests to run only when necessary.
1756         * malloc/Makefile: Likewise.
1757         * malloc/tst-mtrace.sh: Likewise.
1758         * posix/Makefile: Likewise.
1759         * posix/globtest.sh: Likewise.
1760         * posix/wordexp-tst.sh: Likewise.
1761         * string/Makefile: Likewise.
1762
1763 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
1764
1765         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
1766         size instead of LC_ALL to take into account the new locale
1767         categories.
1768
1769 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
1770
1771         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
1772         remainders of hash table.
1773         * locale/categories.def: Remove remainders of transliteration
1774         hash table.
1775         * locale/langinfo.h: Likewise.
1776         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
1777         transliteration tables.
1778
1779         * locale/gen-translit.pl: New file.
1780         * locale/C-translit.h.in: New file.
1781         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
1782         data pointers with data from this file.
1783         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
1784         and gen-translit.pl.
1785         Add rule to generate C-translit.h.
1786         * intl/tst-translit.c (main): Update for now performed
1787         transliteration.
1788
1789         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
1790         (it's no input error).
1791         * stdio-common/tstscanf.c: Add test case for format %f with input --.
1792         * stdio-common/scanf12.c: Correct expected result for first scanf.
1793
1794         * stdio-common/vfprintf.c (process_string_arg): Correct handling
1795         of multibyte character strings in %s format with precision.
1796
1797 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
1798
1799         * locale/programs/ld-collate.c (collate_read): Allow collating
1800         symbols and elements be named in reorder-after instructions.
1801         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
1802
1803         * locale/programs/ld-collate.c (handle_ellipsis): Test for
1804         duplication with generated name, not the name of the first
1805         character.
1806         Patch by Yong Li <yong.li@asu.edu>.
1807
1808         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
1809         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1810
1811 2000-07-21  Wolfram Gloger  <wg@malloc.de>
1812
1813         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
1814         allocations only if a non-main arena cannot be extended.
1815
1816 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
1817
1818         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
1819         in DF_1_NODEFLIB handling.
1820
1821 2000-07-21  Andreas Jaeger  <aj@suse.de>
1822
1823         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
1824         own rule.
1825
1826         * libio/fwide.c: Include <wchar.h> for prototype.
1827
1828 2000-07-21  Greg McGary  <greg@mcgary.org>
1829
1830         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
1831         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
1832         Define in terms of chunk_at_offset.
1833         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
1834         (next_bin, prev_bin): offset by size of real array elements.
1835         (chunk_align): Make `m' a scalar, since that's how it's used.
1836
1837 2000-07-21  Greg McGary  <greg@mcgary.org>
1838
1839         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
1840         UNCHECK_BOUNDS.
1841         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
1842         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
1843         Wrap bounds around argv & envp and each of their string members.
1844         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
1845         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
1846         symbol in BP_SYM ().  Discard bounds of address arg.
1847         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1848         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
1849         Discard bounds on address arg, add bounds to return value.
1850
1851 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
1852
1853         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
1854         * elf/filter.c: New file.
1855         * elf/filtmod1.c: New file.
1856         * elf/filtmod2.c: New file.
1857
1858         * elf/rtld.c: Define _dl_bind_not variable.
1859         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
1860         * elf/dl-support.c: Likewise.
1861         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
1862         * elf/dl-runtime.c (fixup): Don't remember looked up value if
1863         _dl_bind_not.
1864         (profile_fixup): Likewise.
1865
1866         * libio/Makefile (routines): Add fwide.
1867         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
1868         fwide now.  Internal calls to _IO_fwide must do locking themselves
1869         or don't need locking.
1870         * libio/fwide.c: New file.
1871
1872         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
1873
1874         * elf/Makefile: Add no modules for nodelete test.
1875         * elf/nodelmod3.c: New file.
1876         * elf/nodelmod4.c: New file.
1877         * elf/nodelete.c: Also test case where dependency of dlopen() object
1878         is marked nodelete.
1879
1880         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
1881         * elf/nodlopen.c: New file.
1882         * elf/nodlopenmod.c: New file.
1883         * include/dlfcn.h: Define __RTLD_DLOPEN.
1884         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
1885         and this is a dlopen() call, do not load the binary.
1886         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
1887         * dlfcn/dlopenold.c: Likewise.
1888         * configure.in: Add test for -z nodelete option.
1889         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
1890
1891 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
1892
1893         Make Hesiod NSS module thread-safe.
1894
1895         * hesiod/README.hesiod: Update.
1896
1897         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
1898         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
1899         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
1900         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
1901         hesiod-proto.
1902         * hesiod/nss_hesiod/hesiod-init.c: New file.
1903         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
1904         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
1905         * hesiod/nss_hesiod/nss_hesiod.h: New file.
1906         * hesiod/nss_hesiod/hesiod-service.c
1907         (_nss_hesiod_getservbyport_r): New function.  Provide support for
1908         looking up services by port number.
1909         * hesiod/nss_hesiod/hesiod-proto.c: New file.
1910
1911         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
1912         * hesiod/hesiod.h: Likewise.
1913         * hesiod/hesiod_p.h: Likewise.
1914
1915 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
1916
1917         Fix problems with `struct __res_state' getting too big.
1918         * resolv/resolv.h (struct __sockaddr_in): New definition.
1919         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
1920         the private parts of the structure to save some space.
1921         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
1922         (struct sockaddr_in *) in call to sock_eq.
1923         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
1924
1925 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
1926
1927         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
1928         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
1929         with nodelete.
1930         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
1931         to _dl_map_object.  Return immediately if no object loaded.
1932         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
1933         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
1934         if it exists into l_flags_1 word.
1935         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
1936         it to determine whether loading is wanted or not.
1937         (_dl_map_object): Likewise.
1938         Call _dl_map_object_from_fd with new parameter.
1939         * sysdeps/generic/ldsodefs.h: Update prototype.
1940         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
1941         * elf/rtld.c: Likewise.
1942         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1943         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
1944         * elf/noload.c: New file.
1945         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
1946         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
1947         * sysdeps/mips/bits/dlfcn.h: Likewise.
1948         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
1949         (tests-nodelete-yes): Define.
1950         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
1951         Add rules to build nodelete and modules.
1952         * elf/nodelete.c: New file.
1953         * elf/nodelmod1.c: New file.
1954         * elf/nodelmod2.c: New file.
1955         * configure.in: Add test for -z nodelete option.
1956         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
1957
1958         * libio/Makefile (tests): Add tst_wprintf2.
1959         (tst_wprintf2-ARGS): Define.
1960         * libio/tst_wprintf2.c: New file.
1961         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
1962
1963         * libio/wfiledoalloc.c: Only allocate external buffer if this
1964         hasn't happened yet.
1965
1966         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
1967         something in the buffer.  gconv call can write up to end of the
1968         buffer, not only _IO_write_end.
1969         (_IO_wfile_overflow): Allocate also external buffer.
1970
1971 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
1972
1973         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
1974         strings with precision in vfwprintf correctly.
1975         * stdio-common/vfprintf.c: Fix completely broken handling of
1976         unbuffered wide character streams.
1977         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
1978
1979         * resolv/Makefile (distribute): Add README.
1980
1981         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
1982
1983 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
1984
1985         Update resolver code to BIND 8.2.3-T5B.
1986
1987         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
1988         __res_nclose.
1989         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
1990         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
1991         __res_search.
1992         * resolv/Banner: BIND-8.2.3-T5B.
1993
1994         * resolv/base64.c: Update from BIND 8.2.3-T5B.
1995         * resolv/herror.c: Likewise.
1996         * resolv/inet_addr.c: Likewise.
1997         * resolv/inet_net_ntop.c: Likewise.
1998         * resolv/inet_net_pton.c: Likewise.
1999         * resolv/inet_neta.c: Likewise.
2000         * resolv/inet_ntop.c: Likewise.
2001         * resolv/nsap_addr.c: Likewise.
2002         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
2003         IPv6 addresses (ISC bug #520).
2004
2005         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
2006         * resolv/ns_parse.c: Likewise.
2007         * resolv/ns_netint.c: Likewise.
2008         * resolv/ns_samedomain.c: Likewise.
2009         * resolv/ns_ttl.c: Likewise.
2010         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
2011         RCS ID in object file.
2012
2013         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
2014         * resolv/res_mkquery.c: Likewise.
2015         * resolv/res_query.c: Likewise.
2016         * resolv/res_init.c: Likewise.
2017         (res_setoptions): Mark internal.
2018         * resolv/res_send.c: Likewise.
2019         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
2020         by using poll instead.
2021         * resolv/res_comp.c: Likewise.
2022         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
2023         weak alias for __dn_expand.
2024         * resolv/res_data.c: Likewise.
2025         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
2026         in _res.options.  Avoids a potential security risk by avoiding a
2027         close (0).
2028         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
2029         res_mkquery, res_query, res_querydomain adn res_search weak
2030         aliases for __res_mkquery, __res_query, __res_querydomain and
2031         __res_search.
2032         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
2033         instead to avoid close(0).
2034         (res_init): Always use the static resolver context.
2035         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
2036         alias for __res_init.
2037
2038         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
2039         RES_SET_H_ERRNO and accompanying comment to...
2040         * include/resolv.h: ... here.
2041
2042         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
2043         * resolv/arpa/nameser_compat.h: Likewise.
2044
2045 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
2046
2047         * nss/makedb.c (main): Compare result of load_db with
2048         NSS_STATUS_SUCCESS and not 0.
2049         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
2050
2051         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
2052
2053 2000-07-18  Greg McGary  <greg@mcgary.org>
2054
2055         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
2056         (EXTEND_BUFFER): Use it.
2057
2058 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
2059
2060         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
2061         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
2062         __builtin_return_address.
2063         * dlfcn/dlopenold.c: Likewise.
2064         * dlfcn/dlsym.c: Likewise.
2065         * dlfcn/dlvsym.c: Likewise.
2066         * elf/dl-profstub.c: Likewise.
2067         * malloc/malloc.c: Likewise.
2068         * sysdeps/generic/machine-gmon.h: Likewise.
2069         Based on a patch by schwidefsky@de.ibm.com.
2070
2071 2000-07-18  Andreas Jaeger  <aj@suse.de>
2072
2073         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
2074         NULL to elf_machine_fixup_plt t argument to silence GCC.
2075
2076         * include/string.h: Add prototype for __memchr.
2077
2078         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
2079
2080         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
2081         instead of memrchr.
2082
2083 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
2084
2085         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
2086
2087         * locale/C-ctype.c: Add initializers for gap elements.
2088         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
2089         for gap elements.
2090
2091 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
2092
2093         * nscd/nscd.c (print_version): Update copyright year.
2094
2095 2000-07-17  Greg McGary  <greg@mcgary.org>
2096
2097         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
2098         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
2099         signature argnames with angle-brackets for use as word delimiters,
2100         and to induce syntax errors for any args not handled.  Split
2101         multi-echo echoes and comment each stage.
2102         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
2103         * sysdeps/unix/inet/syscalls.list: Likewise.
2104         * sysdeps/unix/mman/syscalls.list: Likewise.
2105         * sysdeps/unix/syscalls.list: Likewise.
2106         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2107         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2108         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2109         * sysdeps/unix/sysv/syscalls.list: Likewise.
2110         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
2111
2112         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
2113         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
2114         qualifiers.  Don't check NULL-terminator of argv & envp.
2115         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
2116         unbounded pointer type in word-size assertion.
2117         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
2118         cases to stifle warnings.
2119
2120         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
2121         _IO_file_attach.
2122         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
2123
2124         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
2125         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
2126         ptr as __unbouned.
2127
2128         * Makerules (o-objects): Supplement with $(o-objects$o).
2129         * string/Makefile (o-objects.ob): Add variable to pull
2130         unbounded versions of memcpy, memset and memchr into libc_b.
2131
2132         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
2133         rather than non-existent __ubp_memchr.
2134         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
2135         (_CHECK_STRING, _CHECK_N): New macros.
2136         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
2137         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
2138         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
2139         Add weak alias "memchr".
2140         * sysdeps/generic/memchr.c: Likewise.
2141         * sysdeps/i386/memchr.S: Likewise.
2142         * sysdeps/ia64/memchr.S: Likewise.
2143         * sysdeps/m68k/memchr.S: Likewise.
2144         * sysdeps/sparc/sparc32/memchr.S: Likewise.
2145         * sysdeps/sparc/sparc64/memchr.S: Likewise.
2146         * sysdeps/vax/memchr.s: Likewise.
2147
2148         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
2149
2150         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
2151         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
2152         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
2153         __BOUNDED_POINTERS__.
2154         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
2155         for __BOUNDED_POINTERS__.
2156
2157 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
2158
2159         * iconv/gconv_open.c (__gconv_open): Initialize the __data
2160         field of struct __gconv_trans_data differently.  Don't pass NULL to
2161         trans_init_fct.  Simplify list append operation.
2162
2163 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
2164
2165         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
2166         not only those having tsearch.
2167
2168 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
2169
2170         * locale/langinfo.h: Add placeholder values in enum for removed
2171         LC_CTYPE entries.
2172
2173 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
2174
2175         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
2176         chain if the PHDR check fails.
2177
2178 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
2179
2180         * nss/getent.c (print_hosts): Make sure we always print a space
2181         between numeric addresses and hostnames.
2182
2183 2000-07-17  Wolfram Gloger  <wg@malloc.de>
2184
2185         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
2186         i.e. if n_mmaps_max>0.
2187
2188 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
2189
2190         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
2191         values to remove possible clash with other AI_* constants.
2192         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
2193         hexadecimal constants to stress the fact they're in fact
2194         bit flags.
2195
2196 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
2197
2198         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
2199         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
2200         instead of res_init.
2201
2202 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
2203
2204         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
2205         parameters of memset calls to avoid warnings.
2206
2207 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
2208
2209         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
2210         necessary.
2211
2212         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
2213         Patch by Greg McGary <greg@mcgary.org>.
2214
2215         * io/Makefile (tests): Add tst-getcwd.
2216         * io/tst-getcwd.c: New file.
2217
2218         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
2219
2220 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
2221
2222         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
2223         structure.
2224
2225 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
2226
2227         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
2228         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
2229
2230 2000-07-12  H.J. Lu  <hjl@gnu.org>
2231
2232         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
2233         GLIBC_2.2.
2234         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
2235         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
2236         (sysdep-routines): Add clone2.
2237         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
2238
2239 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
2240
2241         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
2242         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
2243
2244 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
2245
2246         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
2247         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
2248         Change type of si_band from "int" to "long".
2249         (si_imm) [USE_GNU]: Define
2250         (si_isr) [USE_GNU]: Ditto.
2251         (ILL_BREAK) [USE_GNU]: Ditto.
2252         (FPE_DECOVF) [USE_GNU]: Ditto.
2253         (FPE_DECDIV) [USE_GNU]: Ditto.
2254         (FPE_DECERR) [USE_GNU]: Ditto.
2255         (FPE_INVASC) [USE_GNU]: Ditto.
2256         (FPE_INVDEC) [USE_GNU]: Ditto.
2257         (TRAP_BRANCH) [USE_GNU]: Ditto.
2258         (TRAP_HWBKPT) [USE_GNU]: Ditto.
2259
2260 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
2261
2262         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
2263         bits/sigcontext as struct mcontext does not depend on it.
2264
2265         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
2266
2267 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
2268
2269         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
2270
2271 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
2272
2273         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
2274
2275 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
2276
2277         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
2278
2279 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
2280
2281         * intl/Makefile (test-srcs): Add tst-translit.
2282         (tests): Likewise.
2283         Add rules to build and run tst-translit.
2284         * intl/tst-translit.c: New file.
2285         * intl/tst-translit.sh: New file.
2286         * intl/translit.po: New file.
2287
2288 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
2289
2290         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
2291         transliteration function did its job, continue, don't stop.
2292
2293         * iconvdata/iso646.c: Little optimizations in body for conversion
2294         from UCS4.
2295
2296 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
2297
2298         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
2299
2300 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
2301
2302         * configure.in: Check for pwd binary.
2303         * config.make.in: Add PWD_P to be subsituted.
2304         * Makerules: Use $(PWD_P) instead of /bin/pwd.
2305
2306 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
2307
2308         * iconvdata/Makefile (modules): Add GB18030.
2309         (distribute): Add gb18030.c.
2310         * iconvdata/gconv-modules: Add entries for GB18030 module.
2311         * iconvdata/gb18030.c: New file.
2312         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
2313         and Wu Jian.
2314
2315 2000-07-13  Andreas Jaeger  <aj@suse.de>
2316
2317         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
2318         patch.
2319
2320         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
2321         * inet/getnetgrent.c (free_mem): Likewise.
2322         * misc/mntent.c (free_mem): Likewise.
2323         * nss/getXXbyYY.c (free_mem): Likewise.
2324         * nss/getXXent.c (free_mem): Likewise.
2325         * pwd/fgetpwent.c (free_mem): Likewise.
2326         * shadow/fgetspent.c (free_mem): Likewise.
2327
2328 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
2329
2330         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
2331         64-bit architecture correctly [PR libc/1794].
2332
2333 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
2334
2335         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
2336         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
2337         report that we are out of memory.
2338         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2339         * elf/dl-libc.c (dlerror_run): Likewise.
2340         * elf/dl-open.c (_dl_open): Likewise.
2341         * elf/rtld.c (dl_main): Likewise.
2342         * elf/dl-error.c: Define _dl_out_of_memory.
2343         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
2344         the error string.
2345         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
2346         [PR libc/1813].
2347
2348         * dlfcn/dlerror.c (free_key_mem): Also free error string.
2349
2350         * iconv/loop.c: Fix comment.
2351
2352         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
2353
2354 2000-07-13  Andreas Jaeger  <aj@suse.de>
2355
2356         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
2357         getcwd (NULL, size) with size > 0.
2358         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
2359
2360 2000-07-13  Andreas Jaeger  <aj@suse.de>
2361
2362         * posix/Makefile: Remove build rules for libposix.
2363
2364 2000-07-13  Andreas Schwab  <schwab@suse.de>
2365
2366         * sysdeps/generic/glob.c (glob): Fix memory leak.
2367         [SHELL]: Remove reference to undefined variable `files'.
2368         Fixes PR libc/1782.
2369
2370 2000-07-13  Andreas Jaeger  <aj@suse.de>
2371
2372         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
2373         functions.
2374
2375         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
2376         memory if it was allocated.
2377
2378 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
2379
2380         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
2381         step.
2382
2383         * iconv/gconv_open.c (__gconv_open): Reapply
2384         2000-07-12 Bruno Haible <haible@clisp.cons.org>
2385
2386                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
2387
2388         * iconv/gconv_open.c: Undo last two changes for now.  They break
2389         everything.
2390
2391 2000-07-12  Andreas Jaeger  <aj@suse.de>
2392
2393         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
2394         compiler.
2395         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
2396         (CFLAGS-dl-cache.c): Likewise.
2397         (CFLAGS-ldconfig.c): Added, passes directory locations.
2398
2399         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
2400         locate cache.
2401         * elf/ldconfig.c (LD_SO_CONF): Likewise.
2402         (main): Use configured LIBDIR and SLIBDIR.
2403
2404 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
2405
2406         * math/bits/cmathcalls.h (cimag): Add __THROW.
2407         (creal, conj): Likewise.
2408         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
2409         by negative value.
2410
2411 2000-07-12  H.J. Lu  <hjl@gnu.org>
2412
2413         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
2414         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
2415
2416 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
2417
2418         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
2419         it is wrong.
2420
2421 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
2422
2423         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
2424
2425 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
2426
2427         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
2428         __modname.
2429
2430 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
2431
2432         * iconv/gconv_open.c (__gconv_open): Initialize
2433         result->__steps[cnt].__data.
2434
2435 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
2436
2437         * nss/getent.c (services_keys): Pass port number in network byte
2438         order in call to getservbyport.
2439
2440 2000-07-11  Andreas Jaeger  <aj@suse.de>
2441
2442         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
2443         source dir.
2444         * intl/Makefile (do-gettext-test): Likewise.
2445         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
2446
2447 2000-07-11  Andreas Schwab  <schwab@suse.de>
2448
2449         * Makeconfig (run-program-prefix): New rule.
2450         (built-program-cmd): Use run-program-prefix.
2451
2452 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
2453
2454         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
2455         and NOEXPR unconditionally available.
2456
2457 2000-07-12  Greg McGary  <greg@mcgary.org>
2458
2459         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
2460         * sysdeps/posix/open64.c: Likewise.
2461         * sysdeps/generic/fegetenv.c: Likewise.
2462         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
2463         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
2464         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
2465         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
2466         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
2467         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
2468
2469 2000-07-11  Greg McGary  <greg@mcgary.org>
2470
2471         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
2472         Add extra level of macro expansion.
2473         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
2474         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
2475         is available at the time `select' prototype is declared.
2476         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
2477         Collect non-versioned weak aliases.  Consider only non-versioned
2478         aliases for the user-visible systemcall name.  Do checks inline with
2479         call to primitive system call.
2480         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
2481         stand-alone bounds checks to suppress unused value warnings.
2482         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
2483
2484 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
2485
2486         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
2487         file descriptor checking in SUID programs for the Hurd.
2488
2489         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
2490         res_hostalias instead of __hostalias for thread-safety.
2491
2492 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
2493
2494         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
2495         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
2496
2497 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
2498
2499         * include/features.h: Include ISO C99 features if the compiler used
2500         is an ISO C99 compiler.
2501         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
2502
2503 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
2504
2505         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
2506
2507 2000-07-10  Andreas Jaeger  <aj@suse.de>
2508
2509         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
2510         it's overridden by libpthreads.
2511         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2512         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2513         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2514         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
2515         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2516
2517         * malloc/Makefile: Run tst-mtrace only with shared libs.
2518
2519         * stdio-common/Makefile: Run unbputc and tst-printf tests only
2520         with shared libs.
2521
2522 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2523
2524         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
2525         that gpreg really points to the GOT section of the calling object.
2526         Scan all PT_LOAD segments of objects for stub_pc, instead of only
2527         checking a start address of first one.
2528         Fix typos.
2529         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
2530         Likewise.
2531
2532         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
2533
2534 2000-07-10  Andreas Jaeger  <aj@suse.de>
2535
2536         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
2537         (string_alias->strong_alias).
2538
2539 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
2540
2541         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
2542
2543 2000-07-07  Greg McGary  <greg@mcgary.org>
2544
2545         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
2546         have no names without leading underscores.
2547
2548 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
2549
2550         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
2551         U007E.
2552
2553         * stdio-common/Makefile (tests): Remove tst-printf here...
2554         (tests-srcs): ...and add it here.
2555         (distribute): Add tst-unbputc.sh and tst-printf.sh.
2556         Add rules to run tst-printf.sh.
2557         * stdio-common/tst-printf.c: Move code around so that there is really
2558         no further output where it's stated.
2559         * stdio-common/tst-printf.sh: New file.
2560
2561 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
2562
2563         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
2564         (do_write): Renamed from pwrite.
2565         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
2566         `struct _IO_cookie_file'.
2567
2568 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
2569
2570         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
2571         detected.
2572         * malloc/tst-mtrace.sh: Run mtrace script.
2573
2574 2000-07-07  Greg McGary  <greg@mcgary.org>
2575
2576         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
2577         Move all three components of a bounded pointer.
2578
2579 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
2580
2581         * locale/programs/locale.c (write_locales): Don't simply add all
2582         directories found in the subdir, test whether at least the
2583         LC_CTYPE file is in there.
2584
2585 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
2586
2587         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
2588         * iconvdata/euc-kr.c: Likewise.
2589
2590         * stdio-common/vfprintf.c (process_string_arg): Check result of
2591         wcrtomb call and bail out if it failed.
2592
2593         * malloc/Makefile (test-srcs): Add tst-mtrace.
2594         (distribute): Add tst-mtrace.sh.
2595         Add rule to run tst-mtrace.sh.
2596         * malloc/tst-mtrace.c: New file.
2597         * malloc/tst-mtrace.sh: New file.
2598
2599         * include/signal.h: Declare __libc_sigaction.
2600         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
2601         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
2602         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2603         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2604         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2605         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
2606         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2607
2608         * configure.in: Fix CFLAGS-memprofstat.c definition after
2609         2000-06-19 change.
2610         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
2611
2612 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
2613
2614         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
2615         instead of NULL to elf_machine_fixup_plt t argument.
2616         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2617         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
2618         cast.
2619
2620 2000-07-06  Andreas Jaeger  <aj@suse.de>
2621
2622         * crypt/Makefile (LDLIBS-cert): Removed.
2623         (LDLIBS-md5c-test): Removed.
2624         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
2625         ($(objpfx)md5c-test): Likewise for md5c-test.out.
2626
2627 2000-07-06  Andreas Jaeger  <aj@suse.de>
2628
2629         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
2630         of the proc system is "proc".
2631
2632         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
2633         thread library for static programs.
2634
2635 2000-07-06  Greg McGary  <greg@mcgary.org>
2636
2637         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
2638         New macros.
2639         * sysdeps/generic/strcpy.c: Add bounds checks.
2640         * sysdeps/unix/fxstat.c: Likewise.
2641         * sysdeps/unix/xstat.c: Likewise.
2642         * sysdeps/unix/common/lxstat.c: Likewise.
2643         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2644         * sysdeps/unix/sysv/linux/execve.c: Likewise.
2645         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2646         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2647         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
2648         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
2649         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
2650         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2651         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2652         * sysdeps/unix/sysv/linux/poll.c: Likewise.
2653         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2654         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2655         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2656         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2657         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2658         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2659         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
2660         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
2661         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2662         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
2663         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
2664         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
2665         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2666         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
2667         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2668         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
2669         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2670         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
2671         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2672         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2673         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2674         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
2675         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2676         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2677         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2678         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
2679         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
2680         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
2681         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
2682         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2683         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
2684         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
2685         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2686         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2687         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2688         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2689         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2690         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
2691         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2692         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
2693         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
2694         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2695         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2696         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2697         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2698         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2699         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2700         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
2701         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
2702         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
2703         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2704         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
2705         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2706         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
2707
2708         * string/endian.h (__LONG_LONG_PAIR): New macro.
2709         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
2710         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2711         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
2712         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2713         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2714         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
2715         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
2716         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2717         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2718         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2719         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2720         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
2721
2722         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
2723
2724 2000-07-06  Andreas Jaeger  <aj@suse.de>
2725
2726         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
2727         Initialize result.
2728
2729         * math/test-fpucw.c: Include <stdio.h> for printf.
2730
2731 2000-07-05  Greg McGary  <greg@mcgary.org>
2732
2733         * sysdeps/generic/bp-checks.h: New file.
2734         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
2735         with list of #include files.
2736         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
2737         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
2738         Don't generate BP thunk if `V' appears in signature.
2739         Generate thunks with complete bounds checks.
2740         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
2741         * sysdeps/unix/inet/syscalls.list: Likewise.
2742         * sysdeps/unix/mman/syscalls.list: Likewise.
2743         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2744         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2745         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2746         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
2747
2748 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
2749
2750         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
2751         result.  Search first in /etc/mtab (proc/mounts would be stupid).
2752         If mount not in the file fall back on /proc.
2753
2754         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
2755         string got copied in.
2756         Patch by Solar Designer <solar@false.com>.
2757
2758 2000-07-05  Andreas Jaeger  <aj@suse.de>
2759
2760         * manual/install.texi (Installation): Update information about
2761         add-ons.
2762         (Configuring and compiling): Update for glibc 2.2.
2763
2764 2000-07-04  Andreas Jaeger  <aj@suse.de>
2765
2766         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
2767         (_FPU_IEEE): Likewise.
2768
2769         * math/Makefile (tests): Add test-fpucw.
2770
2771         * math/test-fpucw.c (main): New file.
2772
2773 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
2774
2775         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
2776
2777         * locale/programs/ld-collate.c (collate_output): Also write out the
2778         collation sequence values and the wide character string for the
2779         collation symbol table.
2780
2781         * posix/fnmatch.c: Include "../locale/elem-hash.h".
2782         * posix/fnmatch_loop.c: Implement collating symbol handling.
2783         * posix/tst-fnmatch.input: Add more tests, especially for collating
2784         symbol handling.
2785
2786         * posix/regex.c: Fix comment.
2787
2788 2000-07-05  Andreas Jaeger  <aj@suse.de>
2789
2790         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
2791         (_FPU_GETCW): Remove extra colon.
2792         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
2793
2794         * posix/fnmatch_loop.c (FCT): Only declare len if
2795         !WIDE_CHAR_VERSION to silence GCC.
2796
2797         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
2798         prototype.
2799         * sysdeps/generic/strchrnul.c: Likewise.
2800         * sysdeps/generic/strlen.c: Likewise.
2801         * sysdeps/generic/strchr.c: Likewise.
2802         * sysdeps/generic/memchr.c: Likewise.
2803
2804 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
2805
2806         * posix/fnmatch_loop.c: Implement equivalence class handling.
2807         * posix/tst-fnmatch.input: Add tests for equivalence class
2808         handling.
2809
2810         * posix/fnmatch_loop.c: Improve performance for single-byte
2811         character sets by not using btowc.
2812
2813         * posix/tst-fnmatch.input: Add tests for locale dependent
2814         behaviour.
2815         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
2816
2817         * posix/tst-fnmatch.input: Add more test cases.
2818
2819         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
2820         are not aligned to alignof(md5_uint32) do it before calling
2821         __md5_process_bytes.
2822         * crypt/md5.c: Make sure buffers are aligned.
2823         * crypt/md5.h: Likewise.
2824         Reported by Solar Designer <solar@false.com>.
2825
2826         * crypt/Makefile: Add dependencies for test programs.
2827
2828         * Rules: Define LC_ALL=C in environments of all programs we run.
2829
2830         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
2831
2832 2000-07-03  H.J. Lu  <hjl@gnu.org>
2833
2834         * locale/programs/ld-ctype.c (ctype_output): The size of iov
2835         is 2 + elem + offset, not 2 + elem + offset + 2.
2836
2837 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
2838
2839         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
2840         suite.
2841         * posix/Makefile (tests): Add tst-fnmatch.
2842         (tst-fnmatch-ENV): Define.
2843         * posix/tst-fnmatch.c: New file.
2844         * posix/tst-fnmatch.sh: New file.
2845
2846 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
2847
2848         * locale/programs/charmap.c (charmap_read): Prepend
2849         the condition filename == NULL.
2850
2851 2000-07-03  Greg McGary  <greg@mcgary.org>
2852
2853         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
2854
2855         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
2856         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
2857
2858         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
2859         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
2860         (FILEBUF_LITERAL): Add cast for CHAIN init.
2861         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
2862         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
2863         Revert type of `fp' to _IO_FILE*.
2864         (_IO_iter_file): Remove cast.
2865         (_IO_iter_next): Elide intermediate member reference.
2866
2867         * sysdeps/powerpc/strchr.S:  Check bounds.
2868         Wrap extern symbols in BP_SYM ().
2869
2870 2000-07-03  Andreas Jaeger  <aj@suse.de>
2871
2872         * dlfcn/Makefile (generated): New.
2873
2874 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
2875
2876         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
2877         (__uflow): Likewise.
2878         (__underflow): Likewise.
2879         * libio/wgenops.c (__wunderflow): Likewise.
2880         * stdio-common/tst-unbputc.c: New file.
2881         * stdio-common/tst-unbputc.sh: New file.
2882         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
2883
2884         * po/en_GB.po: New file.
2885         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
2886
2887 2000-07-01  Andreas Jaeger  <aj@suse.de>
2888
2889         * intl/Makefile (generated-dirs): New.
2890
2891         * elf/Makefile (generated): trusted-dirs.h is always generated,
2892         move out of build-shared condition.
2893         (generated): Merge the two entries for build-shared.
2894
2895 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
2896
2897         * debug/Makefile (distribute): Add xtrace.sh.
2898
2899 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
2900
2901         * version.h (VERSION): Bump to 2.1.91.
2902
2903         * configure.in: Update warning comment.  glibc should not be
2904         broken anymore.
2905
2906         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
2907         ioperm.c, sys/procfs.h, and sys/io.h.
2908
2909         * sysdeps/powerpc/Dist: Add bp-asm.h.
2910
2911         * assert/Depend: Add localedata.
2912         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
2913         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
2914
2915         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
2916         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
2917         relocation address to prevent unaligned trap.
2918         Suggested by Richard Henderson <rth@cygnus.com>.
2919
2920 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
2921
2922         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
2923         if redirecting and either redirection is done using defines or
2924         not optimizing.
2925
2926 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
2927
2928         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
2929         generated expressions.
2930         Patch by Darren McClelland <dmcclell@zetec.com>.
2931
2932         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
2933         since zic uses setlocale and gettext but we cannot make it use the
2934         new locale data since zic calls a shell which might not use the
2935         new libc.
2936
2937         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
2938         handling the internation currency symbol.  POSIX says that the
2939         fourth character is used to separate the currency symbol from the
2940         value.  Therefore it does not have to be printed.  But we cannot
2941         remove the space if the currency symbol is printed before the
2942         number since this is what many locales expect.
2943
2944         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
2945         whether this information is available.
2946
2947         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
2948         buffers in case the translation is too large.  Remember allocated
2949         memory blocks in a list.
2950         (free_mem): Free memory for translations.
2951
2952         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
2953
2954         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
2955         information is available set the string length to zero.
2956
2957         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
2958
2959 2000-06-30  Greg McGary  <greg@mcgary.org>
2960
2961         * sysdeps/powerpc/bp-asm.h: New file.
2962         * sysdeps/powerpc/__longjmp.S:  Check bounds.
2963         Wrap extern symbols in BP_SYM ().
2964         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
2965         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
2966         * sysdeps/powerpc/setjmp.S: Likewise.
2967         * sysdeps/powerpc/add_n.S: Likewise.
2968         * sysdeps/powerpc/addmul_1.S: Likewise.
2969         * sysdeps/powerpc/lshift.S: Likewise.
2970         * sysdeps/powerpc/rshift.S: Likewise.
2971         * sysdeps/powerpc/mul_1.S: Likewise.
2972         * sysdeps/powerpc/sub_n.S: Likewise.
2973         * sysdeps/powerpc/submul_1.S: Likewise.
2974         * sysdeps/powerpc/strlen.S: Likewise.
2975         * sysdeps/powerpc/memset.S: Likewise.
2976         * sysdeps/powerpc/stpcpy.S: Likewise.
2977         * sysdeps/powerpc/strcmp.S: Likewise.
2978         * sysdeps/powerpc/strcpy.S: Likewise.
2979         * sysdeps/powerpc/elf/bzero.S: Likewise.
2980
2981         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
2982         Line up operands column with tabs.
2983
2984 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
2985
2986         * elf/Makefile (LDFLAGS-origtest): Actually add it.
2987
2988         * sysdeps/ia64/htonl.S: New file.
2989         * sysdeps/ia64/htons.S: New file.
2990         * sysdeps/ia64/memcpy.S: Replace with version which does not use
2991         floating point registers.
2992         Patches by Dan Pop <Dan.Pop@cern.ch>.
2993
2994 2000-06-30  Andreas Jaeger  <aj@suse.de>
2995
2996         * posix/Makefile (tests): tst-exec and tst-spawn only work with
2997         shared libraries.
2998
2999         * io/Makefile (CFLAGS-test-lfs.c): New.
3000         (tests): Add test-lfs.
3001
3002         * io/test-lfs.c: New file.
3003
3004 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
3005
3006         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
3007         instruction.
3008
3009 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
3010
3011         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
3012
3013 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
3014
3015         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
3016         alias to the fstatfs call.
3017
3018         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
3019         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
3020
3021         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
3022         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
3023
3024         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
3025         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
3026         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
3027         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
3028
3029         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
3030         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
3031
3032         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
3033         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
3034
3035         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
3036         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
3037
3038         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
3039
3040 2000-06-29  Andreas Jaeger  <aj@suse.de>
3041
3042         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
3043         with syslog.
3044         (print_err_message): Likewise.
3045         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
3046
3047 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
3048
3049         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
3050         used as words is properly aligned.
3051
3052         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
3053         data files.
3054
3055 2000-06-29  Greg McGary  <greg@mcgary.org>
3056
3057         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
3058         * sysdeps/unix/make-syscalls.sh: Handle signatures of
3059         length 7..9, just in case...
3060         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
3061
3062         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
3063         (POP_ERRNO_LOCATION_RETURN): Fold insns.
3064         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
3065         (PUSH_SIGNAL_MASK): New macro.
3066         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
3067         LEAVE is unnecessary.  Check bounds of jmp_buf.
3068         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
3069         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
3070         immediately before tail-call.
3071         * sysdeps/i386/setjmp.S: Likewise.
3072         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3073         * sysdeps/i386/bsd-setjmp.S: Likewise.
3074
3075 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
3076
3077         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
3078         versioned_symbol.
3079         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
3080         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
3081         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
3082         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
3083         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
3084         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
3085         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
3086         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
3087
3088 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
3089
3090         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
3091         we later need to calling free().
3092         Patch by Matt Wilson <msw@redhat.com>.
3093
3094         * stdio-common/tst-printf.c: Add test for above problem.
3095
3096 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
3097
3098         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
3099         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
3100
3101 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
3102
3103         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
3104         prototype for abs().
3105         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
3106
3107 2000-06-23  Andreas Jaeger  <aj@suse.de>
3108
3109         * config.h.in: Don't use regparm with bounded pointers.
3110
3111 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
3112
3113         * stdlib/grouping.h: Correctly handle multibyte thousands
3114         separator and decimal point.
3115         * stdlib/stdtod.c: Likewise.
3116         * sysdeps/generic/strtol.c: Likewise.
3117
3118         * locale/categories.def: Add entries for wide character decimal point
3119         and thousands separator in numeric and monetary category.
3120
3121 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
3122
3123         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
3124         second definition and initialization of decimal.
3125
3126 2000-06-28  Greg McGary  <greg@mcgary.org>
3127
3128         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
3129         out.
3130         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
3131         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
3132         in.
3133         (_IO_JUMPS): Don't cast THIS--expect arg to be a
3134         (struct _IO_FILE_plus *).
3135         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
3136         THIS, since _IO_JUMPS no longer does it implicitly.
3137         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
3138         arg type as (struct _IO_FILE_plus *).
3139         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
3140         arg as (_IO_strfile *).
3141         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
3142         Declare 1st arg as (_IO_strfile *).
3143         * libio/fileops.c (_IO_new_file_init): Declare
3144         arg type as (struct _IO_FILE_plus *).
3145         * libio/oldfileops.c (_IO_old_file_init): Likewise.
3146         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
3147         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
3148         Declare iteration pointer as (struct _IO_FILE_plus *).
3149         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
3150                 (struct _IO_FILE_plus *).
3151         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
3152         * libio/oldstdfiles.c (_IO_list_all): Likewise.
3153         (_IO_check_libio): Set user-visible handles to
3154         (struct _IO_FILE_plus *).
3155         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
3156         to (struct _IO_FILE_plus *).
3157
3158         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
3159         whose high bound includes vtable to all functions that will use
3160         vtable.  For streambufs, pass pointer whose bounds include struct
3161         _IO_strfile.
3162         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
3163         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
3164         * libio/iofopen.c (_IO_new_fopen): Likewise.
3165         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3166         * libio/iofopen64.c (_IO_fopen64): Likewise.
3167         * libio/iopopen.c (_IO_new_popen): Likewise.
3168         * libio/oldiopopen.c (_IO_old_popen): Likewise.
3169         * libio/memstream.c (open_memstream): Likewise.
3170         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
3171         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
3172         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3173         * libio/iofopncook.c (_IO_cookie_init): Likewise.
3174         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
3175         * libio/vasprintf.c (_IO_vasprintf): Likewise.
3176         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3177         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
3178         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
3179         * stdlib/strfmon.c (__strfmon_l): Likewise.
3180         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
3181         (vfprintf): Qualify computed-goto targets as unbounded.
3182
3183 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
3184
3185         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
3186         thousands separator correctly.
3187
3188         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
3189         * stdio-common/vfwscanf.c: Likewise.
3190
3191 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
3192
3193         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
3194         count into signatures for most calls.
3195
3196 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
3197
3198         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
3199         the generic parser now.
3200
3201 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
3202
3203         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
3204         table entries are 32 bit on the ia64 (as specified by the ABI),
3205         not 64 bit as on the Alpha.
3206
3207         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
3208         change of objects to use 32 bit hash table indices (see above).
3209
3210 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
3211
3212         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
3213         prototype for abs().
3214
3215 2000-06-28  Wolfram Gloger  <wg@malloc.de>
3216
3217         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
3218         fails, try mmap_chunk() as a last resort even though n_mmaps_max
3219         may have been reached.
3220
3221 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
3222
3223         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
3224         symbols in multi-character weights correctly.
3225
3226         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
3227         depending on whether the input string is empty or not.
3228
3229         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
3230         given state and not avoiding this by modifying a local object.
3231         * wcsmbs/wcrtomb.c: Likewise.
3232
3233         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
3234         object since some incomplete characters might be in there.
3235
3236         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
3237         sequences with first byte 0x8e correctly.
3238
3239         * iconvdata/jis0208.h: Remove redundant test.
3240
3241 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
3242
3243         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
3244         Add it where it is needed now.
3245
3246         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
3247         the input charset into account when generating the hash table.
3248         (allocate_arrays): Correct setting default width.  Not all empty slots
3249         in the table are filled, only those not covert explicitly by the
3250         locale description and in the charset.
3251
3252         * wctype/towctrans.c (__towctrans): Be graceful and accept error
3253         return values from the wctrans function.
3254
3255         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
3256         wide character version.
3257         For %C handling, test correct pointer variable for NULL.
3258
3259         * wcsmbs/wctob.c: Handle WEOF special.
3260
3261         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
3262
3263         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
3264         always-true test to avoid warning.
3265
3266 2000-06-27  Greg McGary  <greg@mcgary.org>
3267
3268         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
3269         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
3270         (symbol_version, default_symbol_version): Factor redundant
3271         definitions out of conditional.
3272
3273 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
3274
3275         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
3276         not obstack_blank.
3277
3278 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
3279
3280         * include/libc-symbols.h (symbol_version): Add extra level of
3281         macro expansion.
3282         (default_symbol_version): Likewise.
3283
3284 2000-06-26  Greg McGary  <greg@mcgary.org>
3285
3286         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
3287         for BP return value & push implicit struct-return pointer to
3288         __errno_location.
3289         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3290         (SYSCALL_ERROR_HANDLER): Likewise.
3291         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
3292         (SYSCALL_ERROR_HANDLER): Likewise.
3293
3294         * Makeconfig: Add missing comment.
3295         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
3296         BP-flavored startup object.
3297         ($(objpfx)b$(start-installed-name)): New rule.
3298         * include/libc-symbols.h (symbol_set_declare): Change type
3299         of `__start_##set' and `__stop_##set' to pointer-to-function.
3300         (symbol_set_declare): Change type of `set' to array of
3301         pointer-to-function.
3302         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
3303         pointer-to-function.
3304
3305         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
3306
3307         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
3308         Remove clock_* and timer_* entries.
3309         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
3310         arg-count with signatures.
3311
3312         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
3313         Check bounds of arguments.
3314         * sysdeps/i386/addmul_1.S: Likewise.
3315         * sysdeps/i386/lshift.S: Likewise.
3316         * sysdeps/i386/mul_1.S: Likewise.
3317         * sysdeps/i386/rshift.S: Likewise.
3318         * sysdeps/i386/sub_n.S: Likewise.
3319         * sysdeps/i386/submul_1.S: Likewise.
3320         * sysdeps/i386/i586/add_n.S: Likewise.
3321         * sysdeps/i386/i586/addmul_1.S: Likewise.
3322         * sysdeps/i386/i586/lshift.S: Likewise.
3323         * sysdeps/i386/i586/rshift.S: Likewise.
3324         * sysdeps/i386/i586/sub_n.S: Likewise.
3325         * sysdeps/i386/i686/add_n.S: Likewise.
3326
3327         * sysdeps/i386/memchr.S: Likewise.
3328         * sysdeps/i386/memcmp.S: Likewise.
3329         * sysdeps/i386/rawmemchr.S: Likewise.
3330         * sysdeps/i386/i586/bzero.S: Likewise.
3331         * sysdeps/i386/i586/memcpy.S: Likewise.
3332         * sysdeps/i386/i586/mempcpy.S: Likewise.
3333         * sysdeps/i386/i586/memset.S: Likewise.
3334         * sysdeps/i386/i686/bzero.S: Likewise.
3335         * sysdeps/i386/i686/memcpy.S: Likewise.
3336         * sysdeps/i386/i686/mempcpy.S: Likewise.
3337         * sysdeps/i386/i686/memset.S: Likewise.
3338
3339         * sysdeps/i386/stpcpy.S: Likewise.
3340         * sysdeps/i386/stpncpy.S: Likewise.
3341         * sysdeps/i386/strchr.S: Likewise.
3342         * sysdeps/i386/strchrnul.S: Likewise.
3343         * sysdeps/i386/strcspn.S: Likewise.
3344         * sysdeps/i386/strpbrk.S: Likewise.
3345         * sysdeps/i386/strrchr.S: Likewise.
3346         * sysdeps/i386/strspn.S: Likewise.
3347         * sysdeps/i386/strtok.S: Likewise.
3348         * sysdeps/i386/strtok_r.S: Likewise.
3349         * sysdeps/i386/i486/strcat.S: Likewise.
3350         * sysdeps/i386/i486/strlen.S: Likewise.
3351         * sysdeps/i386/i586/strchr.S: Likewise.
3352         * sysdeps/i386/i586/strcpy.S: Likewise.
3353         * sysdeps/i386/i586/strlen.S: Likewise.
3354         * sysdeps/i386/i686/strcmp.S: Likewise.
3355         * sysdeps/i386/i686/strtok.S: Likewise.
3356         * sysdeps/i386/i686/strtok_r.S: Likewise.
3357
3358         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
3359         * sysdeps/i386/fpu/fesetenv.c: Likewise.
3360         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
3361         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
3362         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
3363
3364         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
3365         * sysdeps/i386/mul_1.S: Likewise.
3366         * sysdeps/i386/submul_1.S: Likewise.
3367         * sysdeps/i386/i586/add_n.S: Likewise.
3368         * sysdeps/i386/i586/addmul_1.S: Likewise.
3369         * sysdeps/i386/i586/lshift.S: Likewise.
3370         * sysdeps/i386/i586/mul_1.S: Likewise.
3371         * sysdeps/i386/i586/rshift.S: Likewise.
3372         * sysdeps/i386/i586/sub_n.S: Likewise.
3373         * sysdeps/i386/i586/submul_1.S: Likewise.
3374
3375 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
3376
3377         * rt/Makefile (librt-routines): Add clock_nanosleep.
3378         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
3379         * sysdeps/generic/clock_nanosleep.c: New file.
3380         * sysdeps/unix/clock_nanosleep.c: New file.
3381         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
3382         * time/time.h: Declare clock_nanosleep.
3383
3384 2000-06-26  Greg McGary  <greg@mcgary.org>
3385
3386         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
3387         INSN1, INSN2, TEXT, GLOBL): Remove macros.
3388         (ALIGN): Cleanup surrounding conditionals.
3389
3390         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
3391         Call ENTER/LEAVE macros.
3392         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
3393         * sysdeps/i386/submul_1.S: Likewise.
3394
3395         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
3396         syntax.  Define & use symbolic argument stack offsets.  Call
3397         ENTER/LEAVE macros.
3398         * sysdeps/i386/i586/mul_1.S: Likewise.
3399         * sysdeps/i386/i586/submul_1.S: Likewise.
3400
3401 2000-06-25  Greg McGary  <greg@mcgary.org>
3402
3403         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
3404         not as bcopy.
3405
3406 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
3407
3408         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
3409         * iconvdata/gen-8bit-gap.sh: Likewise.
3410         * iconvdata/gen-8bit.sh: Likewise.
3411
3412         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
3413
3414         * locale/programs/ld-collate.c (collate_read): Don't actually read
3415         the copy locale if we are ignoring the content.
3416
3417         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
3418         unknown character.
3419
3420         * locale/programs/ld-collate.c: Correct handling of different
3421         collation sections.
3422         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
3423         as extra parameter from which to copy category information.
3424         Change all callers.
3425         (load_locale): Likewise.
3426         * locale/programs/localedef.h: Update prototypes of add_to_readlist
3427         and load_locale.
3428         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
3429         * locale/programs/locfile.h: Likewise.
3430         * locale/programs/locfile-kw.gperf: Add entry for script.
3431         * locale/programs/locfile-token.h: Add tok_script.
3432
3433         * locale/programs/locale.c: Update copyright year.
3434         * locale/programs/localedef.c: Likewise.
3435
3436 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
3437
3438         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
3439         Jens Moeller <jens.moeller@waii.com>.
3440
3441 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
3442
3443         * locale/programs/ld-name.c (name_finish): Add missing format
3444         specifier to test for name_fmt.
3445
3446         * locale/programs/ld-address.c (iso639): Correct length of string
3447         elements.
3448         (iso3166): Likewise.
3449
3450         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
3451
3452         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
3453         Define.
3454
3455         * elf/elf.h (NT_PRFPXREG): Define.
3456
3457 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
3458
3459         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
3460         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
3461
3462 2000-06-23  Andreas Schwab  <schwab@suse.de>
3463
3464         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
3465         with signatures.
3466
3467 2000-06-23  Andreas Jaeger  <aj@suse.de>
3468
3469         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
3470
3471         * io/test-stat.c: Add copyright header, mention Maciej.
3472
3473         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
3474         SYS_mincore, SYS_madvise): Added.
3475
3476         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
3477         execve.
3478
3479 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
3480
3481         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
3482         (CFLAGS-tst_putwc.c): New definition.
3483         * libio/tst_getwc.c: New file.
3484         * libio/tst_getwc.input: New file.
3485         * libio/tst_putwc.c: New file.
3486
3487         * include/string.h: Add prototype for __strdup.
3488
3489 2000-06-22  Greg McGary  <greg@mcgary.org>
3490
3491         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
3492         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
3493         Fix signatures.
3494
3495 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
3496
3497         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
3498
3499 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
3500
3501         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
3502
3503 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
3504
3505         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
3506         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
3507
3508 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
3509
3510         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
3511         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
3512         and __S_TYPEISSHM.
3513         * sysdeps/mach/hurd/bits/stat.h: Likewise.
3514         * sysdeps/unix/bsd/bits/stat.h: Likewise.
3515         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
3516         * sysdeps/unix/sysv/bits/stat.h: Likewise.
3517         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
3518         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
3519         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
3520         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3521         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3522         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
3523         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
3524         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
3525         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
3526         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
3527         S_TYPEISSHM.
3528
3529 2000-06-22  Andreas Jaeger  <aj@suse.de>
3530
3531         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
3532         with signatures.
3533
3534         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
3535
3536         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
3537
3538 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
3539
3540         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
3541         ahead.
3542
3543 2000-06-21  Greg McGary  <greg@mcgary.org>
3544
3545         * Makerules (elide-routines.*, elide-bp-thunks):
3546         Define unconditionally.
3547
3548 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
3549
3550         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
3551
3552 2000-06-21  Andreas Jaeger  <aj@suse.de>
3553
3554         * io/Makefile (tests): Add test-stat.
3555         (CFLAGS-test-stat.c): New.
3556
3557         * io/test-stat.c: New file from Maciej W. Rozycki
3558         <macro@ds2.pg.gda.pl>.
3559
3560 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
3561
3562         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
3563         in __rlimit_resource to make them match the kernel order.
3564         rlim_t is always 64 bit, use __rlim64_t to declare it
3565         unconditionally.
3566
3567 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
3568
3569         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
3570         RLIM_INFINITY before defining it to avoid clash with kernel header
3571
3572 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
3573
3574         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
3575
3576 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
3577
3578         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
3579
3580 2000-06-21  Andreas Jaeger  <aj@suse.de>
3581
3582         * stdio-common/temptest.c: Include <stdlib.h>.
3583         * stdio-common/tst-fileno.c: Likewise.
3584         * stdio-common/scanf4.c: Likewise.
3585         * stdio-common/scanf5.c: Likewise.
3586         * time/clocktest.c: Likewise.
3587         * posix/test-vfork.c: Likewise.
3588         * posix/globtest.c: Likewise.
3589         * io/test-utime.c: Likewise.
3590         * wctype/test_wcfuncs.c: Likewise.
3591         * crypt/cert.c: Likewise.
3592
3593         * stdio-common/tst-printfsz.c: Include <string.h>.
3594         * libio/tst_swscanf.c: Likewise.
3595         * libio/tst_wscanf.c: Likewise.
3596         * posix/runtests.c: Likewise.
3597         * posix/tst-getaddrinfo.c: Likewise.
3598         * posix/wordexp-test.c: Likewise.
3599         * misc/tst-efgcvt.c: Likewise.
3600
3601         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
3602         * nss/test-netdb.c: Likewise.
3603
3604         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
3605         supported kernel for MIPS.
3606
3607         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
3608         * rt/aio_suspend.c: Likewise.
3609
3610 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
3611
3612         * math/libm-test.inc: Include <string.h>.
3613
3614 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
3615
3616         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
3617
3618 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
3619
3620         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
3621         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
3622
3623 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
3624
3625         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
3626
3627 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
3628
3629         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
3630
3631 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
3632
3633         * locale/programs/ld-collate.c (insert_value): Now take string and
3634         length instead of struct token* parameter.  Adjust use of token.
3635         (handle_ellipsis): Likewise.
3636         (collate_read): Allow <Uxxxx> names and transform them into names
3637         to be passed to insert_value and handle_ellipsis.
3638
3639         * locale/programs/ld-ctype.c (uninames): New array with names of
3640         digits in <Uxxxxxxxx> format.
3641         (ctype_finish): Correct search for space character value.  Likewise
3642         for default outdigits values.
3643
3644 2000-06-20  Greg McGary  <greg@mcgary.org>
3645
3646         * Makerules (objects): Add BP thunks.
3647
3648 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
3649
3650         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
3651         in width definitions.
3652
3653 2000-06-20  Andreas Jaeger  <aj@suse.de>
3654
3655         * sysdeps/mips/fpu/libm-test-ulps: New file.
3656
3657         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
3658         first.
3659
3660         * sysdeps/mips/fpu/feholdexcpt.c: New file.
3661
3662         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
3663
3664 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
3665
3666         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
3667         change in gconv_builtin.h.
3668
3669         * malloc/Makefile: Change all references to memprof into memusage.
3670         * malloc/memprof.c: Rename to...
3671         * malloc/memusage.c: ...this.  New file.
3672         * malloc/memprof.sh: Rename to...
3673         * malloc/memusage.sh: ...this.  New file.
3674         * malloc/memprofstat.c: Rename to...
3675         * malloc/memusagestat.c: ...this.  New file.
3676         * sysdeps/alpha/memprof.h: Rename to..
3677         * sysdeps/alpha/memusage.h: ...this.  New file.
3678         * sysdeps/arm/memprof.h: Rename to..
3679         * sysdeps/arm/memusage.h: ...this.  New file.
3680         * sysdeps/generic/memprof.h: Rename to..
3681         * sysdeps/generic/memusage.h: ...this.  New file.
3682         * sysdeps/i386/memprof.h: Rename to..
3683         * sysdeps/i386/memusage.h: ...this.  New file.
3684         * sysdeps/ia64/memprof.h: Rename to..
3685         * sysdeps/ia64/memusage.h: ...this.  New file.
3686         * sysdeps/m68k/memprof.h: Rename to..
3687         * sysdeps/m68k/memusage.h: ...this.  New file.
3688         * sysdeps/mips/memprof.h: Rename to..
3689         * sysdeps/mips/memusage.h: ...this.  New file.
3690         * sysdeps/powerpc/memprof.h: Rename to..
3691         * sysdeps/powerpc/memusage.h: ...this.  New file.
3692         * sysdeps/sparc/memprof.h: Rename to..
3693         * sysdeps/sparc/memusage.h: ...this.  New file.
3694         * sysdeps/sh/memprof.h: Rename to..
3695         * sysdeps/sh/memusage.h: ...this.  New file.
3696
3697         * elf/sprof.c (print_version): Update year.
3698
3699         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
3700         table entry values.  Use D_PTR.
3701         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
3702         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
3703
3704 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
3705
3706         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
3707         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
3708         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
3709         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
3710
3711 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
3712
3713         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
3714
3715 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
3716
3717         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
3718         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
3719         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
3720
3721         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
3722
3723         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
3724         kernel change.
3725
3726         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
3727         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
3728         structure.
3729         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
3730         implementation.
3731
3732 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
3733
3734         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
3735
3736 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
3737
3738         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
3739
3740 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
3741
3742         * iconv/gconv_int.h (strict gconv_module): Remove all members
3743         associated with regular expressions.  Use a simple string as the
3744         from name.
3745         * iconv/gconv_db.c: Remove code handling regular expressions.
3746         * iconv/gconv_conf.c: Likewise.
3747         * iconv/iconv_prog.c: Likewise.
3748         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
3749
3750         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
3751         General namespace cleanup.
3752         (struct __gconv_trans_data): Add next field.
3753         (struct __gconv_step_data): Make __trans a pointer.
3754         * iconv/gconv_conf.c: Split out code to find gconv directories from
3755         __gconv_read_conf in new functions.
3756         * iconv/gconv_int.h: Define new data structure and declare new
3757         functions for handling of gconv directory list.
3758         * iconv/gconv_open.c: Allow more than one error handling step being
3759         used.  Call function to load error handling module if it is none
3760         of the builtin transformations.
3761         * iconv/gconv_close.c: Add code to free transliteration data.
3762         * iconv/gconv_trans.c: Add functions to load and unload modules
3763         implementing transliteration etc.
3764         * iconv/skeleton.c: Call all context functions now that more than
3765         one module is allowed.
3766         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
3767         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
3768         where the full error handling using transliteration is needed.
3769         * iconvdata/8bit-gap.c: Likewise.
3770         * iconvdata/8bit-generic.c: Likewise.
3771         * iconvdata/ansi_x3.110.c: Likewise.
3772         * iconvdata/big5.c: Likewise.
3773         * iconvdata/big5hkscs.c: Likewise.
3774         * iconvdata/euc-cn.c: Likewise.
3775         * iconvdata/euc-jp.c: Likewise.
3776         * iconvdata/euc-kr.c: Likewise.
3777         * iconvdata/euc-tw.c: Likewise.
3778         * iconvdata/gbgbk.c: Likewise.
3779         * iconvdata/gbk.c: Likewise.
3780         * iconvdata/iso-2022-cn.c: Likewise.
3781         * iconvdata/iso-2022-jp.c: Likewise.
3782         * iconvdata/iso-2022-kr.c: Likewise.
3783         * iconvdata/iso646.c: Likewise.
3784         * iconvdata/iso8859-1.c: Likewise.
3785         * iconvdata/iso_6937-2.c: Likewise.
3786         * iconvdata/iso_6937.c: Likewise.
3787         * iconvdata/johab.c: Likewise.
3788         * iconvdata/sjis.c: Likewise.
3789         * iconvdata/t.61.c: Likewise.
3790         * iconvdata/uhc.c: Likewise.
3791         * iconvdata/unicode.c: Likewise.
3792         * iconvdata/utf-16.c: Likewise.
3793         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
3794         structure correctly after last change.
3795         * wcsmbs/btowc.c: Likewise.
3796         * wcsmbs/mbrtowc.c: Likewise.
3797         * wcsmbs/mbsnrtowcs.c: Likewise.
3798         * wcsmbs/mbsrtowcs.c: Likewise.
3799         * wcsmbs/wcrtomb.c: Likewise.
3800         * wcsmbs/wcsnrtombs.c: Likewise.
3801         * wcsmbs/wcsrtombs.c: Likewise.
3802         * wcsmbs/wctob.c: Likewise.
3803
3804         * localedata/Makefile: Set -Wno-format for some files since gcc does
3805         not know all the format specifiers.
3806
3807 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
3808
3809         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
3810         unneeded code.
3811         * locale/lc-time.c (_nl_init_era_entries): Likewise.
3812
3813 2000-06-18  Andreas Jaeger  <aj@suse.de>
3814
3815         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
3816         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
3817
3818 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
3819
3820         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
3821         LINUX_LINK_MAX.
3822         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
3823
3824         * locale/programs/ld-ctype.c (ctype_output): Really write out
3825         mboutdigits information.
3826         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
3827         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
3828         * localedata/tests/trans.def: Add outdigit information.
3829
3830         * localedata/tst-mbswcs3.c: Remove comment.
3831
3832         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
3833         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
3834         * libio/tst_wprintf.c (main): Add test for I flag.
3835
3836         * iconv/gconv_trans.c: Implement handling if translit_ignore.
3837         * locale/langinfo.h: Add entries for translit_ignore information.
3838         * locale/categories.def: Add entries for new LC_CTYPE elements.
3839         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
3840         pointer instead of "" where possible.
3841         * locale/programs/ld-ctype.c: Write out translit_ignore information.
3842         * intl/Depend: Add localedata.
3843         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
3844         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
3845
3846 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
3847
3848         * locale/langinfo.h: Add entries for default_missing information.
3849         * locale/C-ctype.c: Add initializers for new fields.
3850         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
3851         information.
3852         * locale/categories.h: Add entries for all LC_CTYPE values.
3853         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
3854         information.
3855
3856         * localedata/tst-trans.c: Write out an error message if class is
3857         not found.
3858
3859         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
3860         * iconv/gconv_open.c: Remove error handling specification from `from'
3861         character set name.
3862         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
3863         new parameter to always enable transliteration.
3864         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
3865         change.
3866         (struct locale_data): Add new members use_translit and options.
3867         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
3868         character set name contained modifier TRANSLIT.
3869         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
3870         and options fields.
3871         (_nl_unload_locale): Free options string if necessary.
3872         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
3873         the locale names suggested this.
3874         * locale/C-address.c: Add two new initialilzers to adjust data
3875         structure for new format.
3876         * locale/C-collate.c: Likewise.
3877         * locale/C-ctype.c: Likewise.
3878         * locale/C-identification.c: Likewise.
3879         * locale/C-measurement.c: Likewise.
3880         * locale/C-messages.c: Likewise.
3881         * locale/C-monetary.c: Likewise.
3882         * locale/C-name.c: Likewise.
3883         * locale/C-numeric.c: Likewise.
3884         * locale/C-paper.c: Likewise.
3885         * locale/C-telephone.c: Likewise.
3886         * locale/C-time.c: Likewise.
3887
3888         * locale/setlocale.c: Add some more __builtin_expect.
3889
3890 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
3891
3892         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
3893         unsigned char **.
3894         (__gconv_init_fct): Remove two parameters.
3895         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
3896         gconv_transliterate.  Remove two parameters.
3897         Change prototypes of builtin functions according to __gconv_fct change.
3898         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
3899         != NULL only during error handling.  Stop in this case after the
3900         conversion.
3901         * iconv/gconv_trans.c: Replace with real implementation for
3902         __gconv_transliterate.
3903         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
3904         * iconv/gconv.c: Change calls to downstream functions once again.
3905         Use NULL for the fifth parameter instead of pointer to output buffer.
3906         * libio/iofwide.c: Likewise.
3907         * wcsmbs/btowc.c: Likewise.
3908         * wcsmbs/mbrtowc.c: Likewise.
3909         * wcsmbs/mbsnrtowcs.c: Likewise.
3910         * wcsmbs/mbsrtowcs.c: Likewise.
3911         * wcsmbs/wcrtomb.c: Likewise.
3912         * wcsmbs/wcsnrtombs.c: Likewise.
3913         * wcsmbs/wcsrtombs.c: Likewise.
3914         * wcsmbs/wctob.c: Likewise.
3915         * iconv/gconv_simple.c: Remove two parameters from error handling
3916         function call.
3917         * iconvdata/8bit-gap.c: Likewise.
3918         * iconvdata/8bit-generic.c: Likewise.
3919         * iconvdata/ansi_x3.110.c: Likewise.
3920         * iconvdata/big5.c: Likewise.
3921         * iconvdata/big5hkscs.c: Likewise.
3922         * iconvdata/euc-cn.c: Likewise.
3923         * iconvdata/euc-jp.c: Likewise.
3924         * iconvdata/euc-kr.c: Likewise.
3925         * iconvdata/euc-tw.c: Likewise.
3926         * iconvdata/gbgbk.c: Likewise.
3927         * iconvdata/gbk.c: Likewise.
3928         * iconvdata/iso-2022-cn.c: Likewise.
3929         * iconvdata/iso-2022-jp.c: Likewise.
3930         * iconvdata/iso-2022-kr.c: Likewise.
3931         * iconvdata/iso646.c: Likewise.
3932         * iconvdata/iso8859-1.c: Likewise.
3933         * iconvdata/iso_6937-2.c: Likewise.
3934         * iconvdata/iso_6937.c: Likewise.
3935         * iconvdata/johab.c: Likewise.
3936         * iconvdata/sjis.c: Likewise.
3937         * iconvdata/t.61.c: Likewise.
3938         * iconvdata/uhc.c: Likewise.
3939         * iconvdata/unicode.c: Likewise.
3940         * iconvdata/utf-16.c: Likewise.
3941
3942 2000-06-15  Greg McGary  <greg@mcgary.org>
3943
3944         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
3945         of callnum assignment.  Tolerate callnum expressions containing
3946         parens.
3947
3948 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
3949
3950         * login/Makefile (utmpd): Remove rule to build utmpd.
3951
3952         * csu/Versions: Move libgcc frame handling functions from here...
3953         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
3954         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
3955         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
3956         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
3957         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
3958         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
3959         New file.
3960         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
3961
3962         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
3963
3964         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
3965
3966 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
3967
3968         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
3969         compatibility.
3970         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
3971         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
3972         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
3973         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
3974
3975 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
3976
3977         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
3978         defined, terminate quotes and read them after the comment char.
3979         * configure.in (HAVE_SECTION_QUOTES): Test whether
3980         __attribute__((section ("x"))) puts quotes around x or not.
3981         * config.h.in (HAVE_SECTION_QUOTES): Add.
3982         * configure: Rebuilt.
3983
3984 2000-06-14  Andreas Jaeger  <aj@suse.de>
3985
3986         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
3987         depending on the configure option --sysconfdir.
3988         Closes PR libc/1762.
3989         Patch by Andreas Schwab <schwab@suse.de>.
3990
3991         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
3992         entry point.
3993         Reported by Jim Pick <jim@jimpick.com>.
3994
3995 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
3996
3997         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
3998         crashing the application.  Emit some simple error message.
3999         Reported by mju@panasas.com [PR libc/1769].
4000
4001 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
4002
4003         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
4004
4005         * crypt/Makefile (distribute): Add md5.h.
4006
4007         * Makefile (distribute): Add include/shlib-compat.h.
4008
4009         * Make-dist: Search for tests also in sysdeps hierachy.
4010
4011         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
4012         ufc.c, speeds.c, README.ufc-crypt, and Banner.
4013
4014         * sysdeps/sparc/Subdirs: New file.
4015
4016         * locale/Makefile (distribute): Add weightwc.h and
4017         programs/localedef.h.
4018
4019         * time/Makefile (distribute): Add datemsk.
4020
4021         * sysdeps/ia64/Dist: Add softpipe.h.
4022
4023         * sysdeps/unix/sysv/aix/Dist: New file.
4024
4025         * posix/setpgrp.c: Moved to...
4026         * sysdeps/generic/setpgrp.c: ...here.  New file.
4027         * io/mknod.c: Moved to...
4028         * sysdeps/generic/mknod.c: ...here.  New file.
4029
4030         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
4031
4032         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
4033
4034         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
4035
4036         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
4037         gprsave0.S, gprrest1.S, and gprrest0.S.
4038
4039         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
4040
4041         * posix/Makefile (routines): Add spawnattr_getsigmask,
4042         spawnattr_getschedpolicy, spawnattr_getschedparam,
4043         spawnattr_setsigmask, spawnattr_setschedpolicy, and
4044         spawnattr_setschedparam.
4045         * posix/Versions: Add posix_spawnattr_getschedpolicy,
4046         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
4047         posix_spawnattr_setschedparam.
4048
4049         * posix/spawnattr_setschedparam.c: Fix typo.
4050
4051         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
4052         Correct typo.
4053
4054         * login/programs/utmpd.c: Removed.
4055         * login/programs/utmpd.h: Removed.
4056         * login/programs/utmpd-private.h: Removed.
4057
4058         * Makefile (distribute): Add include/db_185.h and include/db.h.
4059
4060         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
4061         iso-ir-165.h.
4062
4063         * elf/Makefile (distribute): Add missing files.
4064
4065         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
4066         * elf/eval.c: Moved to...
4067         * dlfcn/eval.c: ...here.  New file.
4068
4069         * Makefile (distribute): Also distribute ChangeLog.1?.
4070
4071         * Make-dist (+tsrcs): Remove .args handling here as well.
4072
4073         * rt/Makefile (tests): Add tst-timer.
4074         * sysdeps/generic/tst-timer.c: New file.
4075
4076         * Makerules (sources): Don't add BP sources here.
4077
4078         * login/Makefile (distribute): Remove xtmp.h.
4079
4080         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
4081         is true.  Reported by Bruno Haible <haible@ilog.fr>.
4082
4083 2000-06-13  Andreas Jaeger  <aj@suse.de>
4084
4085         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
4086         Patch by Ralf Baechle <ralf@gnu.org>.
4087
4088 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
4089
4090         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
4091         for mincore syscall.
4092
4093         * misc/sys/cdefs.h: Define __bounded and __unbounded if
4094         __BOUNDED_POINTERS__ is not defined.
4095
4096 2000-06-07  Greg McGary  <greg@mcgary.org>
4097
4098         * sysdeps/generic/bp-sym.h: New file.
4099         * sysdeps/generic/bp-start.h: New file.
4100         * sysdeps/i386/elf/start.S: Designate BP symbols.
4101         * sysdeps/generic/libc-start.c: Wrap bounds around
4102         argv & envp and each of their string members.
4103
4104 2000-06-07  Greg McGary  <greg@mcgary.org>
4105
4106         * sysdeps/unix/make-syscalls.sh: Add comments to
4107         output that aid debugging & comprehension.
4108         Map simple syscall signatures to number of args.
4109         Generate BP syscall thunk definitions.
4110         * sysdeps/generic/bp-thunks.h: New file.
4111         * sysdeps/unix/syscalls.list: Replace arg-count with
4112         simple return+arg signature.
4113         * sysdeps/unix/common/syscalls.list: Likewise.
4114         * sysdeps/unix/inet/syscalls.list: Likewise.
4115         * sysdeps/unix/mman/syscalls.list: Likewise.
4116         * sysdeps/unix/sysv/syscalls.list: Likewise.
4117         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4118         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
4119
4120 2000-06-07  Greg McGary  <greg@mcgary.org>
4121
4122         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
4123         for all files *.[cS].
4124         (CFLAGS-.ob): Don't optimize sibling calls.
4125         (bppfx): New variable.
4126         * Makerules (elide-bp-thunks): New variable.
4127         (elide-routines.*): Elide BP-* files for all but *.ob.
4128         (sources): Include bp-thunks.
4129
4130 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
4131
4132         * iconv/gconv_simple.c: Remove unnecessary prototype.
4133
4134         * iconv/gconv_trans.c: Pretty print.
4135
4136         * elf/elf.h (R_SH_NUM): Got accidently dropped.
4137
4138         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
4139         minimal kernel versions.  Add information about IA-64 kernel.
4140
4141         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
4142         specific minimal supported kernel versions to be specified.
4143
4144         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
4145         step data structure.
4146         * wcsmbs/btowc.c: Likewise.
4147         * wcsmbs/mbrtowc.c: Likewise.
4148         * wcsmbs/mbsnrtowcs.c: Likewise.
4149         * wcsmbs/mbsrtowcs.c: Likewise.
4150         * wcsmbs/wcrtomb.c: Likewise.
4151         * wcsmbs/wcsnrtombs.c: Likewise.
4152         * wcsmbs/wcsrtombs.c: Likewise.
4153         * wcsmbs/wctob.c: Likewise.
4154
4155         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
4156         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
4157
4158         * shlib-versions: Earliest backward compatible version for SH is 2.2.
4159
4160         * misc/sys/cdefs.h: Remove one more __P.
4161
4162         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
4163         Reported by HJ Lu.
4164
4165         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
4166         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
4167         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
4168
4169 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
4170             Yutaka Niibe  <gniibe@chroot.org>
4171
4172         * configure.in: Add machine sh3, sh4.
4173         * elf/elf.h: Add SH specific declarations of relocations.
4174         * shlib-versions: Add sh*-*-linux* cases.
4175
4176 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
4177
4178         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
4179         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
4180         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
4181         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
4182         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
4183         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
4184
4185         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
4186         instead of KERNEL_MATH_EMULATION.
4187         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
4188         KERNEL_MATH_EMULATION.
4189
4190         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
4191         * sysdeps/sh/sh3/dl-machine.h: Moved to...
4192         * sysdeps/sh/dl-machine.h: ...here.  New file.
4193         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
4194         and include generic SH version.
4195         * sysdeps/sh/sh3/bits/endian.h: Move to...
4196         * sysdeps/sh/bits/endian.h: ...here.  New file.
4197         * sysdeps/sh/sh4/bits/endian.h: Removed.
4198         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
4199         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
4200         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
4201
4202         * include/libc-symbols.h (link_warning): Work around a change in
4203         GAS which warns about changing section attributes.
4204         Proposed by Nick Clifton <nickc@redhat.com>.
4205
4206 2000-06-12  H.J. Lu  <hjl@gnu.org>
4207
4208         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
4209
4210 2000-06-11  H.J. Lu  <hjl@gnu.org>
4211
4212         * sysdeps/i386/fpu/Versions: New file.
4213
4214 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
4215
4216         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
4217         parameters.
4218         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
4219         exists.
4220
4221 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
4222
4223         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
4224         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
4225         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
4226
4227         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
4228         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
4229         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
4230
4231 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
4232             Yutaka Niibe  <gniibe@chroot.org>
4233
4234         * sysdeps/sh/Dist: New file.
4235         * sysdeps/sh/Implies: New file.
4236         * sysdeps/sh/elf/initfini.c: New file.
4237         * sysdeps/sh/gmp-mparam.h: New file.
4238         * sysdeps/sh/init-first.c: New file.
4239         * sysdeps/sh/machine-gmon.h: New file.
4240         * sysdeps/sh/memcpy.S: New file.
4241         * sysdeps/sh/memprof.h: New file.
4242         * sysdeps/sh/memset.S: New file.
4243         * sysdeps/sh/sh3/__longjmp.S: New file.
4244         * sysdeps/sh/sh3/bits/endian.h: New file.
4245         * sysdeps/sh/sh3/bits/huge_val.h: New file.
4246         * sysdeps/sh/sh3/bits/setjmp.h: New file.
4247         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
4248         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
4249         * sysdeps/sh/sh3/dl-machine.h: New file.
4250         * sysdeps/sh/sh3/setjmp.S: New file.
4251         * sysdeps/sh/sh4/__longjmp.S: New file.
4252         * sysdeps/sh/sh4/bits/endian.h: New file.
4253         * sysdeps/sh/sh4/bits/huge_val.h: New file.
4254         * sysdeps/sh/sh4/bits/setjmp.h: New file.
4255         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
4256         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
4257         * sysdeps/sh/sh4/dl-machine.h: New file.
4258         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
4259         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
4260         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
4261         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
4262         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
4263         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
4264         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
4265         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
4266         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
4267         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
4268         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
4269         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
4270         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
4271         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
4272         * sysdeps/sh/sh4/setjmp.S: New file.
4273         * sysdeps/sh/elf/start.S: New file.
4274         * sysdeps/sh/sys/ucontext.h: New file.
4275         * sysdeps/sh/strlen.S: New file.
4276         * sysdeps/sh/sysdep.h: New file.
4277         * sysdeps/unix/sh/sysdep.S: New file.
4278         * sysdeps/unix/sh/sysdep.h: New file.
4279         * sysdeps/unix/sysv/linux/sh/Dist: New file.
4280         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
4281         * sysdeps/unix/sysv/linux/sh/Versions: New file.
4282         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
4283         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
4284         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
4285         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
4286         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
4287         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
4288         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
4289         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
4290         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
4291         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
4292         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
4293         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
4294         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
4295         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
4296         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
4297         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
4298         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
4299         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
4300         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
4301         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
4302         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
4303         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
4304         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
4305         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
4306         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
4307         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
4308         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
4309         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
4310         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
4311         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
4312         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
4313         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
4314         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
4315         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
4316         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
4317         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
4318         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
4319         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
4320         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
4321         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
4322         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
4323         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
4324         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
4325         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
4326         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
4327         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
4328         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
4329
4330 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
4331
4332         * Rules (%.out): Define GCONV_PATH in the environment.
4333         * assert/Depend: New file.
4334         * iconvdata/Depend: New file.
4335         * intl/Depend: New file.
4336         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
4337         * intl/tst-gettext.sh: Likewise.
4338         * iconv/Makefile (routines): Add gconv_trans.
4339         * iconv/gconv_trans.c: New file.
4340         * iconv/gconv.h (struct __gconv_trans_data): New type.
4341         (__gconv_fct): New parameter with starting position in output buffer.
4342         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
4343         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
4344         (struct __gconv_step): Add new member __trans.
4345         * iconv/gconv_int.h: Pretty print prototypes.
4346         (gconv_transliterate): New prototype.
4347         (__BUILTIN_TRANS): Update for new conversion function interface.
4348         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
4349         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
4350         in names, find appropriate function, and install in the conversion
4351         steps it can be used.
4352         * iconv/skeleton.c: Add additional parameter for beginning of output
4353         buffer.  Change calls of downstream functions.
4354         * iconv/loop.c: Change loop function interface completely.  Pass in
4355         step and step_data structure.  Remove optimization for BODY with
4356         NEED_LENGTH_TEST == 0.
4357         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
4358         appropriate error handling code to use transliteration steps.  Remove
4359         optimization for BODY with NEED_LENGTH_TEST == 0.
4360         * iconvdata/8bit-gap.c: Likewise.
4361         * iconvdata/8bit-generic.c: Likewise.
4362         * iconvdata/ansi_x3.110.c: Likewise.
4363         * iconvdata/big5.c: Likewise.
4364         * iconvdata/big5hkscs.c: Likewise.
4365         * iconvdata/euc-cn.c: Likewise.
4366         * iconvdata/euc-jp.c: Likewise.
4367         * iconvdata/euc-kr.c: Likewise.
4368         * iconvdata/euc-tw.c: Likewise.
4369         * iconvdata/gbgbk.c: Likewise.
4370         * iconvdata/gbk.c: Likewise.
4371         * iconvdata/iso-2022-cn.c: Likewise.
4372         * iconvdata/iso-2022-jp.c: Likewise.
4373         * iconvdata/iso-2022-kr.c: Likewise.
4374         * iconvdata/iso646.c: Likewise.
4375         * iconvdata/iso8859-1.c: Likewise.
4376         * iconvdata/iso_6937-2.c: Likewise.
4377         * iconvdata/iso_6937.c: Likewise.
4378         * iconvdata/johab.c: Likewise.
4379         * iconvdata/sjis.c: Likewise.
4380         * iconvdata/t.61.c: Likewise.
4381         * iconvdata/uhc.c: Likewise.
4382         * iconvdata/unicode.c: Likewise.
4383         * iconvdata/utf-16.c: Likewise.
4384         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
4385         DL_CALL_FCT.
4386         * wcsmbs/btowc.c: Likewise.
4387         * wcsmbs/mbrtowc.c: Likewise.
4388         * wcsmbs/mbsnrtowcs.c: Likewise.
4389         * wcsmbs/mbsrtowcs.c: Likewise.
4390         * wcsmbs/wcrtomb.c: Likewise.
4391         * wcsmbs/wcsnrtombs.c: Likewise.
4392         * wcsmbs/wcsrtombs.c: Likewise.
4393         * wcsmbs/wctob.c: Likewise.
4394
4395 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
4396
4397         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
4398         other header files.  Mention about 128-byte cache line sizes.
4399         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
4400         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
4401         for current calling sequence.
4402         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
4403
4404         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
4405         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
4406
4407         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
4408         and setrlimit syscalls for backwards compatibility.
4409
4410 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
4411
4412         * iconv/skeleton.c:  Rename converted written to correcter name
4413         irreversible.
4414         * iconv/gconv.c: Rename converted variable to correcter name
4415         irreversible.
4416         * iconv/gconv_int.h: Likewise.
4417         * iconv/gconv_simple.c: Likewise.
4418         * iconv/iconv.c: Likewise.
4419         * iconv/loop.c: Likewise.
4420         * iconvdata/8bit-gap.c: Likewise.
4421         * iconvdata/8bit-generic.c: Likewise.
4422         * iconvdata/ansi_x3.110.c: Likewise.
4423         * iconvdata/big5.c: Likewise.
4424         * iconvdata/big5hkscs.c: Likewise.
4425         * iconvdata/euc-cn.c: Likewise.
4426         * iconvdata/euc-jp.c: Likewise.
4427         * iconvdata/euc-kr.c: Likewise.
4428         * iconvdata/gbgbk.c: Likewise.
4429         * iconvdata/gbk.c: Likewise.
4430         * iconvdata/iso-2022-cn.c: Likewise.
4431         * iconvdata/iso-2022-jp.c: Likewise.
4432         * iconvdata/iso-2022-kr.c: Likewise.
4433         * iconvdata/iso646.c: Likewise.
4434         * iconvdata/iso8859-1.c: Likewise.
4435         * iconvdata/iso_6937-2.c: Likewise.
4436         * iconvdata/iso_6937.c: Likewise.
4437         * iconvdata/johab.c: Likewise.
4438         * iconvdata/sjis.c: Likewise.
4439         * iconvdata/t.61.c: Likewise.
4440         * iconvdata/uhc.c: Likewise.
4441         * iconvdata/unicode.c: Likewise.
4442         * iconvdata/utf-16.c: Likewise.
4443
4444         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
4445         __cmsg_data field with __extension__.
4446
4447 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
4448
4449         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
4450
4451 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
4452
4453         * iconv/gconv_simple.c: Fix various small bugs in several
4454         functions.
4455
4456         * iconv/loop.c: Fix comment.
4457
4458 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
4459
4460         * elf/link.h: Remove libc internal declarations.
4461         * include/link.h: Move them here.
4462
4463 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
4464
4465         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
4466         Patch by Dan Pop <Dan.Pop@cern.ch>.
4467
4468         Rewrite error message handling.
4469         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
4470         _dl_catch_error.
4471         * elf/dl-error (struct catch): Add objname member.
4472         (_dl_signal_error): Take new parameter with object name.  When
4473         passing message on simply store object name and duplicate error
4474         message.
4475         (_dl_catch_error): Take new parameter.  Store object name in the
4476         place pointed to.
4477         * include/dlfcn.h: Adjust _dl_catch_error prototype.
4478         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
4479         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
4480         (dlerror): Add objname to asprintf() parameters.
4481         (_dl_error_run): Pass new parameter to _dl_catch_error.
4482         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
4483         * elf/dl-open.c (_dl_open): Likewise.
4484         * elf/rtld.c (dl_main): Likewise.
4485         * elf/dl-close.c: Mark error messages with N_().
4486         * elf/dl-deps.c: Likewise.
4487         * elf/dl-error.c: Likewise.
4488         * elf/dl-load.c: Likewise.
4489         * elf/dl-open.c: Likewise.
4490         * elf/dl-reloc.c: Likewise.
4491         * elf/dl-support.c: Likewise.
4492         * elf/dl-sym.c: Likewise.
4493         * elf/dl-version.c: Likewise.
4494         * elf/dl-lookup.c: Add comments about problems with error message
4495         translations.
4496         * elf/dl-reloc.c: Likewise.
4497         * elf/dl-version.c: Likewise.
4498
4499 2000-06-09  H.J. Lu  <hjl@gnu.org>
4500
4501         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
4502         after freeing it.
4503
4504         * dlfcn/Makefile (distribute): Add failtestmod.c.
4505         (tests): Add failtest.
4506         Add rules to build and run failtest.
4507         * dlfcn/failtest.c: New file.
4508         * dlfcn/failtestmod.c: New file.
4509
4510 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
4511
4512         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
4513         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
4514         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
4515         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
4516         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
4517
4518 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
4519
4520         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
4521         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
4522
4523 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
4524             Ulrich Drepper  <drepper@redhat.com>
4525
4526         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
4527         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
4528         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
4529         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
4530         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
4531         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
4532
4533 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
4534
4535         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
4536         to find correct mount point despite wrong information from the
4537         kernel.
4538
4539 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
4540
4541         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
4542         the address of a symbol so function pointers are handled properly.
4543
4544 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
4545
4546         * sysdeps/i386/Dist: Add bp-asm.h.
4547
4548         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
4549         defaultdir variable instead of "/var/shm" everywhere.
4550         (defaultdir): Change to /dev/shm/.
4551
4552 2000-06-08  Greg McGary  <greg@mcgary.org>
4553
4554         * sysdeps/i386/bp-asm.h: New file.
4555         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
4556         offsets.  Add ENTER/LEAVE macros for optionally maintaining
4557         frame-pointer chain when debugging.
4558         * sysdeps/i386/add_n.S: Likewise.
4559         * sysdeps/i386/addmul_1.S: Likewise.
4560         * sysdeps/i386/lshift.S: Likewise.
4561         * sysdeps/i386/memchr.S: Likewise.
4562         * sysdeps/i386/memcmp.S: Likewise.
4563         * sysdeps/i386/mul_1.S: Likewise.
4564         * sysdeps/i386/rawmemchr.S: Likewise.
4565         * sysdeps/i386/rshift.S: Likewise.
4566         * sysdeps/i386/stpcpy.S: Likewise.
4567         * sysdeps/i386/stpncpy.S: Likewise.
4568         * sysdeps/i386/strchr.S: Likewise.
4569         * sysdeps/i386/strchrnul.S: Likewise.
4570         * sysdeps/i386/strcspn.S: Likewise.
4571         * sysdeps/i386/strpbrk.S: Likewise.
4572         * sysdeps/i386/strrchr.S: Likewise.
4573         * sysdeps/i386/strspn.S: Likewise.
4574         * sysdeps/i386/strtok.S: Likewise.
4575         * sysdeps/i386/sub_n.S: Likewise.
4576         * sysdeps/i386/submul_1.S: Likewise.
4577         * sysdeps/i386/elf/setjmp.S: Likewise.
4578         * sysdeps/i386/i486/strcat.S: Likewise.
4579         * sysdeps/i386/i486/strlen.S: Likewise.
4580         * sysdeps/i386/i586/add_n.S: Likewise.
4581         * sysdeps/i386/i586/lshift.S: Likewise.
4582         * sysdeps/i386/i586/memcpy.S: Likewise.
4583         * sysdeps/i386/i586/memset.S: Likewise.
4584         * sysdeps/i386/i586/rshift.S: Likewise.
4585         * sysdeps/i386/i586/strchr.S: Likewise.
4586         * sysdeps/i386/i586/strcpy.S: Likewise.
4587         * sysdeps/i386/i586/strlen.S: Likewise.
4588         * sysdeps/i386/i586/sub_n.S: Likewise.
4589         * sysdeps/i386/i686/add_n.S: Likewise.
4590         * sysdeps/i386/i686/memcpy.S: Likewise.
4591         * sysdeps/i386/i686/mempcpy.S: Likewise.
4592         * sysdeps/i386/i686/memset.S: Likewise.
4593         * sysdeps/i386/i686/strcmp.S: Likewise.
4594
4595 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
4596
4597         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
4598
4599         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
4600         256 and don't use OPEN_MAX.
4601
4602         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
4603         use it instead of LINK_MAX.
4604         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
4605
4606 2000-06-08  Andreas Jaeger  <aj@suse.de>
4607
4608         * libio/genops.c (_IO_list_lock): Only compile body if we're
4609         thread safe.
4610         (_IO_list_unlock): Likewise.
4611         (_IO_list_resetlock): Likewise.
4612
4613 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
4614
4615         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
4616         unless user defined it.
4617
4618         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
4619         if not defined by the user.
4620
4621         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
4622         * libio/iofwrite.c (_IO_fwrite): Likewise.
4623
4624         * time/time.h: Add missing __THROW for clock_getcpuclockid
4625         prototype.
4626
4627         * elf/Makefile (distribute): Add dl-dtprocnum.h.
4628         * include/elf.h: Include also <dl-dtprocnum.h>.
4629         * elf/dl-deps.c: Likewise.
4630         * elf/dl-lookup.c: Likewise.
4631         * elf/dl-runtime.c: Likewise.
4632         * elf/dl-version.c: Likewise.
4633         * elf/do-rel.h: Likewise.
4634         * elf/dynamic-link.h: Likewise.
4635         * elf/link.h: Likewise.
4636         * elf/rtld.c: Likewise.
4637         * sysdeps/generic/dl-dtprocnum.h: New file.
4638         * sysdeps/ia64/dl-dtprocnum.h: New file.
4639         * sysdeps/mips/dl-dtprocnum.h: New file.
4640         * sysdeps/sparc/dl-dtprocnum.h: New file.
4641
4642         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
4643
4644         * elf/do-lookup.h: Add some __builtin_expect.
4645
4646         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
4647
4648         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
4649         (_dl_dynamic_weak): New variable.
4650         * elf/dl-support.c: Likewise.
4651         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
4652         * elf/do-lookup.h: If we find a weak definition treat it like a
4653         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
4654         case treat it like before.
4655
4656         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
4657         is in main program.
4658         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
4659
4660         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
4661         using l_map_start and l_map_end.
4662
4663         * elf/dl-version.c: Add __builtin_expect in many places.
4664
4665         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
4666         Update.
4667
4668 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
4669
4670         Lock for stdio stream list becomes global, for use in LinuxThreads.
4671
4672         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
4673         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
4674         _IO_list_resetlock): New interface for iterating global list of
4675         streams without accessing the _IO_list_all global variable,
4676         and for manipulating the lock which protects this list.
4677         * libio/libioP.h: Likewise.
4678         * libio/Version: Add entries for the new functions.
4679
4680         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
4681         pointer to _IO_FILE.
4682
4683 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
4684
4685         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
4686         BIT() must actually be BITw().
4687
4688         * locale/programs/ld-ctype.c: Handle SP and space consistently.
4689
4690         * locale/programs/charmap.c: Allow string arguments for
4691         code_set_name and repertoiremap.
4692
4693 2000-06-07  Andreas Jaeger  <aj@suse.de>
4694
4695         * elf/Makefile: Build ldconfig only when building shared libraries.
4696
4697 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
4698
4699         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
4700         __USE_ISOC99.
4701         (fdimf, __fdim, fdim): Likewise.
4702
4703 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
4704
4705         * locale/findlocale.c: Add __builtin_expect in many places.
4706         * locale/loadlocale.c: Likewise.
4707
4708 2000-06-06  Greg McGary  <greg@mcgary.org>
4709
4710         * sysdeps/mips/elf/start.S: Trim redundant code.
4711
4712         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
4713         Use C comments throughout.  Line up operands column with tabs.
4714         * sysdeps/powerpc/strchr.S: Likewise.
4715         * sysdeps/powerpc/strcmp.S: Likewise.
4716         * sysdeps/powerpc/strcpy.S: Likewise.
4717         * sysdeps/powerpc/strlen.S: Likewise.
4718
4719         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
4720         Get low part of &__curbrk with @l.
4721
4722 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
4723
4724         * iconvdata/utf-16.c: Add __builtin_expect in many places.
4725         * iconvdata/unicode.c: Likewise.
4726         * iconvdata/uhc.c: Likewise.
4727         * iconvdata/t.61.c: Likewise.
4728         * iconvdata/sjis.c: Likewise.
4729         * iconvdata/johab.c: Likewise.
4730         * iconvdata/iso_6937.c: Likewise.
4731         * iconvdata/iso_6937-2.c: Likewise.
4732         * iconvdata/iso8859-1.c: Likewise.
4733         * iconvdata/iso646.c: Likewise.
4734         * iconvdata/iso-2022-kr.c: Likewise.
4735         * iconvdata/iso-2022-jp.c: Likewise.
4736         * iconvdata/iso-2022-cn.c: Likewise.
4737         * iconvdata/gbgbk.c: Likewise.
4738         * iconvdata/gbk.c: Likewise.
4739         * iconvdata/euc-kr.c: Likewise.
4740         * iconvdata/euc-jp.c: Likewise.
4741         * iconvdata/euc-cn.c: Likewise.
4742
4743 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
4744
4745         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
4746         * iconvdata/big5.c: Likewise.
4747         * iconvdata/ansi_x3.110.c: Likewise.
4748         * iconvdata/8bit-generic.c: Likewise.
4749         * iconvdata/8bit-gap.c: Likewise.
4750         * iconv/loop.c: Likewise.
4751         * iconv/gconv_db.c: Likewise.
4752         * iconv/gconv_dl.c: Likewise.
4753         * iconv/gconv_simple.c: Likewise.
4754         * iconv/skeleton.c: Likewise.
4755
4756         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
4757         (struct __gconv_step_data): Rename __is_last to __flags.
4758         * iconv/gconv_close.c: Change all uses of __is_last.
4759         * iconv/skeleton.c: Likewise.
4760         * iconvdata/iso-2022-cn.c: Likewise.
4761         * iconvdata/iso-2022-jp.c: Likewise.
4762         * iconvdata/iso-2022-kr.c: Likewise.
4763         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
4764         Recognize IGNORE error handling, set flag, and remove from name.
4765         * iconv/loop.c (ignore_errors_p): Define.
4766         Add flags parameter to both functions.
4767         * iconv/skeleton.c: Pass flags to all conversion functions.
4768         * iconv/gconv_simple.c: Add flags parameter to all functions.
4769         Don't return error for invald error if ignore flag is set.
4770         (ucs4_internal_loop_single): Add missing pointer increment.
4771         (internal_ucs4le_loop_single): Likewise.
4772         * iconv/iconv_prog.c: Implement handling of -c parameter.
4773         * iconvdata/8bit-gap.c: Don't return error for invald error if
4774         ignore flag is set.
4775         * iconvdata/8bit-generic.c: Likewise.
4776         * iconvdata/ansi_x3.110.c: Likewise.
4777         * iconvdata/big5.c: Likewise.
4778         * iconvdata/big5hkscs.c: Likewise.
4779         * iconvdata/euc-cn.c: Likewise.
4780         * iconvdata/euc-jp.c: Likewise.
4781         * iconvdata/euc-kr.c: Likewise.
4782         * iconvdata/gbgbk.c: Likewise.
4783         * iconvdata/gbk.c: Likewise.
4784         * iconvdata/iso-2022-cn.c: Likewise.
4785         * iconvdata/iso-2022-jp.c: Likewise.
4786         * iconvdata/iso-2022-kr.c: Likewise.
4787         * iconvdata/iso646.c: Likewise.
4788         * iconvdata/iso8859-1.c: Likewise.
4789         * iconvdata/iso_6937-2.c: Likewise.
4790         * iconvdata/iso_6937.c: Likewise.
4791         * iconvdata/johab.c: Likewise.
4792         * iconvdata/sjis.c: Likewise.
4793         * iconvdata/t.61.c: Likewise.
4794         * iconvdata/uhc.c: Likewise.
4795         * iconvdata/unicode.c: Likewise.
4796         * iconvdata/utf-16.c: Likewise.
4797         * libio/fileops.c: Likewise.
4798         * libio/iofwide.c: Likewise.
4799         * wcsmbs/btowc.c: Likewise.
4800         * wcsmbs/mbrtowc.c: Likewise.
4801         * wcsmbs/mbsnrtowcs.c: Likewise.
4802         * wcsmbs/mbsrtowcs.c: Likewise.
4803         * wcsmbs/wcrtomb.c: Likewise.
4804         * wcsmbs/wcsnrtombs.c: Likewise.
4805         * wcsmbs/wcsrtombs.c: Likewise.
4806         * wcsmbs/wctob.c: Likewise.
4807
4808         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
4809         an error.
4810
4811 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
4812
4813         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
4814         counter for the object we are releasing, just decrement it.
4815         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
4816
4817 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
4818
4819         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
4820         if -ffast-math.
4821
4822 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
4823
4824         * iconvdata/big5hkscs.c: New file.
4825         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
4826
4827         * iconvdata/gconv-modules: Add entry for new module.
4828         * iconvdata/Makefile (modules): Add BIG5HKSCS.
4829         (distribute): Add big5hkscs.c.
4830
4831 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
4832
4833         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
4834         inlines to match prototypes in mathcalls.h.
4835         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
4836         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
4837         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
4838         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4839
4840 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
4841
4842         * elf/elf.h (SHT_SUNW_move): Define.
4843
4844         * elf/elf.h: Add more Solaris compatiblity definitions.
4845
4846 2000-06-03  Andreas Jaeger  <aj@suse.de>
4847
4848         * sysdeps/powerpc/dl-start.S: Close open comment.
4849
4850 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
4851
4852         * inet/Versions: Fix typo in rresvport_af export.
4853
4854 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
4855
4856         * math/tgmath.h: Pretty print.
4857
4858 2000-06-02  Andreas Jaeger  <aj@suse.de>
4859
4860         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
4861         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4862
4863 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
4864
4865         * elf/rtld.c (process_envvars): Test for = after variable name.
4866
4867 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
4868
4869         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
4870         have extra call to __gmon_start__, use the pointer we already have.
4871
4872         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
4873         shifting.
4874
4875         * sysdeps/i386/elf/setjmp.S: Work around change is recent
4876         binutils.  gas now emits a jump through the PLT instead of a
4877         relative jump if the jump target is an exported symbol.
4878
4879 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
4880
4881         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
4882
4883 2000-05-31  Andreas Jaeger  <aj@suse.de>
4884
4885         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
4886         gregset_t.
4887
4888         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
4889         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4890
4891         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
4892         syscall.
4893         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4894
4895 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
4896
4897         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
4898
4899         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
4900         * locale/localeconv.c: Make function versioned (with same definition).
4901
4902         * elf/Makefile (modules-names): Strip before using it.
4903
4904 2000-05-30  Andreas Jaeger  <aj@suse.de>
4905
4906         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
4907         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
4908         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
4909         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
4910         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
4911         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
4912
4913 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
4914
4915         * Makefile: Add GNU make magic.
4916
4917         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
4918         Removed.
4919         * inet/rcmd.c: Remove __P.  Remove unused variables.
4920         (iruserfopen): Make first parameter const.
4921         (ruserok_sa): Return result of ruserok2_sa.
4922         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
4923         * inet/rexec.c: Remove unused variables.  Other small cleanups.
4924         * inet/ruserpass.c: Remove __P.  Remove unused variables.
4925         (ruserpass): Check results of memory allocation.
4926         * include/netdb.h: Add prototype for ruserpass.
4927
4928 2000-05-29  Andreas Jaeger  <aj@suse.de>
4929
4930         * elf/readlib.c (interpreters): Use LD_SO since this is supported
4931         for all platforms.
4932
4933 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
4934
4935         * inet/rcmd.c (rresvport_af): Use correct port number.
4936
4937 2000-05-26  Andreas Schwab  <schwab@suse.de>
4938
4939         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
4940         entries in all-sonames.
4941         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
4942         preserving the old name if different for compatibility.
4943
4944 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
4945
4946         * posix/Makefile (tests): Add tst-spawn.
4947         (tst-spawn-ARGS): New variable.
4948         * posix/tst-spawn.c: New file.
4949
4950         * posix/spawn_faction_addclose.c: Correctly account for new entry.
4951         * posix/spawn_faction_adddup2.c: Likewise.
4952         * posix/spawn_faction_addopen.c: Likewise.
4953         * posix/spawni.c: Correctly test for success of dup2 calls.
4954
4955         * posix/tst-preadwrite.c: Check success of malloc call.
4956
4957 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
4958
4959         * posix/Makefile (tests): Add tst-exec.
4960         (tst-exec-ARGS): New variable.
4961         * posix/tst-exec.c: New file.
4962
4963         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
4964
4965 2000-05-04  Andreas Jaeger  <aj@suse.de>
4966
4967         * string/string.h: Remove __strdup prototype, it's not needed in
4968         this file anymore.
4969
4970 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
4971
4972         * posix/Makefile (tests): Add tst-fork.
4973         * posix/tst-fork.c: New file.
4974
4975         * resolv/inet_pton.c: Loose __P.
4976
4977 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
4978
4979         * libio/libioP.h (_IO_CHECK_WIDE): Define.
4980         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
4981         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
4982         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
4983         _IO_CHECK_WIDE fails.
4984
4985 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
4986
4987         * po/da.po: New file.
4988
4989         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
4990         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
4991
4992         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
4993         (Other iconv Implementations): Fix typo.
4994         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
4995
4996 2000-05-27  Andreas Jaeger  <aj@suse.de>
4997
4998         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
4999         normal version now.
5000         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
5001         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
5002         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5003         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5004         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
5005         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
5006
5007         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
5008         endianness to decide how to pass arguments.
5009         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
5010
5011         * elf/vismain.c: Use test-skeleton interface.
5012         (TEST_FUNCTION): New macro.
5013         (do_test): Renamed from main.
5014
5015 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
5016
5017         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
5018         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
5019
5020         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
5021         handling of AI_V4MAPPED flag.
5022
5023         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
5024         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
5025         perform lookup for T_A type and tell getanswer_r to convert the
5026         result with new argument.
5027         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
5028         Don't convert addresses from IPv4 to IPv6 here.
5029         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
5030         IPv6 is wanted.  Allow qtype and type from reply to disagree if
5031         IPv4 mapping has to be done.  Perform mappings if required by the
5032         caller and not if RES_USE_INET6 bit in _res.options is set.
5033         Add several __builtin_expect.
5034
5035 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
5036
5037         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
5038
5039         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
5040         NULL.
5041
5042         * posix/tst-preadwrite.c: Allow parallel execution of
5043         tst-preadwrite and tst-preadwrite64.
5044
5045         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
5046         * posix/tst-truncate.c: New file.
5047         * posix/tst-truncate64.c: New file.
5048
5049         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
5050         was switched.
5051
5052         * posix/Makefile (tests): Add tst-preadwrite64.
5053         * posix/tst-preadwrite.c: Alloc file being used also for testing
5054         pread64 and pwrite64.
5055         * posix/tst-preadwrite64.c: New file.
5056
5057 2000-05-26  Andreas Jaeger  <aj@suse.de>
5058
5059         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
5060         of arguments dependend on endianness.
5061         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5062
5063         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
5064         normal version now.
5065         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
5066         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
5067         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5068         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5069
5070         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
5071         endianness to check how to pass argument.
5072         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
5073
5074         * elf/ldconfig.h: Update parameter list for process_elf_file.
5075
5076         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
5077         Add parameter file_length and pass it ot process_elf*file.
5078
5079         * sysdeps/generic/readelflib.c (check_ptr): New.
5080         (process_elf_file): Use check_ptr to check all accesses to the
5081         mmapped file. Add parameter file_length.
5082
5083         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
5084         library names.
5085
5086         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
5087         Closes PR libc/1573, reported by Bradley White
5088         <bww@laurelnetworks.com>.
5089
5090 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
5091
5092         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
5093         __FAST_MATH__ is defined.
5094
5095 2000-05-22  Andreas Jaeger  <aj@suse.de>
5096
5097         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
5098         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
5099
5100         * manual/math.texi (FP Function Optimizations): Document gcc
5101         -ffast-math behaviour with mathinlines.
5102
5103         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
5104         functions unless -ffast-math is given to gcc.
5105
5106 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
5107
5108         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
5109         __sincosl): Guard with __USE_GNU.
5110
5111 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
5112
5113         * csu/Makefile (routines): Add check_fds.
5114         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
5115         binaries.  Add various __builtin_expect.
5116         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
5117         * sysdeps/generic/check_fds.c: ...here.  New file.
5118
5119         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
5120         binaries if file /etc/suid-debug is available.
5121
5122         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
5123         and wcseqorder members.
5124         (struct locale_collate_t): Likewise.
5125         (collate_finish): Assign collation sequence value to each character.
5126         Create tables for output.
5127         (collate_output): Write out tables with collation sequence information.
5128         * locale/C-collate.c: Provide C locale data for collation sequence
5129         table.
5130         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
5131         _NL_COLLATE_COLLSEQWC.
5132         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
5133         _NL_COLLATE_COLLSEQWC.
5134         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
5135         include fnmatch_loop.c.
5136         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
5137         character is matched by range expression.  Use collation sequence
5138         table.  Outside glibc fall back on simple character value comparison.
5139
5140 2000-05-24  Andreas Jaeger  <aj@suse.de>
5141
5142         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
5143         words.
5144
5145         * intl/Makefile: Run gettext-test only if msgfmt is available.
5146
5147         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
5148         Define it for newer kernels.
5149
5150 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
5151
5152         * elf/dl-sym.c: Minor cleanups.
5153
5154         * configure.in: Add test for .protected.
5155         * config.make.in: Add have-protected variable.
5156         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
5157         (tests-vis-yes): Add vismain.
5158         (modules-names): Add $(modules-vis-$(have-protected)).
5159         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
5160         Add rules to generate and run vismain.
5161         * elf/vismain.c: New file.
5162         * elf/vismod1.c: New file.
5163         * elf/vismod2.c: New file.
5164         * elf/vismod3.c: New file.
5165
5166 2000-05-23  Andreas Jaeger  <aj@suse.de>
5167
5168         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
5169
5170         * manual/search.texi (Array Sort Function): Document that qsort is
5171         not necessarily in-place.
5172
5173         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
5174         Closes PR libc/1731.
5175
5176         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
5177         * dirent/scandir64.c: Likewise.
5178         * pwd/getpw.c: Likewise.
5179         * stdlib/bsearch.c (bsearch): Likewise.
5180         * stdlib/tst-strtoll.c: Likewise.
5181         * localedata/collate-test.c: Likewise.
5182         * localedata/xfrm-test.c: Likewise.
5183         * posix/bsd-getpgrp.c: Likewise.
5184         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
5185         * sysdeps/generic/bits/siginfo.h: Likewise.
5186         * sysdeps/generic/bits/sockaddr.h: Likewise.
5187         * sysdeps/generic/sys/swap.h: Likewise.
5188         * sysdeps/generic/sys/sysinfo.h: Likewise.
5189         * sysdeps/generic/vfork.c: Likewise.
5190         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
5191         * sysdeps/mach/hurd/fdopen.c: Likewise.
5192         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
5193         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5194         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5195         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5196         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5197         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
5198         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
5199
5200         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
5201         * shadow/lckpwdf.c: Likewise.
5202         * stdlib/tst-strtol.c: Likewise.
5203         * sysdeps/generic/tcsetattr.c: Likewise.
5204         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
5205         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
5206
5207 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
5208
5209         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
5210         free it and set to (void *) -1.
5211
5212 2000-05-22  Jakub Jelinek <jakub@redhat.com>
5213
5214         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
5215         not the second character in the range.
5216         * stdio-common/tstscanf.c (main): Add testcase for the above.
5217         Reported by jik@kamens.brookline.ma.us.
5218
5219 2000-05-21  H.J. Lu  <hjl@gnu.org>
5220
5221         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
5222         with noexec and noplt parameter.
5223         (do_lookup): Likewise.
5224
5225         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
5226         do_lookup.  Support STV_PROTECTED.
5227         (_dl_lookup_symbol_skip): Likewise.
5228         (_dl_lookup_versioned_symbol): Likewise.
5229         (_dl_lookup_versioned_symbol_skip): Likewise.
5230
5231         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
5232
5233         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
5234
5235 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
5236
5237         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
5238         * sysdeps/i386/bits/huge_val.h: Likewise.
5239         * sysdeps/ieee754/bits/huge_val.h: Likewise.
5240         * sysdeps/m68k/bits/huge_val.h: Likewise.
5241         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
5242         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
5243
5244 2000-05-22  Andreas Jaeger  <aj@suse.de>
5245
5246         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
5247         change in iconv.h.
5248
5249 2000-05-19  Andreas Jaeger  <aj@suse.de>
5250
5251         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5252         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
5253         breaks compilation without linuxthreads.
5254
5255 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
5256
5257         * sysdeps/ia64/memccpy.S: New file.
5258         * sysdeps/ia64/memchr.S: New file.
5259         * sysdeps/ia64/memcmp.S: New file.
5260         * sysdeps/ia64/memcpy.S: New file.
5261         * sysdeps/ia64/memmove.S: New file.
5262         * sysdeps/ia64/memset.S: New file.
5263         * sysdeps/ia64/strcat.S: New file.
5264         * sysdeps/ia64/strchr.S: New file.
5265         * sysdeps/ia64/strcmp.S: New file.
5266         * sysdeps/ia64/strcpy.S: New file.
5267         * sysdeps/ia64/strlen.S: New file.
5268         * sysdeps/ia64/strncmp.S: New file.
5269         * sysdeps/ia64/strncpy.S: New file.
5270         * sysdeps/ia64/softpipe.h: New file.
5271         Patches by Dan Pop <Dan.Pop@cern.ch>.
5272
5273         * manual/memory.texi: Document memory handling functions (mlock,
5274         munlock, mlockall, munlockall, brk, and sbrk)
5275         * manual/time.texi: Document timespec and friends.
5276         * manual/conf.texi: Fix references.
5277         * manual/ctype.texi: Likewise.
5278         * manual/errno.texi: Likewise.
5279         * manual/intro.texi: Likewise.
5280         * manual/locale.texi: Likewise.
5281         * manual/sysinfo.texi: Likewise.
5282         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
5283
5284 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
5285
5286         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
5287         * sysdeps/ia64/dl-lookupcfg.h: ...here.
5288
5289 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
5290
5291         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
5292         dxfer_direction.
5293
5294 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
5295
5296         * locale/locale.h (struct lconv): Add new elements from ISO C99.
5297         * locale/localeconv.c: Initialize new elements from ISO C99.
5298         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
5299         new standard elements.
5300         * locale/categories.def: Adjust accordingly.
5301
5302         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
5303         * iconv/iconv.c: Likewise.
5304         * conform/data/iconv.h-data: Likewise.
5305         * iconv/iconv_prog.c (process_block): Remove const from second
5306         parameter.
5307         (main): Remove const from addr definition.
5308         * manual/charset.texi (Generic Conversion Interface): Remove from
5309         inbuf parameter of iconv.
5310
5311         * intl/dcigettext.c: Fix typo in comment.
5312
5313 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
5314
5315         * resolv/res_libc.c (_res): Initialize _sock to -1.
5316
5317 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
5318
5319         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
5320         (fopencookie@@GLIBC_2.2): New.
5321         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
5322         (fopencookie@GLIBC_2.0): New.
5323         * libio/Versions: Add fopencookie to GLIBC_2.2.
5324
5325 2000-05-18  Andreas Jaeger  <aj@suse.de>
5326
5327         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
5328         Closes PR libc/1731.
5329
5330         * manual/arith.texi (Parsing of Integers): Fix typo.
5331         Closes PR libc/1744, reported by blp@gnu.org.
5332
5333 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
5334
5335         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
5336         __extension__ to hexadecimal floating constant notation.
5337         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
5338         Likewise.
5339         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
5340         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
5341         Likewise.
5342         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
5343         HUGE_VALL): Likewise.
5344         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
5345         HUGE_VALL): Likewise.
5346         (HUGE_VALL): Set to HUGE_VAL on sparc32.
5347
5348 2000-05-17  Andreas Jaeger  <aj@suse.de>
5349
5350         * string/envz.h: Add pure attributes if possible.
5351
5352         * string/argz.h: argz_count is a pure function.
5353
5354         * string/strings.h: Add pure and const attributes if possible.
5355
5356         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
5357         possibly searching through the whole memory.
5358         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
5359
5360 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
5361
5362         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
5363         not yet defined.
5364         (_dl_cache_check_flags): Likewise.
5365         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
5366         dl-cache.h.
5367
5368 2000-05-17  Andreas Jaeger  <aj@suse.de>
5369
5370         * manual/creature.texi (Feature Test Macros): Remove paragraph
5371         since the description is wrong.
5372         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
5373
5374         * scripts/config.sub: New version.
5375         * scripts/config.guess: Likewise.
5376         * manual/texinfo.tex: Likewise.
5377
5378         * time/test_time.args: Removed.
5379         * time/Makefile (test_time-ARGS): Added contents here instead.
5380
5381         * posix/tstgetopt.args: Removed.
5382         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
5383
5384         * Rules: Allow arguments for test files to be specified in
5385         Makefile with testname-ARGS; remove rules with .args in it.
5386
5387         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
5388         remove old bogus rule for opendir-tst1.args.
5389
5390         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
5391
5392         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
5393         into objdir.  This allows a readonly sourcetree.
5394         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
5395
5396 2000-05-16  Andreas Jaeger  <aj@suse.de>,
5397             David Huggins-Daines <dhd@linuxcare.com>
5398
5399         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
5400         cache_data in case of only new cache format correctly.
5401
5402         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
5403         cache_file_new.
5404
5405         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
5406         struct cache_file_new.
5407
5408         * elf/cache.c (save_cache): Fix str_offset if only new cache is
5409         present.
5410
5411         * elf/cache.c (save_cache): Align struct new_file_cache.
5412         (print_cache): Likewise.
5413
5414 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
5415
5416         * elf/soinit.c (__libc_global_ctors): Move
5417         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
5418         * resolv/resolv.h (__res_state): Added __attribute__((const)).
5419         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
5420         variable, don't define it to __res_state call.
5421
5422 2000-05-13  Andreas Jaeger  <aj@suse.de>
5423
5424         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
5425         Linux 2.3.99pre7.
5426         (AF_PPPOX): Likewise.
5427         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
5428         (AF_PPPOX): Likewise.
5429
5430 2000-05-12  Andreas Jaeger  <aj@suse.de>
5431
5432         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
5433         Reported by tmoestl@gmx.net, closes PR libc/1732.
5434
5435 2000-05-11  Jan Hubicka  <jh@suse.cz>
5436
5437         * misc/sys/cdefs.h: Add support for pure attribute.
5438
5439         * include/string.h: Add __attribute_pure__ to various functions.
5440         * string/string.h: Likewise.
5441
5442 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
5443
5444         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
5445         argument.
5446         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
5447         R_SPARC_UA64.
5448         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
5449
5450 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
5451
5452         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
5453         at proper place.  Compute the high nibble correctly.
5454
5455 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
5456
5457         * elf/ldconfig.c: Include elf.h.
5458
5459         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
5460         (_dl_vsym): Likewise.
5461         Reported by Owen Taylor <otaylor@redhat.com>.
5462
5463         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
5464         always.
5465
5466 2000-05-08  Andreas Jaeger  <aj@suse.de>
5467
5468         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
5469
5470         * intl/bindtextdom.c (set_binding_values): Add prototype.
5471
5472 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
5473
5474         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
5475         call to elf_machine_fixup_plt.
5476         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
5477         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5478
5479 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
5480
5481         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
5482         they are not dlclose'd from underneath us.
5483
5484 2000-05-08  Andreas Schwab  <schwab@suse.de>
5485
5486         * posix/execle.c: Fix size parameter of memcpy.
5487
5488 2000-05-08  Andreas Schwab  <schwab@suse.de>
5489
5490         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
5491         getpagesize syscall if available.
5492
5493 2000-05-08  Andreas Jaeger  <aj@suse.de>
5494
5495         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
5496         set errno.
5497
5498 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
5499
5500         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
5501         sizeof(struct link_map *) chunks, not in bytes.
5502
5503 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
5504
5505         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
5506         only needed for locale.
5507         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
5508         It's only needed for catgets.
5509         Patches by Greg McGary <gkm@eng.ascend.com>.
5510
5511 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
5512
5513         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
5514         Remove duplicate <errno.h> include.  Remove inclusion of
5515         <libintl.h> and "nsswitch.h".
5516         (set_cloexec_flag): New function, broken out of dbopen.
5517         (dbopen): Changed return type to `enum
5518         nss_status'.  Mostly rewritten to make sure that we do not report
5519         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
5520         (internal_setent): Change return type to nss_status.
5521         Document, and make sure that the function
5522         behaves accordingly.  Make dynamically loading the database
5523         library really thread-safe and return NSS_STATUS_UNAVAIL if it
5524         failed.
5525         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
5526         unecessary casts.
5527         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
5528         documentation.
5529         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
5530         c_get function member.
5531         * nss/nss_db/nss_db.h: Add and tweak some comments.
5532         (DBT): Move typedef before NSS_DBC typedef.
5533         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
5534
5535 2000-05-07  H.J. Lu  <hjl@gnu.org>
5536
5537         * csu/initfini.c: Moved to ....
5538         * sysdeps/generic/initfini.c: ...here.
5539
5540         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
5541
5542 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
5543
5544         * manual/resource.texi: Document POSIX scheduling functions.
5545         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5546
5547         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
5548         reading anything.  Reported by Andries.Brouwer@cwi.nl.
5549
5550         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
5551         for x since promotion in comparison might leads to unexpected
5552         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
5553
5554         * iconv/Makefile (tests): Add tst-iconv1.
5555         * iconv/tst-iconv1.c: New file.
5556         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
5557         empty input buffer over full output buffer.
5558         (ucs4_internal_loop): Likewise.
5559         (ucs4_internal_loop_unaligned): Likewise.
5560         (internal_ucs4le_loop): Likewise.
5561         (internal_ucs4le_loop_unaligned): Likewise.
5562         (ucs4le_internal_loop): Likewise.
5563         (ucs4le_internal_loop_unaligned): Likewise.
5564         Reported by yaoz@nih.gov.
5565
5566 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
5567
5568         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
5569         returned != __GCONV_OK, there is nothing to clean up.
5570
5571 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
5572
5573         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
5574         OUTPUT_CHARSET environment variables.
5575
5576 2000-05-06  Andreas Jaeger  <aj@suse.de>
5577
5578         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
5579         (struct cache_file_new): New.
5580         (struct file_entry): New (moved from cache.c).
5581         (struct cache_file): New (moved from cache.c).
5582
5583         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
5584         from _dl_load_cache_lookup.
5585         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
5586         the different cache formats.
5587         New variable cache_new for new format.
5588
5589         * elf/ldconfig.h: Change according to changes in cache.c and
5590         ldconfig.c; remove cache_libcmp; add opt_format.
5591
5592         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
5593         stuff that's defined in those headers.
5594         Add hwcap to struct lib_entry.
5595         (opt_format): New variable to select cache format.
5596         (options): Add format parameter.
5597         (is_hwcap): New function.
5598         (path_hwcap): New function.
5599         (parse_opt): Handle new format parameter.
5600         (search_dir): Handle hwcap, search also subdirectories with hwcap.
5601
5602         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
5603         ldconfig is part of glibc.
5604         Include dl-cache.h and remove stuff that's defined there.
5605         (struct cache_entry): Add new member hwcap.
5606         (print_entry): Print hwcap, cleanup a bit.
5607         (print_cache): Print new and old formats.
5608         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
5609         (save_cache): Save new and old formats.
5610         (add_to_cache): Handle hwcap.
5611
5612         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
5613         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
5614         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
5615         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
5616         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
5617         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
5618
5619 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
5620
5621         * intl/dcigettext.c (alignof): New macro.
5622         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
5623         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
5624         freemem_size to 0.
5625
5626 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
5627
5628         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
5629         return value.
5630
5631 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
5632
5633         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
5634         (mempcpy): Correct typo is parameter list.
5635
5636 2000-05-06  Andreas Jaeger  <aj@suse.de>
5637
5638         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
5639         functions unless -ffast-math is given to gcc.
5640
5641 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
5642
5643         * po/ko.po: Update from translation team.
5644
5645 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
5646
5647         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
5648         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
5649         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
5650         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
5651         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
5652         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
5653
5654         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
5655         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
5656         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
5657
5658         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
5659         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
5660         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
5661         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
5662
5663         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
5664         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
5665
5666 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5667
5668         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
5669         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
5670
5671         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
5672         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
5673
5674         * sysdeps/ia64/Implies: New file.
5675         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
5676         * sysdeps/ia64/Makefile: New file.
5677         * sysdeps/ia64/gmp-mparam.h: New file,
5678
5679         * sysdeps/ia64/elf/start.S: New file.
5680
5681         * sysdeps/ia64/bits/fenv.h: New file.
5682
5683 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
5684
5685         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
5686
5687 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
5688
5689         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
5690         ia64 has 64 bit .hash entries just as the Alpha.
5691
5692 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
5693
5694         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
5695
5696 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
5697
5698         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
5699         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
5700         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
5701         * sysdeps/ia64/fpu/fegetenv.c: New file.
5702         * sysdeps/ia64/fpu/fegetexcept.c: New file.
5703         * sysdeps/ia64/fpu/fegetround.c: New file.
5704         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
5705         * sysdeps/ia64/fpu/fesetenv.c: New file.
5706         * sysdeps/ia64/fpu/fesetround.c: New file.
5707         * sysdeps/ia64/fpu/feupdateenv.c: New file.
5708         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
5709         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
5710         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
5711         * sysdeps/ia64/fpu/ftestexcept.c: New file.
5712
5713 2000-05-05  Andreas Jaeger  <aj@suse.de>
5714
5715         * misc/tst-tsearch.c (main): Correct type for initstate argument.
5716
5717         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
5718         (_dl_string_hwcap): New, does nothing.
5719
5720         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
5721         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5722         (_dl_string_hwcap): New function, converts from string to hwcap
5723         encoding.
5724         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
5725         (_DL_HWCAP_COUNT): New.
5726         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5727         (_dl_string_hwcap): New function, converts from string to hwcap
5728         encoding.
5729         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
5730         (_DL_HWCAP_COUNT): New.
5731         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
5732         (_dl_string_hwcap): New function, converts from string to hwcap
5733         encoding.
5734
5735 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
5736
5737         * elf/Makefile (distribute): Add dl-lookupcfg.h.
5738         * sysdeps/ia64/Dist: New file.
5739
5740         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
5741         parameter to mprotect and for variable assignments.
5742
5743 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5744
5745         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
5746         validity of map before dereferencing it.
5747
5748         * elf/dl-reloc.c (RESOLVE_MAP): Define.
5749
5750 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
5751
5752         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
5753         lookup to the arguments to elf_machine_fixup_plt().
5754
5755         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
5756         of the symbol being resolved to input argument list and make the
5757         function return the pointer to the reloc.
5758
5759         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
5760         return valuie to lookup_t and return the value.
5761         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
5762         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
5763         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
5764         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
5765         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
5766         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
5767
5768         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
5769         Make it an inline function returning value after calling
5770         __elf_machine_fixup_plt().
5771
5772         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
5773         symbol address.
5774
5775         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
5776         obtain the symbol address.
5777
5778         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
5779         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
5780
5781         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
5782         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
5783         inline on non ia64.
5784
5785 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
5786
5787         * elf/dl-runtime.c (fixup): Use the portable macros to get the
5788         symbol address of an object.
5789
5790         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
5791         the symbol address of an object.
5792
5793         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
5794         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
5795         (_dl_lookup_symbol_skip): Likewise.
5796         (_dl_lookup_versioned_symbol): Likewise.
5797         (_dl_lookup_versioned_symbol_skip): Likewise.
5798
5799 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
5800
5801         * elf/rtld.c (_dl_start): Get the function pointer return address
5802         via _dl_start_address for architectures that need a function
5803         pointer descriptor rather than just a pointer (ia64).
5804
5805         * sysdeps/generic/dl-lookupcfg.h: New file.
5806         * sysdeps/ia64/dl-lookupcfg.h: New file.
5807         * sysdeps/ia64/dl-machine.h: New file.
5808         * sysdeps/ia64/dl-symaddr.c: New file.
5809         * sysdeps/ia64/dl-fptr.c: New file.
5810
5811         * elf/elf.h: Add IA-64 specific definitions.
5812
5813 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
5814
5815         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
5816         end of enum.
5817
5818 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
5819
5820         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
5821         happy.
5822
5823 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
5824
5825         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
5826         symbol.  Call _dl_init rather than the old way.
5827
5828 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
5829
5830         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
5831         test for pointer in range of DSO address space.
5832
5833 2000-05-04  Andreas Jaeger  <aj@suse.de>
5834
5835         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
5836
5837 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
5838
5839         * locale/findlocale.c (_nl_find_locale): Add new parameter to
5840         calls of _nl_make_l10nflist.
5841
5842         * libio/stdio.h: Make fseeko and ftello prototypes available is
5843         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
5844
5845         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
5846         real unsetenv implementation from 1999-07-29 [PR libc/1714].
5847
5848 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
5849
5850         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
5851         before calling tfind.
5852
5853 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
5854
5855         * resolv/resolv.h (res_querydomain): Remove redefinition to
5856         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
5857
5858 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
5859
5860         * po/gl.po: Update from translation team.
5861
5862         * manual/intro.texi (Program Basics): Change section title.
5863         * manual/process.texi: Fix reference.
5864         (Executing a File): Add reference exec in other section.
5865         * manual/signal.texi: Fix reference.
5866         * manual/startup.texi: Document syscall function.
5867         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
5868
5869 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5870
5871         * intl/libintl.h (bind_textdomain_codeset): New declaration.
5872         * intl/bindtextdom.c (set_binding_values): New function.
5873         (bindtextdomain): Call it.
5874         (bind_textdomain_codeset): New function.
5875         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
5876         (free_mem): Free each binding's codeset.
5877         * intl/gettextP.h (struct binding): Add codeset field.
5878         (_nl_find_domain): Add domainbinding argument.
5879         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
5880         Pass it to _nl_make_l10nflist.
5881         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
5882         (_nl_make_l10nflist): Add domainbinding argument.
5883         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
5884         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
5885         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
5886         locale_charset().
5887         * manual/message.texi: New node "Charset conversion in gettext".
5888
5889 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
5890
5891         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
5892         appropriate.  Handle possible __read error.
5893
5894 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5895
5896         * intl/gettextP.h (__builtin_expect): Define as empty if not a
5897         compiler builtin.
5898         * intl/loadinfo.h (__builtin_expect): Likewise.
5899         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
5900         __builtin_expect where appropriate.
5901         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5902         * intl/localealias.c (extend_alias_table): Return an error indicator.
5903         (read_alias_file): Bail out if extend_alias_table fails.
5904
5905 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5906
5907         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
5908         * intl/localealias.c: Likewise.
5909
5910 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
5911
5912         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
5913         Initialize domain->plural and domain->nplurals even if there is no
5914         nullentry.
5915
5916 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
5917
5918         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
5919         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
5920         In case of failure, goto converted.
5921
5922 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
5923
5924         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
5925         * iconv/gconv_int.h (norm_add_slashes): Move to here.
5926         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
5927         __gconv_open.
5928
5929 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5930
5931         * intl/dcigettext.c (transcmp): Compare the domains as well.
5932         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
5933         not before.
5934         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
5935         <errno.h>.
5936
5937 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
5938
5939         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
5940         Reported by Bruno Haible.
5941
5942 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
5943
5944         * manual/arith.texi: Remove @w from @itemize.
5945
5946 2000-05-02  Andreas Jaeger  <aj@suse.de>
5947
5948         * conform/data/tar.h-data: Add some checks for specific values.
5949
5950         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
5951         and RAND_MAX.
5952
5953         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
5954         FOPEN_MAX.
5955
5956         * conform/data/netinet/in.h-data: Add exact checks for the values
5957         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
5958
5959         * conform/data/float.h-data: Add some minimal values.
5960
5961         * conform/conformtest.pl: Test for macros with string constants,
5962         check for minimum and maximum values.
5963         Add limits.h to headers.
5964
5965         * conform/data/cpio.h-data: Test for value of MAGIC.
5966
5967         * conform/data/limits.h-data: New file.
5968
5969 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
5970
5971         * math/Makefile (headers): Add bits/fenvinline.h.
5972
5973 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
5974
5975         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
5976         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
5977
5978         * posix/Versions: Change posix_spawnattr_getdefault and
5979         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
5980         and posix_spawnattr_setsigdefault respectively.
5981         * posix/spawn.h: Likewise.
5982         * posix/spawnattr_getdefault.h: Likewise.
5983         * posix/spawnattr_setdefault.h: Likewise.
5984         * conform/data/spawn.h-data: Likewise.
5985
5986 2000-05-01  Andreas Jaeger  <aj@suse.de>
5987
5988         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
5989
5990 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
5991
5992         * manual/sysinfo.texi: Document getdomainname, setdomainname
5993         and sysctl.
5994         * manual/string.texi: Fix typo.
5995         * manual/terminal.texi: Document gtty and stty.
5996         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
5997
5998 2000-04-30  Andreas Jaeger  <aj@suse.de>
5999
6000         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
6001         accordance with Austin Draft.
6002
6003 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
6004
6005         * catgets/gencat.c (read_input_file): Use isblank and not isspace
6006         to recognize second character in comment line.
6007
6008         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
6009         ENOBUFS if we are out of memory.
6010
6011         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
6012         available if __USE_XOPEN2K.
6013         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
6014         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6015         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6016         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6017         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
6018         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6019         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
6020         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
6021
6022 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
6023
6024         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
6025         Recognize option -s, -c, and -l.
6026
6027 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
6028
6029         * nscd/nscd.c: Start new session for nscd, drop privilegs
6030         to configured user if requested and no -S parameter are used.
6031         * nscd/nscd.conf: Add new option "server-user".
6032         * nscd/nscd_conf.c: Add support for new "server-user" option.
6033         * nscd/nscd.h: Add declaration for server_user variable.
6034         Based on patch by Chris Wing <wingc@engin.umich.edu>
6035
6036 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
6037
6038         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
6039         that changing the __restore and __restore_rt signal return code
6040         will break GDB.
6041
6042 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
6043
6044         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
6045         <sys/user.h>.
6046
6047 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
6048
6049         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
6050
6051 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
6052
6053         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
6054         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
6055         arpa/inet.h.
6056         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
6057         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
6058         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
6059         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
6060         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
6061         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
6062         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
6063         posix_fallocate, and posix_madvise.
6064         * conform/data/netdb.h-data: New file.
6065         * conform/data/pthread.h-data: Add pthread_barrier_t,
6066         pthread_barrierattr_t, pthread_barrier_destroy,
6067         pthread_barrier_init, pthread_barrier_wait,
6068         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
6069         pthread_barrierattr_init, pthread_barrierattr_setpshared,
6070         pthread_condattr_getclock, pthread_condattr_setclock,
6071         pthread_getcpuclockid, pthread_mutex_timedlock,
6072         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
6073         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
6074         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
6075         * conform/data/sched.h-data: Add sched_ss_low_priority,
6076         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
6077         SCHED_SPORADIC.
6078         * conform/data/semaphore.h-data: Add sem_timedwait.
6079         * conform/data/signal.h-data: Add SIGIO.
6080         * conform/data/spawn.h-data: New file.
6081         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
6082         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
6083         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
6084         Fix typo in gmtime_r definition.
6085         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
6086         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
6087         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
6088         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
6089         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
6090         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
6091         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
6092         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
6093         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
6094         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
6095         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
6096         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
6097         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
6098         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
6099         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
6100         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
6101         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
6102         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
6103         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
6104         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
6105         typo in off_t definition.
6106         * conform/data/net/if.h-data: New file.
6107         * conform/data/netinet/in.h-data: New file.
6108         * conform/data/netinet/tcp.h-data: New file.
6109         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
6110         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
6111         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
6112         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
6113         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
6114         and posix_typed_mem_open.
6115         * conform/data/sys/socket.h-data: New file.
6116         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
6117         * conform/data/sys/types.h-data: Add pthread_barrier_t,
6118         pthread_barrierattr_t, and pthread_spinlock_t.
6119         * conform/data/sys/un.h-data: New file.
6120         * conform/data/sys/utsname.h-data: New file.
6121
6122         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
6123         parameter.
6124         * inet/gethstbyad.c (gethostbyname): Likewise.
6125         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
6126         * inet/getipnodebyad.c (getipnodebyad): Likewise.
6127         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
6128         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
6129         Likewise.
6130         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
6131         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
6132         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
6133         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
6134         * resolv/gethnamaddr.c (gethostbyname): Likewise.
6135         * resolv/netdb.h (struct hostent): Fix type of h_length member.
6136         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
6137         and second parameter.
6138
6139         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
6140         == NULL.
6141
6142 2000-04-29  Andreas Jaeger  <aj@suse.de>
6143
6144         * conform/data/arpa/inet.h-data: New file.
6145
6146 2000-04-28  Geoff Clare <gwc@unisoft.com>
6147
6148         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
6149         path passed to ftw() or nftw() is an empty string.
6150         Closes PR libc/1710.
6151
6152 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
6153
6154         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
6155         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
6156         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
6157         * localedata/tst-mbswcs4.c: New file.
6158         * localedata/tst-mbswcs5.c: New file.
6159
6160         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
6161         == NULL.  Little optimization.
6162
6163         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
6164         DT_PREINIT_ARRAYSZ).
6165         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
6166
6167         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
6168         overflows in conversion from ASCII.
6169
6170 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
6171
6172         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
6173         * Makerules (full_config_sysdirs): Likewise.
6174         * MakeTAGS (full_config_sysdirs): Likewise.
6175
6176 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
6177
6178         * .cvsignore: Remove linuxthreads.
6179         * po/.cvsignore: Remove *.pot.
6180         * posix/glob/.cvsignore: Removed.
6181         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
6182
6183 2000-04-25  Andreas Jaeger  <aj@suse.de>
6184
6185         * conform/Makefile (distribute): Also distribute contents of
6186         subdirectories.
6187
6188         * Makerules (no_deps): Remove abi-versions.h.
6189
6190         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
6191
6192 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
6193
6194         * sysdeps/sparc/sparc64/elf/Dist: Remove.
6195         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
6196         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
6197         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
6198         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
6199         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
6200         objects.
6201
6202 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
6203
6204         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
6205
6206 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
6207
6208         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
6209         * intl/l10nflist.c: Likewise.
6210
6211 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
6212
6213         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
6214         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
6215         * intl/textdomain.c [!_LIBC]: Likewise.
6216         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
6217         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
6218         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
6219         syntax error.
6220
6221 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
6222
6223         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
6224         character set conversion also in the case the translation was found
6225         after a hash collision or through binary search.  Store the maximum
6226         index together with the converted message.  Use iconv() when available.
6227         In case of out of memory during conversion, return the unconverted
6228         translated string, not NULL.
6229
6230 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
6231
6232         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
6233         to avoid name clashes with the ia32 linker.
6234
6235 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
6236
6237         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
6238         handling.
6239
6240 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
6241
6242         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
6243         strtoumax, strfry, and memfrob.
6244         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
6245         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6246
6247         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
6248         if this function is available.
6249
6250         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
6251         all values.
6252
6253 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
6254
6255         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
6256
6257 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
6258
6259         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
6260         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
6261         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
6262         * localedata/tst-mbswcs3.c: New file.
6263
6264 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
6265
6266         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
6267         characters.  Don't handle incomplete characters as errors.
6268         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
6269         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
6270         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
6271         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
6272         * localedata/tst-mbswcs2.c: New file.
6273
6274         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
6275         stored character in state in UNPACK_BYTES macro.
6276         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
6277         test for available characters, handle result of BODY code correctly.
6278         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
6279         (distribute): Add tst-mbswcs.sh.
6280         Add rule to run tst-mbswcs.sh.
6281         * localedata/tst-mbswcs.sh: New file.
6282         * localedata/tst-mbswcs1.c: New file.
6283
6284 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
6285
6286         * nis/nis_callback.c (__nis_create_callback): Do failed memory
6287         allocation fixups centrally, fix __builtin_expect call, return NULL
6288         on failure, not NIS_NOMEMORY.
6289
6290 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
6291
6292         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
6293
6294         * intl/loadinfo.h (internal_function): Define if not already defined.
6295
6296 2000-04-27  Andreas Jaeger  <aj@suse.de>
6297
6298         * intl/libintl.h: Fix typo, reported by Bruno Haible
6299         <haible@clisp.cons.org>.
6300
6301 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
6302
6303         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
6304         setting the state to GMON_PROF_BUSY.
6305
6306 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
6307
6308         * elf/dl-profile.c (_dl_start_profile): define all variables which
6309         do not have to be global as local variables.
6310
6311         * nis/nis_callback.c (__nis_create_callback): Partially undo last
6312         patch.  Keep needed tests for failed memory allocation.
6313
6314         * elf/dl-reloc.c (_dl_relocate_object): Add one more
6315         __builtin_expect saying that we don't normally expect to profile.
6316
6317         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
6318         __builtin_expect where desirable.
6319
6320 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
6321
6322         * manual/Makefile (chapters): Add syslog.
6323         * manual/syslog.texi: New file.
6324         * manual/math.texi: Fix references.
6325         * manual/terminal.texi: Likewise.
6326         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6327
6328 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
6329
6330         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
6331         stdlib.h was not included or __USE_XOPEN not defined.
6332
6333 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
6334
6335         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
6336         Patch by Zack Weinberg <zack@wolery.cumb.org>.
6337
6338 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
6339
6340         * manual/examples/subopt.c (mount_opts): Add missing terminating
6341         entry.
6342         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
6343
6344         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
6345         * libio/ftello.c: Likewise.
6346         * libio/ftello64.c: Likewise.
6347         * libio/ioftell.c: Likewise.
6348         * sysdeps/generic/memrchr.c: Likewise.
6349         * sysdeps/posix/libc_fatal.c: Likewise.
6350         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
6351         * misc/fstab.c: Include <string.h> for strcmp prototype.
6352         * sysdeps/generic/ldsodefs.h: Likewise.
6353         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6354         Patch by Kurt Roeckx <Q@ping.be>.
6355
6356         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
6357         Remove db-open.  Change all uses.
6358         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
6359
6360 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
6361
6362         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
6363         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
6364         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
6365         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
6366         with .set noat/at to shut up warnings.
6367         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
6368         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
6369         compilation if __NR_pciconfig_iobase is not defined.
6370         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
6371         Add alias.
6372
6373 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
6374
6375         * manual/sysinfo.texi: Fix typo.
6376         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
6377         Replace "high precision time" with "high accuracy clock".
6378         Fix language.
6379         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
6380
6381         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
6382         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
6383         instead of malloc.
6384         * nis/nis_subr.c: Use __builtin_expect.
6385         * nis/ypclnt.c: Likewise.
6386         * nis/nis_getservlist.c: Likewise.
6387         * nis/nis_creategroup.c: Likewise.
6388
6389         * nis/nis_callback.c (__nis_create_callback): Check result of
6390         memory allocation.  Fix memory leaks.  Use __builtin_expect.
6391         (__nis_destroy_callback): Fix memory leaks.
6392
6393 2000-04-21  Andreas Jaeger  <aj@suse.de>
6394
6395         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
6396         * sysdeps/mips/mips64/add_n.S: Likewise.
6397         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
6398         * sysdeps/mips/mips64/lshift.S: Likewise.
6399         * sysdeps/mips/mips64/mul_1.S: Likewise.
6400         * sysdeps/mips/mips64/rshift.S: Likewise.
6401         * sysdeps/mips/mips64/setjmp.S: Likewise.
6402         * sysdeps/mips/mips64/sub_n.S: Likewise.
6403         * sysdeps/mips/mips64/submul_1.S: Likewise
6404         * sysdeps/unix/mips/sysdep.S: Likewise.
6405
6406         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
6407         and update comment.  The strtab from _dl_relocate_object can be
6408         used.
6409
6410 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
6411
6412         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
6413         * iconv/iconv_close.c (iconv_close): Likewise.
6414         * iconv/iconv_open.c (iconv_open): Likewise.
6415
6416         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
6417         __builtin_expect where useful.
6418
6419         * grp/initgroups.c (initgroups): Test for result of memory
6420         allocation and punt if it fails.
6421
6422         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
6423         * grp/fgetgrent.c (fgetfrent): Likewise.
6424         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
6425
6426 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
6427
6428         * libio/vasprintf.c: Include string.h to get memcpy prototype.
6429
6430 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
6431
6432         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
6433         don't search for NUL byte to decrement counter.
6434         Reported by Ulrich.Brink@sap.com.
6435
6436         * iconv/gconv_simple.c: Define separate functions to convert from
6437         UCS4/UCS4-LE to the internal encoding.
6438         * iconv/gconv_builtin.h: Use separate functions to convert from
6439         UCS4/UCS4-LE to the internal encoding.
6440         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
6441         __gconv_transform_ucs4le_internal.
6442
6443         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
6444         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
6445
6446         * iconv/skeleton.c: Add some more __builtin_expect.
6447         * iconv/loop.c: Likewise.
6448
6449 2000-03-08  H.J. Lu  <hjl@gnu.org>
6450
6451         * posix/regex.c (regex_compile): Correctly handle "\{" when
6452         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
6453
6454 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
6455
6456         * manual/stdio.texi: Give advise about handling error when using
6457         stream functions.
6458         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
6459
6460 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
6461
6462         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
6463         field to nelems * sizeof (uint32_t).
6464         * locale/programs/ld-address.c (address_output): Align word fields
6465         properly.
6466         * locale/programs/ld-monetary.c (monetary_output): Likewise.
6467         Don't restart idx pointers to idx end at the duo_int_curr_symbol
6468         field.
6469         Avoid giving arbitrary garbage in the crncystr field.
6470         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
6471         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
6472         fields.
6473         * locale/programs/ld-numeric.c (numeric_output): Likewise.
6474         Don't restart idx pointers to idx end at the decimal_point_wc field.
6475         * locale/programs/ld-time.c (time_output): week_1stday should be
6476         word, not byte.  Align it properly.
6477
6478 2000-04-19  H.J. Lu  <hjl@gnu.org>
6479
6480         * csu/gmon-start.c (_start): Declared as "extern void".
6481         (etext): Likewise.
6482
6483 2000-04-18  Andreas Jaeger  <aj@suse.de>
6484
6485         * manual/install.texi (Running make install): Don't mention utmpd
6486         anymore.
6487
6488 2000-04-18  Andreas Jaeger  <aj@suse.de>
6489
6490         * linuxthreads/Versions: Use ld instead of ld.so.
6491
6492         * elf/Makefile (ld-map): Use ld.map.
6493
6494         * Versions.def: Use ld instead of ld.so.
6495         * elf/Versions: Likewise.
6496         * sysdeps/mach/hurd/Versions: Likewise.
6497
6498 2000-04-20  Andreas Jaeger  <aj@suse.de>
6499
6500         * elf/rtld.c (print_statistics): Move ifndef further up.
6501         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
6502         (dl_main): Likewise.
6503
6504 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
6505
6506         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
6507         * gmon/Versions: Move moncontrol to GLIBC_2.2.
6508
6509         * po/cs.po: Update from translation team.
6510
6511         * sysdeps/generic/updwtmp.c: Remove daemon support.
6512
6513         * login/Makefile (routines): Remove utmp_daemon.
6514
6515         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
6516         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
6517         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
6518         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
6519
6520         * elf/rtld.c: Display statitics option also if hp timing is not
6521         available.
6522
6523         * login/programs/connection.c: Removed.
6524         * login/programs/database.c Removed.
6525         * login/programs/error.c: Removed.
6526         * login/programs/request.c: Removed.
6527         * login/programs/xtmp.c: Removed.
6528         * login/programs/xtmp.h: Removed.
6529         * login/Makefile: Remove rules for utmpd.
6530         * login/README.utmpd: Removed.
6531         * login/utmp_daemon.c: Removed.
6532         * login/getutent_r.c: Remove references to daemon functions.
6533         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
6534         declaration.
6535
6536 2000-04-18  Andreas Jaeger  <aj@suse.de>
6537
6538         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
6539         2.2 for libnsl, libresolv, librt, libnss_*.
6540
6541         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
6542
6543         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
6544
6545 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
6546
6547         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
6548         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
6549         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
6550         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
6551         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
6552         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
6553         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
6554         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
6555         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
6556         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
6557         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
6558         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
6559         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
6560         it here.
6561         * sysdeps/unix/sysv/aix/msync.c: New file.
6562         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
6563         * sysdeps/unix/sysv/aix/net/if.h: New file.
6564         * sysdeps/unix/sysv/aix/pipe.c: New file.
6565         * sysdeps/unix/sysv/aix/poll.c: New file.
6566         * sysdeps/unix/sysv/aix/rename.c: New file.
6567         * sysdeps/unix/sysv/aix/rmdir.c: New file.
6568         * sysdeps/unix/sysv/aix/select.c: New file.
6569         * sysdeps/unix/sysv/aix/semctl.c: New file.
6570         * sysdeps/unix/sysv/aix/semget.c: New file.
6571         * sysdeps/unix/sysv/aix/semop.c: New file.
6572         * sysdeps/unix/sysv/aix/sendto.c: New file.
6573         * sysdeps/unix/sysv/aix/setgroups.c: New file.
6574         * sysdeps/unix/sysv/aix/setpgid.c: New file.
6575         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
6576         * sysdeps/unix/sysv/aix/setpriority.c: New file.
6577         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
6578         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
6579         * sysdeps/unix/sysv/aix/setsid.c: New file.
6580         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
6581         * sysdeps/unix/sysv/aix/shmat.c: New file.
6582         * sysdeps/unix/sysv/aix/shmctl.c: New file.
6583         * sysdeps/unix/sysv/aix/shmdt.c: New file.
6584         * sysdeps/unix/sysv/aix/shmget.c: New file.
6585         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
6586         * sysdeps/unix/sysv/aix/sigstack.c: New file.
6587         * sysdeps/unix/sysv/aix/socket.c: New file.
6588         * sysdeps/unix/sysv/aix/socketpair.c: New file.
6589         * sysdeps/unix/sysv/aix/speed.c: New file.
6590         * sysdeps/unix/sysv/aix/symlink.c: New file.
6591         * sysdeps/unix/sysv/aix/sync.c: New file.
6592         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
6593         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
6594         * sysdeps/unix/sysv/aix/times.c: New file.
6595         * sysdeps/unix/sysv/aix/ulimit.c: New file.
6596         * sysdeps/unix/sysv/aix/umask.c: New file.
6597         * sysdeps/unix/sysv/aix/unlink.c: New file.
6598         * sysdeps/unix/sysv/aix/ustat.c: New file.
6599         * sysdeps/unix/sysv/aix/utimes.c: New file.
6600
6601 2000-04-18  Andreas Jaeger  <aj@suse.de>
6602
6603         * manual/startup.texi (Environment Access): Fix putenv prototype
6604         according to recent changes.
6605         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
6606         PR libc/1692.
6607
6608         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
6609         needed.
6610
6611 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
6612
6613         * posix/Makefile (tests): Add tst-getaddrinfo.
6614         * posix/tst-getaddrinfo.c: New file.
6615
6616 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
6617
6618         * manual/sysinfo.texi: Document that umount2 is not widely available.
6619
6620         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
6621         signal timing is not really implemented.
6622
6623 2000-04-17  Andreas Jaeger  <aj@suse.de>
6624
6625         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
6626
6627 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
6628
6629         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
6630         and inst_libdir.
6631
6632 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
6633
6634         * manual/intro.texi: Change reference from System Information to
6635         System Management.
6636         * manual/users.texi: Likewise.
6637         * manual/conf.texi: Likewise.
6638         * manual/sysinfo.texi: Document mount, umount, and umount2.
6639         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6640
6641 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
6642
6643         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
6644         Create wnumstr as well as numstr to support wide character output
6645         correctly.
6646
6647 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
6648
6649         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
6650         modification and move it...
6651         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
6652         Add -melf64_sparc switch to $(LD) on sparc64-linux.
6653         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
6654         switch to $(LD) on sparc-linux.
6655
6656 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
6657
6658         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
6659         and setresuid from sysdep_routines.
6660
6661 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
6662
6663         * manual/Makefile (chapters): Add resource.
6664
6665         * manual/time.texi: Move section on resources to...
6666         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
6667         and vtimes.
6668         * manual/setjmp.texi: Adjust back reference.
6669         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6670
6671         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
6672         definition.
6673         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
6674         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
6675         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
6676         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
6677         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
6678         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
6679         * sysdeps/unix/sysv/aix/close.c: Add copyright.
6680         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
6681         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
6682         * sysdeps/unix/sysv/aix/access.c: Add copyright.
6683         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
6684         * sysdeps/unix/sysv/aix/Implies: New file.
6685         * sysdeps/unix/sysv/aix/Versions: New file.
6686         * sysdeps/unix/sysv/aix/bind.c: New file.
6687         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
6688         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
6689         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
6690         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
6691         * sysdeps/unix/sysv/aix/chdir.c: New file.
6692         * sysdeps/unix/sysv/aix/chmod.c: New file.
6693         * sysdeps/unix/sysv/aix/chroot.c: New file.
6694         * sysdeps/unix/sysv/aix/creat.c: New file.
6695         * sysdeps/unix/sysv/aix/dl-close.c: New file.
6696         * sysdeps/unix/sysv/aix/dl-open.c: New file.
6697         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
6698         * sysdeps/unix/sysv/aix/fchdir.c: New file.
6699         * sysdeps/unix/sysv/aix/fchmod.c: New file.
6700         * sysdeps/unix/sysv/aix/getgroups.c: New file.
6701         * sysdeps/unix/sysv/aix/gethostname.c: New file.
6702         * sysdeps/unix/sysv/aix/getpriority.c: New file.
6703         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
6704         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
6705         * sysdeps/unix/sysv/aix/getrusage.c: New file.
6706         * sysdeps/unix/sysv/aix/link.c: New file.
6707         * sysdeps/unix/sysv/aix/madvise.c: New file.
6708         * sysdeps/unix/sysv/aix/mkdir.c: New file.
6709         * sysdeps/unix/sysv/aix/mknod.c: New file.
6710         * sysdeps/unix/sysv/aix/mprotect.c: New file.
6711         * sysdeps/unix/sysv/aix/msgctl.c: New file.
6712         * sysdeps/unix/sysv/aix/msgget.c: New file.
6713         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
6714
6715 2000-04-17  Andreas Jaeger  <aj@suse.de>
6716
6717         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
6718         as suggested by Ulrich Drepper.
6719         (__dl_runtime_resolve): Remove unused variable, initialize sym
6720         directly.
6721         (RTLD_START): Document OFFSET_GP_GOT.
6722         (OFFSET_GP_GOT): New magic value.
6723         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
6724         (elf_machine_got_rel): Only declare strtab if needed.
6725         (elf_machine_relplt): Removed, it's not needed.
6726         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
6727
6728         * sysdeps/mips/add_n.S: Add newline at EOF.
6729         * sysdeps/mips/rshift.S: Likewise.
6730         * sysdeps/mips/mul_1.S: Likewise.
6731         * sysdeps/mips/lshift.S: Likewise.
6732         * sysdeps/mips/addmul_1.S: Likewise.
6733
6734 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
6735
6736         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
6737
6738         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
6739         * elf/dl-lookup.c: Likewise.
6740         * elf/dl-init.c (_dl_init): Likewise.
6741         * elf/dl-fini.c (_dl_fini): Likewise.
6742         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
6743         * elf/dl-close.c (_dl_close): Likewise.
6744         * elf/rtld.c (_dl_start_final): Likewise.
6745
6746         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
6747
6748 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
6749
6750         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
6751         only fall back on using Linux.
6752
6753         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
6754         Before testing versions check that we actually loaded the object
6755         and whether we are in trace mode.  If not loaded during tracing don't
6756         test versions in this object.
6757         (_dl_check_all_versions): Take new parameter and pass to
6758         _dl_check_map_versions.
6759         * sysdeps/generic/ldsodefs.h: Update prototypes for
6760         _dl_check_all_versions and _dl_check_map_versions.
6761         * elf/rtld.c (struct version_check_args): Add dotrace.
6762         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
6763         (dl_main): Pass info about trace mode to version_check_doit.
6764         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
6765         _dl_check_all_versions.
6766
6767         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
6768         and getutmpx.
6769         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
6770
6771         * manual/argp.texi: Document index parameter of argp_parse.
6772         Fix typo.
6773         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
6774
6775 2000-04-14  Andreas Jaeger  <aj@suse.de>
6776
6777         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
6778         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
6779
6780         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
6781
6782 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
6783
6784         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
6785         compat_symbol call for old adjtime.
6786
6787         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
6788         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
6789
6790         * posix/Makefile (headers): Add spawn.h.
6791         (distribute): Add spawn_int.h.
6792         (routines): Add spawn_faction_init, spawn_faction_destroy,
6793         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
6794         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
6795         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
6796         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
6797         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
6798         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
6799         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
6800         posix_spawnattr_init, posix_spawnattr_destroy,
6801         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
6802         posix_spawnattr_getflags, posix_spawnattr_setflags,
6803         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
6804         and posix_spawnp.
6805         * posix/spawn.c: New file.
6806         * posix/spawn.h: New file.
6807         * posix/spawn_faction_addclose.c: New file.
6808         * posix/spawn_faction_adddup2.c: New file.
6809         * posix/spawn_faction_addopen.c: New file.
6810         * posix/spawn_faction_destroy.c: New file.
6811         * posix/spawn_faction_init.c: New file.
6812         * posix/spawn_int.h: New file.
6813         * posix/spawnattr_destroy.c: New file.
6814         * posix/spawnattr_getdefault.c: New file.
6815         * posix/spawnattr_getflags.c: New file.
6816         * posix/spawnattr_getpgroup.c: New file.
6817         * posix/spawnattr_getschedparam.c: New file.
6818         * posix/spawnattr_getschedpolicy.c: New file.
6819         * posix/spawnattr_getsigmask.c: New file.
6820         * posix/spawnattr_init.c: New file.
6821         * posix/spawnattr_setdefault.c: New file.
6822         * posix/spawnattr_setflags.c: New file.
6823         * posix/spawnattr_setpgroup.c: New file.
6824         * posix/spawnattr_setschedparam.c: New file.
6825         * posix/spawnattr_setschedpolicy.c: New file.
6826         * posix/spawnattr_setsigmask.c: New file.
6827         * posix/spawni.c: New file.
6828         * posix/spawnp.c: New file.
6829
6830         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
6831         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
6832
6833 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
6834
6835         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
6836         * malloc/malloc.c: Implement posix_memalign for glibc.
6837         * include/stdlib.h: Add prototype for __posix_memalign.
6838         * stdlib/stdlib.h: Add prototype for posix_memalign.
6839
6840 2000-04-14  Andreas Jaeger  <aj@suse.de>
6841
6842         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
6843         symidx correctly.
6844         (elf_machine_got_rel): Cast sym correctly.
6845
6846         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
6847         * sysdeps/mips/addmul_1.S: Likewise.
6848         * sysdeps/mips/lshift.S: Likewise.
6849         * sysdeps/mips/mul_1.S: Likewise.
6850         * sysdeps/mips/rshift.S: Likewise.
6851         * sysdeps/mips/sub_n.S: Likewise.
6852         * sysdeps/mips/submul_1.S: Likewise.
6853
6854         * stdlib/stdlib.h: Fix typo in comment.
6855
6856         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
6857         2.2 for libdl, ld and libm.
6858
6859         * sysdeps/generic/madvise.c: Fix typos.
6860
6861         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
6862
6863         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
6864
6865         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
6866         warnings.
6867
6868 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
6869
6870         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
6871         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
6872         Make old name weak alias.
6873         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6874         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
6875         Make old name weak alias.
6876         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6877
6878         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
6879         posix_fallocate, and posix_fallocate64.
6880         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
6881         posix_fallocate, and posix_fallocate64.
6882         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
6883         posix_fallocate, and posix_fallocate64.
6884         * sysdeps/generic/fadvise.c: New file.
6885         * sysdeps/generic/fadvise64.c: New file.
6886         * sysdeps/generic/fallocate.c: New file.
6887         * sysdeps/generic/fallocate64.c: New file.
6888         * sysdeps/posix/fallocate.c: New file.
6889         * sysdeps/posix/fallocate64.c: New file.
6890         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
6891         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
6892         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
6893         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
6894         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6895         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
6896         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6897         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
6898         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6899
6900         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
6901         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6902
6903 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
6904
6905         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
6906         * misc/sys/mman.h (posix_madvise): Add prototype.
6907         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
6908         old name and posix_madvise weak aliases.
6909         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6910         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
6911         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
6912         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6913         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
6914         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
6915         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6916
6917 2000-04-13  Andreas Jaeger  <aj@suse.de>
6918
6919         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
6920         versioning.
6921         (elf_machine_got_rel): Only add runtime display if needed.
6922         (elf_machine_got_rel): Handle symbol versioning.
6923
6924 2000-04-13  Andreas Jaeger  <aj@suse.de>
6925
6926         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
6927
6928         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
6929         default.
6930
6931         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
6932         with some applications.
6933         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
6934
6935         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
6936         * sysdeps/mips/bsd-_setjmp.S: Likewise.
6937         * sysdeps/mips/setjmp.S: Likewise.
6938
6939         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
6940
6941 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
6942
6943         * posix/globtest.sh: Work around inconsistency with expanding ~/
6944         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
6945
6946 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
6947
6948         * posix/getconf.c: Add support for many more POSIX options.
6949         * sysdeps/posix/sysconf.c: Likewise.
6950         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
6951         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
6952         _POSIX_SHELL.
6953         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
6954         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
6955         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
6956         CLOCK_THREAD_CPUTIME_ID.
6957         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
6958         CLOCK_PROCESS_CPUTIME_ID.
6959         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
6960         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
6961         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
6962         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
6963
6964         * malloc/Makefile (tests): Add tst-calloc.
6965         * malloc/tst-calloc.c: New file.
6966
6967         * sysdeps/arm/libm-test-ulps: New file.
6968
6969         * malloc/malloc.c: Undo all of today's changes.
6970
6971         * locale/programs/locale.c (show_info): Don't try to look into
6972         data for LC_ALL (there is none).
6973
6974         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
6975         avoid writing over boundary.
6976         Patch by Greg McGary <gkm@eng.ascend.com>.
6977
6978         * sysdeps/arm/memprof.h: New file.
6979
6980 2000-04-12  Andreas Jaeger  <aj@suse.de>
6981
6982         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
6983
6984         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
6985         for memmem declaration.
6986
6987 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
6988
6989         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
6990         to -1.
6991         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
6992
6993         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
6994         mode is invalid.
6995         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
6996         Patch by Bart Veer <bartv@redhat.com>.
6997
6998         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
6999         function interface.
7000
7001 2000-04-11  Andreas Jaeger  <aj@suse.de>
7002
7003         * sysdeps/mips/dl-machine.h: Update some comments.
7004         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
7005
7006 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
7007
7008         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
7009         _POSIX_SHARED_MEMORY_OBJECTS.
7010
7011         * rt/Makefile (tests): Add tst-shm.
7012         Add rules to generate tst-shm.
7013         * rt/tst-shm.c: New file.
7014
7015         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
7016         for descriptor.
7017
7018         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
7019         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
7020         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
7021         * sysdeps/generic/shm_open.c: New file.
7022         * sysdeps/generic/shm_unlink.c: New file.
7023         * sysdeps/unix/sysv/linux/shm_open.c: New file.
7024         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
7025         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
7026          __endmntent, __getmntent_r, __setmntent, and __statfs.
7027
7028         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
7029         fragmentation by allocating new memory at the end instead of
7030         reallocating.
7031
7032         * posix/globtest.sh: Fix last change.
7033
7034 2000-04-10  Philip Blundell  <philb@gnu.org>
7035
7036         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
7037         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
7038         IPV6_DROP_MEMBERSHIP.
7039         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
7040         Likewise.
7041
7042 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
7043
7044         * elf/readlib (process_file): Close streams in case of an error.
7045
7046 2000-04-09  Andreas Jaeger  <aj@suse.de>
7047
7048         * elf/readlib.c (process_file): Check if file is big enough to
7049         contain aout and ELF headers.
7050         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
7051
7052 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
7053
7054         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
7055
7056 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
7057
7058         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
7059         stream unbuffered.
7060         * rt/Makefile (tests): Add tst-clock.
7061         Add rules to build tst-clock.
7062         * rt/tst-clock.c: New file.
7063         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
7064         about initialization of nsec.
7065         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
7066         about initialization of freq.  Set retval to zero if successful.
7067         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
7068
7069 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
7070
7071         * Versions.def (librt): Add GLIBC_2.2.
7072         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
7073         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
7074         timer_getoverr, timer_gettime, and timer_settime.
7075         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
7076         clock_settime, timer_create, timer_delete, timer_getoverrun,
7077         timer_gettime, and timer_settime.
7078         * sysdeps/generic/clock_getcpuclockid.c: New file.
7079         * sysdeps/generic/get_clockfreq.c: New file.
7080         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
7081         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
7082         * sysdeps/mach/hurd/i386/bits/time.h: New file.
7083         * sysdeps/unix/i386/i586/clock_getres.c: New file.
7084         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
7085         * sysdeps/unix/i386/i686/Implies: New file.
7086         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
7087         * time/Makefile (routines): Move clock_getres, clock_gettime,
7088         clock_settime, timer_create, timer_delete, timer_getoverr,
7089         timer_gettime, and timer_settime to rt/Makefile.
7090         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
7091         clock_settime, timer_create, timer_delete, timer_getoverrun,
7092         timer_gettime, and timer_settime.
7093         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
7094
7095         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
7096         and not const as attribute name.
7097
7098 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
7099
7100         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
7101
7102 2000-04-10  Andreas Schwab  <schwab@suse.de>
7103
7104         * posix/globtest.sh: Skip tests that depend on unreadable
7105         directories if run as root.
7106
7107 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
7108
7109         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
7110         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
7111
7112 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
7113
7114         * sysdeps/unix/clock_gettime.c: New file.
7115         * sysdeps/unix/clock_settime.c: New file.
7116         * sysdeps/posix/clock_getres.c: New file.
7117
7118         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
7119
7120         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
7121         lseek call be passing in a buffer which never allow a successful
7122         first getdents syscall if not at leas the initial entry can be
7123         stored in the user buffer.
7124
7125         * localedata/Makefile: Add rules to clean up directories created by
7126         new strfmon tests.
7127
7128 2000-04-09  Geoff Clare  <gwc@unisoft.com>
7129
7130         * localedata/tst-fmon.data: Added new tests for strfmon()
7131         using test locales with all combinations of cs_precedes,
7132         sign_posn and sep_by_space.
7133         * localedata/tst-fmon.sh: Updated to support the new tests.
7134         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
7135         the localedef source for the new strfmon() test locale.
7136         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
7137         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
7138         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
7139         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
7140         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
7141         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
7142         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
7143         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
7144         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
7145         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
7146         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
7147         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
7148         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
7149         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
7150
7151         * stdlib/strfmon.c: Correct problems with missing or extra
7152         spaces for unusual combinations of sign_posn and sep_by_space.
7153         Improved left-precision alignment code.
7154
7155 2000-04-07  Andreas Jaeger  <aj@suse.de>
7156
7157         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
7158
7159 2000-04-10  Andreas Jaeger  <aj@suse.de>
7160
7161         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
7162
7163 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
7164
7165         Implement handling of restartable conversion functions according to
7166         ISO C.
7167         * iconv/gconv.h (__gconv_fct): Add additional parameter.
7168         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
7169         * iconv/gconv.c: Pass additional parameter to conversion function.
7170         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
7171         (internal_ucs4le_loop_single): New function.
7172         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
7173         (__gconv_transform_internal_ascii): Likewise.
7174         (__gconv_transform_internal_utf8): Likewise.
7175         (__gconv_transform_utf8_internal): Likewise.
7176         (__gconv_transform_ucs2_internal): Likewise.
7177         (__gconv_transform_internal_ucs2): Likewise.
7178         (__gconv_transform_ucs2reverse_internal): Likewise.
7179         (__gconv_transform_internal_ucs2reverse): Likewise.
7180         (internal_ucs4le_loop_unaligned): Before return
7181         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
7182         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
7183         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
7184         * iconv/loop.c: Fit in definition of function to convert one character
7185         for processing of left-over bytes from the state object.
7186         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
7187         inend to match names in loop functions.
7188         (RESET_INPUT_BUFFER): Change apprpriately.
7189         (gconv): If needed, call function to process bytes from the state
7190         object.  Similar at the end: store left over bytes if input is
7191         incomplete.
7192         Take extra argument and add new argument to all calls of the
7193         conversion function.
7194         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
7195         information in the state object to not conflict with length count.
7196         * iconvdata/iso-2022-jp.c: Likewise.
7197         * iconvdata/iso-2022-kr.c: Likewise.
7198         * iconvdata/unicode.c: Adjust for change change in parameters of
7199         skeleton function.
7200         * iconvdata/utf-16.c: Likewise.
7201         * libio/iofwide.c: Add new parameter to all calls of conversion
7202         function.
7203         * wcsmbs/btowc.c: Likewise.
7204         * wcsmbs/mbrtowc.c: Likewise.
7205         * wcsmbs/mbsnrtowcs.c: Likewise.
7206         * wcsmbs/mbsrtowcs.c: Likewise.
7207         * wcsmbs/wcrtomb.c: Likewise.
7208         * wcsmbs/wcsnrtombs.c: Likewise.
7209         * wcsmbs/wcsrtombs.c: Likewise.
7210         * wcsmbs/wctob.c: Likewise.
7211
7212         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
7213         MAX_NEEDED_INPUT.
7214
7215 2000-04-07  Andreas Jaeger  <aj@suse.de>
7216
7217         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
7218         newer kernels.
7219
7220 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
7221
7222         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
7223         element a union to allow byte access.
7224         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
7225         mbstate_t.
7226         * iconvdata/iso-2022-jp.c: Likewise.
7227         * iconvdata/iso-2022-kr.c: Likewise.
7228         * wcsmbs/mbsinit.c: Likewise.
7229         * stdlib/mblen.c: Likewise.
7230         * stdio-common/printf-parse.h: Likewise.
7231
7232 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
7233
7234         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
7235         kernel does not allow relative seeks on descriptors associated
7236         with directories.  Go back to get the position in the directory
7237         every time we enter the function.  Return -1 and set errno if one
7238         entry could be read from the kernel but does not fit into the
7239         buffer passed in by the user.
7240
7241         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
7242         Support ..(2).. ellipsis.
7243         (parse_charmap): Recognize ..(2).. etc and pass step down.
7244         Correctly generate names for UCS4 characters.
7245
7246         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
7247         (ctype_finish): We know the wide character value for <SP>,
7248         don't search.
7249         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
7250         (charclass_ucs4_ellipsis): Likewise.
7251         (read_translit_ignore_entry): Store ellipsis step.
7252         (ctype_read): Recognize ..(2).. etc and pass step down.
7253
7254         * locale/programs/linereader.c (lr_token): When seeing comment
7255         character ignore only rest of line in sources but stop at escaped
7256         newline.
7257         Recognize ..(2).. and ....(2).....
7258
7259         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
7260         and tok_ellipsis4_2.
7261
7262 2000-04-06  Andreas Jaeger  <aj@suse.de>
7263
7264         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
7265         removed, remove it here also.
7266         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
7267         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
7268         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
7269         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
7270
7271 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
7272
7273         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
7274         include bits/sigcontext.h.
7275         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
7276
7277 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
7278
7279         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
7280         collation symbol definition.  Value in quivalence definition must
7281         be defined, don't check that it is not.
7282
7283         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
7284         values as character names.
7285
7286         * locale/programs/ld-ctype.c (get_character): Handle missing
7287         repertoire map correctly.
7288
7289 2000-04-05  Cristian Gafton  <gafton@redhat.com>
7290
7291         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
7292         because it is used in generic code.
7293         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
7294         * wcsmbs/wcwidth.h: Declare __ctype32_b.
7295         * intl/gettext.c: Include <locale.h>.
7296         * intl/ngettext.c: Likewise.
7297
7298 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
7299
7300         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
7301         socklen_t type for size.
7302         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
7303         init function interface.
7304         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
7305         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
7306         sys/ucontext.h.
7307         (__jmp_buf): Declare the whole type structure here, don't use
7308         ucontext.
7309
7310 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
7311
7312         * iconv/skeleton.c (put16u): Fix typo.
7313         Reported by Bruno Haible <haible@ilog.fr>.
7314
7315         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
7316         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
7317         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
7318         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
7319         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
7320         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
7321
7322         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
7323         * Makefile (distribute): Add abi-versions.awk and
7324         firstversions.awk.
7325         Patches by Torsten Duwe <duwe@caldera.de>.
7326
7327 2000-04-05  Andreas Schwab  <schwab@suse.de>
7328
7329         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
7330
7331 2000-04-05  Andreas Schwab  <schwab@suse.de>
7332
7333         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
7334         entry point, used on Hurd.
7335
7336 2000-04-04  Andreas Jaeger  <aj@suse.de>
7337
7338         * intl/Makefile: Only run the gettext test with shared libraries.
7339
7340 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
7341
7342         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
7343         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
7344
7345 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
7346
7347         * Makeconfig: Undo last change.
7348         * configure.in: If --disable-shared was given, don't set VERSIONING,
7349         don't define DO_VERSIONING, and don't give scare warning for no
7350         versioning.
7351         * configure: Regenerated.
7352
7353 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
7354
7355         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
7356
7357 2000-04-04  Andreas Jaeger  <aj@suse.de>
7358
7359         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
7360
7361 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
7362
7363         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
7364         STV_HIDDEN and STV_INTERNAL during lookup.
7365         (profile_fixup): Likewise.
7366         * elf/dl-reloc.c (RESOLVE): Likewise.
7367
7368         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
7369         unaligned so that it compiles for system which need unaligned
7370         access handling.
7371
7372 2000-04-04  Andreas Schwab  <schwab@suse.de>
7373
7374         * elf/cache.c (print_entry): Only look at the type field when
7375         printing the type.
7376
7377 2000-04-04  Andreas Schwab  <schwab@suse.de>
7378
7379         * iconvdata/big5.c (BODY): Fix typo.
7380
7381 2000-04-04  Andreas Schwab  <schwab@suse.de>
7382
7383         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
7384         function interface.  Remove unused _dl_start_user entry point.
7385
7386 2000-04-03  Andreas Jaeger  <aj@suse.de>
7387
7388         * include/arpa/inet.h (__inet_aton): Add protoype.
7389
7390 2000-04-01  Andreas Jaeger  <aj@suse.de>
7391
7392         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
7393
7394         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
7395         * sysdeps/mach/mips/thread_state.h: Likewise.
7396
7397         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
7398         * sysdeps/generic/fegetenv.c: Likewise.
7399         * sysdeps/generic/fesetenv.c: Likewise.
7400         * sysdeps/generic/feupdateenv.c: Likewise.
7401         * sysdeps/generic/fraiseexcpt.c: Likewise.
7402         * sysdeps/generic/fsetexcptflg.c: Likewise.
7403         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
7404         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
7405         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
7406         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
7407
7408 2000-04-02  H.J. Lu  <hjl@gnu.org>
7409
7410         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
7411
7412 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
7413
7414         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
7415         (add_name_to_object): Add cast in malloc call.
7416         (fillin_rpath): Optimize loop to initialize ->status a bit.
7417
7418         * sysdeps/i386/dl-machine.h: Undo last change.
7419         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
7420         Restore %edx register after call here.
7421
7422         * sysdeps/arm/atomicity.h: New file.
7423         Contributed by Jesper Skov <jskov@redhat.com>.
7424
7425 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
7426
7427         * Makeconfig (preprocess-versions): Undo last change.
7428         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
7429
7430         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
7431         here, before we might move the stack.
7432         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
7433         (init1): And not here.
7434
7435         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
7436         change, to restore argc value in call-clobbered register after
7437         RTLD_START_SPECIAL_INIT, which will contain a call.
7438
7439         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
7440         allocating and initializing L->l_initfini.
7441
7442         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
7443
7444 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
7445
7446         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
7447         RUNPATH, RPATH, and LD_LIBRARY_PATH.
7448         (open_path): Change type of fourth parameter.  Make pointer to array
7449         of pointers.  Create variable dirs with original type.
7450         Track whether any directory for the object exists and if not,
7451         change *DIRSP to (void*) -1 to signal there is no such search path.
7452         (_dl_map_object): Change all calls of open_path.
7453         Rewrite decompose_rpath calls.
7454
7455 2000-03-31  Andreas Schwab  <schwab@suse.de>
7456
7457         * string/strfry.c: Declare STATE as array of char instead of int
7458         and do not initialize it (done by initstate_r).  Pass correct
7459         size.
7460
7461 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
7462
7463         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
7464
7465         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
7466         instruction out of the code.
7467
7468 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
7469
7470         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
7471         element at this position.
7472
7473         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
7474         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
7475         l_reldeps elements.
7476         * elf/dl-lookup.c (add_dependency): New function.
7477         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
7478         dynamically loaded object.
7479         (_dl_lookup_symbol_skip): Likewise.
7480         (_dl_lookup_versioned_symbol): Likewise.
7481         (_dl_lookup_versioned_symbol_skip): Likewise.
7482         * elf/dl-open.c: Don't define _dl_load_lock here...
7483         * elf/rtld.c: ...but here...
7484         * elf/dl-support.c: ...and here.
7485         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
7486         through relocation.
7487         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
7488         relocations.
7489         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
7490         anymore.
7491         * dlfcn/glrefmain.c: Add one more debug message.
7492
7493         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
7494         command line.
7495         * Makerules (sysd-versions): Use ( ) instead of { }.
7496
7497         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
7498         optimize for the non-debugging case.
7499         * elf/dl-lookup.c: Likewise.
7500         * sysdeps/generic/libc-start.c: Likewise.
7501
7502 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
7503
7504         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
7505         (init1): Don't initialize __environ here, since init already does it.
7506         (first_init): New function, broken out of _init.
7507         (_hurd_stack_setup): Use it.
7508         [SHARED] (_dl_init_first): New function, renamed from old _init.
7509         (init1) [SHARED]: Don't call posixland_init here.
7510         (posixland_init): Take ENVP arg, so signature is usual for initializer.
7511         [SHARED] (_init): Define as alias for posixland_init.
7512         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
7513         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
7514         RTLD_START_SPECIAL_INIT before calling initializers.
7515         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
7516         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
7517         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
7518         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
7519
7520         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
7521         since we define the function with the name `tmpfile'.
7522
7523         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
7524         * hurd/Versions: Likewise.
7525
7526 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
7527
7528         * elf/dl-runtime.c (fixup): Fix typo in comment.
7529
7530         * resolv/netdb.h (getnameinfo): All length parameters are of type
7531         socklen_t.
7532         * inet/getnameinfo.c: Likewise.
7533
7534 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
7535
7536         * posix/unistd.h (socklen_t): Define if it has not yet happened.
7537         (gethostname): Change type of second parameter to socklen_t.
7538         * include/unistd.h (__gethostname): Change type of second
7539         parameter to socklen_t.
7540         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
7541         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
7542         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
7543         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
7544         Likewise.
7545         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
7546         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
7547         Allow definition elsewhere.
7548         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
7549         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7550         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
7551         * sysdeps/generic/bits/types.h: Define __socklen_t.
7552         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
7553         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
7554         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
7555         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
7556         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
7557         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
7558         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
7559
7560         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
7561         (inet_lnaof): Likewise.
7562         (inet_netof): Likewise.
7563         (inet_network): Likewise.
7564         (inet_aton): Likewise.
7565         (inet_makeaddr): Change parameter types to in_addr_t.
7566         (inet_neta): Likewise.
7567         (inet_ntop): Change type of last parameter to socklen_t.
7568         (inet_aton): Only make available if __USE_MISC.
7569         (inet_neta): Likewise.
7570         (inet_net_ntop): Likewise.
7571         (inet_net_pton): Likewise.
7572         (inet_nsap_ntoa): Likewise.
7573
7574         * inet/in.h: Define in_port_t type.
7575         Define in_addr_t type.
7576         (struct in_addr): Use in_addr_t in definition.
7577         (IN_CLASSA): Use cast to in_addr_t.
7578         (IN_CLASSB): Likewise.
7579         (IN_CLASSC): Likewise.
7580         (IN_CLASSD): Likewise.
7581         (IN_EXPERIMENTAL): Likewise.
7582         (IN_BADCLASS): Likewise.
7583         (INADDR_ANY): Likewise.
7584         (INADDR_BROADCAST): Likewise.
7585         (INADDR_NONE): Likewise.
7586         (INADDR_LOOPBACK): Likewise.
7587         (INADDR_UNSPEC_GROUP): Likewise.
7588         (INADDR_ALLHOSTS_GROUP): Likewise.
7589         (INADDR_ALLRTRS_GROUP): Likewise.
7590         (INADDR_MAX_LOCAL_GROUP): Likewise.
7591         (struct sockaddr_in): Use in_port_t for sin_port element.
7592         (struct sockaddr_in6): Use in_port_t for sin6_port element.
7593         Use uint8_t instead of u_int8_t.
7594
7595         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
7596         Call __inet_aton instead of inet_aton.
7597         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
7598
7599         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
7600         (innetgr): Likewise.
7601         (struct addrinfo): Use socklen_t for ai_addrlen element.
7602
7603         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
7604         IPV6_RECVERR): New defines.
7605
7606         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
7607         * inet/getnetbyad.c: Likewise.
7608         * inet/getnetbyad_r.c: Likewise.
7609         * nis/nss_nis/nis-network.c: Likewise.
7610         * nis/nssplus_nis/nisplus-network.c: Likewise.
7611         * nss/nss_files/files-network.c: Likewise.
7612         * resolv/netdb.h: Define uint32_t if not already happened.
7613         Include bits/netdb.h.  Remove definition of struct netent.
7614         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
7615         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
7616         * sysdeps/generic/bits/netdb.h: New file.
7617         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
7618
7619         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
7620         (tests): Add glrefmain.
7621         Add rules to build modules and run tests.  Ignore result of glrefmain
7622         for now since it fails.
7623         * dlfcn/glrefmain.c: New file.
7624         * dlfcn/glreflib1.c: New file.
7625         * dlfcn/glreflib2.c: New file.
7626
7627         * test-skeleton.c: Include <string.h> for strsignal prototype.
7628
7629         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
7630         to be missing.
7631
7632         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
7633         former init-first.h.  Initialize __libc_multiple_libcs.
7634
7635 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
7636
7637         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
7638         #if expression for use of unaligned function to the one used in
7639         the definition of these functions.
7640         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
7641         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
7642         (internal_ucs4le_loop_unaligned): New function.
7643
7644         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
7645         (tests): Add order.
7646         (module-names): Add dep1, dep2, dep3, and dep4.
7647         Add dependencies for dep* modules and order.
7648         Define rule for order.out which checks the result.
7649         * elf/dep1.c: New file.
7650         * elf/dep2.c: New file.
7651         * elf/dep3.c: New file.
7652         * elf/dep4.c: New file.
7653         * elf/order.c: New file.
7654
7655         * elf/dl-init.c: Fix typo in comment.
7656
7657 2000-03-31  Andreas Jaeger  <aj@suse.de>
7658
7659         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
7660         init function interface.
7661         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
7662
7663 2000-03-31  Andreas Jaeger  <aj@suse.de>
7664
7665         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
7666         * sysdeps/mips/fpu/fegetenv.c: Likewise.
7667         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
7668         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
7669         * sysdeps/mips/fpu/fesetenv.c: Likewise.
7670
7671         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
7672         anymore, update comment.
7673
7674         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
7675
7676         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
7677         SHLIB_COMPAT - the struct is always needed.
7678
7679 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
7680
7681         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
7682         * elf/dl-support.c: Define _dl_starting_up.
7683
7684 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
7685
7686         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
7687         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
7688
7689         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
7690
7691         * elf/Makefile (dl-routines): Remove preinit.
7692         * elf/Versions: Remove _dl_preinit.
7693         * elf/dl-preinit.c: Removed.  Move content into...
7694         * elf/dl-init.c: ...here.
7695         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
7696
7697         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
7698         elements.
7699
7700 2000-03-29  Geoff Clare  <gwc@unisoft.com>
7701
7702         * stdlib/strfmon.c: Corrected problems with the code that
7703         sets default values for [np]_sep_by_space and
7704         [np]_sign_posn; also the new positive/negative alignment
7705         code from the previous patch was not quite right for
7706         [np]_sign_posn = 0.
7707
7708         * localedata/tst-fmon.data: Changes corresponding to the
7709         two sets of fixes made to stdlib/strfmon.c.
7710
7711 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
7712
7713         * malloc/malloc.c: Declare bit flags UL so that they will not
7714         default to int size when being inverted.
7715
7716 2000-03-29  Andreas Jaeger  <aj@suse.de>
7717
7718         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
7719         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
7720
7721 2000-03-29  Andreas Jaeger  <aj@suse.de>,
7722             Ralf Baechle <ralf@uni-koblenz.de>
7723
7724         * Makeconfig: Introduce new variable SHARED to mark code used in
7725         the shared library.
7726         * elf/dl-close.c: Use it instead of PIC.
7727         * elf/dl-load.c: Likewise.
7728         * elf/dl-open.c: Likewise.
7729         * hurd/geteuids.c: Likewise.
7730         * include/libc-symbols.h: Likewise.
7731         * include/shlib-compat.h: Likewise.
7732         * libio/freopen.c: Likewise.
7733         * linuxthreads/cancel.c: Likewise.
7734         * linuxthreads/pthread.c: Likewise.
7735         * linuxthreads/wrapsyscall.c: Likewise.
7736         * nss/nsswitch.c: Likewise.
7737         * stdio-common/vfprintf.c: Likewise.
7738         * sysdeps/arm/init-first.c: Likewise.
7739         * sysdeps/i386/init-first.c: Likewise
7740         * sysdeps/generic/init-first.c: Likewise.
7741         * sysdeps/generic/libc-start.c: Likewise.
7742         * sysdeps/mips/init-first.c: Likewise.
7743         * sysdeps/powerpc/elf/libc-start.c: Likewise.
7744         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7745         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
7746         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
7747         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
7748
7749         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
7750
7751 2000-03-29  Andreas Jaeger  <aj@suse.de>
7752
7753         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
7754         Use D_PTR to access relocated entries in l_info.
7755         (elf_machine_rela): Likewise.
7756
7757         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
7758         Likewise.
7759         (elf_machine_rela): Likewise.
7760
7761         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
7762         Likewise.
7763         (__elf_machine_fixup_plt): Likewise.
7764         (__process_machine_rela): Likewise.
7765
7766         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
7767         (elf_machine_rela): Likewise.
7768
7769         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
7770         (elf_machine_rel): Likewise.
7771
7772         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
7773         (elf_machine_fixup_plt): Likewise.
7774         (elf_machine_rela): Likewise.
7775
7776 2000-03-29  Andreas Jaeger  <aj@suse.de>
7777
7778         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
7779         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
7780         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
7781         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
7782         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
7783         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
7784         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
7785         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
7786         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
7787         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
7788         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
7789         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
7790         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
7791         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
7792         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
7793
7794         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
7795         macros, remove K&R prototypes.
7796
7797 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
7798
7799         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
7800         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
7801         (PR libc/1677).
7802
7803 2000-03-30  Andreas Jaeger  <aj@suse.de>
7804
7805         * misc/sys/cdefs.h: Remove K&R support.
7806
7807 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
7808
7809         * iconv/skeleton.c: Avoid compiling unaligned versions in some
7810         more cases.
7811         * iconv/loop.c: Likewise.
7812
7813 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
7814
7815         * iconv/loop.c (put16): Remove __const. Fix access index.
7816         (put32): Remove __const. Use uint32_t instead of uint16_t.
7817         * iconv/skeleton.c: Likewise.
7818
7819 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
7820
7821         * mach/Versions (libc: GLIBC_2.0)
7822         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
7823         __vm_allocate on this.
7824         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
7825         mutex- and spinlock-related symbols on this.
7826         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
7827         New version set.  Lock-related symbols go here instead in this case.
7828         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
7829         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
7830         cthread_getspecific, cthread_setspecific, __libc_getspecific.
7831         * hurd/Versions
7832         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
7833         Put them here instead.
7834         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
7835         New version set.  Those cthreads symbols go here instead in this case.
7836         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
7837
7838 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
7839
7840         * elf/dl-init.c (_dl_init): We don't need to call constructors
7841         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
7842
7843         Implement dynamic determination of constructor/destructor order in
7844         the dynamic linker.
7845         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
7846         (GLIBC_2.2): Add _dl_init.
7847         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
7848         r_duplist is not anymore allocated separately.  l_initfini is and
7849         therefore free it if necessary.
7850         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
7851         malloc block.  Otherwise allocate l_initfini list only.
7852         Put dependencies for the object in l_initfini list.
7853         Sort dependencies for the object to be loaded topologically.
7854         * elf/dl-fini.c: Before running the destructors sort the topologically.
7855         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
7856         call constructors instead of iterating over the pointers.  Get list of
7857         objects for which to run constructors from l_initfini element. Accept
7858         argc, argv, and env as parameters and pass them to the constructors.
7859         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
7860         with size of dynamic section.
7861         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
7862         _dl_init_next and calling constructors ourself.
7863         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
7864         Take argc, argv, and env as parameters and pass them to the
7865         constructors.  Rewrite to call all constructors and not iterate over
7866         the pointers.
7867         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
7868         precompute l_initcount and l_preinitcount.
7869         * elf/link.h (struct link_map): Add l_ldnum member.
7870         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
7871         l_initcount, and l_preinitcount.  Add l_initfini.
7872         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
7873         one for _dl_init.
7874         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
7875         function interface.
7876         * sysdeps/unix/sysv/linux/init-first.h: Removed.
7877         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
7878         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
7879         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
7880         conventions now match.
7881
7882         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
7883         effect for shared objects.  Don't emit message and call only for
7884         static library.
7885
7886 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
7887
7888         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
7889         CSA_Z243.4-1985-1..UCS2.
7890         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
7891         ISO-8859-10..UCS2.
7892
7893 2000-03-29  Andreas Jaeger  <aj@suse.de>
7894
7895         * include/unistd.h: Remove duplicate entry for __rmdir.
7896         Remove declaration of __mkdir since __mkdir is declared in
7897         sys/stat.h.
7898
7899         * manual/creature.texi (Feature Test Macros): Fix typo, reported
7900         by Michael Deutschmann <michael@talamasca.ocis.net>.
7901
7902         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
7903         * sysdeps/mips/fpu/fegetenv.c: Likewise.
7904         * sysdeps/mips/fpu/fesetenv.c: Likewise.
7905         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
7906         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
7907
7908 2000-03-28  Andreas Jaeger  <aj@suse.de>
7909
7910         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
7911         declaration, the prototype is defined via bits/mathcalls.h.
7912         (__sincosf): Likewise.
7913         (__sincosl): Likewise.
7914         (ldexp): Likewise.
7915         (ldexpf): Likewise.
7916         (ldexpl): Likewise.
7917         (__finite): Likewise.
7918         (__inline_mathcodeNP): New macro without prototype
7919         declarations.
7920         (__inline_mathcodeNP2): Likewise.
7921         (__inline_mathcodeNP3): Likewise.
7922         (__inline_mathcodeNP_): Likewise.
7923         (__inline_mathcodeNP2_): Likewise.
7924         (__inline_mathcodeNP3_): Likewise.
7925         (__inline_mathopNP): Likewise.
7926         (__inline_mathop_declNP): Likewise.
7927         (__inline_mathop_declNP_): Likewise.
7928         (__inline_mathcode_): Use __inline_mathcodeNP_.
7929         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
7930         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
7931         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
7932         (__expm1l): Don't define prototype, the prototype is defined via
7933         bits/mathcalls.h.
7934         (exp): Likewise.
7935         (__expl): Likewise.
7936         (tan): Likewise.
7937         (atan2): Likewise.
7938         (__atan2l): Likewise.
7939         (fmod): Likewise.
7940         (pow): Likewise.
7941         (fabsf): Likewise.
7942         (fabsl): Likewise.
7943         (__fabsl): Likewise.
7944         (asin): Likewise.
7945         (acos): Likewise.
7946         (sinh): Likewise.
7947         (cosh): Likewise.
7948         (tanh): Likewise.
7949         (floor): Likewise.
7950         (ceil): Likewise.
7951         (expm1): Likewise.
7952         (log1p): Likewise.
7953         (asinh): Likewise.
7954         (acosh): Likewise.
7955         (atanh): Likewise.
7956         (hypot): Likewise.
7957         (logb): Likewise.
7958         (fma): Likewise.
7959         (drem): Likewise.
7960         (sqrt): Likewise.
7961         (__sqrtl): Likewise.
7962         (sin): Likewise.
7963         (cos): Likewise.
7964         (atan): Likewise.
7965         (log): Likewise.
7966         (log10): Likewise.
7967         (asinh): Likewise.
7968         (log2): Likewise.
7969         (rint): Likewise.
7970
7971 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
7972
7973         * Makerules: If make variable md5 is defined to yes after
7974         generating dependencies generate MD5 sum for the object.
7975
7976         * iconv/gconv_builtin.h: Fix length in transformation definition
7977         for UNICODEBIG.
7978
7979         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
7980
7981         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
7982         allow as well reading from/writing to unaligned addresses on machines
7983         which don't support this in hardware.  Use FCTNAME macro to define
7984         function name.  Include the file a second time for platforms which
7985         need special unaligned handling.
7986         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
7987         to access potentially unaligned addresses.  These macros are intended
7988         to be used only outside the loops.
7989         (unaligned): New definition.  In case the machine can handle unaligned
7990         access define as zero.  Otherwise as a variable which is initialized
7991         as nonzero in case the buffer passed in at runtime is unaligned with
7992         respect to the character set encoding involved.
7993         Call aligned or unaligned looop functions according to unaligned
7994         variable.
7995         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
7996         of direct casting pointer to potentially handle unaligned memory
7997         accesses.
7998         * iconvdata/8bit-generic.c: Likewise.
7999         * iconvdata/ansi_x3.110.c: Likewise.
8000         * iconvdata/big5.c: Likewise.
8001         * iconvdata/euc-cn.c: Likewise.
8002         * iconvdata/euc-jp.c: Likewise.
8003         * iconvdata/euc-kr.c: Likewise.
8004         * iconvdata/euc-tw.c: Likewise.
8005         * iconvdata/gbk.c: Likewise.
8006         * iconvdata/iso-2022-cn.c: Likewise.
8007         * iconvdata/iso-2022-jp.c: Likewise.
8008         * iconvdata/iso-2022-kr.c: Likewise.
8009         * iconvdata/iso646.c: Likewise.
8010         * iconvdata/iso_6937-2.c: Likewise.
8011         * iconvdata/iso_6937.c: Likewise.
8012         * iconvdata/johab.c: Likewise.
8013         * iconvdata/sjis.c: Likewise.
8014         * iconvdata/t.61.c: Likewise.
8015         * iconvdata/uhc.c: Likewise.
8016         * iconvdata/unicode.c: Likewise.
8017         * iconvdata/utf-16.c: Likewise.
8018
8019         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
8020         prototypes.
8021
8022         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
8023         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
8024         public.
8025         * malloc/mcheck.h (mcheck_check_all): Declare.
8026
8027         * stdio-common/Makefile (tests): Add tst-obprintf.
8028
8029 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
8030
8031         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
8032         Declare pthread_sigmask.
8033
8034         * csu/version.c: Add 2000 to copyright years.
8035         Remove Emacs local variables section.
8036
8037 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
8038
8039         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
8040         __gconv_transform_internal_ucs2little): Remove declarations.
8041         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
8042         __gconv_transform_internal_ucs2): Never need to bswap_16.
8043         (__gconv_transform_ucs2reverse_internal,
8044         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
8045
8046 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
8047
8048         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
8049         obsoleting version not being defined at all, in which case the
8050         result is always true.
8051
8052         * Makeconfig (preprocess-versions): New canned sequence for running
8053         cpp on shlib-versions and the like.
8054         (soversions.i): Use it.
8055         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
8056         Versions.def and Versions files.
8057
8058 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
8059
8060         * stdio-common/tst-obprintf.c (main): Add another check to see
8061         obstack_printf handling all possible beginnings of the block
8062         inside an obstack chunk.
8063
8064         * locale/programs/localedef.c: Use __malloc_initialize_hook to
8065         install mcheck handler.
8066
8067         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
8068         handling problem.
8069
8070 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
8071
8072         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
8073
8074         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
8075         on [HAVE_ELF && DO_VERSIONING].
8076
8077 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
8078
8079         * stdio-common/tst-obprintf.c: New file.
8080
8081 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
8082
8083         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
8084         _IO_OVERFLOW directly instead through __overflow.
8085
8086         * locale/programs/localedef.c (construct_output_path): If path
8087         contains a / compute the end of the directory name correctly.
8088
8089         * include/features.h: Undef and document __USE_XOPEN2K.
8090
8091         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
8092         whenever a function is called.  Initiated by calling mcheck_pedantic
8093         instead of mcheck.
8094         * malloc/mcheck.h: Declare mcheck_pedantic.
8095         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
8096         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
8097         for now.
8098
8099 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
8100
8101         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
8102         * dlfcn/dlopenold.c: Likewise.
8103         * nss/getXXbyYY_r.c: Likewise.
8104         * nss/getXXent_r.c: Likewise.
8105         * hurd/hurdinit.c: Likewise.
8106         * hurd/compat-20.c: Likewise.
8107         * libio/oldiofopen.c: Likewise.
8108         * libio/oldiofclose.c: Likewise.
8109         * libio/oldiofdopen.c: Likewise.
8110         * libio/oldfileops.c: Likewise.
8111         * libio/oldstdfiles.c: Likewise.
8112         * libio/oldiofsetpos.c: Likewise.
8113         * libio/oldiofgetpos.c: Likewise.
8114         * libio/oldiofgetpos64.c: Likewise.
8115         * libio/oldiofsetpos64.c: Likewise.
8116         * libio/oldiopopen.c: Likewise.
8117         * libio/oldpclose.c: Likewise.
8118         * libio/oldtmpfile.c: Likewise.
8119         * libio/freopen.c (freopen): Likewise.
8120         * libio/iofclose.c (_IO_new_fclose): Likewise.
8121
8122         * sysdeps/mach/sys/reboot.h: Include <features.h>.
8123         (reboot): Declare it.
8124
8125         * libio/Makefile (headers): Add bits/stdio-lock.h here.
8126
8127         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
8128
8129         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
8130
8131         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
8132         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
8133         We need this for the sbrk decl, which can be included without Unix98.
8134
8135 2000-03-20  Richard Henderson  <rth@cygnus.com>
8136
8137         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
8138         argument to yperr2nss is an int, not size_t.
8139         * posix/regex.c (print_partial_compiled_pattern): Cast all
8140         ptrdiff_t to long for printing.
8141         (print_compiled_pattern): Use Z for printing size_t.
8142         * posix/testfnm.c (tests): Avoid trigraphs.
8143         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
8144         Use a C comment, not an assembly comment.
8145
8146         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
8147         of __ASSUME_32BITUIDS.
8148
8149 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
8150
8151         * libio/iofopncook.c: Remove K&R prototypes.
8152
8153 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
8154
8155         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
8156         an initial value of 1024 instead of RLIM_INFINITY.
8157
8158         * Versions.def (libmachuser, libhurduser): Remove these sections,
8159         since these libraries do not presently use symbol versions.
8160
8161         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
8162         is RLIM_INFINITY, return -1 instead.
8163
8164 2000-03-24  Andreas Jaeger  <aj@suse.de>
8165
8166         * Makefile (postclean): Added soversions.i.
8167
8168 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
8169
8170         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
8171         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
8172         and _FPU_IEEE.  Change _FPU_RESERVED.
8173
8174 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
8175
8176         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
8177
8178 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
8179
8180         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
8181         (gaih_inet): Remove unused duplicate variable.
8182
8183         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
8184         Don't use __libc_sa_len, which only exists for Linux.  Just handle
8185         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
8186         only flavors supported by this function anyway.
8187
8188 2000-03-24  Geoff Clare  <gwc@unisoft.com>
8189
8190         * stdlib/strfmon.c: Corrected problems with missing signs and
8191         missing or extra spaces; allow for sign strings longer than
8192         one character; add padding to ensure positive and negative
8193         formats are aligned when a left precision is used.
8194
8195 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
8196
8197         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
8198         Patch by John Mizel <John.Mizel@msdw.com>.
8199
8200 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
8201
8202         * manual/install.texi: Remove references to crypt add-on.
8203
8204 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
8205
8206         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
8207         section while taking the _hurd_rlimit_lock.
8208         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
8209
8210 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
8211
8212         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
8213         using $(LN_S).
8214
8215         * sysdeps/mach/hurd/if_index.c: New file.
8216
8217         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
8218         * sysdeps/gnu/net/if.h: here.
8219         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
8220         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
8221         * sysdeps/generic/net/if.h: New file.  Declares just the standard
8222         functions and `struct if_nameindex' type.
8223         * socket/Makefile (headers): Add net/if.h here.
8224         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
8225         * sysdeps/mach/hurd/Dist: Remove it here.
8226         * sysdeps/unix/sysv/linux/Dist: And here.
8227         * sysdeps/generic/if_index.c: Include <net/if.h>.
8228
8229 2000-03-24  Andreas Jaeger  <aj@suse.de>
8230
8231         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
8232         access relocated entries in l_info.
8233         (elf_machine_got_rel): Likewise.
8234         (elf_machine_runtime_setup): Likewise.
8235         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
8236         (elf_machine_runtime_setup): Likewise.
8237         (__dl_runtime_resolve): Likewise.
8238
8239 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
8240
8241         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
8242         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
8243         according to RFC 2553.
8244         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
8245         * inet/getnameinfo.c: Likewise.
8246         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
8247
8248 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
8249
8250         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
8251         Remove no-op pointer increment.
8252
8253 2000-03-23  Andreas Jaeger  <aj@suse.de>
8254
8255         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
8256         follow change for libio.h from 2000-03-10.
8257
8258 2000-03-23  Andreas Jaeger  <aj@suse.de>
8259
8260         * elf/dl-addr.c: Adjust include paths for ldsodefs location
8261         change.
8262         * elf/dl-debug.c: Likewise.
8263         * elf/dl-deps.c: Likewise.
8264         * elf/dl-error.c: Likewise.
8265         * elf/dl-fini.c: Likewise.
8266         * elf/dl-init.c: Likewise.
8267         * elf/dl-load.c: Likewise.
8268         * elf/dl-lookup.c: Likewise.
8269         * elf/dl-minimal.c: Likewise.
8270         * elf/dl-object.c: Likewise.
8271         * elf/dl-open.c: Likewise.
8272         * elf/dl-preinit.c: Likewise.
8273         * elf/dl-profile.c: Likewise.
8274         * elf/dl-profstub.c: Likewise.
8275         * elf/dl-reloc.c: Likewise.
8276         * elf/dl-runtime.c: Likewise.
8277         * elf/dl-support.c: Likewise.
8278         * elf/dl-symbol.c: Likewise.
8279         * elf/dl-version.c: Likewise.
8280         * elf/rtld.c: Likewise.
8281         * elf/sprof.c: Likewise.
8282         * sysdeps/generic/dl-cache.c: Likewise.
8283         * sysdeps/generic/dl-origin.c: Likewise.
8284         * sysdeps/generic/dl-sysdep.c: Likewise.
8285         * sysdeps/generic/elf/backtracesyms.c: Likewise.
8286         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8287         * sysdeps/generic/libc-start.c: Likewise.
8288         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8289         * sysdeps/powerpc/dl-machine.c: Likewise.
8290         * sysdeps/powerpc/elf/libc-start.c: Likewise.
8291         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8292         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8293         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
8294
8295         * elf/ldsodefs.h: Move file to ...
8296         * sysdeps/generic/ldsodefs.h: ... here.
8297
8298         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
8299
8300         * sysdeps/mips/elf/ldsodefs.h: New file.
8301
8302         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
8303         entries in l_info.
8304         (_dl_check_map_versions): Likewise.
8305         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8306         * elf/dl-load.c (_dl_init_paths): Likewise.
8307         (_dl_map_object): Likewise.
8308         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
8309         (elf_get_dynamic_info): Likewise.
8310         * elf/do-lookup.h (FCT): Likewise.
8311         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
8312         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8313         * elf/dl-addr.c (_dl_addr): Likewise.
8314         * elf/dl-runtime.c (profile_fixup): Likewise.
8315         (fixup): Likewise.
8316         * elf/dl-init.c (_dl_init_next): Likewise.
8317         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
8318         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
8319         (DISTINGUISH_LIB_VERSIONS): Likewise.
8320         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
8321         (elf_machine_rel): Likewise.
8322
8323         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
8324         for writable dynamic section.
8325
8326 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
8327
8328         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
8329         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
8330
8331 2000-03-22  Andreas Jaeger  <aj@suse.de>
8332
8333         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
8334         from latest Linux kernel.
8335
8336 2000-03-21  Andreas Jaeger  <aj@suse.de>
8337
8338         * Versions.def: Add version 2.1.4.
8339
8340 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
8341
8342         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
8343         * libio/oldiofopen.c: Likewise.
8344         * libio/oldiofclose.c: Likewise.
8345         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
8346
8347 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
8348
8349         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
8350         indicating the first version set to obsolete the conditionalized code.
8351         (compat_symbol): New macro.
8352         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
8353         rhs be the ABI_* macro for the subsuming version.  Assign increasing
8354         integer values to the ABI_* macros for supported versions.
8355         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
8356         compat_symbol macro.
8357
8358 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
8359
8360         * nscd/connections.c (nscd_run): Pretty print.
8361         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
8362
8363         * manual/charset.texi: Fix typos.  Rephrase.
8364         * manual/process.texi: Likewise.
8365         * manual/signal.texi: Likewise.
8366         Patches by Mike Coleman <mkc@kc.net>.
8367
8368         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
8369         versions.
8370         * libio/iofdopen.c: Likewise.
8371         * libio/iofgetpos.c: Likewise.
8372         * libio/iofgetpos64.c: Likewise.
8373         * libio/iofopen.c: Likewise.
8374         * libio/iofsetpos.c: Likewise.
8375         * libio/iofsetpos64.c: Likewise.
8376         * libio/iopopen.c: Likewise.
8377         * libio/oldiofopen.c: Likewise.
8378         * libio/pclose.c: Likewise.
8379         * sysdeps/gnu/siglist.c: Likewise.
8380         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
8381
8382         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
8383         chance to expand VERSION_##lib##_##version.
8384
8385         * libio/fileops.c: Use new macros from shlib-compat.h to define
8386         versions.
8387         * libio/iofclose.c: Likewise.
8388         * libio/oldiofclose.c: Likewise.
8389         Patch by Roland McGrath <roland@frob.com>.
8390
8391 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
8392
8393         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
8394         Lay out struct sigcontext according to what really gets passed on
8395         the stack.
8396         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
8397         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
8398         (prgregset_t, prfpregset_t): Define to elf_* types.
8399         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
8400         Define to correct value.
8401         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
8402         sigcontext.
8403         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
8404
8405 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
8406
8407         * scripts/firstversions.awk: Allow multiple version sets in the
8408         "earliest version" specification, meaning that version sets in the
8409         gaps between listed versions should be folded into the earliest later
8410         version that is explicitly listed.
8411         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
8412         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
8413
8414 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
8415
8416         * iconv/gconv_builtin.c: Include <endian.h>.
8417         * iconv/gconv_builtin.h: Add UCS-BE aliases.
8418         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
8419         according to current platform.
8420         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
8421         __gconv_transform_internal_ucs2reverse, and
8422         __gconv_transform_internal_ucs4le.
8423         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
8424         __gconv_transform_ucs2reverse_internal and
8425         __gconv_transform_internal_ucs2reverse.
8426         * iconvdata/Makefile (modules): Add UNICODE.
8427         (distribute): Add unicode.c.
8428         * iconvdata/gconv-modules: Add definitions for UNICODE module.
8429         * iconvdata/unicode.c: New file.
8430
8431         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
8432         determine byte order of input and convert accordingly.
8433
8434         * iconvdata/utf-16.c (gconv_init): Fix typo.
8435
8436 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
8437
8438         * iconvdata/gconv-modules: Fix typo.
8439
8440         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
8441         more messages.
8442
8443         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
8444
8445 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
8446
8447         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
8448
8449 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
8450
8451         * misc/Makefile (routines): Add mincore.
8452
8453 2000-03-20  Andreas Jaeger  <aj@suse.de>
8454
8455         * sysdeps/generic/mincore.c: New stub file.
8456
8457         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
8458         from latest Linux kernel.
8459
8460 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
8461
8462         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
8463         _SC_GETPW_R_SIZE_MAX.
8464
8465 2000-03-20  Richard Henderson  <rth@cygnus.com>
8466
8467         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
8468         in GLIBC_2.1.4.
8469
8470 2000-03-20  Richard Henderson  <rth@cygnus.com>
8471
8472         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
8473         of arithmetic instructions.
8474
8475         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
8476         with the fpcr.  Protect from INV exception.
8477         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8478         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
8479         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8480
8481         * sysdeps/alpha/fpu/s_copysign.c: New.
8482         * sysdeps/alpha/fpu/s_copysignf.c: New.
8483         * sysdeps/alpha/fpu/s_fabs.c: New.
8484         * sysdeps/alpha/fpu/s_fabsf.c: New.
8485         * sysdeps/alpha/fpu/s_rint.c: New.
8486         * sysdeps/alpha/fpu/s_rintf.c: New.
8487
8488         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
8489
8490         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
8491         Kill sethae.
8492         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
8493         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
8494         Use physical addresses not KSEG addresses.
8495         (io_system): Add PYXIS.
8496         (io): Remove hae.reg, sys, hae_shift.
8497         (stb_mb, stw_mb, stl_mb, __sethae): New.
8498         (inline_outb, inline_outw, inline_outl): Don't set hae.
8499         (inline_inb, inline_inw, inline_inl): Likewise.
8500         (dense_sethae): New null function.
8501         (struct cpuinfo_data): New.
8502         (process_cpuinfo): Use local and stack variables, not static.
8503         Move readlink check here from init_iosys.
8504         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
8505         (_iopl): Simplify.
8506         (_hae_shift): Calculate it here.
8507         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
8508         add pciconfig_iobase.
8509
8510 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
8511
8512         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
8513         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
8514
8515         * scripts/versions.awk: Fixed version renaming code to distinguish
8516         libraries properly.
8517
8518 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
8519
8520         * include/stdlib.h: Add prototype for __cxa_atexit.
8521
8522         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
8523         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
8524
8525 2000-03-17  Cristian Gafton  <gafton@redhat.com>
8526
8527         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
8528         existing rtld-installed-name.
8529         ($(rtld-installed-name)): Request libc-$(version) be installed too.
8530         replace existing rtld-installed-name using $(symbolic-link-prog).
8531
8532 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
8533
8534         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
8535         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
8536         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
8537         but not the former.
8538
8539 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
8540
8541         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
8542         glob64.  Since there is no glob64 in the LFS proposal applications
8543         can assume that glob handles LFS situations.  glob64 is only needed
8544         if alternative filesystem functions are used.
8545
8546 2000-03-19  Geoff Clare  <gwc@unisoft.com>
8547
8548         * sysdeps/generic/glob.c: Correct gl_pathc value returned
8549         when GLOB_DOOFFS is set; correct handling of patterns
8550         containing escaped wildcards (and no unescaped ones);
8551         GLOB_ERR flag was being ignored in some situations.
8552
8553         * posix/globtest.c, posix/globtest.sh: Updated to include
8554         tests for the problems fixed by the above changes to glob.c.
8555
8556         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
8557
8558 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
8559
8560         * Makeconfig (soversion.i): Use only first match for each lib.
8561
8562         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
8563
8564         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
8565         rather than $(sysd-dirs-done) to protect these rules.
8566
8567         * Makerules (version-renames.def): Target removed.
8568         (Versions.all): Depend on soversions.i directly and parse it.
8569
8570         * Makeconfig (soversions.i): New target, input-reading parts of
8571         soversions.mk generation moved here; result is a canonicalized
8572         list "LIB VERSION [SET]" for this configuration.
8573         (soversions.mk): Use that as input.  Don't emit map-firstversions.
8574         * Makerules (version-renames.def): New target, generated from
8575         soversions.i with contents that was in $(map-firstversions).
8576         (Versions.all): Don't depend on soversions.mk, depend on
8577         version-renames.def instead; just cat it into the input.
8578
8579         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
8580         for $(map-firstversions), which better handles it being empty.
8581
8582         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
8583         supported version for libc 0.2.90.libio to GLIBC_2.2.
8584
8585         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
8586         and use it to emit new variable `map-firstversions'.
8587         * scripts/firstversions.awk: New file.
8588         * Makerules (Versions.all): Use scripts/firstversions.awk and
8589         the $(map-firstversions) value to generate a modified versions list
8590         that includes renames in "A = B" syntax for each version set earlier
8591         than the "earliest symbol version" named in shlib-versions.
8592         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
8593         rename version set A to B in the output to the intermediate file.
8594         * scripts/abi-versions.awk: New file.
8595         * Makerules (abi-versions.h): New target, generated by that script.
8596         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
8597         * include/shlib-compat.h: New file, uses that generated header.
8598
8599 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
8600
8601         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
8602         after stripping # comments, and then run it through cpp.
8603         This allows things like "%ifdef FOO" based on config.h settings.
8604         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
8605
8606         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
8607         and other errors that indicate a pseudo-receive happened, grok through
8608         the message buffer for port rights that need references fixed up.
8609
8610 2000-03-16  Andreas Jaeger  <aj@suse.de>
8611
8612         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
8613
8614         * sysdeps/unix/sysv/linux/madvise.c: Remove.
8615
8616         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
8617         from latest Linux kernel.
8618         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
8619
8620         * misc/sys/mman.h: Add prototype for mincore.
8621
8622 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
8623
8624         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
8625         entry for GLIBC_2.0 version of setrlimit.
8626         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
8627
8628 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
8629
8630         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
8631         * nis/nss_compat/compat-initgroups.c: Likewise.
8632         * nis/nss_nis/nis-initgroups.c: Likewise.
8633         * nis/nss_nis/nis-netgrp.c: Likewise.
8634         * nis/nss_nis/nis-proto.c: Likewise.
8635         * nis/nss_nis/nis-rpc.c: Likewise.
8636         * nis/nss_nis/nis-service.c: Likewise.
8637         * nis/ypclnt.c: Likewise.
8638
8639 2000-03-16  Andreas Jaeger  <aj@suse.de>
8640
8641         * manual/Makefile: MAKEINFO is set to `:' from configure if it
8642         doesn't exist, correct checks.  Fixes PR libc/1649.
8643
8644 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
8645
8646         * nscd/hstcache.c: Restore correct UID.
8647         * nscd/pwdcache.c: Likewise.
8648         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
8649
8650 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
8651
8652         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
8653         macros for register names, in line with 2000-03-14 linux change.
8654
8655         * sysdeps/mach/sched_yield.c: New file.
8656
8657 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
8658
8659         * sysdeps/generic/lockfile.c: Include <stdio.h>
8660         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
8661         case <libio.h> defined them.
8662         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
8663         from __internal_*.
8664         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
8665         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
8666
8667         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
8668         for more pleasing parse error.
8669
8670 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
8671
8672         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
8673         memory for eras.
8674         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
8675
8676         * elf/Makefile: Add rules to compile and run constload1 test.
8677         * elf/constload1.c: New file.
8678         * elf/constload2.c: New file.
8679         * elf/constload3.c: New file.
8680
8681 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
8682
8683         * sysdeps/posix/open64.c: Make __open64 weak alias.
8684         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
8685         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
8686         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
8687         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8688         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
8689         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
8690         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
8691         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
8692         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8693         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
8694
8695 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
8696
8697         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
8698         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
8699
8700 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
8701
8702         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
8703         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
8704
8705 2000-03-08  Andreas Jaeger  <aj@suse.de>
8706
8707         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
8708
8709 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
8710
8711         * timezone/africa: Update from tzdata2000d.
8712         * timezone/asia: Likewise.
8713         * timezone/australasia: Likewise.
8714         * timezone/europe: Likewise.
8715         * timezone/northamerica: Likewise.
8716         * timezone/southamerica: Likewise.
8717
8718         * po/fr.po: Update from translation team.
8719         * po/de.po: Likewise.
8720
8721         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
8722         last parameter.  Move code to add map to global scope from here...
8723         * elf/dl-open.c (dl_open_worker): ...here.
8724         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
8725         * elf/rtld.c: Adjust call to _dl_map_object_deps.
8726
8727         * locale/programs/ld-collate.c (collate_read): Fix warning.
8728
8729         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
8730         values and macros for register names.
8731
8732         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
8733         returned by seek cookie function is -1.
8734
8735 2000-03-14  Andreas Jaeger  <aj@suse.de>
8736
8737         * locale/localeconv.c (localeconv): Fix typo.
8738         Reported by Andre Charbonneau <andrec@corel.com>.
8739
8740 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
8741
8742         * iconv/skeleton.c: Increment __invocation_counter in inner loop
8743         since modules depend on it counting the number of times the conversion
8744         function got called.
8745
8746         * iconv/gconv_open.c: Optimize loop to setup step data structure.
8747
8748         * iconv/gconv.h: Pretty print.
8749
8750 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
8751
8752         * posix/wordexp-test.c: Correct one of the tests added in the last
8753         change.  Really get the root passwd entry to check again ~root.
8754
8755 2000-03-10  Andreas Jaeger  <aj@suse.de>
8756
8757         * manual/filesys.texi (Working Directory): Fix last patch.
8758         Patch by Martin Buchholz  <martin@xemacs.org>.
8759
8760 2000-03-10  Andreas Jaeger  <aj@suse.de>
8761
8762         * manual/creature.texi (Feature Test Macros): Fix language.
8763
8764 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
8765
8766         * mach/devstream.c (devstream_write, devstream_read): New functions.
8767         (input, output): Functions removed.
8768         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
8769         using only the vanilla fopencookie interface.
8770
8771         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
8772         as macro for __io_functions.
8773         (funcsio): Use cookie_io_functions_t type name.
8774         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
8775
8776         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
8777         fopencookie.
8778         (fopencookie): Use it.
8779         * libio/libio.h: Declare _IO_cookie_init.
8780         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
8781         _IO_cookie_init.
8782
8783         * libio/libio.h (__io_seek_fn): Fix second argument type
8784         to be a pointer, in line with the manual and the old stdio.
8785         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
8786
8787         * sysdeps/generic/bits/stdio-lock.h: New file.
8788         This is a stub with #error, but that's better than no file at all.
8789
8790 2000-03-09  Martin Buchholz  <martin@xemacs.org>
8791
8792         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
8793         * manual/message.texi (Using gettextized software): Doc Fixes.
8794         * manual/message.texi (Message Translation): Doc Fixes.
8795         * manual/filesys.texi (File Size): Doc Fixes.
8796         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
8797         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
8798         * iconv/gconv_db.c (find_derivation): Doc Fixes.
8799         * manual/install.texi: Doc Fixes.
8800         * manual/search.texi (Hash Search Function): Doc Fixes.
8801         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
8802         * FAQ.in: Doc Fixes.
8803         * config.h.in: Doc Fixes.
8804         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
8805         Doc Fixes.  `allows to' is not correct English.
8806
8807         * elf/rtld.c: Doc fixes.
8808         * manual/creature.texi (Feature Test Macros): Doc fixes.
8809         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
8810
8811         * manual/filesys.texi (Working Directory): Check for ERANGE to
8812         avoid infloop.
8813
8814 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
8815
8816         * string/argz-stringify.c (__argz_stringify): Fix loop termination
8817         conditions so as not to clobber the final '\0' when there is only one
8818         element in the vector.
8819
8820 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
8821
8822         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
8823         broken by 2000-02-27 change.
8824
8825         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
8826
8827 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
8828
8829         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
8830         argument type, for 2000-02-22 change in signal/signal.h declaration.
8831
8832 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
8833
8834         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
8835         to getdirentries64 (no __), since the Linux implementation
8836         has no __ name, and there is no declaration for the __ name.
8837
8838         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
8839
8840         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
8841         sed regexp so as not to break directory names including /../ within.
8842
8843         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
8844         The sysdeps/generic file is right for BSD.  This file was in fact the
8845         Hurd file, but the only difference was the WNOREAP flag that was never
8846         actually implemented or used anywhere.
8847
8848         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
8849         since AC_PATH_PROG already does it for us.
8850         (PERL): Rewrite check added in 2000-02-29 change for syntactic
8851         correctness and sh portability.  I replaced the broken check
8852         with a more sensible implementation of the apparently intended
8853         semantics, which might still be questionable.  Using expr causes
8854         a non-numeric value for `perl -V:apiversion` to be accepted,
8855         refusing to use only a perl that reports a number less than 5;
8856         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
8857         * configure: Regenerated.
8858
8859 2000-03-08  Andreas Jaeger  <aj@suse.de>
8860
8861         * manual/crypt.texi: Fix paths.
8862
8863 2000-03-07  Andreas Jaeger  <aj@suse.de>
8864
8865         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
8866         were swapped.
8867         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
8868         libc/1636.
8869
8870 2000-03-06  Andreas Jaeger  <aj@suse.de>
8871
8872         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
8873         in __sgn1l, otherwise g++ fails to parse this.
8874         Reported by Sean Chen <sean.chen@turbolinux.com>.
8875
8876 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
8877
8878         * configure.in: Compute sizeof-long-double.
8879         * configure: Regenerated.
8880         * config.make.in: Make sizeof-long-double available to sub-makes.
8881
8882 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
8883
8884         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
8885         call.
8886
8887 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
8888
8889         * Makeconfig (rpath-dirs): Add crypt.
8890         (all-subdirs): Remove md5crypt.
8891         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
8892         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
8893         * sysdeps/generic/crypt-entry.c: Delete.
8894         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
8895         * sysdeps/generic/crypt.h: Delete.
8896         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
8897         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
8898         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
8899         * sysdeps/generic/des_impl.c: Delete.
8900         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
8901         * crypt/sysdeps: Delete.
8902         * crypt/crypt_util.c: Don't use `patchlevel.h'.
8903         * md5-crypt/Versions: Move to crypt/.
8904         * md5-crypt/md5-crypt.c: Move to crypt/.
8905         * md5-crypt/md5.c: Move to crypt/.
8906         * md5-crypt/md5c-test.c: Move to crypt/.
8907         * md5-crypt/md5test.c: Move to crypt/.
8908         * md5-crypt: Delete.
8909         * crypt/Makefile: Adjust for new structure.
8910
8911 2000-03-03  Paul Eggert  <eggert@twinsun.com>
8912
8913         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
8914         define to 1 if not defined.
8915
8916 2000-03-03  Andreas Jaeger  <aj@suse.de>
8917
8918         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
8919
8920 2000-03-03  Andreas Jaeger  <aj@suse.de>
8921
8922         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
8923         cases.
8924         (xdr_int64_t): Correctly handle lower half.
8925         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
8926
8927 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
8928
8929         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
8930         call.
8931
8932 2000-03-02  Andreas Jaeger  <aj@suse.de>
8933
8934         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
8935         2.3.43.
8936
8937 2000-03-02  Andreas Jaeger  <aj@suse.de>
8938
8939         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
8940
8941 2000-03-01  Andreas Jaeger  <aj@suse.de>
8942
8943         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
8944         (tests): Added tst-getdate.
8945
8946         * time/tst-getdate.c: New file.
8947
8948         * time/datemsk: New file, needed for tst-getdate.
8949
8950 2000-02-29  Cristian Gafton  <gafton@redhat.com>
8951
8952         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
8953
8954 2000-02-17  H.J. Lu  <hjl@gnu.org>
8955
8956         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
8957
8958         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
8959         available.
8960         (svcudp_recv): Set up message with the new "xp_pad" field for
8961         IP_PKTINFO.
8962         (svcudp_reply): Support IP_PKTINFO if available.
8963
8964 2000-03-01  Andreas Jaeger  <aj@suse.de>
8965
8966         * time/getdate.c (check_mday): Fix check for february.
8967         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
8968         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
8969
8970 2000-03-02  Andreas Jaeger  <aj@suse.de>
8971
8972         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
8973         g++ fails to parse this.
8974         Reported by Sean Chen <sean.chen@turbolinux.com>.
8975
8976 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
8977
8978         * io/creat.c: Moved to...
8979         * sysdeps/generic/creat.c: ...here.
8980         * io/creat64.c: Moved to...
8981         * sysdeps/generic/creat64.c: ...here.
8982         * io/lockf.c: Moved to...
8983         * sysdeps/generic/lockf.c: ...here.
8984
8985         * crypt/crypt.texi: Moved to...
8986         * manual/crypt.texi: ...here.
8987         * crypt/examples/genpass.c: Moved to...
8988         * manual/examples/genpass.c: ...here.
8989         * crypt/examples/mygenpass.c: Moved to...
8990         * manual/examples/mygenpass.c: ...here.
8991         * crypt/examples/testpass.c: Moved to...
8992         * manual/examples/testpass.c: ...here.
8993
8994         * manual/Makefile (chapters): Add crypt.
8995         * manual/conf.texi: Add usual header for not-last chapter.
8996         * manual/crypt.texi: Add special header for last chapter.
8997
8998 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
8999
9000         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
9001         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
9002         complain if there is no crypt add-on.
9003         * crypt/configure: Removed.
9004
9005         * crypt/crypt.texi: Update documentation of US export restrictions
9006         to match the 14 Jan 2000 regulations.
9007
9008 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
9009
9010         * crypt: New subdirectory, merged in from the crypt add-on.
9011
9012 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
9013
9014         * include/unistd.h: Add __rmdir and __mkdir prototypes.
9015
9016
9017 See ChangeLog.10 for earlier changes.