Update.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
4         (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
5         makecontext.
6         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
7         for include Altivec support for PPC32.  It was not compatible.
8         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
9         offsets for ucontext_t change.
10         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
11         for ucontext_t change.  Add compatibility code.
12         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
13         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
14         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
15         Patch by Paul Mackerras <paulus@samba.org>.
16
17 2003-02-25  Randolph Chung  <tausq@debian.org>
18
19         * sysdeps/hppa/Makefile: Include compat code in build.
20         * sysdeps/hppa/libgcc-compat.c: New file.
21         * sysdeps/hppa/Dist: Add libgcc-compat.c.
22         * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
23
24 2003-09-23  Roland McGrath  <roland@redhat.com>
25
26         * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
27         GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
28         Move GL(dl_make_stack_executable_hook) initialization up.
29         * elf/tst-execstack-prog.c: New file.
30         * elf/Makefile (tests-execstack-yes): Add it.
31         (LDFLAGS-tst-execstack-prog): New variable.
32
33 2003-09-23  Jakub Jelinek  <jakub@redhat.com>
34
35         * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
36         before calling _dl_start, using %rip relative access.
37         Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
38         and _dl_fini.
39
40 2003-09-23  Roland McGrath  <roland@redhat.com>
41
42         * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
43         calling _dl_start, using GOTOFF access.
44
45         * configure.in (libc_cv_z_execstack): New check.
46         * configure: Regenerated.
47         * config.make.in (have-z-execstack): New variable set by it.
48         * elf/tst-execstack.c: New file.
49         * elf/tst-execstack-mod.c: New file.
50         * elf/tst-execstack-needed.c: New file.
51         * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
52         variables.
53         (tests, modules-names): Conditionally include them.
54         (distribute): Add tst-execstack-mod.c here.
55         ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
56         (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
57         ($(objpfx)tst-execstack-needed): New target.
58         (LDFLAGS-tst-execstack-needed): New variable.
59
60         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
61         and _dl_make_stack_executable_hook.  Declare _dl_make_stack_executable.
62         * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
63         (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
64         Initialize _dl_make_stack_executable_hook.
65         * elf/dl-support.c: Define those new variables.
66         (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
67         (_dl_phdr): Fix type.
68         * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
69         enable execute permission for the stack if necessary.
70         * sysdeps/generic/dl-execstack.c: New file.
71         * elf/Makefile (dl-routines): Add it.
72         * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
73         * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
74
75 2003-09-23  Ulrich Drepper  <drepper@redhat.com>
76
77         * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
78
79 2003-09-20  Alfred M. Szmidt  <ams@kemisten.nu>
80
81         * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
82         UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
83         __fcntl_nocancel.
84
85 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
86
87         * malloc/malloc.c: Include <stdint.h>.
88
89 2003-09-20  Paolo Bonzini  <bonzini@gnu.org>
90
91         * posix/regcomp.c (build_word_op): Rename like...
92         (build_charclass_op): ...this.  Accept two extra parameters,
93         CLASS_NAME and EXTRA.  Add EXTRA to the result, not only _.
94         (peek_token): accept \s and \S as OP_SPACE and OP_NOTSPACE.
95         (parse_expression): replace build_word_op with
96         build_charclass_op, add new arguments, accept OP_SPACE
97         and OP_NOTSPACE.
98         * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
99         and OP_NOTSPACE.
100
101         * posix/regcomp.c (peek_token): Don't look back for ( or |
102         to check whether to treat a caret as special.  It fails
103         for the (extended) regex \(^.
104         (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
105         * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
106
107         * posix/regexec.c: Check out of bounds value before shifting.
108
109         * posix/regex_internal.h: Define __attribute for non-gcc.
110
111 2003-09-22  Jakub Jelinek  <jakub@redhat.com>
112
113         * include/atomic.h (atomic_compare_and_exchange_val_rel,
114         atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
115         to avoid confusion.
116
117         * sysdeps/unix/opendir.c: Include string.h.
118
119 2003-09-22  Ulrich Drepper  <drepper@redhat.com>
120
121         * timezone/zdump.c: Update from tzcode2003c.
122         * timezone/zic.c: Likewise.
123         * timezone/leapseconds: Update from tzdata2003c.
124
125 2003-09-19  Ulrich Drepper  <drepper@redhat.com>
126
127         * elf/Makefile ($(objpfx)librtld.os): Create link map also for
128         final build to ease quality control.
129
130         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
131         ld.so, don't include NULL buffer pointer handling.
132
133 2003-09-19  Jakub Jelinek  <jakub@redhat.com>
134
135         * dlfcn/dlopen.c (dlopen): Add static_link_warning.
136
137 2003-09-18  Jakub Jelinek  <jakub@redhat.com>
138
139         * libio/memstream.c (open_memstream): Use _IO_init instead of
140         _IO_old_init.
141
142 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
143
144         * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
145         have to recognize octal and hexadecimal numbers as well.  Simplify
146         function, signs are handled in strtol.
147         * posix/wordexp-test.c: Add tests for octal and hexadecimal
148         numbers in arithmetic expressions.
149
150 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
151
152         * elf/Makefile (distribute): Add tst-alignmod.c.
153         (tests): Add tst-align.
154         (modules-names): Add tst-alignmod.
155         (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
156         $(stack-align-test-flags).
157         ($(objpfx)tst-align): Depend on libdl.
158         ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
159         * elf/tst-align.c: New file.
160         * elf/tst-alignmod.c: New file.
161         * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
162         * misc/tst-tsearch.c: Include tst-stack-align.h.
163         (stack_align_check): New array.
164         (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
165         (main): Report error if stack was not enough aligned
166         in cmp_fn or walk_action.
167         * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
168         * stdlib/tst-qsort.c: Include tst-stack-align.h.
169         (align_check): New var.
170         (compare): Use TEST_STACK_ALIGN () macro.
171         (main): Report error if stack was not enough aligned in compare.
172         * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
173         unneeded -mpreferred-stack-boundary=4.
174         * sysdeps/x86_64/tst-stack-align.h: New file.
175
176         * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
177         (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
178
179 2003-09-17  Philip Blundell  <philb@gnu.org>
180
181         * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
182         (BX): Define.
183         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
184
185         * sysdeps/arm/sysdep.h (DO_RET): New.
186
187         * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
188         required but not defined.  Improve test of error code.
189
190 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
191
192         * sysdeps/i386/Makefile (stack-align-test-flags): Add
193         -malign-double -mpreferred-stack-boundary=4.
194
195 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
196
197         * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
198         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
199
200 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
201
202         * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
203         subdir, add -mpreferred-stack-boundary=4, with few exceptions.
204
205 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
206
207         * Makeconfig (stack-align-test-flags): Set.
208         * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
209         $(stack-align-test-flags).
210         * stdlib/tst-bsearch.c: Include tst-stack-align.h.
211         (align_check): New var.
212         (comp): Use TEST_STACK_ALIGN macro.
213         (do_test): Fail if align_check != 1.
214         * sysdeps/generic/tst-stack-align.h: New file.
215         * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
216         * sysdeps/i386/i686/tst-stack-align.h: New file.
217
218 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
219
220         * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
221         stack which is aligned (mod 16).
222
223 2003-09-17  Uwe Reimann  <Uwe_Reimann@gmx.net>
224             Hans-Peter Nilsson  <hp@axis.com>
225
226         * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
227         R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT.  Clarify comment.
228
229 2003-09-17  Jakub Jelinek  <jakub@redhat.com>
230
231         * dirent/scandir.c: Include bits/libc-lock.h.
232         (struct scandir_cancel_struct): New type.
233         (cancel_handler): New function.
234         (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
235         scandir_cancel_struct.
236
237 2003-09-16  Ulrich Drepper  <drepper@redhat.com>
238
239         * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
240         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
241         Add internal_statvfs.
242         * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
243         instead of including "internal_statvfs.c".
244         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
245         * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
246         Add code to avoid the stat calls on all the reported mount points
247         when we can determine mismatch in advance.
248         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
249         USBDEVFS_SUPER_MAGIC.
250
251 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
252
253         * posix/Versions (sched_getaffinity, sched_setaffinity): Change
254         from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
255
256 2003-09-16  Bruno Haible  <bruno@clisp.org>
257
258         * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
259         invoking msgfmt, not before.
260
261 2003-09-15  Jakub Jelinek  <jakub@redhat.com>
262
263         * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
264         * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
265         $(uses-callbacks).
266         * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
267         * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
268         CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
269         * elf/dl-iteratephdr.c (cancel_handler): New function.
270         (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
271         * elf/link.h (dl_iterate_phdr): Remove __THROW.
272         * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
273         Add $(uses-callbacks).
274         (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
275         * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
276         $(exceptions) to $(uses-callbacks).
277         * Makeconfig (uses-callbacks): Set to $(exceptions).
278         * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
279         $(uses-callbacks).
280         * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
281         Likewise.
282
283 2003-09-15  Andreas Schwab  <schwab@suse.de>
284
285         * sysdeps/m68k/setjmp.c: Add hidden_def.
286
287 2003-09-14  Ulrich Drepper  <drepper@redhat.com>
288
289         * libio/memstream.c (open_memstream): Don't allow wide char operations.
290
291         * dirent/dirent.h: Remove __THROW from scandir.
292
293 2003-09-14  Philip Blundell  <philb@gnu.org>
294
295         * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
296         to be available.
297
298         * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
299
300         * sysdeps/arm/memset.S: Rewrite.
301
302 2003-09-12  Jakub Jelinek  <jakub@redhat.com>
303
304         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
305         (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
306         __SLONGWORD_TYPE otherwise.
307
308 2003-09-14  Ulrich Drepper  <drepper@redhat.com>
309
310         * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
311         (CFLAGS-ftw64.c): Likewise.
312
313 2003-09-13  Ulrich Drepper  <drepper@redhat.com>
314
315         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
316         (CFLAGS-nscd_getgr_r.c): Likewise.
317         (CFLAGS-nscd_gethst_r.c): Likewise.
318
319 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
320
321         * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
322         interfaces.
323
324         * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
325         CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
326         CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
327         * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
328         CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
329         * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
330         Likewise.
331         * misc/Makefile (CFLAGS-err.c): Likewise.
332         * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
333         CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
334         CFLAGS-glob64.c): Likewise.
335         * pwd/Makefile (CFLAGS-getpw.c): Likewise.
336         * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
337         CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
338         * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
339         * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
340
341         * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
342
343         * libio/stdio.h: Remove __THROW from cuserid prototype.
344
345         * locale/loadarchive.c: Use only non-cancelable interfaces.
346         * resolv/herror.c (herror): Likewise.
347
348         * malloc/hooks.c: Before using IO stream mark stream so it uses
349         only non-cancelable interfaces.
350         * malloc/malloc.c: Likewise.
351         * posix/getopt.c: Likewise.
352
353
354 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
355
356         * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
357
358 2003-09-12  Ulrich Drepper  <drepper@redhat.com>
359
360         * stdio-common/stdio_ext.h: Mark most functions with __THROW.
361
362         * misc/err.h: Remove __THROW from all prototypes.
363
364         * posix/getopt.h (__THROW): Define if not already defined.  Add
365         __THROW to the getopt functions.
366
367 2003-09-11  Ulrich Drepper  <drepper@redhat.com>
368
369         * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
370         (CFLAGS-fts.c): Likewise.
371         * io/fcntl.h: Remove __THROW from lockf prototypes.
372         * io/fts.h: Remove most __THROW.
373
374 2003-09-11  H.J. Lu  <hongjiu.lu@intel.com>
375
376         * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
377         (TLS_LD): Likewise.
378         (TLS_GD): Likewise.
379
380 2003-09-11  Jakub Jelinek  <jakub@redhat.com>
381
382         * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
383         _IO_free_backup_area call.
384
385 2003-09-10  Chris Demetriou  <cgd@broadcom.com>
386
387         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
388         syscall invocation.
389         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
390         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
391         Also, only assert off_t size is 4 for N32 and O32, and clean up
392         white space.
393         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
394
395 2003-09-10  Roland McGrath  <roland@redhat.com>
396
397         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
398         Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
399         Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
400         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
401         Reported by Daniel Jacobowitz  <drow@mvista.com>.
402
403 2003-09-10  Jakub Jelinek  <jakub@redhat.com>
404
405         * string/Makefile (strop-tests): Add memccpy.
406         * string/test-memccpy.c: New test.
407
408 2003-09-09  Jakub Jelinek  <jakub@redhat.com>
409
410         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
411         siginfo_t * argument before, change into struct ucontext *.
412         (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
413         (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
414         instead of structure.
415         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
416         Likewise.
417
418 2003-09-09  Ulrich Drepper  <drepper@redhat.com>
419
420         * string/stratcliff.c (main): Check memccpy.
421
422 2003-04-11  Jes Sorensen  <jes@wildopensource.com>
423
424         * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
425         character is found during recovery, use correct register when
426         determining the position of the found character.
427
428 2003-04-01  Jes Sorensen  <jes@wildopensource.com>
429
430         * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
431         avoid segfaults when reading from unmapped pages. For aligned
432         reload and continue, for misaligned, roll back and use byte copy.
433         Save ar.ec on entry and restore on exit.
434
435 2003-09-09  Chris Demetriou  <cgd@broadcom.com>
436
437         * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
438
439 2003-09-08  Chris Demetriou  <cgd@broadcom.com>
440
441         * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
442         the top of the list.
443         * sysdeps/mips/mips64/n64/Implies: Likewise.
444
445 2003-09-08  Roland McGrath  <roland@frob.com>
446
447         * sysdeps/unix/sysv/linux/speed.c
448         (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
449         (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
450         * sysdeps/unix/sysv/linux/bits/termios.h
451         (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
452         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
453         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
454
455 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
456
457         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
458         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
459
460 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
461
462         * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
463         (__u_quad_t): Make unsigned long int if 64-bit.
464         (__SQUAD_TYPE): Make long int if 64-bit.
465         (__UQUAD_TYPE): Make unsigned long int if 64-bit.
466         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
467
468 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
469
470         * Makefile (tests): Run check-c++-types.sh if possible.
471         * scripts/check-c++-types.h: New file.
472         * scripts/data/c++-types-i386-linux-gnu.data: New file.
473
474 2003-09-08  Andreas Jaeger  <aj@suse.de>
475
476         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
477         Use struct sigcontext.
478
479         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
480         Use struct sigcontext.
481         (GET_PC): Adopt.
482         (GET_FRAME): Likewise.
483         (GET_STACK): Likewise.
484
485 2003-09-08  Wolfram Gloger  <wg@malloc.de>
486
487         * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
488         contiguous case.  Bug report from Prem Gopalan <prem@mazunetworks.com>.
489         (mALLOPt): Avoid requirement of C99.
490
491 2003-09-08  Ulrich Drepper  <drepper@redhat.com>
492
493         * libio/bug-ftell.c: Include <sys/types.h>.
494         (main): Mark cp as const.
495
496 2003-09-07  Jakub Jelinek  <jakub@redhat.com>
497
498         * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
499         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
500
501 2003-09-05  Roland McGrath  <roland@redhat.com>
502
503         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
504         and c_ospeed fields.
505         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
506         (cfsetispeed): Set c_ispeed field.
507         * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
508         to match corresponding speed.c code.
509
510 2003-09-06  Ulrich Drepper  <drepper@redhat.com>
511
512         * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
513         narrow character buffer.
514         * libio/Makefile: Add rules to build and run bug-ftell.
515         * libio/bug-ftell.c: New file.
516
517         * stdio-common/vfprintf.c: Don't use the first grouping number twice.
518
519         * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
520         matching the decimal point and possibly leading the thousands
521         separator.  This caused the recognition of thousands separators to
522         always fail.
523
524 2003-09-05  Ulrich Drepper  <drepper@redhat.com>
525
526         * libio/fileops.c (_IO_new_file_overflow): Handle switching to
527         write mode from read in backup buffer.
528         * libio/Makefile (tests): Add bug-ungetc2.
529         * libio/bug-ungetc2.c: New file.
530
531 2003-09-05  Roland McGrath  <roland@redhat.com>
532
533         * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
534
535 2003-09-04  Roland McGrath  <roland@frob.com>
536
537         * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
538         EOPNOTSUPP, or ENOSYS, change it to ENODEV.
539
540 2003-09-04  H.J. Lu  <hongjiu.lu@intel.com>
541
542         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
543         Fix a typo.
544
545 2003-09-05  Andreas Jaeger  <aj@suse.de>
546
547         * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
548         to make it conforming C.
549         * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
550
551         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
552         prototype to use variable argument lists and get the possible one
553         argument via va_arg.
554         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
555         * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
556
557 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
558
559         * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
560
561         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
562         Report correct value for vxfs.
563         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
564
565         * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
566         data.
567
568         * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
569         over the place.  It would be allowed to have these functions as
570         cancellation points but the cleanup would be ugly and a lot of
571         work.
572
573         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
574         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
575
576         * include/fcntl.h (__fcntl_nocancel): Declare.
577         * sysdeps/unix/sysv/linux/fcntl.c: New file.
578         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
579         cancellation if absolutely needed.
580         (__fcntl_nocancel): Define.
581
582         * posix/unistd.h (gethostid): Remove __THROW.  Clarify comment.
583         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
584         -fexceptions.
585         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
586         extend_alloca.
587
588         * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
589         instead of __close.
590
591         * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts.  Remove
592         unnecessary errno handling.
593
594         * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
595         Initialize it in all cases.  Change it to be a bit more like the
596         code we had before.
597
598 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
599
600         * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
601         __builtin_expect.
602         (_IO_file_open): Likewise.  Use close_not_cancel.
603
604 2003-09-04  Ulrich Drepper  <drepper@redhat.com>
605
606         * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
607         * libio/fileops.c [_LIBC]: Remove close macro.
608         (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
609         (_IO_new_file_open): Recognize 'c' flag in mode string.
610         (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
611         (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
612         write_not_cancel.
613         * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
614         * inet/rcmd.c: Likewise.
615         * inet/ruserpass.c: Likewise.
616         * intl/localealias.c: Likewise.
617         * malloc/mtrace.c: Likewise.
618         * misc/getpass.c: Likewise.
619         * misc/getttyent.c: Likewise.
620         * misc/mntent_r.c: Likewise.
621         * misc/getusershell.c: Likewise.
622         * nss/nsswitch.c: Likewise.
623         * resolv/res_hconf.c: Likewise.
624         * resolv/res_init.c: Likewise.
625         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
626         * time/getdate.c: Likewise.
627         * time/tzfile.c: Likewise.
628         * misc/fstab.h: Undo last change.
629         * misc/mntent.h: Likewise.
630         * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
631         CFLAGS-fstab.c definition.
632
633 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
634
635         * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
636
637 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
638
639         * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
640         returning ERANGE if this wasn't intended.
641
642 2003-09-03  Jakub Jelinek  <jakub@redhat.com>
643
644         * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
645         function-like macros.
646
647 2003-09-03  Ulrich Drepper  <drepper@redhat.com>
648
649         * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
650         (CFLAGS-getgrent.c): Likewise.
651         * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
652         (CFLAGS-getpwent.c): Likewise.
653         * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
654         (CFLAGS-getspent.c): Likewise.
655
656         * inet/Makefile: Add -fexceptions to CFLAGS for the various
657         getXXent and getXXbyYY functions.
658
659         * locale/loadlocale.c: Use not-cancelable variants of open, close,
660         and read.
661
662 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
663
664         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
665         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
666         rt_sigpending.
667         * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
668         New prototype.
669         * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
670         unused __syscall_ stubs.
671         * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
672         rt_*.
673         * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
674         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
675         (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
676         * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
677         unused __syscall_ stubs.
678         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
680         (__syscall_*): Remove unused __syscall_ stubs.
681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
682         (__syscall_*): Likewise.
683         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
684         rt_*.
685         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
686         Remove unused __syscall_ stubs.
687         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
688         * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
689         * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
690         * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
691         * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
692         * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
693         * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
694         * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
695         * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
696         * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
697         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
698         __syscall_* prototypes.
699         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
700         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
701         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
702         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
703         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
704         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
705         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
706         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
707         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
708         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
709         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
710         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
711         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
712         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
713         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
714         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
715         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
716         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
717         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
718         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
719         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
720         * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
721         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
722         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
723         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
724         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
725         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
726         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
727         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
728         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
729         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
730         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
731         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
732         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
733         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
734         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
735         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
736         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
737         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
738         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
739         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
740         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
741         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
742         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
743         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
744         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
745         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
746         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
747         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
748         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
749         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
750         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
751         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
752         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
753         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
754         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
755         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
756         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
757         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
758         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
759         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
760         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
761         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
762         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
763         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
764         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
765         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
766         * sysdeps/unix/sysv/linux/execve.c: Likewise.
767         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
768         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
769         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
770         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
771         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
772         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
773         * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
774         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
775         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
776         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
777         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
778         * sysdeps/unix/sysv/linux/readv.c: Likewise.
779         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
780         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
781         * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
782         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
783         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
784         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
785         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
786         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
787         * sysdeps/unix/sysv/linux/poll.c: Likewise.
788         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
789         * sysdeps/unix/sysv/linux/writev.c: Likewise.
790         * sysdeps/unix/sysv/linux/pread.c: Likewise.
791         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
792         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
793         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
794         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
795         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
796         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
797         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
798         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
799         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
800         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
801
802 2003-09-02  Jakub Jelinek  <jakub@redhat.com>
803
804         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
805         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
806         * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
807
808 2003-09-02  Ulrich Drepper  <drepper@redhat.com>
809
810         * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
811
812         * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
813         open, close, and read.
814
815         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
816         *_nocancel name.
817
818         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
819
820         * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
821         * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
822         * libio/oldtmpfile.c (__old_tmpfile): Likewise.
823
824         * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
825
826         * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
827         (CFLAGS-fstatfs.c): Likewise.
828         (CFLAGS-statvfs.c): Likewise.
829         (CFLAGS-fstatvfs.c): Likewise.
830
831 2003-09-01  Ulrich Drepper  <drepper@redhat.com>
832
833         * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
834         * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
835         sysconf.
836         * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
837         (CFLAGS-pathconf.c): Likewise.
838         (CFLAGS-fpathconf.c): Likewise.
839
840         * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
841         * misc/fstab.h: Remove all __THROW.
842         * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
843         (CFLAGS-mntent_r.c): Likewise.
844         * misc/mntent.h: Remove most __THROW.
845
846         * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
847         (CFLAGS-mkstemp64.c): Likewise.
848
849         * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
850         around call to exec_comm.
851         * posix/wordexp.h: Remove __THROW from wordexp.
852         * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
853
854         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
855         not-cancelable functions.
856
857         * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
858         (CFLAGS-iofopen.c): Likewise.
859         (CFLAGS-iofopen64.c): Likewise.
860
861         * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
862         functions.
863         * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
864         * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
865
866         * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
867         * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
868
869 2003-09-01  Thorsten Kukuk  <kukuk@suse.de>
870
871         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
872         NSS_STATUS_SUCCESS if entry was found.
873         (getspent_next_file): Store user in blacklist after entry
874         was found, use innetgr.
875
876 2003-09-01  Jakub Jelinek  <jakub@redhat.com>
877
878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
880
881         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
882         computation for TCB_AT_TP.  Support l_firstbyte_offset != 0 for
883         DTV_AT_TP, optimize.
884
885 2003-08-31  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
886
887         * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
888         posix_fallocate64 at GLIBC_2.3.3.
889         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
890         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
891
892 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
893
894         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
895         functions.
896
897 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
898
899         * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
900         Code by Richard Henderson.
901
902 2003-08-31  Philip Blundell  <philb@gnu.org>
903
904         * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
905         posix_fallocate64 at GLIBC_2.3.3.
906
907 2003-08-31  Ulrich Drepper  <drepper@redhat.com>
908
909         * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
910         * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
911
912 2003-08-30  Jakub Jelinek  <jakub@redhat.com>
913
914         * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
915         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
916         included multiple times.
917         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
918         ptid, tls, ctid arguments to the kernel.
919         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
920         Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
921         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
922         (__libc_sigaction): Use INLINE_SYSCALL instead of
923         __syscall_rt_sigaction.
924         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
925         (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
926         __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
927         __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
928         __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
929         __syscall_rt_sigpending, __syscall_rt_sigprocmask,
930         __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
931         __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
932         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
933         Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
934         rt_sigqueueinfo, rt_sigaction and rt_sigpending.
935         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
936         (__CLONE_SYSCALL_STRING): Define.
937         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
938         CFI directives.
939         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
940         (__CLONE_SYSCALL_STRING): Define.
941         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
942         Define.
943         * sysdeps/unix/sysv/linux/sparc/system.c: New file.
944
945 2003-08-30  Ulrich Drepper  <drepper@redhat.com>
946
947         * sunrpc/rpc/clnt.h: Remove a few __THROW.
948         * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
949         (CFLAGS-key_call.c): Likewise.
950         (CFLAGS-pmap_rmt.c): Likewise.
951         (CFLAGS-clnt_perr.c): Likewise.
952         * sunrpc/rpc/auth.h: Remove serveral __THROW.
953
954         * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
955         (CFLAGS-gethstbynm_r.c): Likewise.
956         (CFLAGS-gethstbynm2_r.c): Likewise.
957         (CFLAGS-rcmd.c): Likewise.
958         * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
959
960         * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
961         (CFLAGS-argp-fmtstream.c): Likewise.
962         * argp/argp.h: Remove a number of __THROW.
963
964         * misc/sys/syslog.h (vsyslog): Remove __THROW.
965
966         * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
967         * misc/getpass.c (getpass): Add cleanup handler to ensure the
968         stream is closed even if the thread is canceled.
969         (call_fclose): New function.
970         * posix/unistd.h: Remove __THROW from getpass prototype.
971
972         * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
973
974         * signal/signal.h (psignal): Remove __THROW.
975         * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
976
977         * misc/Makefile (CFLAGS-error.c): Define.
978         * misc/error.c (error): Disable cancellation handling around the
979         actual output.  The message should in any case be printed.
980         (error_at_line): Likewise.
981
982         * misc/error.h: Protect parameter names with leading __.
983
984 2003-08-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
985
986         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
987
988 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
989
990         * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
991         end.
992
993 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
994
995         * libio/stdio.h: Remove a few more __THROW.
996
997 2003-08-29  Jakub Jelinek  <jakub@redhat.com>
998
999         * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
1000         fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
1001         getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
1002         iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
1003         iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
1004         iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
1005         ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
1006         oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
1007         oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
1008         putwchar.c and rewind.c with exceptions.
1009         * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
1010         _IO_release_lock): Define.
1011         * libio/fileops.c (_IO_new_file_underflow): Use it.
1012         * libio/fputc.c (fputc): Likewise.
1013         * libio/fputwc.c (fputwc): Likewise.
1014         * libio/freopen64.c (freopen64):
1015         * libio/freopen.c (freopen): Likewise.
1016         * libio/fseek.c (fseek): Likewise.
1017         * libio/fseeko64.c (fseeko64): Likewise.
1018         * libio/fseeko.c (fseeko): Likewise.
1019         * libio/ftello64.c (ftello64): Likewise.
1020         * libio/ftello.c (ftello): Likewise.
1021         * libio/fwide.c (fwide): Likewise.
1022         * libio/getc.c (_IO_getc): Likewise.
1023         * libio/getchar.c (getchar): Likewise.
1024         * libio/getwc.c (_IO_getwc): Likewise.
1025         * libio/getwchar.c (getwchar): Likewise.
1026         * libio/iofclose.c (_IO_new_fclose):
1027         * libio/iofflush.c (_IO_fflush): Likewise.
1028         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
1029         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1030         * libio/iofgets.c (_IO_fgets): Likewise.
1031         * libio/iofgetws.c (fgetws): Likewise.
1032         * libio/iofputs.c (_IO_fputs): Likewise.
1033         * libio/iofputws.c (fputws): Likewise.
1034         * libio/iofread.c (_IO_fread): Likewise.
1035         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
1036         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
1037         * libio/ioftell.c (_IO_ftell): Likewise.
1038         * libio/iofwrite.c (_IO_fwrite): Likewise.
1039         * libio/iogetdelim.c (_IO_getdelim): Likewise.
1040         * libio/iogets.c (_IO_gets): Likewise.
1041         * libio/ioputs.c (_IO_puts): Likewise.
1042         * libio/ioseekoff.c (_IO_seekoff): Likewise.
1043         * libio/ioseekpos.c (_IO_seekpos): Likewise.
1044         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1045         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
1046         * libio/ioungetc.c (_IO_ungetc): Likewise.
1047         * libio/ioungetwc.c (ungetwc): Likewise.
1048         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1049         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
1050         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
1051         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
1052         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
1053         * libio/peekc.c (_IO_peekc_locked): Likewise.
1054         * libio/putc.c (_IO_putc): Likewise.
1055         * libio/putchar.c (putchar): Likewise.
1056         * libio/putwc.c (putwc): Likewise.
1057         * libio/putwchar.c (putwchar): Likewise.
1058         * libio/rewind.c (rewind): Likewise.
1059         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
1060
1061 2003-08-29  Ulrich Drepper  <drepper@redhat.com>
1062
1063         * signal/signal.h: sighold, sigrelse, sigignore, sigset were
1064         available in XPG4.2.
1065
1066 2003-08-27  Phil Knirsch  <pknirsch@redhat.com>
1067             Jakub Jelinek  <jakub@redhat.com>
1068
1069         * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
1070         big endian arches.  Don't read beyond end of fds_bits array.
1071
1072 2003-04-27  Bruno Haible  <bruno@clisp.org>
1073
1074         * manual/message.texi (Advanced gettext functions): Add information
1075         about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
1076         Add section about Lithuanian, reported by Ricardas Cepas
1077         <rch@richard.eu.org>.
1078         Add information about Croatian.
1079         Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
1080         Remove remark about continuation lines that is not true for PO files.
1081         Fix formula for Slovenian, reported by Roman Maurer
1082         <roman.maurer@amis.net>.
1083
1084 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
1085
1086         * math/math_private.h: Declare __copysignf.
1087         * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
1088         copysignf.
1089
1090         * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
1091         __signbit, and __signbitl inline functions.
1092
1093         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
1094         HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
1095
1096         * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
1097         * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
1098
1099 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
1100
1101         * inet/inet_mkadr.c (inet_makeaddr): Optimize.
1102
1103 2003-08-27  Ulrich Drepper  <drepper@redhat.com>
1104
1105         * include/stdio.h: Add declarations for __builtin_fwrite and
1106         __builtin_fwrite_unlocked.
1107
1108 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
1109
1110         * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
1111         fits into allocation.  Add padding on 32-bit arches so that
1112         dirp->data is enough aligned for struct dirent64.
1113         Avoid clearing of the buffer, just clear DIR structure.
1114
1115 2003-08-26  Ulrich Drepper  <drepper@redhat.com>
1116
1117         * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
1118         * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
1119
1120 2003-08-26  Steven Munroe  <sjmunroe@us.ibm.com>
1121
1122         * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
1123
1124 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
1125
1126         * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
1127         to match format string.
1128         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
1129         __old_buf.
1130         (__new_semctl): Shut up warning.
1131         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
1132         (_dl_string_hwcap): Add __attribute__ ((always_inline)).
1133
1134 2003-08-26  Jakub Jelinek  <jakub@redhat.com>
1135
1136         * elf/ldconfig.c (search_dir): When checking for GNU-style .so
1137         link file use the real file name, not the resolved name we got by
1138         following the symlinks.
1139
1140 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
1141
1142         * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
1143         if the object size is large enough.
1144
1145 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
1146
1147         * elf/ldconfig.c (search_dir): Treat symlink as regular file
1148         if it won't point to itself unless it is .so symlink for the linker.
1149
1150 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
1151
1152         * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
1153         use _mode if _IO_fwide_maybe_incompatible.
1154         * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
1155         the compatibility test.
1156
1157 2003-08-25  Jakub Jelinek  <jakub@redhat.com>
1158
1159         * elf/cache.c (save_cache): Don't write beyond end of file_entries
1160         buffer.
1161         Duplicate last old cache entry if the count would be odd.
1162
1163 2003-08-25  Andreas Jaeger  <aj@suse.de>
1164
1165         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
1166         __LONG_LONG_PAIR to long.
1167
1168 2003-08-25  Philip Blundell  <philb@gnu.org>
1169
1170         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
1171         (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
1172
1173 2003-08-18  Alfred M. Szmidt  <ams@kemisten.nu>
1174
1175         * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
1176         and use __libc_cleanup_region_end instead.
1177
1178 2003-08-25  Ulrich Drepper  <drepper@redhat.com>
1179
1180         * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
1181
1182 2003-08-22  Ulrich Drepper  <drepper@redhat.com>
1183
1184         * io/fcntl.h (posix_fallocate): Change type of third parameter to
1185         off_t.
1186         (posix_fallocate64): Change type of third parameter to off64_t.
1187         * sysdeps/generic/posix_fallocate.c: Adjust for type change.
1188         * sysdeps/posix/posix_fallocate.c: Likewise.
1189         * sysdeps/generic/posix_fallocate64.c: Likewise.
1190         * sysdeps/posix/posix_fallocate64.c: Likewise.  Add compatibility
1191         code for 32-bit platforms.
1192         * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
1193         posix_fallocate64.
1194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
1195         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1196         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1197
1198 2003-08-19  Ulrich Drepper  <drepper@redhat.com>
1199
1200         * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
1201         the type, not to name.
1202
1203         * stdio-common/test-vfprintf.c (main): Don't write temporary file
1204         into source directory.
1205
1206         * malloc/malloc.c (_int_free): Add cheap test for some invalid
1207         block sizes.
1208
1209         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
1210         syscall name.
1211
1212 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
1213
1214         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
1215         into EINVAL.
1216
1217 2003-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1218
1219         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
1220         (elf_machine_lazy_rel): Likewise.
1221
1222 2003-08-18  Art Haas  <ahaas@airmail.net>
1223
1224         * malloc/malloc.h: Remove unneeded ';' where closing the C++
1225         extern block.
1226
1227 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
1228
1229         * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
1230         loading big binaries where @gprel(sym) cannot be handled in 'add'
1231         but instead has to be used with 'movl'.
1232
1233 2003-08-17  Juergen Kreileder <jk@blackdown.de>
1234             Andreas Jaeger  <aj@suse.de>
1235
1236         * sysdeps/x86_64/bits/byteswap.h: New file.
1237
1238 2003-08-17  Andreas Jaeger  <aj@suse.de>
1239
1240         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
1241
1242 2003-08-16  Jakub Jelinek  <jakub@redhat.com>
1243
1244         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
1245         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1246         * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
1247         PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1248         * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
1249         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1250         * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
1251         ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
1252         * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
1253         ret_ERRVAL): Define.
1254         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
1255         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1256         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
1257         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1258         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
1259         Define.
1260         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
1261         PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1262         * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
1263
1264         * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
1265         posix_fadvise64_64): Remove.
1266         * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
1267         V flag.
1268         * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1269         Likewise.
1270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
1271         (posix_fadvise64): Likewise.
1272         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1273         (posix_fadvise64): Likewise.
1274         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1275         (posix_fadvise64): Likewise.
1276         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1277         Likewise.
1278         * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
1279         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
1280         (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
1281         (__posix_fadvise64_l32): New function.
1282         * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
1283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
1284         posix_fadvise64@@GLIBC_2.3.3.
1285         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1286         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1287         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
1288         error value.
1289         * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
1290
1291         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1292         (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
1293
1294 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
1295
1296         * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
1297         (elf_machine_matches_host): Remove weak extern stuff.
1298         Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
1299         (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
1300         stuff.  Use GL(dl_hwcap) unconditionally.
1301
1302 2003-08-16  Alan Modra  <amodra@bigpond.net.au>
1303
1304         * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
1305         __libc_start_main branch.
1306
1307 2003-08-16  Jakub Jelinek <jakub@redhat.com>,
1308             Andreas Jaeger  <aj@suse.de>
1309
1310         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
1311         instead of setting errno.
1312         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1313
1314 2003-08-16  Andreas Jaeger  <aj@suse.de>
1315
1316         * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
1317         * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
1318
1319 2003-08-15  Ulrich Drepper  <drepper@redhat.com>
1320
1321         * io/fcntl.h (posix_fadvise64): Change type of third parameter to
1322         off_t.
1323         * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
1324         * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
1325         description indicating the error value is returned, not -1.
1326         * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
1327         __ASSUME_FADVISE64_64_SYSCALL.
1328         * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
1329         posix_madvise in one file.  Have posix_madvise defined with error
1330         value returned.
1331         Define posix_fadvise64_64 entry.  Add version info to posix_fadvise64
1332         entry.
1333         * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
1334         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
1335         PSEUDO_END_ERRVAL, and ret_ERRVAL.
1336         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1337         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1338         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
1339         posix_fadvise64.
1340
1341         * posix/Makefile (routines): Add posix_madvise.
1342         * sysdeps/generic/madvise.c: Don't define posix_madvise.
1343         * sysdeps/generic/posix_madvise.c: New file.
1344         * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
1345         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
1346         Add posix_fadvise64_64.
1347
1348 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
1349
1350         * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
1351         3.0, not for !gcc or gcc < 3.0.
1352
1353 2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
1354
1355         * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
1356         Address passed to test_in_mod1 and test_in_mod2 without casting.
1357         * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
1358         (test_in_mod1): Cast dlsym loaded value to same type as mainp.
1359         * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
1360         (test_in_mod2): Cast dlsym loaded value to same type as mainp.
1361
1362 2003-08-15  Jakub Jelinek  <jakub@redhat.com>
1363
1364         * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
1365         Change quotes before using [].
1366
1367         * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
1368
1369         * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
1370         Renamed to...
1371         (__sparc32_atomic_locks): ...this.  Change into 64-byte array.
1372         (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
1373         argument.  Select one of 64 locks from address bits.
1374         (atomic_compare_and_exchange_val_acq,
1375         atomic_compare_and_exchange_bool_acq): Pass memory address to
1376         __sparc32_atomic_do_{,un}lock.
1377
1378 2003-08-14  Ulrich Drepper  <drepper@redhat.com>
1379
1380         * assert/assert.h (assert): Use !! in front of expression to allow
1381         use of pointers.
1382
1383         * iconvdata/cp932.c: Fixed checking of a few border of code areas.
1384         Changed conversion of JIS X 0201 from using a table to calculating.
1385         * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
1386         conversion routine.  Changed CHARSET_NAME definition from EUCJP-MS to
1387         EUC-JP-MS.
1388         * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
1389         * iconvdata/CP932.irreversible: New file.
1390         * iconvdata/EUC-JP-MS.irreversible: New file.
1391         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1392
1393 2003-08-13  Ulrich Drepper  <drepper@redhat.com>
1394
1395         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
1396
1397         * elf/Makefile: Use LC_ALL=C in a few cases where we call external
1398         text processing tools.
1399
1400         * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
1401         element unless BROKEN_THREAD_SIGNALS is defined.
1402         (struct requestlist): Likewise.
1403         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
1404         caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
1405         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
1406         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
1407         parameter unless BROKEN_THREAD_SIGNALS is defined.  Adjust callers.
1408         Pass current PID to __aio_sigqueue.
1409         * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
1410         call.  Don't initialize caller_pid field of waitlist element.
1411
1412 2003-08-12  Jakub Jelinek  <jakub@redhat.com>
1413
1414         * libio/libioP.h (_IO_vtable_offset): Define.
1415         * libio/freopen.c (freopen): Use it.
1416         * libio/ioputs.c (_IO_puts): Likewise.
1417         * libio/freopen64.c (freopen64): Likewise.
1418         * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
1419         Likewise.
1420         * libio/iofclose.c (_IO_new_fclose): Likewise.
1421         * libio/iofputs.c (_IO_fputs): Likewise.
1422         * libio/ioftell.c (_IO_ftell): Likewise.
1423         * libio/iofwrite.c (_IO_fwrite): Likewise.
1424         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
1425         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
1426         * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
1427         * stdio-common/vfscanf.c (ORIENT): Likewise.
1428
1429 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
1430
1431         * assert/assert.h: Use __builtin_expect in assert and
1432         assert_perror definitions if possible.
1433
1434 2003-08-07  Jakub Jelinek  <jakub@redhat.com>
1435
1436         * sysdeps/generic/ldsodefs.h (_rtld_global): Add
1437         _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
1438         * elf/rtld.c (rtld_lock_default_lock_recursive,
1439         rtld_lock_default_unlock_recursive): New functions.
1440         (dl_main): Initialize _dl_rtld_lock_recursive and
1441         _dl_rtld_unlock_recursive.
1442
1443 2003-08-05  Jakub Jelinek  <jakub@redhat.com>
1444
1445         * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
1446         config_file directories instead of prepending.
1447
1448 2003-08-02  Ulrich Drepper  <drepper@redhat.com>
1449
1450         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1451         __ASSUME_CLONE_STOPPED.
1452
1453 2003-08-01  Ulrich Drepper  <drepper@redhat.com>
1454
1455         * sysdeps/generic/bits/libc-lock.h
1456         (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
1457
1458 2003-08-01  Roland McGrath  <roland@frob.com>
1459
1460         * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
1461
1462 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
1463
1464         * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
1465         instead of __SWORD_TYPE.
1466         * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1467         * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
1468         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
1469         Define.
1470         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
1471         Define.
1472         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
1473         Define.
1474         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
1475
1476         * dlfcn/dlerror.c (once): New.
1477         (dlerror): Call __libc_once.
1478         (_dlerror_run): Remove once.
1479
1480         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1481         Sync with 2.5.7 and 2.5.73 kernel changes.
1482
1483         * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
1484         * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
1485         formats to size_t.
1486         * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
1487         * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
1488         * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
1489         * gmon/tst-sprofil.c (main): Add parens to shut up warning.
1490         * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
1491         difference argument.
1492         * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
1493         format to wint_t.
1494         * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
1495         %d format and cast expected value to int.
1496         * sysdeps/generic/libc-start.c (STATIC): Add
1497         __attribute__((always_inline) if LIBC_START_MAIN is already defined.
1498         * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
1499         to ieee_float_shape_type.
1500         (__sqrt): Avoid type punning.
1501         * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
1502         to ieee_float_shape_type.
1503         (__sqrtf): Avoid type punning.
1504         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
1505         refsym if in dl-conflict.c.
1506         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1507         * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
1508         (__new_semctl): Shut up warning.
1509         * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
1510         (__new_semctl): Shut up warning.
1511         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
1512         Change old into union of __old_shmid_ds and __old_shminfo structs.
1513         Adjust all users.
1514         * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
1515
1516         * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
1517         modtime computation.
1518         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
1519         * sysdeps/posix/utimes.c (__utimes): Likewise.
1520
1521 2003-07-30  Jakub Jelinek  <jakub@redhat.com>
1522
1523         * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
1524         call dl_signal_error directly.  If already relocated, call
1525         GL(dl_init_static_tls) directly, otherwise queue it for later.
1526         (CHECK_STATIC_TLS): Undo 2003-07-24 change.
1527         * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
1528         * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
1529         for all static TLS initializations delayed in _dl_allocate_static_tls.
1530         * elf/dl-support.c (_dl_init_static_tls): New variable.
1531         * include/link.h (struct link_map): Add l_need_tls_init.
1532         * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
1533         (_dl_nothread_init_static_tls): New prototype.
1534         (_dl_allocate_static_tls): Adjust prototype.
1535
1536         * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
1537
1538 2003-07-31  Alexandre Oliva  <aoliva@redhat.com>
1539
1540         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1541         elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
1542         reloc_addr is aligned.
1543         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
1544         elf_machine_rela_relative): Adjust.
1545         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
1546         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1547         * sysdeps/cris/dl-machine.h (elf_machine_rela,
1548         elf_machine_rela_relative): Adjust.
1549         * sysdeps/hppa/dl-machine.h (elf_machine_rela,
1550         elf_machine_rela_relative): Adjust.
1551         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
1552         elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
1553         * sysdeps/ia64/dl-machine.h (elf_machine_rela,
1554         elf_machine_rela_relative): Adjust.
1555         * sysdeps/m68k/dl-machine.h (elf_machine_rela,
1556         elf_machine_rela_relative): Adjust.
1557         * sysdeps/mips/dl-machine.h (elf_machine_rela,
1558         elf_machine_rela_relative): Adjust.
1559         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
1560         elf_machine_rela_relative): Adjust.
1561         * sysdeps/powerpc/powerpc64/dl-machine.h
1562         (elf_machine_rela_relative, elf_machine_rela): Adjust.
1563         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
1564         elf_machine_rela_relative): Adjust.
1565         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
1566         elf_machine_rela_relative): Adjust.
1567         * sysdeps/sh/dl-machine.h (elf_machine_rela,
1568         elf_machine_rela_relative): Adjust.
1569         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1570         elf_machine_rela_relative): Adjust.
1571         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1572         elf_machine_rela_relative): Adjust.
1573         * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
1574         elf_machine_rela_relative): Adjust.
1575
1576 2003-07-29  Ulrich Drepper  <drepper@redhat.com>
1577
1578         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
1579         alignment of TCB used before the last change so that it matches
1580         ld's output for IE code.
1581
1582 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
1583
1584         * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
1585         __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
1586         break strict-aliasing rules" warnings.
1587
1588 2003-07-29  Roland McGrath  <roland@redhat.com>
1589
1590         * elf/Makefile: Revert accidental changes in last commit.
1591         * elf/dl-support.c: Likewise.
1592
1593         * rt/tst-timer2.c: New file.
1594         * rt/Makefile (tests): Add it.
1595
1596 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
1597
1598         * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
1599
1600 2003-07-29  Roland McGrath  <roland@redhat.com>
1601
1602         * elf/Makefile (tests) [$(build-shared) = yes]:
1603         Depend on $(test-modules).
1604         * dlfcn/Makefile: Likewise.
1605
1606 2003-07-28  Roland McGrath  <roland@redhat.com>
1607
1608         * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
1609         Use that instead of `typedef' when using __*_TYPE macros in rhs.
1610
1611         * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
1612         * elf/tst-tlsmod14a.c: Likewise.
1613
1614         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
1615         before <linux/sysctl.h>.
1616
1617 2003-07-27  Ulrich Drepper  <drepper@redhat.com>
1618
1619         * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
1620         * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
1621         * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
1622         * sysdeps/unix/syscalls.list: umask syscall never fails.
1623
1624 2003-07-27  Andreas Jaeger  <aj@suse.de>
1625
1626         * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
1627
1628 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
1629
1630         * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
1631         Include bits/a.out.h.
1632         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1633         bits/a.out.h.
1634         * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
1635         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
1636         * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
1637         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
1638         * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
1639         * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
1640         * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
1641         * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
1642
1643 2003-07-24  Jakub Jelinek  <jakub@redhat.com>
1644
1645         * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
1646         if aiocbp != NULL and has already completed.  Return -1/EINVAL if
1647         aiocbp->aio_fildes does not match fildes.
1648
1649 2003-07-24  Ulrich Drepper  <drepper@redhat.com>
1650
1651         * timezone/zic.c (rpytime): Replace cheap overflow check with a
1652         functioning one.
1653
1654         * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
1655         * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
1656         Fix calculation of offsets to take misalignment of first byte in
1657         file into account.
1658         * elf/dl-load.c (_dl_map_object_from_fd): Initialize
1659         l_tls_firstbyte_offset field.
1660         * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
1661         * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
1662         Take l_tls_firstbyte_offset information into account.
1663         (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
1664         * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
1665         * elf/Makefile: Add rules to build and run tst-tls14.
1666         * elf/tst-tls14.c: New file.
1667         * elf/tst-tlsmod14a.c: New file.
1668         * elf/tst-tlsmod14b.c: New file.
1669
1670 2003-07-23  Jakub Jelinek  <jakub@redhat.com>
1671
1672         * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
1673         (lio_listio): Use it.
1674         * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
1675         after few defines to avoid duplication.
1676
1677 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
1678
1679         * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
1680         * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1681         Likewise.
1682         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
1683         Add libc_hidden_def.
1684         * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
1685         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1686         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
1687         * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
1688         __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
1689         * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
1690         * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
1691         change.
1692         * sysdeps/generic/unwind.inc: Removed.
1693
1694         * include/resolv.h (__resp): Declare.  Define to __libc_resp
1695         if in libc.so.
1696         (_res): If USE___THREAD, define to (*__resp).
1697         * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
1698         even if USE___THREAD.
1699         (__resp): New __thread variable.
1700         (__libc_resp): New alias.
1701         * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
1702         USE_TLS && HAVE___THREAD.  Export __resp@@GLIBC_PRIVATE.
1703         * sysdeps/generic/res-state.c (__res_state): Return __resp
1704         if USE___THREAD.
1705
1706 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
1707
1708         * elf/dl-support.c (_dl_hwcap): New variable.
1709         (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
1710
1711         * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
1712         and <dl-procinfo.h>.
1713         (__feclearexcept): Clear MXCSR if needed.
1714         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1715
1716         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
1717         that newer hardware needs more than these macros.
1718
1719         * sysdeps/i386/setfpucw.c: New file.
1720
1721 2003-07-22  Jakub Jelinek  <jakub@redhat.com>
1722
1723         * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
1724         * elf/ldconfig.c: Include dl-procinfo.c.
1725         (PROCINFO_CLASS): Define.
1726         * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
1727         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
1728         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
1729         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
1730         Define if not yet defined.  Use it instead of EXTERN.  Undefine
1731         at the end of the file.
1732         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
1733         Likewise.
1734         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
1735         (PROCINFO_CLASS): Likewise.
1736         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
1737         (PROCINFO_CLASS): Likewise.
1738
1739 2003-07-22  H.J. Lu  <hongjiu.lu@intel.com>
1740
1741         * elf/ldconfig.c (main): Issue a fatal error if relative path
1742         is used to build cache.
1743
1744 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
1745
1746         * elf/readlib.c (process_file): Avoid possible overflow in assignment.
1747
1748 2003-07-21  Art Haas  <ahaas@airmail.net>
1749
1750         * manual/charset.texi (Converting a Character): Fix example code so a
1751         valid pointer is returned.
1752
1753 2003-07-22  Andreas Jaeger  <aj@suse.de>
1754
1755         * elf/readlib.c (process_file): Check that file is a shared
1756         object.
1757
1758         * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
1759         will not optimize it away.
1760         (__DTOR_END__): Likewise.
1761         (__CTOR_END__): Likewise.
1762
1763         * include/libc-symbols.h (_elf_set_element): Use attribute used so
1764         that gcc will not optimize it away.
1765         (link_warning): Likewise.
1766
1767 2003-07-22  Ulrich Drepper  <drepper@redhat.com>
1768
1769         * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
1770         * wcsmbs/Makefile (tests): Add tst-wcpncpy.
1771         * wcsmbs/tst-wcpncpy.c: New file.
1772
1773 2003-07-21  Ulrich Drepper  <drepper@redhat.com>
1774
1775         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
1776
1777         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
1778         stmxcsr and ldmxcsr.
1779
1780         * Makerules (build-module-helper): Add -z defs unless explicitly said
1781         not to do it.
1782         * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
1783         which has undefined symbols.
1784         * elf/Makefile: Likewise.
1785
1786         * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
1787         * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1788         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1789         * sysdeps/i386/fpu/fesetround.c: Likewise.
1790         * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1791
1792 2003-07-21  HJ Lu  <hongjiu.lu@intel.com>
1793
1794         * elf/ldconfig.c (search_dir): Treat symlink as regular file
1795         if it won't point to itself.
1796
1797 2003-07-20  Ulrich Drepper  <drepper@redhat.com>
1798
1799         * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
1800
1801 2003-07-20  Andreas Jaeger  <aj@suse.de>
1802
1803         * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
1804         STANDARD_TO_LOOP_ERR_HANDLER.
1805         * iconvdata/euc-jp-ms.c (BODY): Likewise.
1806
1807 2003-07-19  Ulrich Drepper  <drepper@redhat.com>
1808
1809         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
1810
1811         * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
1812
1813 2003-07-16  Daniel Jacobowitz  <drow@mvista.com>
1814             Andreas Jaeger  <aj@suse.de>
1815
1816         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
1817         256K, remove unneeded declaration of __getpagesize.
1818
1819 2003-07-16  Andreas Schwab  <schwab@suse.de>
1820
1821         * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
1822
1823 2003-07-15  Ulrich Drepper  <drepper@redhat.com>
1824
1825         * io/test-utime.c (main): Make test yet more robust.
1826
1827 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
1828
1829         More cancellation handling fixups.
1830         * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
1831         * sysdeps/generic/not-cancel.h: Likewise.
1832         * catgets/open_catalog.c: Use not-cancelable syscalls.
1833         * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
1834         * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
1835         * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
1836         * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
1837         * io/fcntl.h: Don't mark posix_fallocate with __THROW.
1838         * libio/fileops.c: Use not-cancelable syscalls for fclose.
1839         * libio/iopopen.c: Use no-cancelable syscalls.
1840         * libio/stdio.h: Mark popen and pclose with __THROW again.
1841         * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
1842         * misc/syslog.c: Fix locking and cancellation cleanup handling.
1843         * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
1844         * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
1845         CFLAGS-tempname.c): Add -fexceptions.
1846         * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
1847         * string/string.h: Mark strerror and strerror_r with _THROW again.
1848         * sysdeps/generic/unwind.inc: New file.  Copied from gcc.
1849         * sysdeps/generic/unwind-dw2.c: Update from gcc version.  Remove
1850         #ifs since we now need all the code compiled.
1851         * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
1852         * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
1853         * sysdeps/unix/opendir.c: Likewise.
1854
1855         * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
1856         Add rule for EUC-JP-MS dependency.
1857         * iconvdata/cp932.c: New file.
1858         * iconvdata/eucjp-ms.c: New file.
1859         * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
1860         Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
1861
1862 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
1863
1864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
1865         cfi directives.
1866
1867 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1868
1869         * sysdeps/unix/sysv/linux/kernel-features.h
1870         (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
1871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
1872
1873         * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
1874
1875 2003-07-14  Ulrich Drepper  <drepper@redhat.com>
1876
1877         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1878         __ASSUME_TGKILL for Alpha appropriately.
1879
1880 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
1881
1882         * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
1883         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
1884         Likewise.
1885         * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
1886         Likewise.
1887
1888         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1889         __ASSUME_UTIMES for x86 and kernels > 2.5.75.
1890
1891         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
1892         second parameter == NULL.
1893         * sysdeps/unix/sysv/linux/utimes.c: New file.
1894
1895 2003-07-12  Jakub Jelinek  <jakub@redhat.com>
1896
1897         * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
1898         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
1899         a typo.
1900
1901 2003-07-12  Ulrich Drepper  <drepper@redhat.com>
1902
1903         * time/sys/time.h: Namespace cleanup.
1904         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1905         __ASSUME_UTIMES for the architectures which always had the syscall.
1906         * sysdeps/unix/sysv/linux/futimes.c: New file.
1907
1908 2003-07-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1909
1910         * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
1911         register across CENABLE and CDISABLE.
1912
1913 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1914
1915         * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
1916         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1917         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1918         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
1919         int before assigning to max to avoid warnings.
1920
1921 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
1922
1923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
1924         cfi directives.
1925         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
1926         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1927
1928 2003-07-10  Jakub Jelinek  <jakub@redhat.com>
1929
1930         * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
1931         .data.rel.ro.local to "aw".
1932
1933 2003-07-10  Ulrich Drepper  <drepper@redhat.com>
1934
1935         * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
1936         * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
1937         (PIC-ccflag): Define.
1938
1939 2003-07-04  Jakub Jelinek  <jakub@redhat.com>
1940
1941         * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
1942         if PIC.
1943         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1944
1945 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
1946
1947         * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
1948         into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
1949
1950 2003-07-07  Ulrich Drepper  <drepper@redhat.com>
1951
1952         * sysdeps/unix/sysv/linux/kernel-features.h: Version
1953         __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
1954
1955         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1956         compilation with HAVE_AUX_SECURE defined.
1957
1958 2003-07-05  Richard Henderson  <rth@redhat.com>
1959
1960         * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
1961
1962 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
1963
1964         * configure.in: Also check for .cfi_rel_offset pseudo-op.
1965
1966 2003-07-03  Jakub Jelinek  <jakub@redhat.com>
1967
1968         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
1969         typo.
1970
1971 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
1972
1973         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
1974         Define.
1975         * sysdeps/unix/sysv/linux/prof-freq.h: New file.
1976
1977 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
1978
1979         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
1980         decl and use with #ifdef NEED_DL_SYSINFO.
1981
1982 2003-07-02  Ulrich Drepper  <drepper@redhat.com>
1983
1984         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
1985         GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
1986         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1987         __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
1988         vsyscall DSO was added.
1989
1990         * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
1991         depending on selected standard.
1992         (NGROUPS_MAX): Define to 8 if not defined.
1993
1994 2003-07-02  Andreas Jaeger  <aj@suse.de>
1995
1996         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
1997
1998 2003-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1999
2000         * malloc/arena.c (arena_get2): Add atomic_write_barrier.
2001         * malloc/thread-m.h: Include <atomic.h>.
2002         (atomic_full_barrier): Provide default.
2003         (atomic_read_barrier): Likewise.
2004         (atomic_write_barrier): Likewise.
2005         * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
2006
2007 2003-06-30  Ulrich Drepper  <drepper@redhat.com>
2008
2009         * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
2010
2011 2003-06-30  Richard Henderson  <rth@redhat.com>
2012
2013         * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
2014         Invert the sense of the return value.
2015         (__arch_exchange_16_int): Fix paste-o.
2016         (__arch_exchange_{32,64}_int): Fix think-o.
2017
2018         * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
2019
2020 2003-06-30  Richard Henderson  <rth@redhat.com>
2021
2022         * include/sys/resource.h (__getrusage): Mark hidden.
2023         * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
2024         * include/sys/wait.h (__wait4): Likewise.
2025
2026 2003-06-17  Guido Guenther  <agx@sigxcpu.org>
2027
2028         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
2029         case.
2030         (xstat_conv): Rename to __xstat_conv and remove static inline.
2031         (xstat64_conv): Likewise.
2032
2033 2003-06-29  Ulrich Drepper  <drepper@redhat.com>
2034
2035         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
2036         values which cannot be handled in one nanosleep call.
2037
2038 2003-06-25  Alfred M. Szmidt  <ams@kemisten.nu>
2039
2040         * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
2041         (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
2042
2043         * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
2044
2045 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
2046
2047         * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
2048         fix typo.
2049
2050 2003-06-26  Steven Munroe  <sjmunroe@us.ibm.com>
2051
2052         * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
2053         Conditionalize function definitions that use struct kernel_stat.
2054         * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
2055         * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
2056         * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
2057
2058 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
2059
2060         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
2061         implementation.
2062
2063 2003-06-07  Thorsten Kukuk  <kukuk@suse.de>
2064
2065         * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
2066         (getgrent_next_file): Don't store group name to early in blacklist.
2067
2068         * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
2069         and use memcpy instead of strcpy.
2070
2071 2003-06-28  Ulrich Drepper  <drepper@redhat.com>
2072
2073         * nis/nss_compat/compat-grp.c: Optimize several little things.  Use
2074         stream unlocked.
2075         * nis/nss_compat/compat-initgroups.c: Likewise.
2076         * nis/nss_compat/compat-pwd.c: Likewise.
2077         * nis/nss_compat/compat-spwd.c: Likewise.
2078
2079 2003-06-27  Thorsten Kukuk  <kukuk@suse.de>
2080
2081         * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
2082         functions, dlopen corresponding NSS module instead.
2083
2084 2003-06-27  Jeroen Dekkers  <jeroen@dekkers.cx>
2085
2086         * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
2087         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2088         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2089         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2090
2091 2003-06-27  Ulrich Drepper  <drepper@redhat.com>
2092
2093         * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
2094
2095 2003-06-26  Roland McGrath  <roland@frob.com>
2096
2097         * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
2098         * sysdeps/mach/configure: Regenerated.
2099         * sysdeps/mach/hurd/times.c (times_init): Function removed.
2100         (__times): Assume `creation_time' field is available.
2101         * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
2102         Don't append set-init.
2103         * sysdeps/mach/hurd/set-init.c: File removed.
2104
2105 2003-06-26  Roland McGrath  <roland@redhat.com>
2106
2107         * elf/elf.h (AT_SECURE): New macro.
2108         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
2109         set __libc_enable_secure.
2110         (_dl_show_auxv): Add AT_SECURE to name table.
2111         * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
2112         __libc_enable_secure and __libc_enable_secure_decided.
2113         * sysdeps/unix/sysv/linux/ldsodefs.h
2114         [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
2115         * sysdeps/unix/sysv/linux/kernel-features.h
2116         [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
2117
2118 2003-06-26  Ulrich Drepper  <drepper@redhat.com>
2119
2120         * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
2121         boundary test to take rounding of nanoseconds into account.
2122
2123         * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
2124         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2125         * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
2126         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2127         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2128         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2129         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2130
2131 2003-06-26  Andreas Schwab  <schwab@suse.de>
2132
2133         * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
2134         * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
2135         * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
2136
2137 2003-06-17  Thorsten Kukuk  <kukuk@suse.de>
2138
2139         * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
2140         * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
2141         dlopen corresponding NSS module instead.
2142         * nis/nss_compat/compat-pwd.c: Likewise.
2143         * nis/nss_compat/compat-spwd.c: Likewise.
2144         * nis/nss_compat/compat-initgroups.c: Disabled for now.
2145         * nss/Versions: Export __nss_lookup_function.
2146
2147 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
2148
2149         * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
2150         for the SH architecture.
2151
2152 2003-06-25  Thorsten Kukuk  <kukuk@suse.de>
2153
2154         * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
2155
2156 2003-06-25  Andreas Jaeger  <aj@suse.de>
2157
2158         * stdlib/tst-strtod.c (main): Declare constant long double as
2159         suggested by Jakub Jelinek and Andreas Schwab.
2160
2161         * posix/tst-nanosleep.c: Include <time.h> for nanosleep
2162         declaration.
2163
2164         * stdio-common/tst-fphex.c: Fix format string.
2165
2166         * posix/transbug.c: Include <string.h> for memset and strlen
2167         declarations.
2168
2169         * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
2170
2171         * stdlib/tst-strtod.c (main): Pass long double value.
2172
2173         * test-skeleton.c: Include <time.h> for nanosleep declaration.
2174
2175 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
2176
2177         * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
2178         defined.
2179
2180 2003-06-11  Jakub Jelinek  <jakub@redhat.com>
2181
2182         * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
2183         * elf/dl-libc.c (struct dl_open_hook): New.
2184         (_dl_open_hook): New variable.
2185         (do_dlsym_private): New function.
2186         (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
2187         and initialize it if found.
2188         (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
2189         call dlopen_mode hook.
2190         (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
2191         call dlsym hook.
2192         (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
2193         call dlclose hook.
2194
2195 2003-06-25  Ulrich Drepper  <drepper@redhat.com>
2196
2197         * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
2198         result to long int so that extensions to long long int work.
2199         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2200
2201 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
2202
2203         * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
2204         * sysdeps/generic/dl-cache.h (add_system_dir): Define.
2205         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
2206         dl-cache.h.
2207         * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
2208         * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
2209         * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
2210         * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
2211
2212 2003-06-19  Jakub Jelinek  <jakub@redhat.com>
2213
2214         * test-skeleton.c (timeout_handler): If waitpid returned 0,
2215         retry once after a second.  If killed == 0, assume
2216         WTERMSIG (status) == SIGKILL.
2217
2218 2003-06-18  Roland McGrath  <roland@redhat.com>
2219
2220         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
2221         elements in the table instead of printing an empty name string.
2222
2223 2003-06-05  Roland McGrath  <roland@redhat.com>
2224
2225         * elf/elf.h (PT_GNU_STACK): New macro.
2226
2227 2003-06-24  Ulrich Drepper  <drepper@redhat.com>
2228
2229         * include/time.h: Define CLOCK_IDFIELD_SIZE.
2230         * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
2231         * sysdeps/unix/clock_gettime.c: Likewise.
2232         * sysdeps/unix/clock_settime.c: Likewise.
2233         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
2234         clock id for thread CPU clocks.
2235
2236         * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
2237         for the fstatfs64 syscall.
2238         * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
2239         the statfs64 syscall.
2240
2241         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2242         __ASSUME_STATFS64 appropriately.
2243
2244         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
2245         from statfs structure if it has been filled in.
2246
2247         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
2248         field.
2249         (struct statfs64): Likewise.
2250         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
2251         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
2252
2253 2003-06-24  Richard Henderson  <rth@redhat.com>
2254
2255         * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
2256         the 64-bit syscall name.
2257
2258         * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
2259
2260         * sysdeps/alpha/fpu/bits/mathinline.h: Honor
2261         __LIBC_INTERNAL_MATH_INLINES.  Implement __signbitf, __signbit.
2262
2263         * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
2264         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
2265         libc_hidden_def.
2266         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2267         * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
2268         on them.
2269
2270         * sysdeps/alpha/bits/atomic.h: New file.
2271
2272 2003-06-24  Andreas Schwab  <schwab@suse.de>
2273
2274         * sysdeps/m68k/fpu/libm-test-ulps: Update.
2275
2276 2003-06-24  Andreas Jaeger  <aj@suse.de>
2277
2278         * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
2279         redeclaration with 32-bit code.
2280
2281 2003-05-19  Ed Connell  <ed.connell@sas.com>
2282
2283         * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
2284         floating point mask.
2285         * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
2286
2287 2003-06-23  Ulrich Drepper  <drepper@redhat.com>
2288
2289         * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
2290         __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
2291         __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
2292
2293         * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
2294         of pthread_cond_wait if there was an error.  Use pthread_cleanup_*
2295         instead of __libc_cleanup_region_*.
2296
2297 2003-06-20  Richard Henderson  <rth@redhat.com>
2298
2299         * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
2300         * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
2301
2302 2003-06-20  Richard Henderson  <rth@redhat.com>
2303
2304         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
2305         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
2306         Unset for alpha.
2307         (__ASSUME_TIMEVAL64): Set for alpha.
2308         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
2309         adjtimex, osf_sigprocmask, old_adjtimex.
2310         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
2311         __ASSUME_TIMEVAL64.  Reorg tv64 functions to avoid uninit variable.
2312         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
2313         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2314         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2315         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2316         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2317         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2318         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2319         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2320         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
2321         PIC code sequence.
2322         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2323         * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
2324         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
2325         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
2326         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
2327         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
2328         sys_ustat, sys_mknod, adjtimex, old_adjtimex.
2329         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
2330         defer to __syscall_name; error for rt_sigaction.
2331         * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2332
2333 2003-06-18  Ulrich Drepper  <drepper@redhat.com>
2334
2335         * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
2336         hasn't happened yet.
2337
2338         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2339         Fix completely broken implementation.  The second parameter is of
2340         type struct ucontext*.
2341
2342         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
2343         inline.
2344
2345         * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
2346         * sysdeps/generic/dl-hash.h: Likewise.
2347
2348         * sysdeps/generic/memcmp.c: Remove inline from
2349         memcmp_common_alignment and memcmp_not_common_alignment definition.
2350
2351         * intl/localealias.c (read_alias_file): Determine whether line is
2352         read incompletely early, before we modify the line.
2353
2354 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
2355
2356         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
2357         <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
2358
2359 2003-06-17  Paul Mackerras  <paulus@samba.org>
2360
2361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
2362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
2363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
2364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
2365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
2366         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
2367
2368 2003-06-17  Jakub Jelinek  <jakub@redhat.com>
2369
2370         * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
2371
2372 2003-06-17  Ulrich Drepper  <drepper@redhat.com>
2373
2374         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
2375         takes care of enabling cancellation.
2376
2377         * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
2378         cancelable.  It's not correct to disable cancellation.  Instead of
2379         a cleanup handler.
2380
2381         * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
2382         and part of the incoming set, create a temporary set without this
2383         signal.
2384         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
2385         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
2386
2387         * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
2388         returning because seconds==0.  Add __builtin_expect.
2389
2390 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
2391
2392         * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
2393
2394         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
2395         variable.
2396
2397 2003-06-16  Thorsten Kukuk  <kukuk@suse.de>
2398
2399         * include/libc-symbols.h: Add static_link_warning macro.
2400         * grp/initgroups.c: Print linker warning if this function
2401         is called in a static linked binary.
2402         * nss/getXXbyYY.c: Likewise.
2403         * nss/getXXbyYY_r.c: Likewise.
2404         * nss/getXXent.c: Likewise.
2405         * nss/getXXent_r.c: Likewise.
2406         * sysdeps/posix/getaddrinfo.c: Likewise.
2407
2408 2003-06-16  Bruno Haible  <bruno@clisp.org>
2409
2410         * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
2411         LATIN-9.
2412         (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
2413         (IBM1047): Add alias IBM-1047.
2414         (GBK): Add aliases MS936, WINDOWS-936.
2415
2416 2003-06-16  Jakub Jelinek  <jakub@redhat.com>
2417
2418         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
2419         defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
2420         (__xstat64_conv): Change xstat_conv to __xstat_conv.
2421
2422 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
2423
2424         * locale/iso-639.def: Update from current official ISO 639.
2425
2426         * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
2427
2428 2003-06-15  Andreas Jaeger  <aj@suse.de>
2429
2430         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
2431         of MXCSR.
2432         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2433         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
2434         Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
2435
2436         * math/tgmath.h (carg): Handle real arguments.
2437         (conj): Likewise.
2438         (cproj): Likewise.
2439         (cimag): Likewise.
2440         (creal): Likewise.
2441
2442         * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
2443         (tests): Add test-tgmath-ret.
2444         * math/test-tgmath-ret.c: New file.
2445
2446         * math/tgmath.h (ilogb): Return always an int.
2447
2448 2003-06-16  Ulrich Drepper  <drepper@redhat.com>
2449
2450         * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
2451         computation so that prelinking works.
2452
2453 2003-06-15  Ulrich Drepper  <drepper@redhat.com>
2454
2455         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
2456         linker's map.
2457         * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
2458         dynamic linker's map.
2459
2460         Fix cancellation point handling wrt exception based cleanup.
2461         * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
2462         * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
2463         with exceptions.
2464         * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
2465         sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
2466         * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
2467         exceptions.
2468         * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
2469         sigwait.c, and sigwaitinfo.c with exceptions.
2470         * stdlib/Makefile: Compile system.c with exceptions.
2471         * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
2472         * termios/Makefile: Compile tcdrain.c with exceptions.
2473         * sysdeps/generic/lockf.c: Add comment explaining the cancellation
2474         situation.
2475         * sysdeps/generic/pselect.c: Likewise.
2476         * sysdeps/posix/sigpause.c: Likewise.
2477         * sysdeps/posix/system.c: Likewise.
2478         * sysdeps/posix/waitid.c: Likewise.
2479         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
2480         * sysdeps/unix/sysv/linux/usleep.c: Likewise.
2481         * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
2482         INTERNAL_SYSCALL to not use push inside asm statement so that
2483         unwind info is correct around the syscall.
2484         * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
2485         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
2486
2487 2003-06-15  Andreas Jaeger  <aj@suse.de>
2488
2489         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2490         Add CFI directives.
2491
2492 2003-06-15  Guido Guenther  <agx@sigxcpu.org>
2493
2494         * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
2495         create $(objpfx).
2496
2497 2003-06-14  Ulrich Drepper  <drepper@redhat.com>
2498
2499         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
2500         not close.
2501
2502         * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
2503         * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
2504         definition.
2505
2506         * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
2507         * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
2508         * inet/Makefile (routines): Add inet6_option.
2509         * inet/inet6_option.c: New file.
2510         * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
2511         inet6_option_init, inet6_option_append, inet6_option_alloc,
2512         inet6_option_next, and inet6_option_find.
2513
2514 2003-06-13  Ulrich Drepper  <drepper@redhat.com>
2515
2516         * inet/netinet/ip6.h (struct ip6_ext): Define.
2517
2518         * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
2519
2520         Fixing gcc 3.3 warnings, part II.
2521         * argp/argp-help.c (hol_entry_long_iterate): Always inline.
2522         * elf/dl-load.c (cache_rpath): Don't inline.
2523         * iconvdata/cns11642l2.h: Always inline all functions.
2524         * iconvdata/iso-ir-165.h: Likewise.
2525         * locale/Makefile (aux): Add coll-lookup.
2526         * locale/coll-lookup.c: New file.
2527         * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
2528         (collseq_table_lookup): Likewise.
2529         * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
2530         * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
2531         change.
2532         * posix/regcomp.c: Likewise.
2533         * posix/regexec.c: Likewise.
2534         * locale/programs/3level.h (*_get): Always inline.
2535         * locale/programs/locfile.h: Move definition of handle_copy to...
2536         * locale/programs/locfile.c: ...here.
2537         * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
2538         (obstack_int32_grow_fast): Likewise.
2539         (utf8_encode): Likewise.
2540         (find_element): Avoid aliasing problems.
2541         (insert_value): Likewise.
2542         (collate_read): Likewise.
2543         * nss/getent.c (print_hosts): Don't inline
2544         (print_networks): Likewise.
2545         (print_shadow): Likewise.
2546         (build_doc): Likewise.
2547         * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
2548         inline.
2549         * posix/regcomp.c (re_set_fastmap): Always inline.
2550         (seek_collating_symbol_entry): Likewise.
2551         (lookup_collation_sequence_value): Likewise.
2552         (build_range_exp): Likewise.
2553         (build_collating_symbol): Likewise.
2554         * posix/regexec.c (acquire_init_state_context): Don't inline.
2555         (clean_state_log_if_need): Likewise.
2556         * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
2557         adjust all callers.
2558         (evConsTime): Likewise.
2559         (evAddTime): Likewise.
2560         (evSubTime): Likewise.
2561         (evNowTime): Likewise.
2562         (evTimeSpec): Removed.
2563         (__libc_res_nsend): Avoid aliasing problem.
2564         * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
2565         * sysdeps/unix/sysv/linux/ifreq.c: ...here.
2566         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
2567         Always inline.
2568         (_dl_string_platform): Likewise.
2569         * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
2570         (wcwidth_table_lookup): Likewise.
2571         (wctrans_table_lookup): Likewise.
2572
2573         * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
2574
2575 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
2576
2577         * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
2578
2579 2003-05-29  Jim Meyering  <jim@meyering.net>
2580
2581         * time/strftime.c (my_strftime) [!defined _NL_CURRENT
2582         && HAVE_STRFTIME]: Use underlying_strftime for %r.
2583         Suggested by Daniel Yacob <locales@geez.org>.
2584
2585 2003-06-12  Steven Munroe  <sjmunroe@us.ibm.com>
2586
2587         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
2588         @got notation with @toc.
2589         * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
2590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
2591
2592 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
2593
2594         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
2595         if only PF_INET address is needed.
2596
2597         * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
2598         case of an error.
2599
2600         * scripts/config.guess: Update from upstream version.
2601         * scripts/config.sub: Likewise.
2602
2603 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
2604
2605         * locale/programs/ld-time.c (time_output): Also copy the era format,
2606         not only the name.
2607
2608 2003-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2609
2610         * posix/transbug.c (run_test): Return 1 for failure.
2611         (do_test): Compare only if run_test is successful.
2612
2613 2003-06-12  Simon Josefsson  <jas@extundo.com>
2614
2615         * argp/argp.h [!__THROW]: Define if undefined.
2616
2617 2003-06-12  Ulrich Drepper  <drepper@redhat.com>
2618
2619         * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
2620         more than four parameters.
2621         Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
2622
2623 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
2624
2625         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
2626         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
2627         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
2628
2629         * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
2630
2631 2003-06-12  Roland McGrath  <roland@redhat.com>
2632
2633         * Makerules ($(objpfx)stubs): Rewrite sed magic.
2634
2635 2003-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
2636
2637         * posix/regcomp.c (parse_expression): Deliver translation to
2638         build_word_op, and build_charclass.
2639         (build_charclass): Apply translation for character classes too.
2640         (build_word_op): Deliver translation to build_charclass.
2641         * posix/transbug.c: New file.
2642         * posix/Makefile (tests): Add transbug.
2643
2644 2003-06-04  Paolo Bonzini  <bonzini@gnu.org>
2645
2646         * posix/regexec.c (group_nodes_into_DFAstates): Check for
2647         NEXT_ENDBUF_CONSTRAINT.  Move check for constraints which do a
2648         'continue' before the others.
2649
2650 2003-06-11  Ulrich Drepper  <drepper@redhat.com>
2651
2652         * dirent/scandir.c (SCANDIR): Reset errno after calling selector
2653         function [PR libc/5045].
2654
2655         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
2656         also for P4.
2657
2658         * time/tzfile.c: Add a couple of __builtin_expect.
2659
2660         Remove warnings gcc 3.3 shows.
2661         * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
2662         * elf/dl-load.c (fillin_rpath): Likewise.
2663         (add_path): Likewise.
2664         * elf/dl-version.c (find_needed): Always inline.
2665         * elf/do-lookup.c (FCT): Don't inline.
2666         * iconv/Makefile: Extend vpath to intl subdir.
2667         (iconvconfig-modules): Add hash-string.
2668         * iconv/gconv_charset.h (strip): Don't inline.
2669         (upstr): Always inline.
2670         Move __gconv_compare_alias prototype to...
2671         * iconv/gconv_int.h: ...here.
2672         * iconv/gconv_db.c: Don't include gconv_charset.h.
2673         * iconv/gconv_conf.c (add_alias): Don't inline.
2674         (insert_module): Likewise.
2675         * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
2676         (internal_ucs4_loop_unaligned): Likewise.
2677         (internal_ucs4_loop_single): Likewise.
2678         (ucs4_internal_loop): Likewise.
2679         (ucs4_internal_loop_unaligned): Likewise.
2680         (ucs4_internal_loop_single): Likewise.
2681         (internal_ucs4le_loop): Always inline.
2682         (internal_ucs4le_loop_unaligned): Likewise.
2683         (internal_ucs4le_loop_single): Likewise.
2684         (ucs4le_internal_loop): Likewise.
2685         (ucs4le_internal_loop_unaligned): Likewise.
2686         (ucs4le_internal_loop_single): Likewise.
2687         * iconv/loop.c: Always inline the defined functions.
2688         * iconvdata/cns11642.h: Likewise.
2689         * iconvdata/cns11642l1.h: Likewise.
2690         * iconvdata/euc-kr.c: Likewise.
2691         * iconvdata/gb2312.h: Likewise.
2692         * iconvdata/jis0201.h: Likewise.
2693         * iconvdata/jis0208.h: Likewise.
2694         * iconvdata/jis0212.h: Likewise.
2695         * iconvdata/jisx0213.h: Likewise.
2696         * iconvdata/ksc5601.h: Likewise.
2697         * iconvdata/utf-7.c (base64): Don't inline.
2698         * include/libc-symbols.h (symbol_set_first_element): Add cast
2699         (symbol_set_end_p): Likewise.
2700         * include/set-hooks (RUN_HOOK): Likewise.
2701         * inet/Makefile (aux): Add ifreq.
2702         * intl/Makefile (aux): Add some entries from routines.  Add
2703         hash-string.
2704         * intl/hash-string.c: New file.
2705         * intl/hash-string.h: Remove hash_string definition.  Declare
2706         __hash_string.
2707         * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
2708         * iconv/iconvconfig.c (new_name): Likewise.
2709         * intl/dcigettext.c (_nl_find_msg): Likewise.
2710         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
2711         * io/ftw.c (open_dir_stream): Always inline.
2712         (process_entry): Don't inline.
2713         * locale/findlocale.c: Include gconv_int.h.
2714         * locale/setlocale.c (new_composite_name): Don't inline.
2715         * locale/weight.h (findidx): Always inline.
2716         * locale/weightwc.h (findidx): Likewise.
2717         * locale/programs/linereader.c (lr_ignore_rest): Define here.
2718         * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
2719         just declare it.
2720         (lr_getc): Always inline.
2721         (lr_ungetc): Likewise.
2722         * nss/nss_files/files-parse.c (parse_list): Likewise.
2723         * stdio-common/Makefile (aux): Add printf-parsemb and
2724         printf-parsewc.
2725         * stdio-common/_itoa.h (_itoa_word): Always inline.
2726         (_fitoa_word, _fitoa): Don't define here, only declare.
2727         * stdio-common/_itoa.c (_iftoa_word): Add here.
2728         (_fitoa): Likewise.
2729         * stdio-common/_itowa.h (_itowa_word): Always inline.
2730         * stdio-common/printf-parse.h (read_int): Don't inline.
2731         (find_spec): Don't define.
2732         Declare __find_specmb and __find_specwc.
2733         (parse_one_spec): Don't define.
2734         Declare __parse_one_specmb and __parse_one_specwc.
2735         * stdio-common/printf-parsemb.c: New file.
2736         * stdio-common/printf-parsewc.c: New file.
2737         * stdio-common/vfprintf.c: Update calls to find_spec and
2738         parse_one_spec for new names.
2739         * stdio-common/printf-prs.c: Likewise.  Define DONT_NEED_READ_INT.
2740         * stdlib/Makefile (aux): Add grouping and groupingwc.
2741         * stdlib/grouping.c: New file.
2742         * stdlib/groupingwc.c: New file.
2743         * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
2744         Just prototype.
2745         * stdlib/rpmatch.c (try): Don't inline.
2746         * stdlib/strtod.c (round_and_return): Don't line.
2747         (str_to_mpn): Likewise.
2748         (__mpn_lshift_1): Always inline.  Optimize only for constant count.
2749         Adjust for name change of correctly_grouped_prefix.
2750         * sysdeps/generic/strtol.c: Adjust for name change of
2751         correctly_grouped_prefix.
2752         * string/strxfrm.c (utf8_encode): Don't inline.
2753         * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
2754         * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
2755         * sysdeps/generic/ifreq.c: New file.
2756         * sysdeps/unix/sysv/linux/ifreq.c: New file.
2757         * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
2758         * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
2759         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
2760         * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
2761         (fde_split): Likewise.
2762         (fde_merge): Likewise.
2763         (end_fde_sort): Likewise.
2764         (init_object): Likewise.
2765         (binary_search_unencoded_fdes): Likewise.
2766         (binary_search_single_encoding_fdes): Likewise.
2767         (binary_search_mixed_encoding_fdes): Likewise.
2768         * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
2769         * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
2770         * sysdeps/posix/sprofil.c (profil_count): Don't inline.
2771         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2772         Add xstatconv.
2773         * sysdeps/unix/sysv/linux/xstatconv.h: New file.
2774         * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
2775         Export them.  Prepend __ to name.
2776         * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
2777         * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
2778         conversion functions.
2779         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2780         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2781         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2782         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2783         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
2784         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2785         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2786         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2787         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
2788         __statfs_filesize_max, __statfs_symlinks): Define here.  __ prepended
2789         to name.  Change callers.
2790         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
2791         __statfs_filesize_max, __statfs_symlinks): Don't define here, just
2792         declare.
2793         * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
2794         * time/tzfile.c (decode): Always inline.
2795         * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
2796         Remove cast in tomb function call.
2797         * wcsmbs/wcsrtombs.c Likewise.
2798         * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
2799         tomb function call.
2800
2801 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
2802
2803         * po/zh_CN.po: Update from translation team.
2804
2805 2003-06-10  Jakub Jelinek  <jakub@redhat.com>
2806
2807         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
2808         IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
2809
2810 2003-06-10  Ulrich Drepper  <drepper@redhat.com>
2811
2812         * inet/Makefile (aux): Add check_pf.
2813         * include/ifaddrs.h: Add prototype for __check_pf.
2814         * sysdeps/generic/check_pf.c: New file.
2815         * sysdeps/unix/sysv/linux/check_pf.c: New file.
2816         * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
2817         from no_netlink_support.  Export.
2818         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
2819         call __check_pf.
2820
2821         * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
2822
2823         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
2824         from getifaddr calls.
2825
2826 2003-06-09  Jakub Jelinek  <jakub@redhat.com>
2827
2828         * sysdeps/unix/sysv/linux/kernel-features.h
2829         (__ASSUME_SETRESGID_SYSCALL): Define.
2830         * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
2831         instead of __ASSUME_SETRESUID_SYSCALL.
2832         (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
2833         defined.
2834         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
2835         inline syscall if __NR_setresuid32 is defined.
2836         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2837         __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
2838         * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
2839         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2840         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
2841         code handling non-existant setresgid32 syscall with
2842         #if __ASSUME_SETRESGID_SYSCALL == 0.
2843
2844 2003-06-09  Andreas Schwab  <schwab@suse.de>
2845
2846         * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
2847         ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
2848         $(objpfx)rpc-proto.d.
2849         (rpcsvc-dt-files, rpcsvc-depfiles): Define.  Include
2850         $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
2851         ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
2852
2853 2003-06-08  Ulrich Drepper  <drepper@redhat.com>
2854
2855         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
2856         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
2857         defined drop compatibility code.
2858         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
2859         syscall directly if possible.  If __ASSUME_SETRESUID_SYSCALL is
2860         defined drop compatibility code.
2861         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
2862         setresuid32 syscall directly if possible.
2863         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
2864         setresgid32 syscall directly if possible.
2865         * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
2866         compliant.  Don't change sgid.
2867         * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
2868         compliant.  Don't change suid.
2869
2870         * config.h.in: Add have-forced-unwind.
2871         * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
2872
2873 2003-06-07  Ulrich Drepper  <drepper@redhat.com>
2874
2875         * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
2876         returned status from child matches.
2877
2878         * Makeconfig (gnulib): Add -lgcc_eh once again.
2879
2880 2003-06-06  Ulrich Drepper  <drepper@redhat.com>
2881
2882         * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
2883
2884         * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
2885         %edx for first parameter.  This means no pushl and therefore the
2886         unwind info isn't screwed up.
2887
2888 2003-06-04  Richard Henderson  <rth@redhat.com>
2889
2890         * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
2891         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2892         * sysdeps/alpha/elf/start.S: Likewise.  Remove pointless allocation.
2893         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
2894         entry sequence and explicit relocs.  Add unwind info for sigreturn
2895         and rt_sigreturn.
2896         * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
2897
2898         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
2899         Annotate some parameters.
2900         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
2901
2902         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
2903
2904         * include/libc-symbols.h (symbol_set_declare): Use arrays
2905         of unspecified size.
2906
2907 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2908
2909         * config.make.in (ASFLAGS-config): New.
2910         * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
2911         * configure.in (libc_cv_as_noexecstack): New check.
2912         (ASFLAGS_config): Substitute.
2913
2914 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
2915
2916         * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
2917         hypot, logb): Protect with #ifdef __FAST_MATH__.
2918
2919 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
2920
2921         * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
2922         #ifdef __FAST_MATH__.
2923
2924 2003-06-03  Ulrich Drepper  <drepper@redhat.com>
2925
2926         * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
2927         DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
2928         * posix/globtest.sh: Adjust for this change.
2929
2930         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
2931         to get the actual PID value used in the records passed up.
2932         (getifaddrs): Don't initialize nh.pid here.
2933
2934 2003-06-02  Ulrich Drepper  <drepper@redhat.com>
2935
2936         * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
2937         optimization.
2938
2939         * po/zh_CN.po: Update from translation team.
2940
2941         * posix/getconf.c (main): Also recognize names without the
2942         _POSIX_ prefix.
2943
2944         * elf/Makefile (CFLAGS-dl-lookup.c): Define.
2945
2946 2003-06-02  Bernd Schmidt  <bernds@redhat.com>
2947
2948         * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
2949         ldexpf, ldexpl): Only define if __FAST_MATH__.
2950
2951 2003-06-02  Richard C. Bilson  <rcbilson@plg.uwaterloo.ca>
2952
2953         Replace hard-coded offsets into struct sigcontext with generated file.
2954         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
2955         * sysdeps/unix/sysv/linux/ia64/Makefile
2956         [$(subdir) = stdlib] (gen-as-const-headers): Add it.
2957         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
2958         defining SC_* macros here.
2959
2960 2003-06-02  Jakub Jelinek  <jakub@redhat.com>
2961
2962         * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
2963
2964 2003-06-01  Jakub Jelinek  <jakub@redhat.com>
2965
2966         * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
2967
2968 2003-06-01  Ulrich Drepper  <drepper@redhat.com>
2969
2970         * test-skeleton.c (main): Request getopt to not reorder the
2971         command line.
2972
2973         * elf/Makefile (CFLAGS-dl-runtime.c): Define.
2974
2975         * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
2976         stpncpy.
2977
2978 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
2979
2980         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
2981
2982 2003-05-31  Jakub Jelinek  <jakub@redhat.com>
2983
2984         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
2985         New function.
2986         (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
2987         RESOLVE_CONFLICT_FIND_MAP.  If RESOLVE_CONFLICT_FIND_MAP is defined,
2988         call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
2989
2990 2003-05-31  Ulrich Drepper  <drepper@redhat.com>
2991
2992         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
2993         CFI directives.
2994
2995         * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
2996
2997         * libio/fileops.c (_IO_file_open): Don't mark as inline.
2998
2999         * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
3000         attribute used.
3001
3002 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
3003
3004         * scripts/config.guess: Update from master copy.
3005         * scripts/config.sub: Likewise.
3006
3007 2003-05-30  Guido Guenther  <agx@sigxcpu.org>
3008
3009         * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
3010         SETUP_GP64 and friends.
3011         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
3012         names in internal_syscall{6,7}.
3013         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3014         * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
3015         number of syscall arguments.
3016         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3017         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3018         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3019
3020 2003-05-30  Andreas Jaeger  <aj@suse.de>
3021
3022         * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3023         Add CFI directives.
3024
3025         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
3026         directives.
3027
3028         * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
3029
3030         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3031         Add CFI directives.
3032
3033 2003-05-30  Jakub Jelinek  <jakub@redhat.com>
3034
3035         * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
3036         SHARED.
3037
3038 2003-05-11  Andreas Schwab  <schwab@suse.de>
3039
3040         * Makerules: Always use -MP together with -MD.
3041         (sed-remove-dotot): Substitute $(..) also at start of line.
3042         ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
3043         Generated defines with a single compiler call.
3044         Use $(sed-remove-dotdot).
3045         * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
3046         of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
3047         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3048         Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
3049         * sysdeps/unix/sysv/linux/mips/Makefile
3050         ($(objpfx)syscall-%.h): Likewise.
3051
3052 2003-05-28  Roland McGrath  <roland@redhat.com>
3053
3054         * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
3055
3056 2003-05-26  Aldy Hernandez  <aldyh@redhat.com>
3057
3058         * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
3059
3060 2003-05-28  Roland McGrath  <roland@redhat.com>
3061
3062         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
3063         rt_sigprocmask system call.
3064         * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
3065         From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
3066
3067 2003-05-28  Ulrich Drepper  <drepper@redhat.com>
3068
3069         * include/libc-symbols.h: Define hidden attribute for real also if
3070         LIBC_NONSHARED is defined.  Patch by Jakub Jelinek.
3071
3072         * csu/Makefile: Add rules to build Scrt1.o.
3073         * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
3074         * sysdeps/x86_64/elf/start.S: Likewise.
3075
3076 2003-05-27  Jakub Jelinek  <jakub@redhat.com>
3077
3078         * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
3079         pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
3080         * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
3081         pa_short_int, pa_u_short_int and pa_float.
3082
3083 2003-05-26  Jakub Jelinek  <jakub@redhat.com>
3084
3085         * libio/strops.c (_IO_str_init_static): Change into a wrapper around
3086         _IO_str_init_static_internal.
3087         (_IO_str_init_static_internal): Moved from _IO_str_init_static,
3088         change size argument to _IO_size_t, don't limit sprintf to 64M.
3089         (_IO_str_init_readonly): Call _IO_str_init_static_internal.
3090         * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
3091         _IO_size_t, don't limit swprintf to 256M.
3092         (_IO_wstr_init_readonly): Remove.
3093         * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
3094         Adjust prototypes.
3095         (_IO_wstr_init_readonly): Remove prototype.
3096         * libio/iovsprintf.c (_IO_vsprintf): Use
3097         _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
3098         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
3099         * libio/memstream.c (open_memstream): Likewise.
3100         * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
3101         * libio/vasprintf.c (_IO_vasprintf): Likewise.
3102         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3103         * stdio-common/tst-sprintf.c (main): Add new test.
3104
3105 2003-05-26  Ulrich Drepper  <drepper@redhat.com>
3106
3107         * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
3108         other implementation in respect of multiple uses of parameter with
3109         different types.
3110
3111 2003-05-25  Ulrich Drepper  <drepper@redhat.com>
3112
3113         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3114         __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
3115
3116 2003-05-22  Andreas Jaeger  <aj@suse.de>
3117
3118         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
3119         directives.
3120         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
3121         * sysdeps/x86_64/strtok.S: Likewise.
3122
3123 2003-05-20  Guido Guenther  <agx@sigxcpu.org>
3124
3125         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
3126         to -60 and define SI_TKILL.
3127
3128 2003-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3129
3130         * math/test-fenv.c (feexcp_nomask_test): Fix comment.
3131         (feexcp_mask_test): Likewise.
3132
3133 2003-05-21  Ulrich Drepper  <drepper@redhat.com>
3134
3135         * locale/programs/locale.c (main): Fix typo in last patch.
3136
3137         * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
3138         __init_array_start, __init_array_end, __fini_array_start, and
3139         __fini_array_end as hidden.
3140
3141 2003-05-21  Petter Reinholdtsen  <pere@hungry.com>
3142
3143         * locale/programs/locale.c (main): Report an error if setlocale()
3144         fails [PR libc/2254].
3145
3146 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
3147
3148         * sysdeps/unix/sysv/linux/s390/system.c: New file.
3149
3150 2003-05-21  Jakub Jelinek  <jakub@redhat.com>
3151
3152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
3153         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3154         LOADARGS_6): Don't error if syscall argument is a string literal.
3155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
3156         LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
3157         LOADARGS_6): Likewise.
3158
3159 2003-05-21  Andreas Jaeger  <aj@suse.de>
3160
3161         * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
3162         cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
3163         cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
3164
3165         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
3166         (ENTRY): Likewise.
3167         (END): Likewise.
3168
3169         * configure.in: Test for asm cfi directives.
3170
3171         * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
3172
3173 2003-05-17  Andreas Jaeger  <aj@suse.de>
3174
3175         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
3176
3177         * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
3178
3179 2003-05-16  Ulrich Drepper  <drepper@redhat.com>
3180
3181         * rt/Makefile (tests): Add tst-clock_nanosleep.
3182         * rt/tst-clock_nanosleep.c: New file.
3183         * posix/Makefile (tests): Add tst-nanosleep.
3184         * posix/tst-nanosleep.c: New file.
3185
3186         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
3187
3188         * include/features.h (__USE_XOPEN2K): Define also for
3189         _POSIX_C_SOURCE>=200112L.
3190
3191         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
3192         SI_TKILL code into SI_USER.
3193         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
3194
3195         * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
3196
3197 2003-05-15  Jakub Jelinek  <jakub@redhat.com>
3198
3199         * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
3200         Remove sym argument, always use refsym.
3201         (__process_machine_rela): Adjust callers.
3202         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
3203         Likewise.
3204         * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
3205         Adjust prototype.
3206         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3207
3208 2003-05-15  Ulrich Drepper  <drepper@redhat.com>
3209
3210         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
3211         (DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
3212         print numeric values.
3213
3214 2003-05-12  Thorsten Kukuk  <kukuk@suse.de>
3215
3216         * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
3217
3218 2003-05-14  Andreas Schwab  <schwab@suse.de>
3219
3220         * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
3221
3222 2003-05-14  Jakub Jelinek  <jakub@redhat.com>
3223
3224         * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
3225         even if no DT_NEEDED is present.
3226
3227 2003-05-13  David Mosberger  <davidm@hpl.hp.com>
3228
3229         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
3230         2003-03-27: setjmp is NOT a leaf-routine (due to the call to
3231         __sigjmp_save) so we can't keep the saved unat value in a scratch
3232         register (r16).  Use loc2 instead.
3233
3234 2003-05-13  Ulrich Drepper  <drepper@redhat.com>
3235
3236         * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
3237         binaries it has to be relocatable.
3238
3239         * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
3240
3241 2003-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
3242
3243         * sysdeps/powerpc/bits/atomic.h
3244         (__arch_compare_and_exchange_bool_8_rel): Define.
3245         (__arch_compare_and_exchange_bool_16_rel): Define.
3246         (__ARCH_REL_INSTR): Define if not already defined.
3247         (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
3248         (__arch_atomic_decrement_if_positive_32):
3249         Add "memory" to clobber list.
3250         (__arch_compare_and_exchange_val_32_acq): Remove release sync.
3251         (__arch_compare_and_exchange_val_32_rel): Define.
3252         (__arch_atomic_exchange_32): Remove.
3253         (__arch_atomic_exchange_32_acq): Define.
3254         (__arch_atomic_exchange_32_rel): Define.
3255         (atomic_compare_and_exchange_val_rel): Define.
3256         (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
3257         (atomic_exchange_rel): Define.
3258         * sysdeps/powerpc/powerpc32/bits/atomic.h
3259         (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
3260         (__arch_compare_and_exchange_bool_32_rel): Define.
3261         (__arch_compare_and_exchange_bool_64_rel): Define.
3262         (__arch_compare_and_exchange_val_64_rel): Define.
3263         (__arch_atomic_exchange_64): Remove.
3264         (__arch_atomic_exchange_64_acq): Define.
3265         (__arch_atomic_exchange_64_rel): Define.
3266         * sysdeps/powerpc/powerpc64/bits/atomic.h
3267         (__arch_compare_and_exchange_bool_32_rel): Define.
3268         (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
3269         (__arch_compare_and_exchange_bool_64_rel): Define.
3270         (__arch_compare_and_exchange_val_64_acq): Remove release sync.
3271         (__arch_compare_and_exchange_val_64_rel): Define.
3272         (__arch_atomic_exchange_64): Remove.
3273         (__arch_atomic_exchange_64_acq): Define.
3274         (__arch_atomic_exchange_64_rel): Define.
3275         (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
3276         (__arch_atomic_decrement_if_positive_64):
3277         Add "memory" to clobber list.
3278         [!UP](__ARCH_REL_INSTR): Define as lwsync.
3279
3280 2003-05-11  Andreas Schwab  <schwab@suse.de>
3281
3282         * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
3283
3284 2003-05-11  Ulrich Drepper  <drepper@redhat.com>
3285
3286         * time/tst-strftime.c (do_test): Add tests for - flag.
3287
3288 2003-05-11  Jim Meyering  <jim@meyering.net>
3289
3290         * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
3291         the space-padded-by-default conversion specifiers, %e, %k, %l.
3292
3293 2003-05-11  Andreas Schwab  <schwab@suse.de>
3294
3295         * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
3296
3297 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
3298
3299         * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
3300         already defined and when really needed.
3301         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3302
3303 2003-05-09  Thorsten Kukuk  <kukuk@suse.de>
3304
3305         * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
3306         headers, add defines from kernel header, move it from here...
3307         * inet/netinet/igmp.h: ... to here.
3308         * inet/Makefile (headers): Add netinet/igmp.h.
3309         * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
3310         * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
3311
3312 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
3313
3314         * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
3315         use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
3316
3317 2003-05-09  Thorsten Kukuk <kukuk@suse.de>
3318
3319         * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
3320         (remove __THROW from possible cancellation points).
3321
3322 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
3323
3324         * posix/sched.h (CPU_SETSIZE): Define.
3325
3326 2003-05-09  Ulrich Drepper  <drepper@redhat.com>
3327
3328         * Makeconfig (gnulib): Remove -lgcc_eh again.
3329
3330         * posix/sched.h: Change prototypes of sched_getaffinity and
3331         sched_setaffinity.  Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
3332         * sysdeps/generic/sched_getaffinity.c: Adjust definition.
3333         * sysdeps/generic/sched_setaffinity.c: Likewise.
3334         * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
3335         __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
3336         __CPU_CLR, and __CPU_ISSET.
3337         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3338         * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
3339         * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
3340
3341         * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
3342         (atomic_exchange_rel): New #define.
3343         * sysdeps/ia64/bits/atomic.h: Likewise.
3344         * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
3345         atomic_exchange.
3346         * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
3347         * sysdeps/powerpc/bits/atomic.h: Likewise.
3348         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
3349         * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
3350         * sysdeps/x86_64/bits/atomic.h: Likewise.
3351         * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
3352
3353         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
3354
3355 2003-05-08  Ulrich Drepper  <drepper@redhat.com>
3356
3357         * malloc/thread-m.h: Remove special handling of thread_atfork if
3358         HAVE_register_atfork_malloc is defined.
3359
3360 2003-05-07  Andreas Jaeger  <aj@suse.de>
3361
3362         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
3363         information.
3364
3365 2003-05-06  Ulrich Drepper  <drepper@redhat.com>
3366
3367         * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
3368         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
3369         * libio/libioP.h: Declare _IO_old_init.
3370         * libio/genops.c (_IO_no_init): Split in two.  New function
3371         _IO_old_init.
3372
3373 2003-05-05  Ulrich Drepper  <drepper@redhat.com>
3374
3375         * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
3376         variable.
3377         (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
3378         is nonzero.
3379         * include/unistd.h: Declare __libc_enable_secure_decided.
3380         * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
3381         and AT_EGID.  If all found, set __libc_enable_secure and
3382         __libc_enable_secure_decided.
3383
3384         * sysdeps/generic/libc-start.c [!SHARED]: Call
3385         __libc_check_standard_fds after __libc_init_first.
3386
3387 2003-05-05  Roland McGrath  <roland@redhat.com>
3388
3389         * Makerules (common-before-compile): New variable.
3390         ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
3391         ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.  Move this rule
3392         to after all setting of before-compile.
3393
3394 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
3395
3396         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3397         __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
3398         * sysdeps/powerpc/powerpc32/bits/atomic.h
3399         (__arch_compare_and_exchange_val_64_acq): Likewise.
3400         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3401         (__arch_compare_and_exchange_val_8_acq,
3402         __arch_compare_and_exchange_val_16_acq,
3403         __arch_compare_and_exchange_val_64_acq): Likewise.
3404         * sysdeps/sparc/sparc64/bits/atomic.h
3405         (__arch_compare_and_exchange_val_8_acq,
3406         __arch_compare_and_exchange_val_16_acq): Likewise.
3407         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
3408         __arch_compare_and_exchange_val_16_acq,
3409         __arch_compare_and_exchange_val_64_acq): Likewise.
3410         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3411         (__arch_compare_and_exchange_val_64_acq): Likewise.
3412         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
3413         up warning.
3414         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
3415
3416         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3417         (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
3418         Return long instead of int.
3419         (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
3420         0xfffff001u with -4095UL.
3421
3422 2003-05-05  Andreas Jaeger  <aj@suse.de>
3423
3424         * sysdeps/x86_64/fpu_control.h: New from i386.
3425
3426         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
3427         Define if not defined.
3428
3429         * sunrpc/Makefile (generated-dirs): New variable.
3430         * resolv/Makefile (generated): New variable.
3431
3432 2003-05-04  Roland McGrath  <roland@redhat.com>
3433
3434         * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
3435         Depend on $(before-compile).
3436
3437         * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
3438         pattern rule.  The implicit rule could be ruled out when $(objpfx)
3439         didn't exist at the time of its consideration (ugh!).
3440
3441         * Makerules (+make-deps): Fix target matching.
3442         Use $(sed-remove-dotdot).
3443
3444 2003-05-03  Ulrich Drepper  <drepper@redhat.com>
3445
3446         * nscd/nscd.c (main): Parse config file right after parsing
3447         parameters.  Then, if get_stats is true, call receive_print_stats.
3448         Drop parameter from nscd_init call.
3449         (get_stats): New variable.
3450         (parse_opt): Set get_stats, don't call receive_print_stats here.
3451         * nscd/nscd.h: Declare dbs, stat_user, and stat_uid.  Adjust nscd_init
3452         prototype.
3453         * nscd/connections.c (stat_user, stat_uid): New variables.
3454         (dbs): Make global.
3455         (nscd_init): Don't read configuration file here.  Drop parameter.
3456         (handle_request): Cleanup handling of non-database lookup requests.
3457         * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
3458         Get UID of the specified user.  Use xstrdup instead of strdup.
3459         * nscd/nscd_stat.c (receive_print_stats): Check UID.  If not zero,
3460         check stat_user.
3461         * nscd/Makefile (nscd-modules): Add xstrdup.
3462         * nscd/nscd.conf: Document stat-user entry.
3463
3464 2003-05-03  H.J. Lu  <hongjiu.lu@intel.com>
3465
3466         * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
3467         if not defined.
3468
3469 2003-04-22  Roland McGrath  <roland@redhat.com>
3470
3471         * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
3472         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
3473         dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
3474         * elf/dl-support.c: Update defn.
3475         * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
3476         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3477         Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
3478         (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
3479         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
3480         set, set up a link_map for the preloaded, prelinked object.
3481
3482 2003-05-03  Roland McGrath  <roland@redhat.com>
3483
3484         * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
3485         * stdio-common/Makefile: ... not here.
3486
3487         * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
3488         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
3489
3490 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
3491
3492         * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
3493
3494         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
3495
3496         * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
3497         comparing ftab elements.
3498         (_dl_unmap): Fix typo in test.
3499         (_dl_make_fptr): Fix typos introduced in last change.
3500
3501         * sysdeps/generic/dl-fptr.c: Put back one optimization from the
3502         original patch.  Use non-exported symbols.  Mark translatable
3503         strings.  Pretty printing.
3504
3505 2003-05-02  Roland McGrath  <roland@redhat.com>
3506
3507         * Makerules (do-stamp): Do $(make-target-directory).
3508
3509 2003-04-07  H.J. Lu  <hjl@gnu.org>
3510
3511         * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
3512
3513 2003-04-03  H.J. Lu  <hjl@gnu.org>
3514
3515         * sysdeps/ia64/dl-fptr.c: Moved to ...
3516         * sysdeps/generic/dl-fptr.c: Here.
3517
3518         * sysdeps/generic/dl-fptr.h: New.
3519         * sysdeps/ia64/dl-fptr.h: New.
3520
3521         * sysdeps/ia64/dl-symaddr.c: Moved to ...
3522         * sysdeps/generic/dl-symaddr.c: here.
3523
3524         * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
3525         (IA64_BOOT_FPTR_TABLE_LEN): Removed.
3526         (ia64_fdesc): Likewise.
3527         (ia64_fdesc_table): Likewise.
3528         (__ia64_make_fptr): Likewise.
3529         (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
3530         with _dl_boot_fptr_table.
3531         (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
3532         `struct fdesc'.
3533         (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
3534
3535 2003-05-01  Roland McGrath  <roland@redhat.com>
3536
3537         * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
3538         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3539
3540         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
3541         Use $(make-target-directory).
3542         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3543
3544         * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
3545         (compile-command.S): Don't use ifndef.  Append $(compile-mkdep-flags).
3546         (compile-command.s, compile-command.c): Likewise.
3547         ($(objpfx)%.d): All such pattern rules removed.
3548         ($(+sysdir_pfx)sysd-rules): Don't generate them.
3549         ($(common-objpfx)dummy.d): Target removed.
3550         (make-