Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
2
3         * Rules (%.out): Define GCONV_PATH in the environment.
4         * assert/Depend: New file.
5         * iconvdata/Depend: New file.
6         * intl/Depend: New file.
7         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
8         * intl/tst-gettext.sh: Likewise.
9         * iconv/Makefile (routines): Add gconv_trans.
10         * iconv/gconv_trans.c: New file.
11         * iconv/gconv.h (struct __gconv_trans_data): New type.
12         (__gconv_fct): New parameter with starting position in output buffer.
13         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
14         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
15         (struct __gconv_step): Add new member __trans.
16         * iconv/gconv_int.h: Pretty print prototypes.
17         (gconv_transliterate): New prototype.
18         (__BUILTIN_TRANS): Update for new conversion function interface.
19         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
20         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
21         in names, find appropriate function, and install in the conversion
22         steps it can be used.
23         * iconv/skeleton.c: Add additional parameter for beginning of output
24         buffer.  Change calls of downstream functions.
25         * iconv/loop.c: Change loop function interface completely.  Pass in
26         step and step_data structure.  Remove optimization for BODY with
27         NEED_LENGTH_TEST == 0.
28         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
29         appropriate error handling code to use transliteration steps.  Remove
30         optimization for BODY with NEED_LENGTH_TEST == 0.
31         * iconvdata/8bit-gap.c: Likewise.
32         * iconvdata/8bit-generic.c: Likewise.
33         * iconvdata/ansi_x3.110.c: Likewise.
34         * iconvdata/big5.c: Likewise.
35         * iconvdata/big5hkscs.c: Likewise.
36         * iconvdata/euc-cn.c: Likewise.
37         * iconvdata/euc-jp.c: Likewise.
38         * iconvdata/euc-kr.c: Likewise.
39         * iconvdata/euc-tw.c: Likewise.
40         * iconvdata/gbgbk.c: Likewise.
41         * iconvdata/gbk.c: Likewise.
42         * iconvdata/iso-2022-cn.c: Likewise.
43         * iconvdata/iso-2022-jp.c: Likewise.
44         * iconvdata/iso-2022-kr.c: Likewise.
45         * iconvdata/iso646.c: Likewise.
46         * iconvdata/iso8859-1.c: Likewise.
47         * iconvdata/iso_6937-2.c: Likewise.
48         * iconvdata/iso_6937.c: Likewise.
49         * iconvdata/johab.c: Likewise.
50         * iconvdata/sjis.c: Likewise.
51         * iconvdata/t.61.c: Likewise.
52         * iconvdata/uhc.c: Likewise.
53         * iconvdata/unicode.c: Likewise.
54         * iconvdata/utf-16.c: Likewise.
55         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
56         DL_CALL_FCT.
57         * wcsmbs/btowc.c: Likewise.
58         * wcsmbs/mbrtowc.c: Likewise.
59         * wcsmbs/mbsnrtowcs.c: Likewise.
60         * wcsmbs/mbsrtowcs.c: Likewise.
61         * wcsmbs/wcrtomb.c: Likewise.
62         * wcsmbs/wcsnrtombs.c: Likewise.
63         * wcsmbs/wcsrtombs.c: Likewise.
64         * wcsmbs/wctob.c: Likewise.
65
66 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
67
68         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
69         other header files.  Mention about 128-byte cache line sizes.
70         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
71         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
72         for current calling sequence.
73         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
74
75         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
76         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
77
78         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
79         and setrlimit syscalls for backwards compatibility.
80
81 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
82
83         * iconv/skeleton.c:  Rename converted written to correcter name
84         irreversible.
85         * iconv/gconv.c: Rename converted variable to correcter name
86         irreversible.
87         * iconv/gconv_int.h: Likewise.
88         * iconv/gconv_simple.c: Likewise.
89         * iconv/iconv.c: Likewise.
90         * iconv/loop.c: Likewise.
91         * iconvdata/8bit-gap.c: Likewise.
92         * iconvdata/8bit-generic.c: Likewise.
93         * iconvdata/ansi_x3.110.c: Likewise.
94         * iconvdata/big5.c: Likewise.
95         * iconvdata/big5hkscs.c: Likewise.
96         * iconvdata/euc-cn.c: Likewise.
97         * iconvdata/euc-jp.c: Likewise.
98         * iconvdata/euc-kr.c: Likewise.
99         * iconvdata/gbgbk.c: Likewise.
100         * iconvdata/gbk.c: Likewise.
101         * iconvdata/iso-2022-cn.c: Likewise.
102         * iconvdata/iso-2022-jp.c: Likewise.
103         * iconvdata/iso-2022-kr.c: Likewise.
104         * iconvdata/iso646.c: Likewise.
105         * iconvdata/iso8859-1.c: Likewise.
106         * iconvdata/iso_6937-2.c: Likewise.
107         * iconvdata/iso_6937.c: Likewise.
108         * iconvdata/johab.c: Likewise.
109         * iconvdata/sjis.c: Likewise.
110         * iconvdata/t.61.c: Likewise.
111         * iconvdata/uhc.c: Likewise.
112         * iconvdata/unicode.c: Likewise.
113         * iconvdata/utf-16.c: Likewise.
114
115         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
116         __cmsg_data field with __extension__.
117
118 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
119
120         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
121
122 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
123
124         * iconv/gconv_simple.c: Fix various small bugs in several
125         functions.
126
127         * iconv/loop.c: Fix comment.
128
129 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
130
131         * elf/link.h: Remove libc internal declarations.
132         * include/link.h: Move them here.
133
134 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
135
136         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
137         Patch by Dan Pop <Dan.Pop@cern.ch>.
138
139         Rewrite error message handling.
140         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
141         _dl_catch_error.
142         * elf/dl-error (struct catch): Add objname member.
143         (_dl_signal_error): Take new parameter with object name.  When
144         passing message on simply store object name and duplicate error
145         message.
146         (_dl_catch_error): Take new parameter.  Store object name in the
147         place pointed to.
148         * include/dlfcn.h: Adjust _dl_catch_error prototype.
149         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
150         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
151         (dlerror): Add objname to asprintf() parameters.
152         (_dl_error_run): Pass new parameter to _dl_catch_error.
153         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
154         * elf/dl-open.c (_dl_open): Likewise.
155         * elf/rtld.c (dl_main): Likewise.
156         * elf/dl-close.c: Mark error messages with N_().
157         * elf/dl-deps.c: Likewise.
158         * elf/dl-error.c: Likewise.
159         * elf/dl-load.c: Likewise.
160         * elf/dl-open.c: Likewise.
161         * elf/dl-reloc.c: Likewise.
162         * elf/dl-support.c: Likewise.
163         * elf/dl-sym.c: Likewise.
164         * elf/dl-version.c: Likewise.
165         * elf/dl-lookup.c: Add comments about problems with error message
166         translations.
167         * elf/dl-reloc.c: Likewise.
168         * elf/dl-version.c: Likewise.
169
170 2000-06-09  H.J. Lu  <hjl@gnu.org>
171
172         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
173         after freeing it.
174
175         * dlfcn/Makefile (distribute): Add failtestmod.c.
176         (tests): Add failtest.
177         Add rules to build and run failtest.
178         * dlfcn/failtest.c: New file.
179         * dlfcn/failtestmod.c: New file.
180
181 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
182
183         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
184         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
185         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
186         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
187         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
188
189 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
190
191         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
192         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
193
194 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
195             Ulrich Drepper  <drepper@redhat.com>
196
197         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
198         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
199         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
200         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
201         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
202         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
203
204 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
205
206         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
207         to find correct mount point despite wrong information from the
208         kernel.
209
210 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
211
212         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
213         the address of a symbol so function pointers are handled properly.
214
215 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
216
217         * sysdeps/i386/Dist: Add bp-asm.h.
218
219         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
220         defaultdir variable instead of "/var/shm" everywhere.
221         (defaultdir): Change to /dev/shm/.
222
223 2000-06-08  Greg McGary  <greg@mcgary.org>
224
225         * sysdeps/i386/bp-asm.h: New file.
226         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
227         offsets.  Add ENTER/LEAVE macros for optionally maintaining
228         frame-pointer chain when debugging.
229         * sysdeps/i386/add_n.S: Likewise.
230         * sysdeps/i386/addmul_1.S: Likewise.
231         * sysdeps/i386/lshift.S: Likewise.
232         * sysdeps/i386/memchr.S: Likewise.
233         * sysdeps/i386/memcmp.S: Likewise.
234         * sysdeps/i386/mul_1.S: Likewise.
235         * sysdeps/i386/rawmemchr.S: Likewise.
236         * sysdeps/i386/rshift.S: Likewise.
237         * sysdeps/i386/stpcpy.S: Likewise.
238         * sysdeps/i386/stpncpy.S: Likewise.
239         * sysdeps/i386/strchr.S: Likewise.
240         * sysdeps/i386/strchrnul.S: Likewise.
241         * sysdeps/i386/strcspn.S: Likewise.
242         * sysdeps/i386/strpbrk.S: Likewise.
243         * sysdeps/i386/strrchr.S: Likewise.
244         * sysdeps/i386/strspn.S: Likewise.
245         * sysdeps/i386/strtok.S: Likewise.
246         * sysdeps/i386/sub_n.S: Likewise.
247         * sysdeps/i386/submul_1.S: Likewise.
248         * sysdeps/i386/elf/setjmp.S: Likewise.
249         * sysdeps/i386/i486/strcat.S: Likewise.
250         * sysdeps/i386/i486/strlen.S: Likewise.
251         * sysdeps/i386/i586/add_n.S: Likewise.
252         * sysdeps/i386/i586/lshift.S: Likewise.
253         * sysdeps/i386/i586/memcpy.S: Likewise.
254         * sysdeps/i386/i586/memset.S: Likewise.
255         * sysdeps/i386/i586/rshift.S: Likewise.
256         * sysdeps/i386/i586/strchr.S: Likewise.
257         * sysdeps/i386/i586/strcpy.S: Likewise.
258         * sysdeps/i386/i586/strlen.S: Likewise.
259         * sysdeps/i386/i586/sub_n.S: Likewise.
260         * sysdeps/i386/i686/add_n.S: Likewise.
261         * sysdeps/i386/i686/memcpy.S: Likewise.
262         * sysdeps/i386/i686/mempcpy.S: Likewise.
263         * sysdeps/i386/i686/memset.S: Likewise.
264         * sysdeps/i386/i686/strcmp.S: Likewise.
265
266 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
267
268         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
269
270         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
271         256 and don't use OPEN_MAX.
272
273         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
274         use it instead of LINK_MAX.
275         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
276
277 2000-06-08  Andreas Jaeger  <aj@suse.de>
278
279         * libio/genops.c (_IO_list_lock): Only compile body if we're
280         thread safe.
281         (_IO_list_unlock): Likewise.
282         (_IO_list_resetlock): Likewise.
283
284 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
285
286         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
287         unless user defined it.
288
289         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
290         if not defined by the user.
291
292         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
293         * libio/iofwrite.c (_IO_fwrite): Likewise.
294
295         * time/time.h: Add missing __THROW for clock_getcpuclockid
296         prototype.
297
298         * elf/Makefile (distribute): Add dl-dtprocnum.h.
299         * include/elf.h: Include also <dl-dtprocnum.h>.
300         * elf/dl-deps.c: Likewise.
301         * elf/dl-lookup.c: Likewise.
302         * elf/dl-runtime.c: Likewise.
303         * elf/dl-version.c: Likewise.
304         * elf/do-rel.h: Likewise.
305         * elf/dynamic-link.h: Likewise.
306         * elf/link.h: Likewise.
307         * elf/rtld.c: Likewise.
308         * sysdeps/generic/dl-dtprocnum.h: New file.
309         * sysdeps/ia64/dl-dtprocnum.h: New file.
310         * sysdeps/mips/dl-dtprocnum.h: New file.
311         * sysdeps/sparc/dl-dtprocnum.h: New file.
312
313         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
314
315         * elf/do-lookup.h: Add some __builtin_expect.
316
317         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
318
319         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
320         (_dl_dynamic_weak): New variable.
321         * elf/dl-support.c: Likewise.
322         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
323         * elf/do-lookup.h: If we find a weak definition treat it like a
324         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
325         case treat it like before.
326
327         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
328         is in main program.
329         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
330
331         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
332         using l_map_start and l_map_end.
333
334         * elf/dl-version.c: Add __builtin_expect in many places.
335
336         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
337         Update.
338
339 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
340
341         Lock for stdio stream list becomes global, for use in LinuxThreads.
342
343         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
344         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
345         _IO_list_resetlock): New interface for iterating global list of
346         streams without accessing the _IO_list_all global variable,
347         and for manipulating the lock which protects this list.
348         * libio/libioP.h: Likewise.
349         * libio/Version: Add entries for the new functions.
350
351         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
352         pointer to _IO_FILE.
353
354 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
355
356         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
357         BIT() must actually be BITw().
358
359         * locale/programs/ld-ctype.c: Handle SP and space consistently.
360
361         * locale/programs/charmap.c: Allow string arguments for
362         code_set_name and repertoiremap.
363
364 2000-06-07  Andreas Jaeger  <aj@suse.de>
365
366         * elf/Makefile: Build ldconfig only when building shared libraries.
367
368 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
369
370         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
371         __USE_ISOC99.
372         (fdimf, __fdim, fdim): Likewise.
373
374 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
375
376         * locale/findlocale.c: Add __builtin_expect in many places.
377         * locale/loadlocale.c: Likewise.
378
379 2000-06-06  Greg McGary  <greg@mcgary.org>
380
381         * sysdeps/mips/elf/start.S: Trim redundant code.
382
383         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
384         Use C comments throughout.  Line up operands column with tabs.
385         * sysdeps/powerpc/strchr.S: Likewise.
386         * sysdeps/powerpc/strcmp.S: Likewise.
387         * sysdeps/powerpc/strcpy.S: Likewise.
388         * sysdeps/powerpc/strlen.S: Likewise.
389
390         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
391         Get low part of &__curbrk with @l.
392
393 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
394
395         * iconvdata/utf-16.c: Add __builtin_expect in many places.
396         * iconvdata/unicode.c: Likewise.
397         * iconvdata/uhc.c: Likewise.
398         * iconvdata/t.61.c: Likewise.
399         * iconvdata/sjis.c: Likewise.
400         * iconvdata/johab.c: Likewise.
401         * iconvdata/iso_6937.c: Likewise.
402         * iconvdata/iso_6937-2.c: Likewise.
403         * iconvdata/iso8859-1.c: Likewise.
404         * iconvdata/iso646.c: Likewise.
405         * iconvdata/iso-2022-kr.c: Likewise.
406         * iconvdata/iso-2022-jp.c: Likewise.
407         * iconvdata/iso-2022-cn.c: Likewise.
408         * iconvdata/gbgbk.c: Likewise.
409         * iconvdata/gbk.c: Likewise.
410         * iconvdata/euc-kr.c: Likewise.
411         * iconvdata/euc-jp.c: Likewise.
412         * iconvdata/euc-cn.c: Likewise.
413
414 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
415
416         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
417         * iconvdata/big5.c: Likewise.
418         * iconvdata/ansi_x3.110.c: Likewise.
419         * iconvdata/8bit-generic.c: Likewise.
420         * iconvdata/8bit-gap.c: Likewise.
421         * iconv/loop.c: Likewise.
422         * iconv/gconv_db.c: Likewise.
423         * iconv/gconv_dl.c: Likewise.
424         * iconv/gconv_simple.c: Likewise.
425         * iconv/skeleton.c: Likewise.
426
427         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
428         (struct __gconv_step_data): Rename __is_last to __flags.
429         * iconv/gconv_close.c: Change all uses of __is_last.
430         * iconv/skeleton.c: Likewise.
431         * iconvdata/iso-2022-cn.c: Likewise.
432         * iconvdata/iso-2022-jp.c: Likewise.
433         * iconvdata/iso-2022-kr.c: Likewise.
434         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
435         Recognize IGNORE error handling, set flag, and remove from name.
436         * iconv/loop.c (ignore_errors_p): Define.
437         Add flags parameter to both functions.
438         * iconv/skeleton.c: Pass flags to all conversion functions.
439         * iconv/gconv_simple.c: Add flags parameter to all functions.
440         Don't return error for invald error if ignore flag is set.
441         (ucs4_internal_loop_single): Add missing pointer increment.
442         (internal_ucs4le_loop_single): Likewise.
443         * iconv/iconv_prog.c: Implement handling of -c parameter.
444         * iconvdata/8bit-gap.c: Don't return error for invald error if
445         ignore flag is set.
446         * iconvdata/8bit-generic.c: Likewise.
447         * iconvdata/ansi_x3.110.c: Likewise.
448         * iconvdata/big5.c: Likewise.
449         * iconvdata/big5hkscs.c: Likewise.
450         * iconvdata/euc-cn.c: Likewise.
451         * iconvdata/euc-jp.c: Likewise.
452         * iconvdata/euc-kr.c: Likewise.
453         * iconvdata/gbgbk.c: Likewise.
454         * iconvdata/gbk.c: Likewise.
455         * iconvdata/iso-2022-cn.c: Likewise.
456         * iconvdata/iso-2022-jp.c: Likewise.
457         * iconvdata/iso-2022-kr.c: Likewise.
458         * iconvdata/iso646.c: Likewise.
459         * iconvdata/iso8859-1.c: Likewise.
460         * iconvdata/iso_6937-2.c: Likewise.
461         * iconvdata/iso_6937.c: Likewise.
462         * iconvdata/johab.c: Likewise.
463         * iconvdata/sjis.c: Likewise.
464         * iconvdata/t.61.c: Likewise.
465         * iconvdata/uhc.c: Likewise.
466         * iconvdata/unicode.c: Likewise.
467         * iconvdata/utf-16.c: Likewise.
468         * libio/fileops.c: Likewise.
469         * libio/iofwide.c: Likewise.
470         * wcsmbs/btowc.c: Likewise.
471         * wcsmbs/mbrtowc.c: Likewise.
472         * wcsmbs/mbsnrtowcs.c: Likewise.
473         * wcsmbs/mbsrtowcs.c: Likewise.
474         * wcsmbs/wcrtomb.c: Likewise.
475         * wcsmbs/wcsnrtombs.c: Likewise.
476         * wcsmbs/wcsrtombs.c: Likewise.
477         * wcsmbs/wctob.c: Likewise.
478
479         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
480         an error.
481
482 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
483
484         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
485         counter for the object we are releasing, just decrement it.
486         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
487
488 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
489
490         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
491         if -ffast-math.
492
493 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
494
495         * iconvdata/big5hkscs.c: New file.
496         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
497
498         * iconvdata/gconv-modules: Add entry for new module.
499         * iconvdata/Makefile (modules): Add BIG5HKSCS.
500         (distribute): Add big5hkscs.c.
501
502 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
503
504         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
505         inlines to match prototypes in mathcalls.h.
506         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
507         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
508         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
509         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
510
511 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
512
513         * elf/elf.h (SHT_SUNW_move): Define.
514
515         * elf/elf.h: Add more Solaris compatiblity definitions.
516
517 2000-06-03  Andreas Jaeger  <aj@suse.de>
518
519         * sysdeps/powerpc/dl-start.S: Close open comment.
520
521 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
522
523         * inet/Versions: Fix typo in rresvport_af export.
524
525 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
526
527         * math/tgmath.h: Pretty print.
528
529 2000-06-02  Andreas Jaeger  <aj@suse.de>
530
531         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
532         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
533
534 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
535
536         * elf/rtld.c (process_envvars): Test for = after variable name.
537
538 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
539
540         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
541         have extra call to __gmon_start__, use the pointer we already have.
542
543         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
544         shifting.
545
546         * sysdeps/i386/elf/setjmp.S: Work around change is recent
547         binutils.  gas now emits a jump through the PLT instead of a
548         relative jump if the jump target is an exported symbol.
549
550 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
551
552         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
553
554 2000-05-31  Andreas Jaeger  <aj@suse.de>
555
556         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
557         gregset_t.
558
559         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
560         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
561
562         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
563         syscall.
564         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
565
566 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
567
568         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
569
570         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
571         * locale/localeconv.c: Make function versioned (with same definition).
572
573         * elf/Makefile (modules-names): Strip before using it.
574
575 2000-05-30  Andreas Jaeger  <aj@suse.de>
576
577         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
578         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
579         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
580         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
581         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
582         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
583
584 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
585
586         * Makefile: Add GNU make magic.
587
588         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
589         Removed.
590         * inet/rcmd.c: Remove __P.  Remove unused variables.
591         (iruserfopen): Make first parameter const.
592         (ruserok_sa): Return result of ruserok2_sa.
593         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
594         * inet/rexec.c: Remove unused variables.  Other small cleanups.
595         * inet/ruserpass.c: Remove __P.  Remove unused variables.
596         (ruserpass): Check results of memory allocation.
597         * include/netdb.h: Add prototype for ruserpass.
598
599 2000-05-29  Andreas Jaeger  <aj@suse.de>
600
601         * elf/readlib.c (interpreters): Use LD_SO since this is supported
602         for all platforms.
603
604 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
605
606         * inet/rcmd.c (rresvport_af): Use correct port number.
607
608 2000-05-26  Andreas Schwab  <schwab@suse.de>
609
610         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
611         entries in all-sonames.
612         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
613         preserving the old name if different for compatibility.
614
615 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
616
617         * posix/Makefile (tests): Add tst-spawn.
618         (tst-spawn-ARGS): New variable.
619         * posix/tst-spawn.c: New file.
620
621         * posix/spawn_faction_addclose.c: Correctly account for new entry.
622         * posix/spawn_faction_adddup2.c: Likewise.
623         * posix/spawn_faction_addopen.c: Likewise.
624         * posix/spawni.c: Correctly test for success of dup2 calls.
625
626         * posix/tst-preadwrite.c: Check success of malloc call.
627
628 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
629
630         * posix/Makefile (tests): Add tst-exec.
631         (tst-exec-ARGS): New variable.
632         * posix/tst-exec.c: New file.
633
634         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
635
636 2000-05-04  Andreas Jaeger  <aj@suse.de>
637
638         * string/string.h: Remove __strdup prototype, it's not needed in
639         this file anymore.
640
641 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
642
643         * posix/Makefile (tests): Add tst-fork.
644         * posix/tst-fork.c: New file.
645
646         * resolv/inet_pton.c: Loose __P.
647
648 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
649
650         * libio/libioP.h (_IO_CHECK_WIDE): Define.
651         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
652         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
653         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
654         _IO_CHECK_WIDE fails.
655
656 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
657
658         * po/da.po: New file.
659
660         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
661         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
662
663         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
664         (Other iconv Implementations): Fix typo.
665         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
666
667 2000-05-27  Andreas Jaeger  <aj@suse.de>
668
669         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
670         normal version now.
671         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
672         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
673         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
674         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
675         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
676         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
677
678         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
679         endianness to decide how to pass arguments.
680         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
681
682         * elf/vismain.c: Use test-skeleton interface.
683         (TEST_FUNCTION): New macro.
684         (do_test): Renamed from main.
685
686 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
687
688         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
689         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
690
691         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
692         handling of AI_V4MAPPED flag.
693
694         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
695         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
696         perform lookup for T_A type and tell getanswer_r to convert the
697         result with new argument.
698         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
699         Don't convert addresses from IPv4 to IPv6 here.
700         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
701         IPv6 is wanted.  Allow qtype and type from reply to disagree if
702         IPv4 mapping has to be done.  Perform mappings if required by the
703         caller and not if RES_USE_INET6 bit in _res.options is set.
704         Add several __builtin_expect.
705
706 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
707
708         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
709
710         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
711         NULL.
712
713         * posix/tst-preadwrite.c: Allow parallel execution of
714         tst-preadwrite and tst-preadwrite64.
715
716         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
717         * posix/tst-truncate.c: New file.
718         * posix/tst-truncate64.c: New file.
719
720         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
721         was switched.
722
723         * posix/Makefile (tests): Add tst-preadwrite64.
724         * posix/tst-preadwrite.c: Alloc file being used also for testing
725         pread64 and pwrite64.
726         * posix/tst-preadwrite64.c: New file.
727
728 2000-05-26  Andreas Jaeger  <aj@suse.de>
729
730         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
731         of arguments dependend on endianness.
732         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
733
734         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
735         normal version now.
736         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
737         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
738         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
739         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
740
741         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
742         endianness to check how to pass argument.
743         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
744
745         * elf/ldconfig.h: Update parameter list for process_elf_file.
746
747         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
748         Add parameter file_length and pass it ot process_elf*file.
749
750         * sysdeps/generic/readelflib.c (check_ptr): New.
751         (process_elf_file): Use check_ptr to check all accesses to the
752         mmapped file. Add parameter file_length.
753
754         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
755         library names.
756
757         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
758         Closes PR libc/1573, reported by Bradley White
759         <bww@laurelnetworks.com>.
760
761 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
762
763         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
764         __FAST_MATH__ is defined.
765
766 2000-05-22  Andreas Jaeger  <aj@suse.de>
767
768         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
769         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
770
771         * manual/math.texi (FP Function Optimizations): Document gcc
772         -ffast-math behaviour with mathinlines.
773
774         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
775         functions unless -ffast-math is given to gcc.
776
777 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
778
779         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
780         __sincosl): Guard with __USE_GNU.
781
782 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
783
784         * csu/Makefile (routines): Add check_fds.
785         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
786         binaries.  Add various __builtin_expect.
787         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
788         * sysdeps/generic/check_fds.c: ...here.  New file.
789
790         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
791         binaries if file /etc/suid-debug is available.
792
793         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
794         and wcseqorder members.
795         (struct locale_collate_t): Likewise.
796         (collate_finish): Assign collation sequence value to each character.
797         Create tables for output.
798         (collate_output): Write out tables with collation sequence information.
799         * locale/C-collate.c: Provide C locale data for collation sequence
800         table.
801         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
802         _NL_COLLATE_COLLSEQWC.
803         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
804         _NL_COLLATE_COLLSEQWC.
805         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
806         include fnmatch_loop.c.
807         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
808         character is matched by range expression.  Use collation sequence
809         table.  Outside glibc fall back on simple character value comparison.
810
811 2000-05-24  Andreas Jaeger  <aj@suse.de>
812
813         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
814         words.
815
816         * intl/Makefile: Run gettext-test only if msgfmt is available.
817
818         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
819         Define it for newer kernels.
820
821 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
822
823         * elf/dl-sym.c: Minor cleanups.
824
825         * configure.in: Add test for .protected.
826         * config.make.in: Add have-protected variable.
827         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
828         (tests-vis-yes): Add vismain.
829         (modules-names): Add $(modules-vis-$(have-protected)).
830         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
831         Add rules to generate and run vismain.
832         * elf/vismain.c: New file.
833         * elf/vismod1.c: New file.
834         * elf/vismod2.c: New file.
835         * elf/vismod3.c: New file.
836
837 2000-05-23  Andreas Jaeger  <aj@suse.de>
838
839         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
840
841         * manual/search.texi (Array Sort Function): Document that qsort is
842         not necessarily in-place.
843
844         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
845         Closes PR libc/1731.
846
847         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
848         * dirent/scandir64.c: Likewise.
849         * pwd/getpw.c: Likewise.
850         * stdlib/bsearch.c (bsearch): Likewise.
851         * stdlib/tst-strtoll.c: Likewise.
852         * localedata/collate-test.c: Likewise.
853         * localedata/xfrm-test.c: Likewise.
854         * posix/bsd-getpgrp.c: Likewise.
855         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
856         * sysdeps/generic/bits/siginfo.h: Likewise.
857         * sysdeps/generic/bits/sockaddr.h: Likewise.
858         * sysdeps/generic/sys/swap.h: Likewise.
859         * sysdeps/generic/sys/sysinfo.h: Likewise.
860         * sysdeps/generic/vfork.c: Likewise.
861         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
862         * sysdeps/mach/hurd/fdopen.c: Likewise.
863         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
864         * sysdeps/unix/sysv/linux/poll.c: Likewise.
865         * sysdeps/unix/sysv/linux/readv.c: Likewise.
866         * sysdeps/unix/sysv/linux/writev.c: Likewise.
867         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
868         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
869         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
870
871         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
872         * shadow/lckpwdf.c: Likewise.
873         * stdlib/tst-strtol.c: Likewise.
874         * sysdeps/generic/tcsetattr.c: Likewise.
875         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
876         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
877
878 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
879
880         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
881         free it and set to (void *) -1.
882
883 2000-05-22  Jakub Jelinek <jakub@redhat.com>
884
885         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
886         not the second character in the range.
887         * stdio-common/tstscanf.c (main): Add testcase for the above.
888         Reported by jik@kamens.brookline.ma.us.
889
890 2000-05-21  H.J. Lu  <hjl@gnu.org>
891
892         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
893         with noexec and noplt parameter.
894         (do_lookup): Likewise.
895
896         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
897         do_lookup.  Support STV_PROTECTED.
898         (_dl_lookup_symbol_skip): Likewise.
899         (_dl_lookup_versioned_symbol): Likewise.
900         (_dl_lookup_versioned_symbol_skip): Likewise.
901
902         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
903
904         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
905
906 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
907
908         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
909         * sysdeps/i386/bits/huge_val.h: Likewise.
910         * sysdeps/ieee754/bits/huge_val.h: Likewise.
911         * sysdeps/m68k/bits/huge_val.h: Likewise.
912         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
913         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
914
915 2000-05-22  Andreas Jaeger  <aj@suse.de>
916
917         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
918         change in iconv.h.
919
920 2000-05-19  Andreas Jaeger  <aj@suse.de>
921
922         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
923         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
924         breaks compilation without linuxthreads.
925
926 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
927
928         * sysdeps/ia64/memccpy.S: New file.
929         * sysdeps/ia64/memchr.S: New file.
930         * sysdeps/ia64/memcmp.S: New file.
931         * sysdeps/ia64/memcpy.S: New file.
932         * sysdeps/ia64/memmove.S: New file.
933         * sysdeps/ia64/memset.S: New file.
934         * sysdeps/ia64/strcat.S: New file.
935         * sysdeps/ia64/strchr.S: New file.
936         * sysdeps/ia64/strcmp.S: New file.
937         * sysdeps/ia64/strcpy.S: New file.
938         * sysdeps/ia64/strlen.S: New file.
939         * sysdeps/ia64/strncmp.S: New file.
940         * sysdeps/ia64/strncpy.S: New file.
941         * sysdeps/ia64/softpipe.h: New file.
942         Patches by Dan Pop <Dan.Pop@cern.ch>.
943
944         * manual/memory.texi: Document memory handling functions (mlock,
945         munlock, mlockall, munlockall, brk, and sbrk)
946         * manual/time.texi: Document timespec and friends.
947         * manual/conf.texi: Fix references.
948         * manual/ctype.texi: Likewise.
949         * manual/errno.texi: Likewise.
950         * manual/intro.texi: Likewise.
951         * manual/locale.texi: Likewise.
952         * manual/sysinfo.texi: Likewise.
953         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
954
955 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
956
957         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
958         * sysdeps/ia64/dl-lookupcfg.h: ...here.
959
960 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
961
962         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
963         dxfer_direction.
964
965 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
966
967         * locale/locale.h (struct lconv): Add new elements from ISO C99.
968         * locale/localeconv.c: Initialize new elements from ISO C99.
969         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
970         new standard elements.
971         * locale/categories.def: Adjust accordingly.
972
973         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
974         * iconv/iconv.c: Likewise.
975         * conform/data/iconv.h-data: Likewise.
976         * iconv/iconv_prog.c (process_block): Remove const from second
977         parameter.
978         (main): Remove const from addr definition.
979         * manual/charset.texi (Generic Conversion Interface): Remove from
980         inbuf parameter of iconv.
981
982         * intl/dcigettext.c: Fix typo in comment.
983
984 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
985
986         * resolv/res_libc.c (_res): Initialize _sock to -1.
987
988 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
989
990         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
991         (fopencookie@@GLIBC_2.2): New.
992         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
993         (fopencookie@GLIBC_2.0): New.
994         * libio/Versions: Add fopencookie to GLIBC_2.2.
995
996 2000-05-18  Andreas Jaeger  <aj@suse.de>
997
998         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
999         Closes PR libc/1731.
1000
1001         * manual/arith.texi (Parsing of Integers): Fix typo.
1002         Closes PR libc/1744, reported by blp@gnu.org.
1003
1004 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
1005
1006         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
1007         __extension__ to hexadecimal floating constant notation.
1008         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
1009         Likewise.
1010         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
1011         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
1012         Likewise.
1013         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
1014         HUGE_VALL): Likewise.
1015         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
1016         HUGE_VALL): Likewise.
1017         (HUGE_VALL): Set to HUGE_VAL on sparc32.
1018
1019 2000-05-17  Andreas Jaeger  <aj@suse.de>
1020
1021         * string/envz.h: Add pure attributes if possible.
1022
1023         * string/argz.h: argz_count is a pure function.
1024
1025         * string/strings.h: Add pure and const attributes if possible.
1026
1027         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
1028         possibly searching through the whole memory.
1029         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
1030
1031 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
1032
1033         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
1034         not yet defined.
1035         (_dl_cache_check_flags): Likewise.
1036         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
1037         dl-cache.h.
1038
1039 2000-05-17  Andreas Jaeger  <aj@suse.de>
1040
1041         * manual/creature.texi (Feature Test Macros): Remove paragraph
1042         since the description is wrong.
1043         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
1044
1045         * scripts/config.sub: New version.
1046         * scripts/config.guess: Likewise.
1047         * manual/texinfo.tex: Likewise.
1048
1049         * time/test_time.args: Removed.
1050         * time/Makefile (test_time-ARGS): Added contents here instead.
1051
1052         * posix/tstgetopt.args: Removed.
1053         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
1054
1055         * Rules: Allow arguments for test files to be specified in
1056         Makefile with testname-ARGS; remove rules with .args in it.
1057
1058         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
1059         remove old bogus rule for opendir-tst1.args.
1060
1061         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
1062
1063         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
1064         into objdir.  This allows a readonly sourcetree.
1065         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
1066
1067 2000-05-16  Andreas Jaeger  <aj@suse.de>,
1068             David Huggins-Daines <dhd@linuxcare.com>
1069
1070         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
1071         cache_data in case of only new cache format correctly.
1072
1073         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
1074         cache_file_new.
1075
1076         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
1077         struct cache_file_new.
1078
1079         * elf/cache.c (save_cache): Fix str_offset if only new cache is
1080         present.
1081
1082         * elf/cache.c (save_cache): Align struct new_file_cache.
1083         (print_cache): Likewise.
1084
1085 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
1086
1087         * elf/soinit.c (__libc_global_ctors): Move
1088         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
1089         * resolv/resolv.h (__res_state): Added __attribute__((const)).
1090         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
1091         variable, don't define it to __res_state call.
1092
1093 2000-05-13  Andreas Jaeger  <aj@suse.de>
1094
1095         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
1096         Linux 2.3.99pre7.
1097         (AF_PPPOX): Likewise.
1098         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
1099         (AF_PPPOX): Likewise.
1100
1101 2000-05-12  Andreas Jaeger  <aj@suse.de>
1102
1103         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
1104         Reported by tmoestl@gmx.net, closes PR libc/1732.
1105
1106 2000-05-11  Jan Hubicka  <jh@suse.cz>
1107
1108         * misc/sys/cdefs.h: Add support for pure attribute.
1109
1110         * include/string.h: Add __attribute_pure__ to various functions.
1111         * string/string.h: Likewise.
1112
1113 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
1114
1115         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
1116         argument.
1117         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
1118         R_SPARC_UA64.
1119         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
1120
1121 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
1122
1123         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
1124         at proper place.  Compute the high nibble correctly.
1125
1126 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
1127
1128         * elf/ldconfig.c: Include elf.h.
1129
1130         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
1131         (_dl_vsym): Likewise.
1132         Reported by Owen Taylor <otaylor@redhat.com>.
1133
1134         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
1135         always.
1136
1137 2000-05-08  Andreas Jaeger  <aj@suse.de>
1138
1139         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
1140
1141         * intl/bindtextdom.c (set_binding_values): Add prototype.
1142
1143 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
1144
1145         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
1146         call to elf_machine_fixup_plt.
1147         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
1148         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1149
1150 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
1151
1152         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
1153         they are not dlclose'd from underneath us.
1154
1155 2000-05-08  Andreas Schwab  <schwab@suse.de>
1156
1157         * posix/execle.c: Fix size parameter of memcpy.
1158
1159 2000-05-08  Andreas Schwab  <schwab@suse.de>
1160
1161         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
1162         getpagesize syscall if available.
1163
1164 2000-05-08  Andreas Jaeger  <aj@suse.de>
1165
1166         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
1167         set errno.
1168
1169 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
1170
1171         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
1172         sizeof(struct link_map *) chunks, not in bytes.
1173
1174 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
1175
1176         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
1177         only needed for locale.
1178         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
1179         It's only needed for catgets.
1180         Patches by Greg McGary <gkm@eng.ascend.com>.
1181
1182 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
1183
1184         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
1185         Remove duplicate <errno.h> include.  Remove inclusion of
1186         <libintl.h> and "nsswitch.h".
1187         (set_cloexec_flag): New function, broken out of dbopen.
1188         (dbopen): Changed return type to `enum
1189         nss_status'.  Mostly rewritten to make sure that we do not report
1190         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
1191         (internal_setent): Change return type to nss_status.
1192         Document, and make sure that the function
1193         behaves accordingly.  Make dynamically loading the database
1194         library really thread-safe and return NSS_STATUS_UNAVAIL if it
1195         failed.
1196         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
1197         unecessary casts.
1198         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
1199         documentation.
1200         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
1201         c_get function member.
1202         * nss/nss_db/nss_db.h: Add and tweak some comments.
1203         (DBT): Move typedef before NSS_DBC typedef.
1204         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
1205
1206 2000-05-07  H.J. Lu  <hjl@gnu.org>
1207
1208         * csu/initfini.c: Moved to ....
1209         * sysdeps/generic/initfini.c: ...here.
1210
1211         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
1212
1213 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
1214
1215         * manual/resource.texi: Document POSIX scheduling functions.
1216         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
1217
1218         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
1219         reading anything.  Reported by Andries.Brouwer@cwi.nl.
1220
1221         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
1222         for x since promotion in comparison might leads to unexpected
1223         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
1224
1225         * iconv/Makefile (tests): Add tst-iconv1.
1226         * iconv/tst-iconv1.c: New file.
1227         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
1228         empty input buffer over full output buffer.
1229         (ucs4_internal_loop): Likewise.
1230         (ucs4_internal_loop_unaligned): Likewise.
1231         (internal_ucs4le_loop): Likewise.
1232         (internal_ucs4le_loop_unaligned): Likewise.
1233         (ucs4le_internal_loop): Likewise.
1234         (ucs4le_internal_loop_unaligned): Likewise.
1235         Reported by yaoz@nih.gov.
1236
1237 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
1238
1239         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
1240         returned != __GCONV_OK, there is nothing to clean up.
1241
1242 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
1243
1244         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
1245         OUTPUT_CHARSET environment variables.
1246
1247 2000-05-06  Andreas Jaeger  <aj@suse.de>
1248
1249         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
1250         (struct cache_file_new): New.
1251         (struct file_entry): New (moved from cache.c).
1252         (struct cache_file): New (moved from cache.c).
1253
1254         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
1255         from _dl_load_cache_lookup.
1256         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
1257         the different cache formats.
1258         New variable cache_new for new format.
1259
1260         * elf/ldconfig.h: Change according to changes in cache.c and
1261         ldconfig.c; remove cache_libcmp; add opt_format.
1262
1263         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
1264         stuff that's defined in those headers.
1265         Add hwcap to struct lib_entry.
1266         (opt_format): New variable to select cache format.
1267         (options): Add format parameter.
1268         (is_hwcap): New function.
1269         (path_hwcap): New function.
1270         (parse_opt): Handle new format parameter.
1271         (search_dir): Handle hwcap, search also subdirectories with hwcap.
1272
1273         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
1274         ldconfig is part of glibc.
1275         Include dl-cache.h and remove stuff that's defined there.
1276         (struct cache_entry): Add new member hwcap.
1277         (print_entry): Print hwcap, cleanup a bit.
1278         (print_cache): Print new and old formats.
1279         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
1280         (save_cache): Save new and old formats.
1281         (add_to_cache): Handle hwcap.
1282
1283         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
1284         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
1285         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
1286         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
1287         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
1288         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
1289
1290 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
1291
1292         * intl/dcigettext.c (alignof): New macro.
1293         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
1294         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
1295         freemem_size to 0.
1296
1297 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
1298
1299         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
1300         return value.
1301
1302 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
1303
1304         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
1305         (mempcpy): Correct typo is parameter list.
1306
1307 2000-05-06  Andreas Jaeger  <aj@suse.de>
1308
1309         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
1310         functions unless -ffast-math is given to gcc.
1311
1312 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
1313
1314         * po/ko.po: Update from translation team.
1315
1316 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
1317
1318         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
1319         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
1320         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
1321         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
1322         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
1323         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
1324
1325         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
1326         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
1327         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
1328
1329         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
1330         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
1331         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
1332         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
1333
1334         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
1335         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
1336
1337 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
1338
1339         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
1340         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
1341
1342         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
1343         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
1344
1345         * sysdeps/ia64/Implies: New file.
1346         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
1347         * sysdeps/ia64/Makefile: New file.
1348         * sysdeps/ia64/gmp-mparam.h: New file,
1349
1350         * sysdeps/ia64/elf/start.S: New file.
1351
1352         * sysdeps/ia64/bits/fenv.h: New file.
1353
1354 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
1355
1356         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
1357
1358 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
1359
1360         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
1361         ia64 has 64 bit .hash entries just as the Alpha.
1362
1363 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
1364
1365         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
1366
1367 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
1368
1369         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
1370         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
1371         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
1372         * sysdeps/ia64/fpu/fegetenv.c: New file.
1373         * sysdeps/ia64/fpu/fegetexcept.c: New file.
1374         * sysdeps/ia64/fpu/fegetround.c: New file.
1375         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
1376         * sysdeps/ia64/fpu/fesetenv.c: New file.
1377         * sysdeps/ia64/fpu/fesetround.c: New file.
1378         * sysdeps/ia64/fpu/feupdateenv.c: New file.
1379         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
1380         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
1381         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
1382         * sysdeps/ia64/fpu/ftestexcept.c: New file.
1383
1384 2000-05-05  Andreas Jaeger  <aj@suse.de>
1385
1386         * misc/tst-tsearch.c (main): Correct type for initstate argument.
1387
1388         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
1389         (_dl_string_hwcap): New, does nothing.
1390
1391         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
1392         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
1393         (_dl_string_hwcap): New function, converts from string to hwcap
1394         encoding.
1395         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
1396         (_DL_HWCAP_COUNT): New.
1397         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
1398         (_dl_string_hwcap): New function, converts from string to hwcap
1399         encoding.
1400         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
1401         (_DL_HWCAP_COUNT): New.
1402         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
1403         (_dl_string_hwcap): New function, converts from string to hwcap
1404         encoding.
1405
1406 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
1407
1408         * elf/Makefile (distribute): Add dl-lookupcfg.h.
1409         * sysdeps/ia64/Dist: New file.
1410
1411         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
1412         parameter to mprotect and for variable assignments.
1413
1414 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
1415
1416         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
1417         validity of map before dereferencing it.
1418
1419         * elf/dl-reloc.c (RESOLVE_MAP): Define.
1420
1421 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
1422
1423         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
1424         lookup to the arguments to elf_machine_fixup_plt().
1425
1426         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
1427         of the symbol being resolved to input argument list and make the
1428         function return the pointer to the reloc.
1429
1430         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
1431         return valuie to lookup_t and return the value.
1432         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
1433         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
1434         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
1435         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
1436         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
1437         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
1438
1439         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
1440         Make it an inline function returning value after calling
1441         __elf_machine_fixup_plt().
1442
1443         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
1444         symbol address.
1445
1446         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
1447         obtain the symbol address.
1448
1449         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
1450         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
1451
1452         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
1453         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
1454         inline on non ia64.
1455
1456 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
1457
1458         * elf/dl-runtime.c (fixup): Use the portable macros to get the
1459         symbol address of an object.
1460
1461         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
1462         the symbol address of an object.
1463
1464         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
1465         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
1466         (_dl_lookup_symbol_skip): Likewise.
1467         (_dl_lookup_versioned_symbol): Likewise.
1468         (_dl_lookup_versioned_symbol_skip): Likewise.
1469
1470 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
1471
1472         * elf/rtld.c (_dl_start): Get the function pointer return address
1473         via _dl_start_address for architectures that need a function
1474         pointer descriptor rather than just a pointer (ia64).
1475
1476         * sysdeps/generic/dl-lookupcfg.h: New file.
1477         * sysdeps/ia64/dl-lookupcfg.h: New file.
1478         * sysdeps/ia64/dl-machine.h: New file.
1479         * sysdeps/ia64/dl-symaddr.c: New file.
1480         * sysdeps/ia64/dl-fptr.c: New file.
1481
1482         * elf/elf.h: Add IA-64 specific definitions.
1483
1484 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
1485
1486         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
1487         end of enum.
1488
1489 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
1490
1491         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
1492         happy.
1493
1494 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
1495
1496         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
1497         symbol.  Call _dl_init rather than the old way.
1498
1499 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
1500
1501         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
1502         test for pointer in range of DSO address space.
1503
1504 2000-05-04  Andreas Jaeger  <aj@suse.de>
1505
1506         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
1507
1508 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
1509
1510         * locale/findlocale.c (_nl_find_locale): Add new parameter to
1511         calls of _nl_make_l10nflist.
1512
1513         * libio/stdio.h: Make fseeko and ftello prototypes available is
1514         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
1515
1516         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
1517         real unsetenv implementation from 1999-07-29 [PR libc/1714].
1518
1519 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
1520
1521         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
1522         before calling tfind.
1523
1524 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
1525
1526         * resolv/resolv.h (res_querydomain): Remove redefinition to
1527         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
1528
1529 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
1530
1531         * po/gl.po: Update from translation team.
1532
1533         * manual/intro.texi (Program Basics): Change section title.
1534         * manual/process.texi: Fix reference.
1535         (Executing a File): Add reference exec in other section.
1536         * manual/signal.texi: Fix reference.
1537         * manual/startup.texi: Document syscall function.
1538         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
1539
1540 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
1541
1542         * intl/libintl.h (bind_textdomain_codeset): New declaration.
1543         * intl/bindtextdom.c (set_binding_values): New function.
1544         (bindtextdomain): Call it.
1545         (bind_textdomain_codeset): New function.
1546         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
1547         (free_mem): Free each binding's codeset.
1548         * intl/gettextP.h (struct binding): Add codeset field.
1549         (_nl_find_domain): Add domainbinding argument.
1550         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
1551         Pass it to _nl_make_l10nflist.
1552         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
1553         (_nl_make_l10nflist): Add domainbinding argument.
1554         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
1555         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
1556         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
1557         locale_charset().
1558         * manual/message.texi: New node "Charset conversion in gettext".
1559
1560 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
1561
1562         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
1563         appropriate.  Handle possible __read error.
1564
1565 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
1566
1567         * intl/gettextP.h (__builtin_expect): Define as empty if not a
1568         compiler builtin.
1569         * intl/loadinfo.h (__builtin_expect): Likewise.
1570         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
1571         __builtin_expect where appropriate.
1572         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
1573         * intl/localealias.c (extend_alias_table): Return an error indicator.
1574         (read_alias_file): Bail out if extend_alias_table fails.
1575
1576 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
1577
1578         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
1579         * intl/localealias.c: Likewise.
1580
1581 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
1582
1583         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
1584         Initialize domain->plural and domain->nplurals even if there is no
1585         nullentry.
1586
1587 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
1588
1589         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
1590         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
1591         In case of failure, goto converted.
1592
1593 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
1594
1595         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
1596         * iconv/gconv_int.h (norm_add_slashes): Move to here.
1597         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
1598         __gconv_open.
1599
1600 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
1601
1602         * intl/dcigettext.c (transcmp): Compare the domains as well.
1603         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
1604         not before.
1605         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
1606         <errno.h>.
1607
1608 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
1609
1610         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
1611         Reported by Bruno Haible.
1612
1613 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
1614
1615         * manual/arith.texi: Remove @w from @itemize.
1616
1617 2000-05-02  Andreas Jaeger  <aj@suse.de>
1618
1619         * conform/data/tar.h-data: Add some checks for specific values.
1620
1621         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
1622         and RAND_MAX.
1623
1624         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
1625         FOPEN_MAX.
1626
1627         * conform/data/netinet/in.h-data: Add exact checks for the values
1628         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
1629
1630         * conform/data/float.h-data: Add some minimal values.
1631
1632         * conform/conformtest.pl: Test for macros with string constants,
1633         check for minimum and maximum values.
1634         Add limits.h to headers.
1635
1636         * conform/data/cpio.h-data: Test for value of MAGIC.
1637
1638         * conform/data/limits.h-data: New file.
1639
1640 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
1641
1642         * math/Makefile (headers): Add bits/fenvinline.h.
1643
1644 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
1645
1646         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
1647         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
1648
1649         * posix/Versions: Change posix_spawnattr_getdefault and
1650         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
1651         and posix_spawnattr_setsigdefault respectively.
1652         * posix/spawn.h: Likewise.
1653         * posix/spawnattr_getdefault.h: Likewise.
1654         * posix/spawnattr_setdefault.h: Likewise.
1655         * conform/data/spawn.h-data: Likewise.
1656
1657 2000-05-01  Andreas Jaeger  <aj@suse.de>
1658
1659         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
1660
1661 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
1662
1663         * manual/sysinfo.texi: Document getdomainname, setdomainname
1664         and sysctl.
1665         * manual/string.texi: Fix typo.
1666         * manual/terminal.texi: Document gtty and stty.
1667         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
1668
1669 2000-04-30  Andreas Jaeger  <aj@suse.de>
1670
1671         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
1672         accordance with Austin Draft.
1673
1674 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
1675
1676         * catgets/gencat.c (read_input_file): Use isblank and not isspace
1677         to recognize second character in comment line.
1678
1679         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
1680         ENOBUFS if we are out of memory.
1681
1682         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
1683         available if __USE_XOPEN2K.
1684         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
1685         * sysdeps/unix/common/bits/fcntl.h: Likewise.
1686         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1687         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1688         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1689         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1690         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
1691         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
1692
1693 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
1694
1695         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
1696         Recognize option -s, -c, and -l.
1697
1698 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
1699
1700         * nscd/nscd.c: Start new session for nscd, drop privilegs
1701         to configured user if requested and no -S parameter are used.
1702         * nscd/nscd.conf: Add new option "server-user".
1703         * nscd/nscd_conf.c: Add support for new "server-user" option.
1704         * nscd/nscd.h: Add declaration for server_user variable.
1705         Based on patch by Chris Wing <wingc@engin.umich.edu>
1706
1707 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
1708
1709         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
1710         that changing the __restore and __restore_rt signal return code
1711         will break GDB.
1712
1713 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
1714
1715         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
1716         <sys/user.h>.
1717
1718 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
1719
1720         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
1721
1722 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
1723
1724         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
1725         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
1726         arpa/inet.h.
1727         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
1728         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
1729         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
1730         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
1731         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
1732         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
1733         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
1734         posix_fallocate, and posix_madvise.
1735         * conform/data/netdb.h-data: New file.
1736         * conform/data/pthread.h-data: Add pthread_barrier_t,
1737         pthread_barrierattr_t, pthread_barrier_destroy,
1738         pthread_barrier_init, pthread_barrier_wait,
1739         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
1740         pthread_barrierattr_init, pthread_barrierattr_setpshared,
1741         pthread_condattr_getclock, pthread_condattr_setclock,
1742         pthread_getcpuclockid, pthread_mutex_timedlock,
1743         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
1744         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
1745         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
1746         * conform/data/sched.h-data: Add sched_ss_low_priority,
1747         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
1748         SCHED_SPORADIC.
1749         * conform/data/semaphore.h-data: Add sem_timedwait.
1750         * conform/data/signal.h-data: Add SIGIO.
1751         * conform/data/spawn.h-data: New file.
1752         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
1753         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
1754         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
1755         Fix typo in gmtime_r definition.
1756         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
1757         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
1758         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
1759         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
1760         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
1761         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
1762         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
1763         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
1764         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
1765         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
1766         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
1767         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
1768         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
1769         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
1770         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
1771         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
1772         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
1773         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
1774         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
1775         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
1776         typo in off_t definition.
1777         * conform/data/net/if.h-data: New file.
1778         * conform/data/netinet/in.h-data: New file.
1779         * conform/data/netinet/tcp.h-data: New file.
1780         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
1781         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
1782         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
1783         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
1784         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
1785         and posix_typed_mem_open.
1786         * conform/data/sys/socket.h-data: New file.
1787         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
1788         * conform/data/sys/types.h-data: Add pthread_barrier_t,
1789         pthread_barrierattr_t, and pthread_spinlock_t.
1790         * conform/data/sys/un.h-data: New file.
1791         * conform/data/sys/utsname.h-data: New file.
1792
1793         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
1794         parameter.
1795         * inet/gethstbyad.c (gethostbyname): Likewise.
1796         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
1797         * inet/getipnodebyad.c (getipnodebyad): Likewise.
1798         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
1799         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
1800         Likewise.
1801         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
1802         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
1803         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
1804         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
1805         * resolv/gethnamaddr.c (gethostbyname): Likewise.
1806         * resolv/netdb.h (struct hostent): Fix type of h_length member.
1807         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
1808         and second parameter.
1809
1810         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
1811         == NULL.
1812
1813 2000-04-29  Andreas Jaeger  <aj@suse.de>
1814
1815         * conform/data/arpa/inet.h-data: New file.
1816
1817 2000-04-28  Geoff Clare <gwc@unisoft.com>
1818
1819         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
1820         path passed to ftw() or nftw() is an empty string.
1821         Closes PR libc/1710.
1822
1823 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
1824
1825         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
1826         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
1827         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
1828         * localedata/tst-mbswcs4.c: New file.
1829         * localedata/tst-mbswcs5.c: New file.
1830
1831         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
1832         == NULL.  Little optimization.
1833
1834         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
1835         DT_PREINIT_ARRAYSZ).
1836         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
1837
1838         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
1839         overflows in conversion from ASCII.
1840
1841 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
1842
1843         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
1844         * Makerules (full_config_sysdirs): Likewise.
1845         * MakeTAGS (full_config_sysdirs): Likewise.
1846
1847 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
1848
1849         * .cvsignore: Remove linuxthreads.
1850         * po/.cvsignore: Remove *.pot.
1851         * posix/glob/.cvsignore: Removed.
1852         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
1853
1854 2000-04-25  Andreas Jaeger  <aj@suse.de>
1855
1856         * conform/Makefile (distribute): Also distribute contents of
1857         subdirectories.
1858
1859         * Makerules (no_deps): Remove abi-versions.h.
1860
1861         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
1862
1863 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
1864
1865         * sysdeps/sparc/sparc64/elf/Dist: Remove.
1866         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
1867         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
1868         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
1869         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
1870         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
1871         objects.
1872
1873 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
1874
1875         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
1876
1877 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
1878
1879         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
1880         * intl/l10nflist.c: Likewise.
1881
1882 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
1883
1884         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
1885         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
1886         * intl/textdomain.c [!_LIBC]: Likewise.
1887         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
1888         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
1889         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
1890         syntax error.
1891
1892 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
1893
1894         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
1895         character set conversion also in the case the translation was found
1896         after a hash collision or through binary search.  Store the maximum
1897         index together with the converted message.  Use iconv() when available.
1898         In case of out of memory during conversion, return the unconverted
1899         translated string, not NULL.
1900
1901 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
1902
1903         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
1904         to avoid name clashes with the ia32 linker.
1905
1906 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
1907
1908         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
1909         handling.
1910
1911 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
1912
1913         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
1914         strtoumax, strfry, and memfrob.
1915         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
1916         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
1917
1918         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
1919         if this function is available.
1920
1921         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
1922         all values.
1923
1924 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
1925
1926         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
1927
1928 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
1929
1930         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
1931         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
1932         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
1933         * localedata/tst-mbswcs3.c: New file.
1934
1935 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
1936
1937         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
1938         characters.  Don't handle incomplete characters as errors.
1939         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
1940         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
1941         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
1942         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
1943         * localedata/tst-mbswcs2.c: New file.
1944
1945         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
1946         stored character in state in UNPACK_BYTES macro.
1947         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
1948         test for available characters, handle result of BODY code correctly.
1949         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
1950         (distribute): Add tst-mbswcs.sh.
1951         Add rule to run tst-mbswcs.sh.
1952         * localedata/tst-mbswcs.sh: New file.
1953         * localedata/tst-mbswcs1.c: New file.
1954
1955 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
1956
1957         * nis/nis_callback.c (__nis_create_callback): Do failed memory
1958         allocation fixups centrally, fix __builtin_expect call, return NULL
1959         on failure, not NIS_NOMEMORY.
1960
1961 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
1962
1963         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
1964
1965         * intl/loadinfo.h (internal_function): Define if not already defined.
1966
1967 2000-04-27  Andreas Jaeger  <aj@suse.de>
1968
1969         * intl/libintl.h: Fix typo, reported by Bruno Haible
1970         <haible@clisp.cons.org>.
1971
1972 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
1973
1974         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
1975         setting the state to GMON_PROF_BUSY.
1976
1977 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
1978
1979         * elf/dl-profile.c (_dl_start_profile): define all variables which
1980         do not have to be global as local variables.
1981
1982         * nis/nis_callback.c (__nis_create_callback): Partially undo last
1983         patch.  Keep needed tests for failed memory allocation.
1984
1985         * elf/dl-reloc.c (_dl_relocate_object): Add one more
1986         __builtin_expect saying that we don't normally expect to profile.
1987
1988         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
1989         __builtin_expect where desirable.
1990
1991 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
1992
1993         * manual/Makefile (chapters): Add syslog.
1994         * manual/syslog.texi: New file.
1995         * manual/math.texi: Fix references.
1996         * manual/terminal.texi: Likewise.
1997         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
1998
1999 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
2000
2001         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
2002         stdlib.h was not included or __USE_XOPEN not defined.
2003
2004 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
2005
2006         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
2007         Patch by Zack Weinberg <zack@wolery.cumb.org>.
2008
2009 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
2010
2011         * manual/examples/subopt.c (mount_opts): Add missing terminating
2012         entry.
2013         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
2014
2015         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
2016         * libio/ftello.c: Likewise.
2017         * libio/ftello64.c: Likewise.
2018         * libio/ioftell.c: Likewise.
2019         * sysdeps/generic/memrchr.c: Likewise.
2020         * sysdeps/posix/libc_fatal.c: Likewise.
2021         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2022         * misc/fstab.c: Include <string.h> for strcmp prototype.
2023         * sysdeps/generic/ldsodefs.h: Likewise.
2024         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2025         Patch by Kurt Roeckx <Q@ping.be>.
2026
2027         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
2028         Remove db-open.  Change all uses.
2029         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
2030
2031 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
2032
2033         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
2034         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
2035         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
2036         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
2037         with .set noat/at to shut up warnings.
2038         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
2039         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
2040         compilation if __NR_pciconfig_iobase is not defined.
2041         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
2042         Add alias.
2043
2044 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
2045
2046         * manual/sysinfo.texi: Fix typo.
2047         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
2048         Replace "high precision time" with "high accuracy clock".
2049         Fix language.
2050         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
2051
2052         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
2053         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
2054         instead of malloc.
2055         * nis/nis_subr.c: Use __builtin_expect.
2056         * nis/ypclnt.c: Likewise.
2057         * nis/nis_getservlist.c: Likewise.
2058         * nis/nis_creategroup.c: Likewise.
2059
2060         * nis/nis_callback.c (__nis_create_callback): Check result of
2061         memory allocation.  Fix memory leaks.  Use __builtin_expect.
2062         (__nis_destroy_callback): Fix memory leaks.
2063
2064 2000-04-21  Andreas Jaeger  <aj@suse.de>
2065
2066         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
2067         * sysdeps/mips/mips64/add_n.S: Likewise.
2068         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
2069         * sysdeps/mips/mips64/lshift.S: Likewise.
2070         * sysdeps/mips/mips64/mul_1.S: Likewise.
2071         * sysdeps/mips/mips64/rshift.S: Likewise.
2072         * sysdeps/mips/mips64/setjmp.S: Likewise.
2073         * sysdeps/mips/mips64/sub_n.S: Likewise.
2074         * sysdeps/mips/mips64/submul_1.S: Likewise
2075         * sysdeps/unix/mips/sysdep.S: Likewise.
2076
2077         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
2078         and update comment.  The strtab from _dl_relocate_object can be
2079         used.
2080
2081 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
2082
2083         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
2084         * iconv/iconv_close.c (iconv_close): Likewise.
2085         * iconv/iconv_open.c (iconv_open): Likewise.
2086
2087         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
2088         __builtin_expect where useful.
2089
2090         * grp/initgroups.c (initgroups): Test for result of memory
2091         allocation and punt if it fails.
2092
2093         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
2094         * grp/fgetgrent.c (fgetfrent): Likewise.
2095         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
2096
2097 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
2098
2099         * libio/vasprintf.c: Include string.h to get memcpy prototype.
2100
2101 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
2102
2103         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
2104         don't search for NUL byte to decrement counter.
2105         Reported by Ulrich.Brink@sap.com.
2106
2107         * iconv/gconv_simple.c: Define separate functions to convert from
2108         UCS4/UCS4-LE to the internal encoding.
2109         * iconv/gconv_builtin.h: Use separate functions to convert from
2110         UCS4/UCS4-LE to the internal encoding.
2111         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
2112         __gconv_transform_ucs4le_internal.
2113
2114         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
2115         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
2116
2117         * iconv/skeleton.c: Add some more __builtin_expect.
2118         * iconv/loop.c: Likewise.
2119
2120 2000-03-08  H.J. Lu  <hjl@gnu.org>
2121
2122         * posix/regex.c (regex_compile): Correctly handle "\{" when
2123         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
2124
2125 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
2126
2127         * manual/stdio.texi: Give advise about handling error when using
2128         stream functions.
2129         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
2130
2131 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
2132
2133         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
2134         field to nelems * sizeof (uint32_t).
2135         * locale/programs/ld-address.c (address_output): Align word fields
2136         properly.
2137         * locale/programs/ld-monetary.c (monetary_output): Likewise.
2138         Don't restart idx pointers to idx end at the duo_int_curr_symbol
2139         field.
2140         Avoid giving arbitrary garbage in the crncystr field.
2141         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
2142         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
2143         fields.
2144         * locale/programs/ld-numeric.c (numeric_output): Likewise.
2145         Don't restart idx pointers to idx end at the decimal_point_wc field.
2146         * locale/programs/ld-time.c (time_output): week_1stday should be
2147         word, not byte.  Align it properly.
2148
2149 2000-04-19  H.J. Lu  <hjl@gnu.org>
2150
2151         * csu/gmon-start.c (_start): Declared as "extern void".
2152         (etext): Likewise.
2153
2154 2000-04-18  Andreas Jaeger  <aj@suse.de>
2155
2156         * manual/install.texi (Running make install): Don't mention utmpd
2157         anymore.
2158
2159 2000-04-18  Andreas Jaeger  <aj@suse.de>
2160
2161         * linuxthreads/Versions: Use ld instead of ld.so.
2162
2163         * elf/Makefile (ld-map): Use ld.map.
2164
2165         * Versions.def: Use ld instead of ld.so.
2166         * elf/Versions: Likewise.
2167         * sysdeps/mach/hurd/Versions: Likewise.
2168
2169 2000-04-20  Andreas Jaeger  <aj@suse.de>
2170
2171         * elf/rtld.c (print_statistics): Move ifndef further up.
2172         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
2173         (dl_main): Likewise.
2174
2175 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
2176
2177         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
2178         * gmon/Versions: Move moncontrol to GLIBC_2.2.
2179
2180         * po/cs.po: Update from translation team.
2181
2182         * sysdeps/generic/updwtmp.c: Remove daemon support.
2183
2184         * login/Makefile (routines): Remove utmp_daemon.
2185
2186         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
2187         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
2188         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
2189         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
2190
2191         * elf/rtld.c: Display statitics option also if hp timing is not
2192         available.
2193
2194         * login/programs/connection.c: Removed.
2195         * login/programs/database.c Removed.
2196         * login/programs/error.c: Removed.
2197         * login/programs/request.c: Removed.
2198         * login/programs/xtmp.c: Removed.
2199         * login/programs/xtmp.h: Removed.
2200         * login/Makefile: Remove rules for utmpd.
2201         * login/README.utmpd: Removed.
2202         * login/utmp_daemon.c: Removed.
2203         * login/getutent_r.c: Remove references to daemon functions.
2204         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
2205         declaration.
2206
2207 2000-04-18  Andreas Jaeger  <aj@suse.de>
2208
2209         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
2210         2.2 for libnsl, libresolv, librt, libnss_*.
2211
2212         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
2213
2214         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
2215
2216 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
2217
2218         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
2219         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
2220         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
2221         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
2222         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
2223         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
2224         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
2225         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
2226         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
2227         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
2228         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
2229         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
2230         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
2231         it here.
2232         * sysdeps/unix/sysv/aix/msync.c: New file.
2233         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
2234         * sysdeps/unix/sysv/aix/net/if.h: New file.
2235         * sysdeps/unix/sysv/aix/pipe.c: New file.
2236         * sysdeps/unix/sysv/aix/poll.c: New file.
2237         * sysdeps/unix/sysv/aix/rename.c: New file.
2238         * sysdeps/unix/sysv/aix/rmdir.c: New file.
2239         * sysdeps/unix/sysv/aix/select.c: New file.
2240         * sysdeps/unix/sysv/aix/semctl.c: New file.
2241         * sysdeps/unix/sysv/aix/semget.c: New file.
2242         * sysdeps/unix/sysv/aix/semop.c: New file.
2243         * sysdeps/unix/sysv/aix/sendto.c: New file.
2244         * sysdeps/unix/sysv/aix/setgroups.c: New file.
2245         * sysdeps/unix/sysv/aix/setpgid.c: New file.
2246         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
2247         * sysdeps/unix/sysv/aix/setpriority.c: New file.
2248         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
2249         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
2250         * sysdeps/unix/sysv/aix/setsid.c: New file.
2251         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
2252         * sysdeps/unix/sysv/aix/shmat.c: New file.
2253         * sysdeps/unix/sysv/aix/shmctl.c: New file.
2254         * sysdeps/unix/sysv/aix/shmdt.c: New file.
2255         * sysdeps/unix/sysv/aix/shmget.c: New file.
2256         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
2257         * sysdeps/unix/sysv/aix/sigstack.c: New file.
2258         * sysdeps/unix/sysv/aix/socket.c: New file.
2259         * sysdeps/unix/sysv/aix/socketpair.c: New file.
2260         * sysdeps/unix/sysv/aix/speed.c: New file.
2261         * sysdeps/unix/sysv/aix/symlink.c: New file.
2262         * sysdeps/unix/sysv/aix/sync.c: New file.
2263         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
2264         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
2265         * sysdeps/unix/sysv/aix/times.c: New file.
2266         * sysdeps/unix/sysv/aix/ulimit.c: New file.
2267         * sysdeps/unix/sysv/aix/umask.c: New file.
2268         * sysdeps/unix/sysv/aix/unlink.c: New file.
2269         * sysdeps/unix/sysv/aix/ustat.c: New file.
2270         * sysdeps/unix/sysv/aix/utimes.c: New file.
2271
2272 2000-04-18  Andreas Jaeger  <aj@suse.de>
2273
2274         * manual/startup.texi (Environment Access): Fix putenv prototype
2275         according to recent changes.
2276         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
2277         PR libc/1692.
2278
2279         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
2280         needed.
2281
2282 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
2283
2284         * posix/Makefile (tests): Add tst-getaddrinfo.
2285         * posix/tst-getaddrinfo.c: New file.
2286
2287 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
2288
2289         * manual/sysinfo.texi: Document that umount2 is not widely available.
2290
2291         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
2292         signal timing is not really implemented.
2293
2294 2000-04-17  Andreas Jaeger  <aj@suse.de>
2295
2296         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
2297
2298 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
2299
2300         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
2301         and inst_libdir.
2302
2303 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
2304
2305         * manual/intro.texi: Change reference from System Information to
2306         System Management.
2307         * manual/users.texi: Likewise.
2308         * manual/conf.texi: Likewise.
2309         * manual/sysinfo.texi: Document mount, umount, and umount2.
2310         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
2311
2312 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
2313
2314         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
2315         Create wnumstr as well as numstr to support wide character output
2316         correctly.
2317
2318 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
2319
2320         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
2321         modification and move it...
2322         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
2323         Add -melf64_sparc switch to $(LD) on sparc64-linux.
2324         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
2325         switch to $(LD) on sparc-linux.
2326
2327 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
2328
2329         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
2330         and setresuid from sysdep_routines.
2331
2332 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
2333
2334         * manual/Makefile (chapters): Add resource.
2335
2336         * manual/time.texi: Move section on resources to...
2337         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
2338         and vtimes.
2339         * manual/setjmp.texi: Adjust back reference.
2340         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
2341
2342         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
2343         definition.
2344         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
2345         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
2346         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
2347         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
2348         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
2349         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
2350         * sysdeps/unix/sysv/aix/close.c: Add copyright.
2351         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
2352         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
2353         * sysdeps/unix/sysv/aix/access.c: Add copyright.
2354         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
2355         * sysdeps/unix/sysv/aix/Implies: New file.
2356         * sysdeps/unix/sysv/aix/Versions: New file.
2357         * sysdeps/unix/sysv/aix/bind.c: New file.
2358         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
2359         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
2360         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
2361         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
2362         * sysdeps/unix/sysv/aix/chdir.c: New file.
2363         * sysdeps/unix/sysv/aix/chmod.c: New file.
2364         * sysdeps/unix/sysv/aix/chroot.c: New file.
2365         * sysdeps/unix/sysv/aix/creat.c: New file.
2366         * sysdeps/unix/sysv/aix/dl-close.c: New file.
2367         * sysdeps/unix/sysv/aix/dl-open.c: New file.
2368         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
2369         * sysdeps/unix/sysv/aix/fchdir.c: New file.
2370         * sysdeps/unix/sysv/aix/fchmod.c: New file.
2371         * sysdeps/unix/sysv/aix/getgroups.c: New file.
2372         * sysdeps/unix/sysv/aix/gethostname.c: New file.
2373         * sysdeps/unix/sysv/aix/getpriority.c: New file.
2374         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
2375         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
2376         * sysdeps/unix/sysv/aix/getrusage.c: New file.
2377         * sysdeps/unix/sysv/aix/link.c: New file.
2378         * sysdeps/unix/sysv/aix/madvise.c: New file.
2379         * sysdeps/unix/sysv/aix/mkdir.c: New file.
2380         * sysdeps/unix/sysv/aix/mknod.c: New file.
2381         * sysdeps/unix/sysv/aix/mprotect.c: New file.
2382         * sysdeps/unix/sysv/aix/msgctl.c: New file.
2383         * sysdeps/unix/sysv/aix/msgget.c: New file.
2384         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
2385
2386 2000-04-17  Andreas Jaeger  <aj@suse.de>
2387
2388         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
2389         as suggested by Ulrich Drepper.
2390         (__dl_runtime_resolve): Remove unused variable, initialize sym
2391         directly.
2392         (RTLD_START): Document OFFSET_GP_GOT.
2393         (OFFSET_GP_GOT): New magic value.
2394         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
2395         (elf_machine_got_rel): Only declare strtab if needed.
2396         (elf_machine_relplt): Removed, it's not needed.
2397         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
2398
2399         * sysdeps/mips/add_n.S: Add newline at EOF.
2400         * sysdeps/mips/rshift.S: Likewise.
2401         * sysdeps/mips/mul_1.S: Likewise.
2402         * sysdeps/mips/lshift.S: Likewise.
2403         * sysdeps/mips/addmul_1.S: Likewise.
2404
2405 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
2406
2407         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
2408
2409         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
2410         * elf/dl-lookup.c: Likewise.
2411         * elf/dl-init.c (_dl_init): Likewise.
2412         * elf/dl-fini.c (_dl_fini): Likewise.
2413         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2414         * elf/dl-close.c (_dl_close): Likewise.
2415         * elf/rtld.c (_dl_start_final): Likewise.
2416
2417         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
2418
2419 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
2420
2421         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
2422         only fall back on using Linux.
2423
2424         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
2425         Before testing versions check that we actually loaded the object
2426         and whether we are in trace mode.  If not loaded during tracing don't
2427         test versions in this object.
2428         (_dl_check_all_versions): Take new parameter and pass to
2429         _dl_check_map_versions.
2430         * sysdeps/generic/ldsodefs.h: Update prototypes for
2431         _dl_check_all_versions and _dl_check_map_versions.
2432         * elf/rtld.c (struct version_check_args): Add dotrace.
2433         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
2434         (dl_main): Pass info about trace mode to version_check_doit.
2435         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
2436         _dl_check_all_versions.
2437
2438         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
2439         and getutmpx.
2440         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
2441
2442         * manual/argp.texi: Document index parameter of argp_parse.
2443         Fix typo.
2444         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
2445
2446 2000-04-14  Andreas Jaeger  <aj@suse.de>
2447
2448         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
2449         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
2450
2451         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
2452
2453 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
2454
2455         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
2456         compat_symbol call for old adjtime.
2457
2458         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
2459         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
2460
2461         * posix/Makefile (headers): Add spawn.h.
2462         (distribute): Add spawn_int.h.
2463         (routines): Add spawn_faction_init, spawn_faction_destroy,
2464         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
2465         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
2466         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
2467         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
2468         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
2469         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
2470         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
2471         posix_spawnattr_init, posix_spawnattr_destroy,
2472         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
2473         posix_spawnattr_getflags, posix_spawnattr_setflags,
2474         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
2475         and posix_spawnp.
2476         * posix/spawn.c: New file.
2477         * posix/spawn.h: New file.
2478         * posix/spawn_faction_addclose.c: New file.
2479         * posix/spawn_faction_adddup2.c: New file.
2480         * posix/spawn_faction_addopen.c: New file.
2481         * posix/spawn_faction_destroy.c: New file.
2482         * posix/spawn_faction_init.c: New file.
2483         * posix/spawn_int.h: New file.
2484         * posix/spawnattr_destroy.c: New file.
2485         * posix/spawnattr_getdefault.c: New file.
2486         * posix/spawnattr_getflags.c: New file.
2487         * posix/spawnattr_getpgroup.c: New file.
2488         * posix/spawnattr_getschedparam.c: New file.
2489         * posix/spawnattr_getschedpolicy.c: New file.
2490         * posix/spawnattr_getsigmask.c: New file.
2491         * posix/spawnattr_init.c: New file.
2492         * posix/spawnattr_setdefault.c: New file.
2493         * posix/spawnattr_setflags.c: New file.
2494         * posix/spawnattr_setpgroup.c: New file.
2495         * posix/spawnattr_setschedparam.c: New file.
2496         * posix/spawnattr_setschedpolicy.c: New file.
2497         * posix/spawnattr_setsigmask.c: New file.
2498         * posix/spawni.c: New file.
2499         * posix/spawnp.c: New file.
2500
2501         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
2502         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2503
2504 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
2505
2506         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
2507         * malloc/malloc.c: Implement posix_memalign for glibc.
2508         * include/stdlib.h: Add prototype for __posix_memalign.
2509         * stdlib/stdlib.h: Add prototype for posix_memalign.
2510
2511 2000-04-14  Andreas Jaeger  <aj@suse.de>
2512
2513         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
2514         symidx correctly.
2515         (elf_machine_got_rel): Cast sym correctly.
2516
2517         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
2518         * sysdeps/mips/addmul_1.S: Likewise.
2519         * sysdeps/mips/lshift.S: Likewise.
2520         * sysdeps/mips/mul_1.S: Likewise.
2521         * sysdeps/mips/rshift.S: Likewise.
2522         * sysdeps/mips/sub_n.S: Likewise.
2523         * sysdeps/mips/submul_1.S: Likewise.
2524
2525         * stdlib/stdlib.h: Fix typo in comment.
2526
2527         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
2528         2.2 for libdl, ld and libm.
2529
2530         * sysdeps/generic/madvise.c: Fix typos.
2531
2532         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
2533
2534         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
2535
2536         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
2537         warnings.
2538
2539 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
2540
2541         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
2542         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
2543         Make old name weak alias.
2544         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
2545         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
2546         Make old name weak alias.
2547         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
2548
2549         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
2550         posix_fallocate, and posix_fallocate64.
2551         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
2552         posix_fallocate, and posix_fallocate64.
2553         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
2554         posix_fallocate, and posix_fallocate64.
2555         * sysdeps/generic/fadvise.c: New file.
2556         * sysdeps/generic/fadvise64.c: New file.
2557         * sysdeps/generic/fallocate.c: New file.
2558         * sysdeps/generic/fallocate64.c: New file.
2559         * sysdeps/posix/fallocate.c: New file.
2560         * sysdeps/posix/fallocate64.c: New file.
2561         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
2562         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
2563         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
2564         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
2565         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2566         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
2567         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2568         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2569         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2570
2571         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
2572         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2573
2574 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
2575
2576         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
2577         * misc/sys/mman.h (posix_madvise): Add prototype.
2578         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
2579         old name and posix_madvise weak aliases.
2580         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2581         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
2582         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
2583         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2584         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2585         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2586         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2587
2588 2000-04-13  Andreas Jaeger  <aj@suse.de>
2589
2590         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
2591         versioning.
2592         (elf_machine_got_rel): Only add runtime display if needed.
2593         (elf_machine_got_rel): Handle symbol versioning.
2594
2595 2000-04-13  Andreas Jaeger  <aj@suse.de>
2596
2597         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
2598
2599         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
2600         default.
2601
2602         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
2603         with some applications.
2604         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
2605
2606         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
2607         * sysdeps/mips/bsd-_setjmp.S: Likewise.
2608         * sysdeps/mips/setjmp.S: Likewise.
2609
2610         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
2611
2612 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
2613
2614         * posix/globtest.sh: Work around inconsistency with expanding ~/
2615         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
2616
2617 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
2618
2619         * posix/getconf.c: Add support for many more POSIX options.
2620         * sysdeps/posix/sysconf.c: Likewise.
2621         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
2622         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
2623         _POSIX_SHELL.
2624         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2625         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
2626         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
2627         CLOCK_THREAD_CPUTIME_ID.
2628         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
2629         CLOCK_PROCESS_CPUTIME_ID.
2630         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
2631         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
2632         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
2633         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
2634
2635         * malloc/Makefile (tests): Add tst-calloc.
2636         * malloc/tst-calloc.c: New file.
2637
2638         * sysdeps/arm/libm-test-ulps: New file.
2639
2640         * malloc/malloc.c: Undo all of today's changes.
2641
2642         * locale/programs/locale.c (show_info): Don't try to look into
2643         data for LC_ALL (there is none).
2644
2645         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
2646         avoid writing over boundary.
2647         Patch by Greg McGary <gkm@eng.ascend.com>.
2648
2649         * sysdeps/arm/memprof.h: New file.
2650
2651 2000-04-12  Andreas Jaeger  <aj@suse.de>
2652
2653         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
2654
2655         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
2656         for memmem declaration.
2657
2658 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
2659
2660         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
2661         to -1.
2662         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
2663
2664         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
2665         mode is invalid.
2666         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
2667         Patch by Bart Veer <bartv@redhat.com>.
2668
2669         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
2670         function interface.
2671
2672 2000-04-11  Andreas Jaeger  <aj@suse.de>
2673
2674         * sysdeps/mips/dl-machine.h: Update some comments.
2675         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
2676
2677 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
2678
2679         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
2680         _POSIX_SHARED_MEMORY_OBJECTS.
2681
2682         * rt/Makefile (tests): Add tst-shm.
2683         Add rules to generate tst-shm.
2684         * rt/tst-shm.c: New file.
2685
2686         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
2687         for descriptor.
2688
2689         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
2690         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
2691         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
2692         * sysdeps/generic/shm_open.c: New file.
2693         * sysdeps/generic/shm_unlink.c: New file.
2694         * sysdeps/unix/sysv/linux/shm_open.c: New file.
2695         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
2696         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
2697          __endmntent, __getmntent_r, __setmntent, and __statfs.
2698
2699         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
2700         fragmentation by allocating new memory at the end instead of
2701         reallocating.
2702
2703         * posix/globtest.sh: Fix last change.
2704
2705 2000-04-10  Philip Blundell  <philb@gnu.org>
2706
2707         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
2708         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
2709         IPV6_DROP_MEMBERSHIP.
2710         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
2711         Likewise.
2712
2713 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
2714
2715         * elf/readlib (process_file): Close streams in case of an error.
2716
2717 2000-04-09  Andreas Jaeger  <aj@suse.de>
2718
2719         * elf/readlib.c (process_file): Check if file is big enough to
2720         contain aout and ELF headers.
2721         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
2722
2723 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
2724
2725         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
2726
2727 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
2728
2729         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
2730         stream unbuffered.
2731         * rt/Makefile (tests): Add tst-clock.
2732         Add rules to build tst-clock.
2733         * rt/tst-clock.c: New file.
2734         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
2735         about initialization of nsec.
2736         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
2737         about initialization of freq.  Set retval to zero if successful.
2738         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
2739
2740 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
2741
2742         * Versions.def (librt): Add GLIBC_2.2.
2743         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
2744         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
2745         timer_getoverr, timer_gettime, and timer_settime.
2746         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
2747         clock_settime, timer_create, timer_delete, timer_getoverrun,
2748         timer_gettime, and timer_settime.
2749         * sysdeps/generic/clock_getcpuclockid.c: New file.
2750         * sysdeps/generic/get_clockfreq.c: New file.
2751         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
2752         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
2753         * sysdeps/mach/hurd/i386/bits/time.h: New file.
2754         * sysdeps/unix/i386/i586/clock_getres.c: New file.
2755         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
2756         * sysdeps/unix/i386/i686/Implies: New file.
2757         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
2758         * time/Makefile (routines): Move clock_getres, clock_gettime,
2759         clock_settime, timer_create, timer_delete, timer_getoverr,
2760         timer_gettime, and timer_settime to rt/Makefile.
2761         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
2762         clock_settime, timer_create, timer_delete, timer_getoverrun,
2763         timer_gettime, and timer_settime.
2764         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
2765
2766         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
2767         and not const as attribute name.
2768
2769 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
2770
2771         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
2772
2773 2000-04-10  Andreas Schwab  <schwab@suse.de>
2774
2775         * posix/globtest.sh: Skip tests that depend on unreadable
2776         directories if run as root.
2777
2778 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
2779
2780         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
2781         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
2782
2783 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
2784
2785         * sysdeps/unix/clock_gettime.c: New file.
2786         * sysdeps/unix/clock_settime.c: New file.
2787         * sysdeps/posix/clock_getres.c: New file.
2788
2789         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
2790
2791         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
2792         lseek call be passing in a buffer which never allow a successful
2793         first getdents syscall if not at leas the initial entry can be
2794         stored in the user buffer.
2795
2796         * localedata/Makefile: Add rules to clean up directories created by
2797         new strfmon tests.
2798
2799 2000-04-09  Geoff Clare  <gwc@unisoft.com>
2800
2801         * localedata/tst-fmon.data: Added new tests for strfmon()
2802         using test locales with all combinations of cs_precedes,
2803         sign_posn and sep_by_space.
2804         * localedata/tst-fmon.sh: Updated to support the new tests.
2805         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
2806         the localedef source for the new strfmon() test locale.
2807         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
2808         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
2809         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
2810         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
2811         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
2812         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
2813         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
2814         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
2815         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
2816         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
2817         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
2818         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
2819         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
2820         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
2821
2822         * stdlib/strfmon.c: Correct problems with missing or extra
2823         spaces for unusual combinations of sign_posn and sep_by_space.
2824         Improved left-precision alignment code.
2825
2826 2000-04-07  Andreas Jaeger  <aj@suse.de>
2827
2828         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
2829
2830 2000-04-10  Andreas Jaeger  <aj@suse.de>
2831
2832         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
2833
2834 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
2835
2836         Implement handling of restartable conversion functions according to
2837         ISO C.
2838         * iconv/gconv.h (__gconv_fct): Add additional parameter.
2839         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
2840         * iconv/gconv.c: Pass additional parameter to conversion function.
2841         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
2842         (internal_ucs4le_loop_single): New function.
2843         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
2844         (__gconv_transform_internal_ascii): Likewise.
2845         (__gconv_transform_internal_utf8): Likewise.
2846         (__gconv_transform_utf8_internal): Likewise.
2847         (__gconv_transform_ucs2_internal): Likewise.
2848         (__gconv_transform_internal_ucs2): Likewise.
2849         (__gconv_transform_ucs2reverse_internal): Likewise.
2850         (__gconv_transform_internal_ucs2reverse): Likewise.
2851         (internal_ucs4le_loop_unaligned): Before return
2852         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
2853         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
2854         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
2855         * iconv/loop.c: Fit in definition of function to convert one character
2856         for processing of left-over bytes from the state object.
2857         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
2858         inend to match names in loop functions.
2859         (RESET_INPUT_BUFFER): Change apprpriately.
2860         (gconv): If needed, call function to process bytes from the state
2861         object.  Similar at the end: store left over bytes if input is
2862         incomplete.
2863         Take extra argument and add new argument to all calls of the
2864         conversion function.
2865         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
2866         information in the state object to not conflict with length count.
2867         * iconvdata/iso-2022-jp.c: Likewise.
2868         * iconvdata/iso-2022-kr.c: Likewise.
2869         * iconvdata/unicode.c: Adjust for change change in parameters of
2870         skeleton function.
2871         * iconvdata/utf-16.c: Likewise.
2872         * libio/iofwide.c: Add new parameter to all calls of conversion
2873         function.
2874         * wcsmbs/btowc.c: Likewise.
2875         * wcsmbs/mbrtowc.c: Likewise.
2876         * wcsmbs/mbsnrtowcs.c: Likewise.
2877         * wcsmbs/mbsrtowcs.c: Likewise.
2878         * wcsmbs/wcrtomb.c: Likewise.
2879         * wcsmbs/wcsnrtombs.c: Likewise.
2880         * wcsmbs/wcsrtombs.c: Likewise.
2881         * wcsmbs/wctob.c: Likewise.
2882
2883         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
2884         MAX_NEEDED_INPUT.
2885
2886 2000-04-07  Andreas Jaeger  <aj@suse.de>
2887
2888         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
2889         newer kernels.
2890
2891 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
2892
2893         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
2894         element a union to allow byte access.
2895         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
2896         mbstate_t.
2897         * iconvdata/iso-2022-jp.c: Likewise.
2898         * iconvdata/iso-2022-kr.c: Likewise.
2899         * wcsmbs/mbsinit.c: Likewise.
2900         * stdlib/mblen.c: Likewise.
2901         * stdio-common/printf-parse.h: Likewise.
2902
2903 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
2904
2905         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
2906         kernel does not allow relative seeks on descriptors associated
2907         with directories.  Go back to get the position in the directory
2908         every time we enter the function.  Return -1 and set errno if one
2909         entry could be read from the kernel but does not fit into the
2910         buffer passed in by the user.
2911
2912         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
2913         Support ..(2).. ellipsis.
2914         (parse_charmap): Recognize ..(2).. etc and pass step down.
2915         Correctly generate names for UCS4 characters.
2916
2917         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
2918         (ctype_finish): We know the wide character value for <SP>,
2919         don't search.
2920         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
2921         (charclass_ucs4_ellipsis): Likewise.
2922         (read_translit_ignore_entry): Store ellipsis step.
2923         (ctype_read): Recognize ..(2).. etc and pass step down.
2924
2925         * locale/programs/linereader.c (lr_token): When seeing comment
2926         character ignore only rest of line in sources but stop at escaped
2927         newline.
2928         Recognize ..(2).. and ....(2).....
2929
2930         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
2931         and tok_ellipsis4_2.
2932
2933 2000-04-06  Andreas Jaeger  <aj@suse.de>
2934
2935         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
2936         removed, remove it here also.
2937         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2938         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
2939         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
2940         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
2941
2942 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
2943
2944         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
2945         include bits/sigcontext.h.
2946         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
2947
2948 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
2949
2950         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
2951         collation symbol definition.  Value in quivalence definition must
2952         be defined, don't check that it is not.
2953
2954         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
2955         values as character names.
2956
2957         * locale/programs/ld-ctype.c (get_character): Handle missing
2958         repertoire map correctly.
2959
2960 2000-04-05  Cristian Gafton  <gafton@redhat.com>
2961
2962         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
2963         because it is used in generic code.
2964         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
2965         * wcsmbs/wcwidth.h: Declare __ctype32_b.
2966         * intl/gettext.c: Include <locale.h>.
2967         * intl/ngettext.c: Likewise.
2968
2969 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
2970
2971         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
2972         socklen_t type for size.
2973         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
2974         init function interface.
2975         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
2976         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
2977         sys/ucontext.h.
2978         (__jmp_buf): Declare the whole type structure here, don't use
2979         ucontext.
2980
2981 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
2982
2983         * iconv/skeleton.c (put16u): Fix typo.
2984         Reported by Bruno Haible <haible@ilog.fr>.
2985
2986         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
2987         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
2988         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
2989         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
2990         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
2991         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
2992
2993         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
2994         * Makefile (distribute): Add abi-versions.awk and
2995         firstversions.awk.
2996         Patches by Torsten Duwe <duwe@caldera.de>.
2997
2998 2000-04-05  Andreas Schwab  <schwab@suse.de>
2999
3000         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
3001
3002 2000-04-05  Andreas Schwab  <schwab@suse.de>
3003
3004         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
3005         entry point, used on Hurd.
3006
3007 2000-04-04  Andreas Jaeger  <aj@suse.de>
3008
3009         * intl/Makefile: Only run the gettext test with shared libraries.
3010
3011 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
3012
3013         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
3014         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
3015
3016 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
3017
3018         * Makeconfig: Undo last change.
3019         * configure.in: If --disable-shared was given, don't set VERSIONING,
3020         don't define DO_VERSIONING, and don't give scare warning for no
3021         versioning.
3022         * configure: Regenerated.
3023
3024 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
3025
3026         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
3027
3028 2000-04-04  Andreas Jaeger  <aj@suse.de>
3029
3030         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
3031
3032 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
3033
3034         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
3035         STV_HIDDEN and STV_INTERNAL during lookup.
3036         (profile_fixup): Likewise.
3037         * elf/dl-reloc.c (RESOLVE): Likewise.
3038
3039         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
3040         unaligned so that it compiles for system which need unaligned
3041         access handling.
3042
3043 2000-04-04  Andreas Schwab  <schwab@suse.de>
3044
3045         * elf/cache.c (print_entry): Only look at the type field when
3046         printing the type.
3047
3048 2000-04-04  Andreas Schwab  <schwab@suse.de>
3049
3050         * iconvdata/big5.c (BODY): Fix typo.
3051
3052 2000-04-04  Andreas Schwab  <schwab@suse.de>
3053
3054         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
3055         function interface.  Remove unused _dl_start_user entry point.
3056
3057 2000-04-03  Andreas Jaeger  <aj@suse.de>
3058
3059         * include/arpa/inet.h (__inet_aton): Add protoype.
3060
3061 2000-04-01  Andreas Jaeger  <aj@suse.de>
3062
3063         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
3064
3065         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
3066         * sysdeps/mach/mips/thread_state.h: Likewise.
3067
3068         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
3069         * sysdeps/generic/fegetenv.c: Likewise.
3070         * sysdeps/generic/fesetenv.c: Likewise.
3071         * sysdeps/generic/feupdateenv.c: Likewise.
3072         * sysdeps/generic/fraiseexcpt.c: Likewise.
3073         * sysdeps/generic/fsetexcptflg.c: Likewise.
3074         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
3075         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
3076         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
3077         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3078
3079 2000-04-02  H.J. Lu  <hjl@gnu.org>
3080
3081         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
3082
3083 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
3084
3085         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
3086         (add_name_to_object): Add cast in malloc call.
3087         (fillin_rpath): Optimize loop to initialize ->status a bit.
3088
3089         * sysdeps/i386/dl-machine.h: Undo last change.
3090         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
3091         Restore %edx register after call here.
3092
3093         * sysdeps/arm/atomicity.h: New file.
3094         Contributed by Jesper Skov <jskov@redhat.com>.
3095
3096 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
3097
3098         * Makeconfig (preprocess-versions): Undo last change.
3099         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
3100
3101         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
3102         here, before we might move the stack.
3103         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
3104         (init1): And not here.
3105
3106         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
3107         change, to restore argc value in call-clobbered register after
3108         RTLD_START_SPECIAL_INIT, which will contain a call.
3109
3110         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
3111         allocating and initializing L->l_initfini.
3112
3113         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
3114
3115 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
3116
3117         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
3118         RUNPATH, RPATH, and LD_LIBRARY_PATH.
3119         (open_path): Change type of fourth parameter.  Make pointer to array
3120         of pointers.  Create variable dirs with original type.
3121         Track whether any directory for the object exists and if not,
3122         change *DIRSP to (void*) -1 to signal there is no such search path.
3123         (_dl_map_object): Change all calls of open_path.
3124         Rewrite decompose_rpath calls.
3125
3126 2000-03-31  Andreas Schwab  <schwab@suse.de>
3127
3128         * string/strfry.c: Declare STATE as array of char instead of int
3129         and do not initialize it (done by initstate_r).  Pass correct
3130         size.
3131
3132 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
3133
3134         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
3135
3136         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
3137         instruction out of the code.
3138
3139 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
3140
3141         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
3142         element at this position.
3143
3144         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
3145         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
3146         l_reldeps elements.
3147         * elf/dl-lookup.c (add_dependency): New function.
3148         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
3149         dynamically loaded object.
3150         (_dl_lookup_symbol_skip): Likewise.
3151         (_dl_lookup_versioned_symbol): Likewise.
3152         (_dl_lookup_versioned_symbol_skip): Likewise.
3153         * elf/dl-open.c: Don't define _dl_load_lock here...
3154         * elf/rtld.c: ...but here...
3155         * elf/dl-support.c: ...and here.
3156         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
3157         through relocation.
3158         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
3159         relocations.
3160         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
3161         anymore.
3162         * dlfcn/glrefmain.c: Add one more debug message.
3163
3164         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
3165         command line.
3166         * Makerules (sysd-versions): Use ( ) instead of { }.
3167
3168         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
3169         optimize for the non-debugging case.
3170         * elf/dl-lookup.c: Likewise.
3171         * sysdeps/generic/libc-start.c: Likewise.
3172
3173 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
3174
3175         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
3176         (init1): Don't initialize __environ here, since init already does it.
3177         (first_init): New function, broken out of _init.
3178         (_hurd_stack_setup): Use it.
3179         [SHARED] (_dl_init_first): New function, renamed from old _init.
3180         (init1) [SHARED]: Don't call posixland_init here.
3181         (posixland_init): Take ENVP arg, so signature is usual for initializer.
3182         [SHARED] (_init): Define as alias for posixland_init.
3183         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
3184         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
3185         RTLD_START_SPECIAL_INIT before calling initializers.
3186         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
3187         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
3188         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
3189         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
3190
3191         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
3192         since we define the function with the name `tmpfile'.
3193
3194         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
3195         * hurd/Versions: Likewise.
3196
3197 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
3198
3199         * elf/dl-runtime.c (fixup): Fix typo in comment.
3200
3201         * resolv/netdb.h (getnameinfo): All length parameters are of type
3202         socklen_t.
3203         * inet/getnameinfo.c: Likewise.
3204
3205 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
3206
3207         * posix/unistd.h (socklen_t): Define if it has not yet happened.
3208         (gethostname): Change type of second parameter to socklen_t.
3209         * include/unistd.h (__gethostname): Change type of second
3210         parameter to socklen_t.
3211         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
3212         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
3213         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
3214         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
3215         Likewise.
3216         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
3217         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
3218         Allow definition elsewhere.
3219         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
3220         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3221         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3222         * sysdeps/generic/bits/types.h: Define __socklen_t.
3223         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
3224         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
3225         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
3226         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
3227         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
3228         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
3229         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
3230
3231         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
3232         (inet_lnaof): Likewise.
3233         (inet_netof): Likewise.
3234         (inet_network): Likewise.
3235         (inet_aton): Likewise.
3236         (inet_makeaddr): Change parameter types to in_addr_t.
3237         (inet_neta): Likewise.
3238         (inet_ntop): Change type of last parameter to socklen_t.
3239         (inet_aton): Only make available if __USE_MISC.
3240         (inet_neta): Likewise.
3241         (inet_net_ntop): Likewise.
3242         (inet_net_pton): Likewise.
3243         (inet_nsap_ntoa): Likewise.
3244
3245         * inet/in.h: Define in_port_t type.
3246         Define in_addr_t type.
3247         (struct in_addr): Use in_addr_t in definition.
3248         (IN_CLASSA): Use cast to in_addr_t.
3249         (IN_CLASSB): Likewise.
3250         (IN_CLASSC): Likewise.
3251         (IN_CLASSD): Likewise.
3252         (IN_EXPERIMENTAL): Likewise.
3253         (IN_BADCLASS): Likewise.
3254         (INADDR_ANY): Likewise.
3255         (INADDR_BROADCAST): Likewise.
3256         (INADDR_NONE): Likewise.
3257         (INADDR_LOOPBACK): Likewise.
3258         (INADDR_UNSPEC_GROUP): Likewise.
3259         (INADDR_ALLHOSTS_GROUP): Likewise.
3260         (INADDR_ALLRTRS_GROUP): Likewise.
3261         (INADDR_MAX_LOCAL_GROUP): Likewise.
3262         (struct sockaddr_in): Use in_port_t for sin_port element.
3263         (struct sockaddr_in6): Use in_port_t for sin6_port element.
3264         Use uint8_t instead of u_int8_t.
3265
3266         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
3267         Call __inet_aton instead of inet_aton.
3268         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
3269
3270         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
3271         (innetgr): Likewise.
3272         (struct addrinfo): Use socklen_t for ai_addrlen element.
3273
3274         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
3275         IPV6_RECVERR): New defines.
3276
3277         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
3278         * inet/getnetbyad.c: Likewise.
3279         * inet/getnetbyad_r.c: Likewise.
3280         * nis/nss_nis/nis-network.c: Likewise.
3281         * nis/nssplus_nis/nisplus-network.c: Likewise.
3282         * nss/nss_files/files-network.c: Likewise.
3283         * resolv/netdb.h: Define uint32_t if not already happened.
3284         Include bits/netdb.h.  Remove definition of struct netent.
3285         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
3286         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
3287         * sysdeps/generic/bits/netdb.h: New file.
3288         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
3289
3290         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
3291         (tests): Add glrefmain.
3292         Add rules to build modules and run tests.  Ignore result of glrefmain
3293         for now since it fails.
3294         * dlfcn/glrefmain.c: New file.
3295         * dlfcn/glreflib1.c: New file.
3296         * dlfcn/glreflib2.c: New file.
3297
3298         * test-skeleton.c: Include <string.h> for strsignal prototype.
3299
3300         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
3301         to be missing.
3302
3303         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
3304         former init-first.h.  Initialize __libc_multiple_libcs.
3305
3306 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
3307
3308         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
3309         #if expression for use of unaligned function to the one used in
3310         the definition of these functions.
3311         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
3312         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
3313         (internal_ucs4le_loop_unaligned): New function.
3314
3315         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
3316         (tests): Add order.
3317         (module-names): Add dep1, dep2, dep3, and dep4.
3318         Add dependencies for dep* modules and order.
3319         Define rule for order.out which checks the result.
3320         * elf/dep1.c: New file.
3321         * elf/dep2.c: New file.
3322         * elf/dep3.c: New file.
3323         * elf/dep4.c: New file.
3324         * elf/order.c: New file.
3325
3326         * elf/dl-init.c: Fix typo in comment.
3327
3328 2000-03-31  Andreas Jaeger  <aj@suse.de>
3329
3330         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
3331         init function interface.
3332         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
3333
3334 2000-03-31  Andreas Jaeger  <aj@suse.de>
3335
3336         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
3337         * sysdeps/mips/fpu/fegetenv.c: Likewise.
3338         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
3339         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
3340         * sysdeps/mips/fpu/fesetenv.c: Likewise.
3341
3342         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
3343         anymore, update comment.
3344
3345         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3346
3347         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
3348         SHLIB_COMPAT - the struct is always needed.
3349
3350 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
3351
3352         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
3353         * elf/dl-support.c: Define _dl_starting_up.
3354
3355 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
3356
3357         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
3358         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
3359
3360         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
3361
3362         * elf/Makefile (dl-routines): Remove preinit.
3363         * elf/Versions: Remove _dl_preinit.
3364         * elf/dl-preinit.c: Removed.  Move content into...
3365         * elf/dl-init.c: ...here.
3366         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
3367
3368         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
3369         elements.
3370
3371 2000-03-29  Geoff Clare  <gwc@unisoft.com>
3372
3373         * stdlib/strfmon.c: Corrected problems with the code that
3374         sets default values for [np]_sep_by_space and
3375         [np]_sign_posn; also the new positive/negative alignment
3376         code from the previous patch was not quite right for
3377         [np]_sign_posn = 0.
3378
3379         * localedata/tst-fmon.data: Changes corresponding to the
3380         two sets of fixes made to stdlib/strfmon.c.
3381
3382 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
3383
3384         * malloc/malloc.c: Declare bit flags UL so that they will not
3385         default to int size when being inverted.
3386
3387 2000-03-29  Andreas Jaeger  <aj@suse.de>
3388
3389         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
3390         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3391
3392 2000-03-29  Andreas Jaeger  <aj@suse.de>,
3393             Ralf Baechle <ralf@uni-koblenz.de>
3394
3395         * Makeconfig: Introduce new variable SHARED to mark code used in
3396         the shared library.
3397         * elf/dl-close.c: Use it instead of PIC.
3398         * elf/dl-load.c: Likewise.
3399         * elf/dl-open.c: Likewise.
3400         * hurd/geteuids.c: Likewise.
3401         * include/libc-symbols.h: Likewise.
3402         * include/shlib-compat.h: Likewise.
3403         * libio/freopen.c: Likewise.
3404         * linuxthreads/cancel.c: Likewise.
3405         * linuxthreads/pthread.c: Likewise.
3406         * linuxthreads/wrapsyscall.c: Likewise.
3407         * nss/nsswitch.c: Likewise.
3408         * stdio-common/vfprintf.c: Likewise.
3409         * sysdeps/arm/init-first.c: Likewise.
3410         * sysdeps/i386/init-first.c: Likewise
3411         * sysdeps/generic/init-first.c: Likewise.
3412         * sysdeps/generic/libc-start.c: Likewise.
3413         * sysdeps/mips/init-first.c: Likewise.
3414         * sysdeps/powerpc/elf/libc-start.c: Likewise.
3415         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3416         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
3417         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
3418         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3419
3420         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
3421
3422 2000-03-29  Andreas Jaeger  <aj@suse.de>
3423
3424         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
3425         Use D_PTR to access relocated entries in l_info.
3426         (elf_machine_rela): Likewise.
3427
3428         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
3429         Likewise.
3430         (elf_machine_rela): Likewise.
3431
3432         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
3433         Likewise.
3434         (__elf_machine_fixup_plt): Likewise.
3435         (__process_machine_rela): Likewise.
3436
3437         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
3438         (elf_machine_rela): Likewise.
3439
3440         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
3441         (elf_machine_rel): Likewise.
3442
3443         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
3444         (elf_machine_fixup_plt): Likewise.
3445         (elf_machine_rela): Likewise.
3446
3447 2000-03-29  Andreas Jaeger  <aj@suse.de>
3448
3449         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
3450         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3451         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3452         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3453         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
3454         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3455         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
3456         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3457         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3458         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3459         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3460         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3461         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3462         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
3463         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3464
3465         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
3466         macros, remove K&R prototypes.
3467
3468 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
3469
3470         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
3471         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
3472         (PR libc/1677).
3473
3474 2000-03-30  Andreas Jaeger  <aj@suse.de>
3475
3476         * misc/sys/cdefs.h: Remove K&R support.
3477
3478 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
3479
3480         * iconv/skeleton.c: Avoid compiling unaligned versions in some
3481         with size of dynamic sectionmore cases.
3482         * iconv/loop.c: Likewise.
3483
3484 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
3485
3486         * iconv/loop.c (put16): Remove __const. Fix access index.
3487         (put32): Remove __const. Use uint32_t instead of uint16_t.
3488         * iconv/skeleton.c: Likewise.
3489
3490 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
3491
3492         * mach/Versions (libc: GLIBC_2.0)
3493         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
3494         __vm_allocate on this.
3495         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
3496         mutex- and spinlock-related symbols on this.
3497         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
3498         New version set.  Lock-related symbols go here instead in this case.
3499         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
3500         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
3501         cthread_getspecific, cthread_setspecific, __libc_getspecific.
3502         * hurd/Versions
3503         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
3504         Put them here instead.
3505         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
3506         New version set.  Those cthreads symbols go here instead in this case.
3507         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
3508
3509 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
3510
3511         * elf/dl-init.c (_dl_init): We don't need to call constructors
3512         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
3513
3514         Implement dynamic determination of constructor/destructor order in
3515         the dynamic linker.
3516         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
3517         (GLIBC_2.2): Add _dl_init.
3518         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
3519         r_duplist is not anymore allocated separately.  l_initfini is and
3520         therefore free it if necessary.
3521         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
3522         malloc block.  Otherwise allocate l_initfini list only.
3523         Put dependencies for the object in l_initfini list.
3524         Sort dependencies for the object to be loaded topologically.
3525         * elf/dl-fini.c: Before running the destructors sort the topologically.
3526         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
3527         call constructors instead of iterating over the pointers.  Get list of
3528         objects for which to run constructors from l_initfini element. Accept
3529         argc, argv, and env as parameters and pass them to the constructors.
3530         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
3531         with size of dynamic section.
3532         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
3533         _dl_init_next and calling constructors ourself.
3534         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
3535         Take argc, argv, and env as parameters and pass them to the
3536         constructors.  Rewrite to call all constructors and not iterate over
3537         the pointers.
3538         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
3539         precompute l_initcount and l_preinitcount.
3540         * elf/link.h (struct link_map): Add l_ldnum member.
3541         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
3542         l_initcount, and l_preinitcount.  Add l_initfini.
3543         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
3544         one for _dl_init.
3545         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
3546         function interface.
3547         * sysdeps/unix/sysv/linux/init-first.h: Removed.
3548         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
3549         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
3550         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
3551         conventions now match.
3552
3553         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
3554         effect for shared objects.  Don't emit message and call only for
3555         static library.
3556
3557 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
3558
3559         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
3560         CSA_Z243.4-1985-1..UCS2.
3561         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
3562         ISO-8859-10..UCS2.
3563
3564 2000-03-29  Andreas Jaeger  <aj@suse.de>
3565
3566         * include/unistd.h: Remove duplicate entry for __rmdir.
3567         Remove declaration of __mkdir since __mkdir is declared in
3568         sys/stat.h.
3569
3570         * manual/creature.texi (Feature Test Macros): Fix typo, reported
3571         by Michael Deutschmann <michael@talamasca.ocis.net>.
3572
3573         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
3574         * sysdeps/mips/fpu/fegetenv.c: Likewise.
3575         * sysdeps/mips/fpu/fesetenv.c: Likewise.
3576         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
3577         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
3578
3579 2000-03-28  Andreas Jaeger  <aj@suse.de>
3580
3581         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
3582         declaration, the prototype is defined via bits/mathcalls.h.
3583         (__sincosf): Likewise.
3584         (__sincosl): Likewise.
3585         (ldexp): Likewise.
3586         (ldexpf): Likewise.
3587         (ldexpl): Likewise.
3588         (__finite): Likewise.
3589         (__inline_mathcodeNP): New macro without prototype
3590         declarations.
3591         (__inline_mathcodeNP2): Likewise.
3592         (__inline_mathcodeNP3): Likewise.
3593         (__inline_mathcodeNP_): Likewise.
3594         (__inline_mathcodeNP2_): Likewise.
3595         (__inline_mathcodeNP3_): Likewise.
3596         (__inline_mathopNP): Likewise.
3597         (__inline_mathop_declNP): Likewise.
3598         (__inline_mathop_declNP_): Likewise.
3599         (__inline_mathcode_): Use __inline_mathcodeNP_.
3600         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
3601         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
3602         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
3603         (__expm1l): Don't define prototype, the prototype is defined via
3604         bits/mathcalls.h.
3605         (exp): Likewise.
3606         (__expl): Likewise.
3607         (tan): Likewise.
3608         (atan2): Likewise.
3609         (__atan2l): Likewise.
3610         (fmod): Likewise.
3611         (pow): Likewise.
3612         (fabsf): Likewise.
3613         (fabsl): Likewise.
3614         (__fabsl): Likewise.
3615         (asin): Likewise.
3616         (acos): Likewise.
3617         (sinh): Likewise.
3618         (cosh): Likewise.
3619         (tanh): Likewise.
3620         (floor): Likewise.
3621         (ceil): Likewise.
3622         (expm1): Likewise.
3623         (log1p): Likewise.
3624         (asinh): Likewise.
3625         (acosh): Likewise.
3626         (atanh): Likewise.
3627         (hypot): Likewise.
3628         (logb): Likewise.
3629         (fma): Likewise.
3630         (drem): Likewise.
3631         (sqrt): Likewise.
3632         (__sqrtl): Likewise.
3633         (sin): Likewise.
3634         (cos): Likewise.
3635         (atan): Likewise.
3636         (log): Likewise.
3637         (log10): Likewise.
3638         (asinh): Likewise.
3639         (log2): Likewise.
3640         (rint): Likewise.
3641
3642 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
3643
3644         * Makerules: If make variable md5 is defined to yes after
3645         generating dependencies generate MD5 sum for the object.
3646
3647         * iconv/gconv_builtin.h: Fix length in transformation definition
3648         for UNICODEBIG.
3649
3650         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
3651
3652         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
3653         allow as well reading from/writing to unaligned addresses on machines
3654         which don't support this in hardware.  Use FCTNAME macro to define
3655         function name.  Include the file a second time for platforms which
3656         need special unaligned handling.
3657         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
3658         to access potentially unaligned addresses.  These macros are intended
3659         to be used only outside the loops.
3660         (unaligned): New definition.  In case the machine can handle unaligned
3661         access define as zero.  Otherwise as a variable which is initialized
3662         as nonzero in case the buffer passed in at runtime is unaligned with
3663         respect to the character set encoding involved.
3664         Call aligned or unaligned looop functions according to unaligned
3665         variable.
3666         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
3667         of direct casting pointer to potentially handle unaligned memory
3668         accesses.
3669         * iconvdata/8bit-generic.c: Likewise.
3670         * iconvdata/ansi_x3.110.c: Likewise.
3671         * iconvdata/big5.c: Likewise.
3672         * iconvdata/euc-cn.c: Likewise.
3673         * iconvdata/euc-jp.c: Likewise.
3674         * iconvdata/euc-kr.c: Likewise.
3675         * iconvdata/euc-tw.c: Likewise.
3676         * iconvdata/gbk.c: Likewise.
3677         * iconvdata/iso-2022-cn.c: Likewise.
3678         * iconvdata/iso-2022-jp.c: Likewise.
3679         * iconvdata/iso-2022-kr.c: Likewise.
3680         * iconvdata/iso646.c: Likewise.
3681         * iconvdata/iso_6937-2.c: Likewise.
3682         * iconvdata/iso_6937.c: Likewise.
3683         * iconvdata/johab.c: Likewise.
3684         * iconvdata/sjis.c: Likewise.
3685         * iconvdata/t.61.c: Likewise.
3686         * iconvdata/uhc.c: Likewise.
3687         * iconvdata/unicode.c: Likewise.
3688         * iconvdata/utf-16.c: Likewise.
3689
3690         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
3691         prototypes.
3692
3693         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
3694         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
3695         public.
3696         * malloc/mcheck.h (mcheck_check_all): Declare.
3697
3698         * stdio-common/Makefile (tests): Add tst-obprintf.
3699
3700 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
3701
3702         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
3703         Declare pthread_sigmask.
3704
3705         * csu/version.c: Add 2000 to copyright years.
3706         Remove Emacs local variables section.
3707
3708 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
3709
3710         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
3711         __gconv_transform_internal_ucs2little): Remove declarations.
3712         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
3713         __gconv_transform_internal_ucs2): Never need to bswap_16.
3714         (__gconv_transform_ucs2reverse_internal,
3715         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
3716
3717 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
3718
3719         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
3720         obsoleting version not being defined at all, in which case the
3721         result is always true.
3722
3723         * Makeconfig (preprocess-versions): New canned sequence for running
3724         cpp on shlib-versions and the like.
3725         (soversions.i): Use it.
3726         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
3727         Versions.def and Versions files.
3728
3729 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
3730
3731         * stdio-common/tst-obprintf.c (main): Add another check to see
3732         obstack_printf handling all possible beginnings of the block
3733         inside an obstack chunk.
3734
3735         * locale/programs/localedef.c: Use __malloc_initialize_hook to
3736         install mcheck handler.
3737
3738         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
3739         handling problem.
3740
3741 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
3742
3743         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
3744
3745         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
3746         on [HAVE_ELF && DO_VERSIONING].
3747
3748 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
3749
3750         * stdio-common/tst-obprintf.c: New file.
3751
3752 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
3753
3754         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
3755         _IO_OVERFLOW directly instead through __overflow.
3756
3757         * locale/programs/localedef.c (construct_output_path): If path
3758         contains a / compute the end of the directory name correctly.
3759
3760         * include/features.h: Undef and document __USE_XOPEN2K.
3761
3762         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
3763         whenever a function is called.  Initiated by calling mcheck_pedantic
3764         instead of mcheck.
3765         * malloc/mcheck.h: Declare mcheck_pedantic.
3766         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
3767         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
3768         for now.
3769
3770 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
3771
3772         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
3773         * dlfcn/dlopenold.c: Likewise.
3774         * nss/getXXbyYY_r.c: Likewise.
3775         * nss/getXXent_r.c: Likewise.
3776         * hurd/hurdinit.c: Likewise.
3777         * hurd/compat-20.c: Likewise.
3778         * libio/oldiofopen.c: Likewise.
3779         * libio/oldiofclose.c: Likewise.
3780         * libio/oldiofdopen.c: Likewise.
3781         * libio/oldfileops.c: Likewise.
3782         * libio/oldstdfiles.c: Likewise.
3783         * libio/oldiofsetpos.c: Likewise.
3784         * libio/oldiofgetpos.c: Likewise.
3785         * libio/oldiofgetpos64.c: Likewise.
3786         * libio/oldiofsetpos64.c: Likewise.
3787         * libio/oldiopopen.c: Likewise.
3788         * libio/oldpclose.c: Likewise.
3789         * libio/oldtmpfile.c: Likewise.
3790         * libio/freopen.c (freopen): Likewise.
3791         * libio/iofclose.c (_IO_new_fclose): Likewise.
3792
3793         * sysdeps/mach/sys/reboot.h: Include <features.h>.
3794         (reboot): Declare it.
3795
3796         * libio/Makefile (headers): Add bits/stdio-lock.h here.
3797
3798         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
3799
3800         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
3801
3802         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
3803         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
3804         We need this for the sbrk decl, which can be included without Unix98.
3805
3806 2000-03-20  Richard Henderson  <rth@cygnus.com>
3807
3808         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
3809         argument to yperr2nss is an int, not size_t.
3810         * posix/regex.c (print_partial_compiled_pattern): Cast all
3811         ptrdiff_t to long for printing.
3812         (print_compiled_pattern): Use Z for printing size_t.
3813         * posix/testfnm.c (tests): Avoid trigraphs.
3814         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3815         Use a C comment, not an assembly comment.
3816
3817         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
3818         of __ASSUME_32BITUIDS.
3819
3820 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
3821
3822         * libio/iofopncook.c: Remove K&R prototypes.
3823
3824 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
3825
3826         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
3827         an initial value of 1024 instead of RLIM_INFINITY.
3828
3829         * Versions.def (libmachuser, libhurduser): Remove these sections,
3830         since these libraries do not presently use symbol versions.
3831
3832         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
3833         is RLIM_INFINITY, return -1 instead.
3834
3835 2000-03-24  Andreas Jaeger  <aj@suse.de>
3836
3837         * Makefile (postclean): Added soversions.i.
3838
3839 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
3840
3841         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
3842         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
3843         and _FPU_IEEE.  Change _FPU_RESERVED.
3844
3845 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
3846
3847         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
3848
3849 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
3850
3851         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
3852         (gaih_inet): Remove unused duplicate variable.
3853
3854         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
3855         Don't use __libc_sa_len, which only exists for Linux.  Just handle
3856         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
3857         only flavors supported by this function anyway.
3858
3859 2000-03-24  Geoff Clare  <gwc@unisoft.com>
3860
3861         * stdlib/strfmon.c: corrected problems with missing signs and
3862         missing or extra spaces; allow for sign strings longer than
3863         one character; add padding to ensure positive and negative
3864         formats are aligned when a left precision is used.
3865
3866 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
3867
3868         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
3869         Patch by John Mizel <John.Mizel@msdw.com>.
3870
3871 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
3872
3873         * manual/install.texi: Remove references to crypt add-on.
3874
3875 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
3876
3877         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
3878         section while taking the _hurd_rlimit_lock.
3879         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
3880
3881 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
3882
3883         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
3884         using $(LN_S).
3885
3886         * sysdeps/mach/hurd/if_index.c: New file.
3887
3888         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
3889         * sysdeps/gnu/net/if.h: here.
3890         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
3891         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
3892         * sysdeps/generic/net/if.h: New file.  Declares just the standard
3893         functions and `struct if_nameindex' type.
3894         * socket/Makefile (headers): Add net/if.h here.
3895         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
3896         * sysdeps/mach/hurd/Dist: Remove it here.
3897         * sysdeps/unix/sysv/linux/Dist: And here.
3898         * sysdeps/generic/if_index.c: Include <net/if.h>.
3899
3900 2000-03-24  Andreas Jaeger  <aj@suse.de>
3901
3902         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
3903         access relocated entries in l_info.
3904         (elf_machine_got_rel): Likewise.
3905         (elf_machine_runtime_setup): Likewise.
3906         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
3907         (elf_machine_runtime_setup): Likewise.
3908         (__dl_runtime_resolve): Likewise.
3909
3910 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
3911
3912         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
3913         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
3914         according to RFC 2553.
3915         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
3916         * inet/getnameinfo.c: Likewise.
3917         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
3918
3919 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
3920
3921         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
3922         Remove no-op pointer increment.
3923
3924 2000-03-23  Andreas Jaeger  <aj@suse.de>
3925
3926         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
3927         follow change for libio.h from 2000-03-10.
3928
3929 2000-03-23  Andreas Jaeger  <aj@suse.de>
3930
3931         * elf/dl-addr.c: Adjust include paths for ldsodefs location
3932         change.
3933         * elf/dl-debug.c: Likewise.
3934         * elf/dl-deps.c: Likewise.
3935         * elf/dl-error.c: Likewise.
3936         * elf/dl-fini.c: Likewise.
3937         * elf/dl-init.c: Likewise.
3938         * elf/dl-load.c: Likewise.
3939         * elf/dl-lookup.c: Likewise.
3940         * elf/dl-minimal.c: Likewise.
3941         * elf/dl-object.c: Likewise.
3942         * elf/dl-open.c: Likewise.
3943         * elf/dl-preinit.c: Likewise.
3944         * elf/dl-profile.c: Likewise.
3945         * elf/dl-profstub.c: Likewise.
3946         * elf/dl-reloc.c: Likewise.
3947         * elf/dl-runtime.c: Likewise.
3948         * elf/dl-support.c: Likewise.
3949         * elf/dl-symbol.c: Likewise.
3950         * elf/dl-version.c: Likewise.
3951         * elf/rtld.c: Likewise.
3952         * elf/sprof.c: Likewise.
3953         * sysdeps/generic/dl-cache.c: Likewise.
3954         * sysdeps/generic/dl-origin.c: Likewise.
3955         * sysdeps/generic/dl-sysdep.c: Likewise.
3956         * sysdeps/generic/elf/backtracesyms.c: Likewise.
3957         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
3958         * sysdeps/generic/libc-start.c: Likewise.
3959         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3960         * sysdeps/powerpc/dl-machine.c: Likewise.
3961         * sysdeps/powerpc/elf/libc-start.c: Likewise.
3962         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3963         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3964         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3965
3966         * elf/ldsodefs.h: Move file to ...
3967         * sysdeps/generic/ldsodefs.h: ... here.
3968
3969         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
3970
3971         * sysdeps/mips/elf/ldsodefs.h: New file.
3972
3973         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
3974         entries in l_info.
3975         (_dl_check_map_versions): Likewise.
3976         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3977         * elf/dl-load.c (_dl_init_paths): Likewise.
3978         (_dl_map_object): Likewise.
3979         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
3980         (elf_get_dynamic_info): Likewise.
3981         * elf/do-lookup.h (FCT): Likewise.
3982         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
3983         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3984         * elf/dl-addr.c (_dl_addr): Likewise.
3985         * elf/dl-runtime.c (profile_fixup): Likewise.
3986         (fixup): Likewise.
3987         * elf/dl-init.c (_dl_init_next): Likewise.
3988         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
3989         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
3990         (DISTINGUISH_LIB_VERSIONS): Likewise.
3991         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
3992         (elf_machine_rel): Likewise.
3993
3994         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
3995         for writable dynamic section.
3996
3997 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
3998
3999         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
4000         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
4001
4002 2000-03-22  Andreas Jaeger  <aj@suse.de>
4003
4004         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
4005         from latest Linux kernel.
4006
4007 2000-03-21  Andreas Jaeger  <aj@suse.de>
4008
4009         * Versions.def: Add version 2.1.4.
4010
4011 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
4012
4013         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
4014         * libio/oldiofopen.c: Likewise.
4015         * libio/oldiofclose.c: Likewise.
4016         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
4017
4018 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
4019
4020         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
4021         indicating the first version set to obsolete the conditionalized code.
4022         (compat_symbol): New macro.
4023         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
4024         rhs be the ABI_* macro for the subsuming version.  Assign increasing
4025         integer values to the ABI_* macros for supported versions.
4026         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
4027         compat_symbol macro.
4028
4029 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
4030
4031         * nscd/connections.c (nscd_run): Pretty print.
4032         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
4033
4034         * manual/charset.texi: Fix typos.  Rephrase.
4035         * manual/process.texi: Likewise.
4036         * manual/signal.texi: Likewise.
4037         Patches by Mike Coleman <mkc@kc.net>.
4038
4039         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
4040         versions.
4041         * libio/iofdopen.c: Likewise.
4042         * libio/iofgetpos.c: Likewise.
4043         * libio/iofgetpos64.c: Likewise.
4044         * libio/iofopen.c: Likewise.
4045         * libio/iofsetpos.c: Likewise.
4046         * libio/iofsetpos64.c: Likewise.
4047         * libio/iopopen.c: Likewise.
4048         * libio/oldiofopen.c: Likewise.
4049         * libio/pclose.c: Likewise.
4050         * sysdeps/gnu/siglist.c: Likewise.
4051         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
4052
4053         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
4054         chance to expand VERSION_##lib##_##version.
4055
4056         * libio/fileops.c: Use new macros from shlib-compat.h to define
4057         versions.
4058         * libio/iofclose.c: Likewise.
4059         * libio/oldiofclose.c: Likewise.
4060         Patch by Roland McGrath <roland@frob.com>.
4061
4062 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
4063
4064         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
4065         Lay out struct sigcontext according to what really gets passed on
4066         the stack.
4067         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
4068         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
4069         (prgregset_t, prfpregset_t): Define to elf_* types.
4070         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
4071         Define to correct value.
4072         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
4073         sigcontext.
4074         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
4075
4076 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
4077
4078         * scripts/firstversions.awk: Allow multiple version sets in the
4079         "earliest version" specification, meaning that version sets in the
4080         gaps between listed versions should be folded into the earliest later
4081         version that is explicitly listed.
4082         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
4083         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
4084
4085 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
4086
4087         * iconv/gconv_builtin.c: Include <endian.h>.
4088         * iconv/gconv_builtin.h: Add UCS-BE aliases.
4089         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
4090         according to current platform.
4091         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
4092         __gconv_transform_internal_ucs2reverse, and
4093         __gconv_transform_internal_ucs4le.
4094         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
4095         __gconv_transform_ucs2reverse_internal and
4096         __gconv_transform_internal_ucs2reverse.
4097         * iconvdata/Makefile (modules): Add UNICODE.
4098         (distribute): Add unicode.c.
4099         * iconvdata/gconv-modules: Add definitions for UNICODE module.
4100         * iconvdata/unicode.c: New file.
4101
4102         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
4103         determine byte order of input and convert accordingly.
4104
4105         * iconvdata/utf-16.c (gconv_init): Fix typo.
4106
4107 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
4108
4109         * iconvdata/gconv-modules: Fix typo.
4110
4111         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
4112         more messages.
4113
4114         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
4115
4116 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
4117
4118         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
4119
4120 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
4121
4122         * misc/Makefile (routines): Add mincore.
4123
4124 2000-03-20  Andreas Jaeger  <aj@suse.de>
4125
4126         * sysdeps/generic/mincore.c: New stub file.
4127
4128         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
4129         from latest Linux kernel.
4130
4131 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
4132
4133         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
4134         _SC_GETPW_R_SIZE_MAX.
4135
4136 2000-03-20  Richard Henderson  <rth@cygnus.com>
4137
4138         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
4139         in GLIBC_2.1.4.
4140
4141 2000-03-20  Richard Henderson  <rth@cygnus.com>
4142
4143         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
4144         of arithmetic instructions.
4145
4146         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
4147         with the fpcr.  Protect from INV exception.
4148         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
4149         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
4150         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
4151
4152         * sysdeps/alpha/fpu/s_copysign.c: New.
4153         * sysdeps/alpha/fpu/s_copysignf.c: New.
4154         * sysdeps/alpha/fpu/s_fabs.c: New.
4155         * sysdeps/alpha/fpu/s_fabsf.c: New.
4156         * sysdeps/alpha/fpu/s_rint.c: New.
4157         * sysdeps/alpha/fpu/s_rintf.c: New.
4158
4159         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
4160
4161         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
4162         Kill sethae.
4163         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
4164         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
4165         Use physical addresses not KSEG addresses.
4166         (io_system): Add PYXIS.
4167         (io): Remove hae.reg, sys, hae_shift.
4168         (stb_mb, stw_mb, stl_mb, __sethae): New.
4169         (inline_outb, inline_outw, inline_outl): Don't set hae.
4170         (inline_inb, inline_inw, inline_inl): Likewise.
4171         (dense_sethae): New null function.
4172         (struct cpuinfo_data): New.
4173         (process_cpuinfo): Use local and stack variables, not static.
4174         Move readlink check here from init_iosys.
4175         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
4176         (_iopl): Simplify.
4177         (_hae_shift): Calculate it here.
4178         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
4179         add pciconfig_iobase.
4180
4181 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
4182
4183         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
4184         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
4185
4186         * scripts/versions.awk: Fixed version renaming code to distinguish
4187         libraries properly.
4188
4189 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
4190
4191         * include/stdlib.h: Add prototype for __cxa_atexit.
4192
4193         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
4194         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
4195
4196 2000-03-17  Cristian Gafton  <gafton@redhat.com>
4197
4198         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
4199         existing rtld-installed-name.
4200         ($(rtld-installed-name)): Request libc-$(version) be installed too.
4201         replace existing rtld-installed-name using $(symbolic-link-prog).
4202
4203 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
4204
4205         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
4206         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
4207         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
4208         but not the former.
4209
4210 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
4211
4212         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
4213         glob64.  Since there is no glob64 in the LFS proposal applications
4214         can assume that glob handles LFS situations.  glob64 is only needed
4215         if alternative filesystem functions are used.
4216
4217 2000-03-19  Geoff Clare  <gwc@unisoft.com>
4218
4219         * sysdeps/generic/glob.c: Correct gl_pathc value returned
4220         when GLOB_DOOFFS is set; correct handling of patterns
4221         containing escaped wildcards (and no unescaped ones);
4222         GLOB_ERR flag was being ignored in some situations.
4223
4224         * posix/globtest.c, posix/globtest.sh: Updated to include
4225         tests for the problems fixed by the above changes to glob.c.
4226
4227         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
4228
4229 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
4230
4231         * Makeconfig (soversion.i): Use only first match for each lib.
4232
4233         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
4234
4235         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
4236         rather than $(sysd-dirs-done) to protect these rules.
4237
4238         * Makerules (version-renames.def): Target removed.
4239         (Versions.all): Depend on soversions.i directly and parse it.
4240
4241         * Makeconfig (soversions.i): New target, input-reading parts of
4242         soversions.mk generation moved here; result is a canonicalized
4243         list "LIB VERSION [SET]" for this configuration.
4244         (soversions.mk): Use that as input.  Don't emit map-firstversions.
4245         * Makerules (version-renames.def): New target, generated from
4246         soversions.i with contents that was in $(map-firstversions).
4247         (Versions.all): Don't depend on soversions.mk, depend on
4248         version-renames.def instead; just cat it into the input.
4249
4250         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
4251         for $(map-firstversions), which better handles it being empty.
4252
4253         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
4254         supported version for libc 0.2.90.libio to GLIBC_2.2.
4255
4256         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
4257         and use it to emit new variable `map-firstversions'.
4258         * scripts/firstversions.awk: New file.
4259         * Makerules (Versions.all): Use scripts/firstversions.awk and
4260         the $(map-firstversions) value to generate a modified versions list
4261         that includes renames in "A = B" syntax for each version set earlier
4262         than the "earliest symbol version" named in shlib-versions.
4263         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
4264         rename version set A to B in the output to the intermediate file.
4265         * scripts/abi-versions.awk: New file.
4266         * Makerules (abi-versions.h): New target, generated by that script.
4267         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
4268         * include/shlib-compat.h: New file, uses that generated header.
4269
4270 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
4271
4272         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
4273         after stripping # comments, and then run it through cpp.
4274         This allows things like "%ifdef FOO" based on config.h settings.
4275         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
4276
4277         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
4278         and other errors that indicate a pseudo-receive happened, grok through
4279         the message buffer for port rights that need references fixed up.
4280
4281 2000-03-16  Andreas Jaeger  <aj@suse.de>
4282
4283         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
4284
4285         * sysdeps/unix/sysv/linux/madvise.c: Remove.
4286
4287         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
4288         from latest Linux kernel.
4289         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
4290
4291         * misc/sys/mman.h: Add prototype for mincore.
4292
4293 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
4294
4295         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
4296         entry for GLIBC_2.0 version of setrlimit.
4297         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
4298
4299 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
4300
4301         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
4302         * nis/nss_compat/compat-initgroups.c: Likewise.
4303         * nis/nss_nis/nis-initgroups.c: Likewise.
4304         * nis/nss_nis/nis-netgrp.c: Likewise.
4305         * nis/nss_nis/nis-proto.c: Likewise.
4306         * nis/nss_nis/nis-rpc.c: Likewise.
4307         * nis/nss_nis/nis-service.c: Likewise.
4308         * nis/ypclnt.c: Likewise.
4309
4310 2000-03-16  Andreas Jaeger  <aj@suse.de>
4311
4312         * manual/Makefile: MAKEINFO is set to `:' from configure if it
4313         doesn't exist, correct checks.  Fixes PR libc/1649.
4314
4315 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
4316
4317         * nscd/hstcache.c: Restore correct UID.
4318         * nscd/pwdcache.c: Likewise.
4319         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
4320
4321 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
4322
4323         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
4324         macros for register names, in line with 2000-03-14 linux change.
4325
4326         * sysdeps/mach/sched_yield.c: New file.
4327
4328 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
4329
4330         * sysdeps/generic/lockfile.c: Include <stdio.h>
4331         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
4332         case <libio.h> defined them.
4333         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
4334         from __internal_*.
4335         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
4336         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
4337
4338         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
4339         for more pleasing parse error.
4340
4341 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
4342
4343         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
4344         memory for eras.
4345         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
4346
4347         * elf/Makefile: Add rules to compile and run constload1 test.
4348         * elf/constload1.c: New file.
4349         * elf/constload2.c: New file.
4350         * elf/constload3.c: New file.
4351
4352 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
4353
4354         * sysdeps/posix/open64.c: Make __open64 weak alias.
4355         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
4356         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4357         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
4358         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4359         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
4360         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
4361         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4362         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
4363         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4364         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
4365
4366 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
4367
4368         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
4369         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
4370
4371 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
4372
4373         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
4374         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
4375
4376 2000-03-08  Andreas Jaeger  <aj@suse.de>
4377
4378         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
4379
4380 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
4381
4382         * timezone/africa: Update from tzdata2000d.
4383         * timezone/asia: Likewise.
4384         * timezone/australasia: Likewise.
4385         * timezone/europe: Likewise.
4386         * timezone/northamerica: Likewise.
4387         * timezone/southamerica: Likewise.
4388
4389         * po/fr.po: Update from translation team.
4390         * po/de.po: Likewise.
4391
4392         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
4393         last parameter.  Move code to add map to global scope from here...
4394         * elf/dl-open.c (dl_open_worker): ...here.
4395         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
4396         * elf/rtld.c: Adjust call to _dl_map_object_deps.
4397
4398         * locale/programs/ld-collate.c (collate_read): Fix warning.
4399
4400         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
4401         values and macros for register names.
4402
4403         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
4404         returned by seek cookie function is -1.
4405
4406 2000-03-14  Andreas Jaeger  <aj@suse.de>
4407
4408         * locale/localeconv.c (localeconv): Fix typo.
4409         Reported by Andre Charbonneau <andrec@corel.com>.
4410
4411 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
4412
4413         * iconv/skeleton.c: Increment __invocation_counter in inner loop
4414         since modules depend on it counting the number of times the conversion
4415         function got called.
4416
4417         * iconv/gconv_open.c: Optimize loop to setup step data structure.
4418
4419         * iconv/gconv.h: Pretty print.
4420
4421 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
4422
4423         * posix/wordexp-test.c: Correct one of the tests added in the last
4424         change.  Really get the root passwd entry to check again ~root.
4425
4426 2000-03-10  Andreas Jaeger  <aj@suse.de>
4427
4428         * manual/filesys.texi (Working Directory): Fix last patch.
4429         Patch by Martin Buchholz  <martin@xemacs.org>.
4430
4431 2000-03-10  Andreas Jaeger  <aj@suse.de>
4432
4433         * manual/creature.texi (Feature Test Macros): Fix language.
4434
4435 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
4436
4437         * mach/devstream.c (devstream_write, devstream_read): New functions.
4438         (input, output): Functions removed.
4439         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
4440         using only the vanilla fopencookie interface.
4441
4442         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
4443         as macro for __io_functions.
4444         (funcsio): Use cookie_io_functions_t type name.
4445         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
4446
4447         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
4448         fopencookie.
4449         (fopencookie): Use it.
4450         * libio/libio.h: Declare _IO_cookie_init.
4451         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
4452         _IO_cookie_init.
4453
4454         * libio/libio.h (__io_seek_fn): Fix second argument type
4455         to be a pointer, in line with the manual and the old stdio.
4456         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
4457
4458         * sysdeps/generic/bits/stdio-lock.h: New file.
4459         This is a stub with #error, but that's better than no file at all.
4460
4461 2000-03-09  Martin Buchholz  <martin@xemacs.org>
4462
4463         * sysdeps/unix/sysv/linux/alpha/syscall.S:
4464         * manual/message.texi (Using gettextized software):
4465         * manual/message.texi (Message Translation): Doc Fixes.
4466         * manual/filesys.texi (File Size):
4467         * manual/charset.texi (glibc iconv Implementation):
4468         * locale/programs/ld-collate.c (collate_output):
4469         * iconv/gconv_db.c (find_derivation):
4470         * manual/install.texi:
4471         * manual/search.texi (Hash Search Function):
4472         * manual/stdio.texi (Output Conversion Syntax):
4473         * FAQ.in:
4474         * config.h.in:
4475         * sysdeps/generic/dl-sysdep.c:
4476         Doc Fixes.  `allows to' is not correct English.
4477
4478         * elf/rtld.c: Doc fixes.
4479         * manual/creature.texi (Feature Test Macros): Doc fixes.
4480         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
4481
4482         * manual/filesys.texi (Working Directory): Check for ERANGE to
4483         avoid infloop.
4484
4485 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
4486
4487         * string/argz-stringify.c (__argz_stringify): Fix loop termination
4488         conditions so as not to clobber the final '\0' when there is only one
4489         element in the vector.
4490
4491 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
4492
4493         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
4494         broken by 2000-02-27 change.
4495
4496         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
4497
4498 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
4499
4500         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
4501         argument type, for 2000-02-22 change in signal/signal.h declaration.
4502
4503 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
4504
4505         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
4506         to getdirentries64 (no __), since the Linux implementation
4507         has no __ name, and there is no declaration for the __ name.
4508
4509         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
4510
4511         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
4512         sed regexp so as not to break directory names including /../ within.
4513
4514         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
4515         The sysdeps/generic file is right for BSD.  This file was in fact the
4516         Hurd file, but the only difference was the WNOREAP flag that was never
4517         actually implemented or used anywhere.
4518
4519         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
4520         since AC_PATH_PROG already does it for us.
4521         (PERL): Rewrite check added in 2000-02-29 change for syntactic
4522         correctness and sh portability.  I replaced the broken check
4523         with a more sensible implementation of the apparently intended
4524         semantics, which might still be questionable.  Using expr causes
4525         a non-numeric value for `perl -V:apiversion` to be accepted,
4526         refusing to use only a perl that reports a number less than 5;
4527         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
4528         * configure: Regenerated.
4529
4530 2000-03-08  Andreas Jaeger  <aj@suse.de>
4531
4532         * manual/crypt.texi: Fix paths.
4533
4534 2000-03-07  Andreas Jaeger  <aj@suse.de>
4535
4536         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
4537         were swapped.
4538         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
4539         libc/1636.
4540
4541 2000-03-06  Andreas Jaeger  <aj@suse.de>
4542
4543         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
4544         in __sgn1l, otherwise g++ fails to parse this.
4545         Reported by Sean Chen <sean.chen@turbolinux.com>.
4546
4547 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
4548
4549         * configure.in: Compute sizeof-long-double.
4550         * configure: Regenerated.
4551         * config.make.in: Make sizeof-long-double available to sub-makes.
4552
4553 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
4554
4555         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
4556         call.
4557
4558 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
4559
4560         * Makeconfig (rpath-dirs): Add crypt.
4561         (all-subdirs): Remove md5crypt.
4562         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
4563         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
4564         * sysdeps/generic/crypt-entry.c: Delete.
4565         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
4566         * sysdeps/generic/crypt.h: Delete.
4567         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
4568         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
4569         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
4570         * sysdeps/generic/des_impl.c: Delete.
4571         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
4572         * crypt/sysdeps: Delete.
4573         * crypt/crypt_util.c: Don't use `patchlevel.h'.
4574         * md5-crypt/Versions: Move to crypt/.
4575         * md5-crypt/md5-crypt.c: Move to crypt/.
4576         * md5-crypt/md5.c: Move to crypt/.
4577         * md5-crypt/md5c-test.c: Move to crypt/.
4578         * md5-crypt/md5test.c: Move to crypt/.
4579         * md5-crypt: Delete.
4580         * crypt/Makefile: Adjust for new structure.
4581
4582 2000-03-03  Paul Eggert  <eggert@twinsun.com>
4583
4584         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
4585         define to 1 if not defined.
4586
4587 2000-03-03  Andreas Jaeger  <aj@suse.de>
4588
4589         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
4590
4591 2000-03-03  Andreas Jaeger  <aj@suse.de>
4592
4593         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
4594         cases.
4595         (xdr_int64_t): Correctly handle lower half.
4596         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
4597
4598 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
4599
4600         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
4601         call.
4602
4603 2000-03-02  Andreas Jaeger  <aj@suse.de>
4604
4605         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
4606         2.3.43.
4607
4608 2000-03-02  Andreas Jaeger  <aj@suse.de>
4609
4610         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
4611
4612 2000-03-01  Andreas Jaeger  <aj@suse.de>
4613
4614         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
4615         (tests): Added tst-getdate.
4616
4617         * time/tst-getdate.c: New file.
4618
4619         * time/datemsk: New file, needed for tst-getdate.
4620
4621 2000-02-29  Cristian Gafton  <gafton@redhat.com>
4622
4623         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
4624
4625 2000-02-17  H.J. Lu  <hjl@gnu.org>
4626
4627         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
4628
4629         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
4630         available.
4631         (svcudp_recv): Set up message with the new "xp_pad" field for
4632         IP_PKTINFO.
4633         (svcudp_reply): Support IP_PKTINFO if available.
4634
4635 2000-03-01  Andreas Jaeger  <aj@suse.de>
4636
4637         * time/getdate.c (check_mday): Fix check for february.
4638         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
4639         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
4640
4641 2000-03-02  Andreas Jaeger  <aj@suse.de>
4642
4643         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
4644         g++ fails to parse this.
4645         Reported by Sean Chen <sean.chen@turbolinux.com>.
4646
4647 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
4648
4649         * io/creat.c: Moved to...
4650         * sysdeps/generic/creat.c: ...here.
4651         * io/creat64.c: Moved to...
4652         * sysdeps/generic/creat64.c: ...here.
4653         * io/lockf.c: Moved to...
4654         * sysdeps/generic/lockf.c: ...here.
4655
4656         * crypt/crypt.texi: Moved to...
4657         * manual/crypt.texi: ...here.
4658         * crypt/examples/genpass.c: Moved to...
4659         * manual/examples/genpass.c: ...here.
4660         * crypt/examples/mygenpass.c: Moved to...
4661         * manual/examples/mygenpass.c: ...here.
4662         * crypt/examples/testpass.c: Moved to...
4663         * manual/examples/testpass.c: ...here.
4664
4665         * manual/Makefile (chapters): Add crypt.
4666         * manual/conf.texi: Add usual header for not-last chapter.
4667         * manual/crypt.texi: Add special header for last chapter.
4668
4669 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
4670
4671         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
4672         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
4673         complain if there is no crypt add-on.
4674         * crypt/configure: Removed.
4675
4676         * crypt/crypt.texi: Update documentation of US export restrictions
4677         to match the 14 Jan 2000 regulations.
4678
4679 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
4680
4681         * crypt: New subdirectory, merged in from the crypt add-on.
4682
4683 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
4684
4685         * include/unistd.h: Add __rmdir and __mkdir prototypes.
4686
4687
4688 See ChangeLog.10 for earlier changes.