]> sourceware.org Git - glibc.git/blob - ChangeLog
Update.
[glibc.git] / ChangeLog
1 2004-02-01 Ulrich Drepper <drepper@redhat.com>
2
3 * po/nl.po: Update from translation team.
4
5 2004-01-30 Andreas Schwab <schwab@suse.de>
6
7 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
8 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
9 SEGV_PSTKOVF): Remove underscore prefix from definition.
10
11 2004-01-28 Paolo Bonzini <bonzini@gnu.org>
12
13 Merge regex changes in gawk.
14 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
15 of collation elements.
16 * posix/regex.c: Include limits.h.
17 * posix/regex.h: Document REG_ECOLLATE correctly.
18 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
19
20 2004-01-24 Andreas Jaeger <aj@suse.de>
21
22 * malloc/obstack.h: Import gnulib version.
23 * malloc/obstack.c: Likewise.
24
25 2004-01-26 David Mosberger <davidm@hpl.hp.com>
26
27 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
28 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
29 increment dl_load_adds.
30 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
31 with equivalent GL(dl_load_adds - GL(dl_nloaded).
32 (dl_iterate_phdr): Likewise.
33 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
34 * elf/dl-support.c: Remove global variable _dl_load_subs.
35 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
36 _dl_load_subs member.
37
38 2004-01-27 Jakub Jelinek <jakub@redhat.com>
39
40 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
41 (_dl_start): And neither here.
42 (dl_main): Set GL(dl_loaded)->l_relro_* and
43 GL(dl_rtld_map)->l_relro_*.
44
45 2004-01-23 David Mosberger <davidm@hpl.hp.com>
46
47 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
48 _dl_load_adds and _dl_load_subs.
49 * elf/dl-support.c (_dl_load_adds): New variable.
50 (_dl_load_subs): Likewise.
51 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
52 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
53 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
54 dlpi_subs.
55 * include/link.h: Likewise.
56 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
57 and dlpi_subs members.
58 (dl_iterate_phdr): Likewise.
59 * elf/tst-dlmodcount.c: New file.
60 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
61 (tests): If build-shared, mention tst-dlmodcount.
62 ($(objpfx)tst-dlmodcount): If build-shared, build and
63 run tst-dlmodcount.
64
65 2004-01-22 Jakub Jelinek <jakub@redhat.com>
66
67 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
68 into...
69 (_dl_protect_relro): New routine.
70 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
71 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
72 from bootstrap_map.
73 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
74 Call _dl_protect_relro for libraries if prelinking.
75
76 2004-01-23 Richard Henderson <rth@redhat.com>
77
78 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
79 * sysdeps/alpha/fpu/Versions (libm): Likewise.
80 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
81 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
82
83 2004-01-22 Andreas Jaeger <aj@suse.de>
84
85 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
86 avoid warnings for builtin function log2.
87
88 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
89 information.
90
91 2004-01-20 Ulrich Drepper <drepper@redhat.com>
92
93 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
94 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
95 Patch by Davide Libenzi.
96
97 * sysdeps/unix/sysv/linux/kernel-features.h: Define
98 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
99
100 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
101
102 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
103 instead of loff_t. Include <fcntl.h>.
104 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
105 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
106 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
107 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
108 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
109 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
110 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
111 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
112 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
113 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
114 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
115 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
116
117 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
118
119 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
120
121 2003-12-31 Bruno Haible <bruno@clisp.org>
122
123 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
124 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
125 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
126 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
127 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
128 0x00 0x20. Don't map U+2500..U+25E3.
129
130 2004-01-19 Jakub Jelinek <jakub@redhat.com>
131
132 * posix/regexec.c (get_subexp): Remove bkref_str variable.
133 Extend buffers if needed before comparisons.
134 (get_subexp_sub): Handle clean_state_log_if_needed failure.
135
136 2004-01-17 Ulrich Drepper <drepper@redhat.com>
137
138 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
139 atomic_decrement. Patch by Davin McCall.
140
141 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
142
143 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
144 (__sim_disabled_exceptions, __sim_round_mode): Declare with
145 hidden data and nocommon.
146 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
147 (__sim_disabled_exceptions, __sim_round_mode): Use
148 libc_hidden_proto.
149 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
150 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
151
152 2004-01-16 Ulrich Drepper <drepper@redhat.com>
153
154 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
155 PT_IA_64_HP_STACK.
156
157 2004-01-16 Richard Henderson <rth@redhat.com>
158
159 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
160 (__libc_enable_secure_internal): Likewise.
161
162 * elf/dl-load.c: Don't declare __libc_stack_end.
163 * sysdeps/generic/libc-start.c: Likewise.
164 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
165 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
166 * sysdeps/generic/backtrace.c: Likewise.
167
168 2004-01-15 Ulrich Drepper <drepper@redhat.com>
169
170 * Versions.def: Add GLIBC_2.3.4.
171
172 2004-01-15 Richard Henderson <rth@redhat.com>
173
174 * sysdeps/unix/alpha/sysdep.h: Revert last change.
175
176 2004-01-15 Richard Henderson <rth@redhat.com>
177
178 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
179
180 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
181 !samegp relocation.
182
183 2004-01-15 Richard Henderson <rth@redhat.com>
184
185 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
186 ucontext-offsets.sym.
187 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
188 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
189 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
190 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
191 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
192
193 2004-01-15 Richard Henderson <rth@redhat.com>
194
195 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
196 __syscall_, move nop inside, adjust users by +4.
197
198 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
199
200 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
201 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
202 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
203 symbols.
204 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
205 gen-as-const-headers.
206 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
207 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
208 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
209 * sysdeps/unix/sysv/linux/kernel-features.h
210 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
211 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
212 Declare mcontext_t inline and include altivec state for 64-bit.
213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
214 versions for setcontext, getcontext, and swapcontext.
215
216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
217 versions for setcontext, getcontext, swapcontext, and makecontext.
218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
219 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
220 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
221 Compatible with GLIBC_2.3.3 release.
222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
223 (__makecontext): Use parm save area instead of compiler_dw to hold
224 context pointer.
225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
226 (__setcontext): Upgrade to restore Altivec regs and version
227 GLIBC_2_3_4.
228 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
229 Compatible with GLIBC_2.3.3 release.
230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
231 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
232 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
233 Compatible with GLIBC_2.3.3 release.
234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
235 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
236
237 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
238
239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
240 versions for setcontext, getcontext, swapcontext, and makecontext.
241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
242 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
243 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
244 Compatible with GLIBC_2.3.3 release.
245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
246 (__makecontext): Upgrade to align for Altivec regs and version
247 GLIBC_2_3_4.
248 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
249 Compatible with GLIBC_2.3.3 release.
250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
251 (__setcontext): Upgrade to restore Altivec regs and version
252 GLIBC_2_3_4.
253 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
254 Compatible with GLIBC_2.3.3 release.
255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
256 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
257 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
258 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
260 (_UC_VSCR, _UC_VRSAVE): Define.
261 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
262 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
263
264 2004-01-15 Ulrich Drepper <drepper@redhat.com>
265
266 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
267
268 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
269
270 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
271 parameter type.
272
273 2004-01-15 Ulrich Drepper <drepper@redhat.com>
274
275 * elf/elf.h: Fix typo in comment.
276
277 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
278 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
279
280 * resolv/resolv.h: Add RES_USEBSTRING.
281 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
282 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
283 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
284 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
285 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
286 Otherwise use the two nibble formats.
287
288 2004-01-14 Ulrich Drepper <drepper@redhat.com>
289
290 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
291 * config.h.in: Add entry for HAVE_Z_RELRO.
292 * include/libc-symbols.h: Define attribute_relro.
293 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
294 max_capstrlen, and max_dirnamelen definitions.
295 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
296 load_time, start_time, library_path, preloadlist, version_info,
297 any_debug.
298 Remove rtld_total_time. Make it a local variable. Pass pointer to
299 it to print_statistics. Change print_statistics accordingly.
300 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
301 attribute_relro instead of explicitly assigning variable to the
302 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
303 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
304 _dl_argv, _dl_argv_internal with attribute_relro.
305
306 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
307
308 * Makerules (gen-as-const): Don't silently continue on failure.
309
310 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
311
312 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
313 rtld_hidden_data_def.
314
315 2004-01-14 Ulrich Drepper <drepper@redhat.com>
316
317 * libio/libio.h: Add const to function tables types.
318 * libio/libioP.h: Likewise.
319 * login/utmp-private.h: Likewise.
320 * libio/fileops.c: Add const to jump table variable definition.
321 * libio/genops.c: Likewise.
322 * libio/iofopncook.c: Likewise.
323 * libio/iopopen.c: Likewise.
324 * libio/memstream.c: Likewise.
325 * libio/obprintf.c: Likewise.
326 * libio/oldfileops.c: Likewise.
327 * libio/oldiopopen.c: Likewise.
328 * libio/strops.c: Likewise.
329 * libio/vsnprintf.c: Likewise.
330 * libio/vswprintf.c: Likewise.
331 * libio/wfileops.c: Likewise.
332 * libio/wstrops.c: Likewise.
333 * login/getutent_r.c: Likewise.
334 * login/getutid_r.c Likewise.
335 * login/getutline_r.c: Likewise.
336 * sysdeps/generic/utmp_file.c: Likewise.
337
338 2004-01-09 Bruno Haible <bruno@clisp.org>
339
340 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
341 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
342 (_nl_load_domain): Treat major revision 1 like major revision 0.
343
344 2004-01-11 Bruno Haible <bruno@clisp.org>
345
346 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
347 width or precision has been seen.
348
349 2004-01-08 Bruno Haible <bruno@clisp.org>
350
351 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
352 dependent segment not known to this version of the library, ignore
353 the string pair instead of crashing.
354
355 2004-01-13 Ulrich Drepper <drepper@redhat.com>
356
357 * configure.in: Rewrite test to give gcc to clean up after itself.
358 Patch by Greg Schafer.
359
360 * posix/regex.c: Support crappy compilers and platforms which have
361 problems with alloca.
362 * posix/regex_internal.h: Likewise.
363 Patch by Paolo Bonzini.
364
365 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
366
367 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
368 Drop code to support this, it is never true.
369 (build_range_exp) [!_LIBC]: Do not create a range
370 in MBCSET for a single-byte character set.
371 (build_range_exp) [_LIBC]: Do not create a range
372 in MBCSET for a single-byte character set without
373 collation elements.
374 (init_dfa): Do not conditionalize on _LIBC, it
375 just makes the code less clear.
376 (parse_bracket_exp): Use NON_MATCH variable in
377 addition to "mbcset->non_match", not as an
378 alternative.
379 (build_charclass_op): rename NOT parameter to
380 NON_MATCH, use it instead of declaring a variable.
381 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
382 if the character set is single-byte.
383
384 2004-01-14 Jakub Jelinek <jakub@redhat.com>
385
386 * posix/regcomp.c (peek_token_bracket): Check remaining
387 string length before re_string_peek_byte (x, 1).
388 (parse_bracket_symbol): Likewise.
389 * posix/regex_internal.h (re_string_is_single_byte_char): Return
390 true at last byte in the string.
391 * posix/bug-regex22.c (main): Add new test.
392
393 2004-01-13 Ulrich Drepper <drepper@redhat.com>
394
395 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
396 .data.rel.ro.
397
398 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
399
400 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
401 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
402 rtld_hidden_def and move into .data.rel.ro section.
403 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
404 rtld_hidden_proto.
405 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
406 if !SHARED.
407
408 2004-01-13 Richard Henderson <rth@redhat.com>
409
410 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
411
412 2004-01-13 Ulrich Drepper <drepper@redhat.com>
413
414 * sysdeps/unix/sysv/linux/dl-execstack.c
415 (_dl_make_stack_executable): Move common code in front. Use
416 __builtin_expect.
417
418 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
419 challenge for caller.
420 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
421 member in rtld_global appropriately.
422 * elf/dl-support.c: Likewise.
423 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
424 Pass it on to the changed function.
425 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
426
427 2004-01-13 Richard Henderson <rth@redhat.com>
428
429 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
430 Cast old up to uint64_t before back down to inner width.
431 (__arch_compare_and_exchange_xxx_16_int): Likewise.
432 (__arch_compare_and_exchange_xxx_32_int): Likewise.
433 (__arch_compare_and_exchange_xxx_64_int): Likewise.
434 (__arch_compare_and_exchange_val_8_int): Cast result to
435 the type of the memory.
436 (__arch_compare_and_exchange_val_16_int): Likewise.
437 (__arch_compare_and_exchange_val_32_int): Likewise.
438 (__arch_compare_and_exchange_val_64_int): Likewise.
439 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
440 (atomic_compare_and_exchange_bool_rel): Likewise.
441
442 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
443 based on HAVE___THREAD instead of USE_TLS.
444
445 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
446 (__adjtimex_tv64): Use it.
447
448 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
449 to void* rather than directly to the compatibility structure type.
450 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
451
452 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
453 Forward declare.
454
455 2004-01-13 Richard Henderson <rth@redhat.com>
456
457 * Versions.def (libm): Add GLIBC_2.3.3.
458 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
459 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
460 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
461 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
462 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
463 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
464 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
465 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
466 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
467 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
468 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
469 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
470 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
471 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
472 functions for gcc 3.3.
473
474 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
475 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
476 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
477 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
478 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
479 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
480 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
481 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
482 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
483 weak_alias if the function name has been #defined.
484
485 * math/cabsf.c: Move ...
486 * sysdeps/generic/cabsf.c: ... here.
487 * math/cargf.c: Move ...
488 * sysdeps/generic/cargf.c: ... here.
489 * math/cimagf.c: Move ...
490 * sysdeps/generic/cimagf.c: ... here.
491 * math/conjf.c: Move ...
492 * sysdeps/generic/conjf.c: ... here.
493 * math/crealf.c: Move ...
494 * sysdeps/generic/crealf.c: ... here.
495
496 2004-01-13 Ulrich Drepper <drepper@redhat.com>
497
498 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
499 LDFLAGS.so and LDFLAGS-rtld.
500 (+link): Add relro-LDFLAGS.
501 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
502 __libc_thread_subfreeres sections after .jcr section.
503 * config.make.in: Add have-z-relro.
504 * configure.in: Add check for -z relro option.
505 * include/link.h (struct link_map): Add relro_addr and relro_size
506 members.
507 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
508 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
509 part of loaded segments read-only.
510 * elf/elf.h: Define PT_GNU_RELRO.
511 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
512 (dl_main): Recognize PT_GNU_RELRO of the application. Call
513 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
514 relocations.
515
516 2004-01-12 Jakub Jelinek <jakub@redhat.com>
517
518 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
519
520 2004-01-11 Andreas Jaeger <aj@suse.de>
521
522 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
523
524 2004-01-10 Andreas Jaeger <aj@suse.de>
525
526 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
527 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
528 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
529 * sysdeps/x86_64/strcspn.S: Likewise.
530 * sysdeps/x86_64/strspn.S: Likewise.
531
532 2004-01-08 Jakub Jelinek <jakub@redhat.com>
533
534 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
535 right before syscall and cfi_startproc before PSEUDO_END.
536 Clear %rbp in thread_start.
537
538 2004-01-05 Jakub Jelinek <jakub@redhat.com>
539
540 * posix/regcomp.c (regcomp): Fix comment typo.
541 (regfree): Free preg->translate, clear buffer, allocated, fastmap
542 and translate fields.
543
544 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
545 argument to unsigned RE_TRANSLATE_TYPE.
546 * posix/regex_internal.h (re_string_t): Change trans type to
547 unsigned RE_TRANSLATE_TYPE.
548 * posix/regex_internal.c (re_string_construct_common): Cast
549 trans to unsigned RE_TRANSLATE_TYPE.
550 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
551 path if pstr->trans. Never translate the character through
552 pstr->trans.
553 * posix/Makefile (tests): Add bug-regex22.
554 (bug-regex22-ENV): Set.
555 * posix/bug-regex22.c: New test.
556
557 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
558
559 * posix/regex_internal.c (re_node_set_add_intersect,
560 re_node_set_merge): Rewritten.
561 (re_node_set_insert, re_node_set_remove_at):
562 Avoid memmove, we know what direction we should copy and that we
563 are copying 32-bit words.
564 (re_node_set_compare): Iterate backwards.
565
566 2003-12-30 Paul Eggert <eggert@twinsun.com>
567
568 * time/mktime.c (verify): New macro.
569 (time_t_is_integer, twos_complement_arithmetic,
570 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
571 C99_integer_division): Document these longstanding assumptions in the
572 code, and verify them at compile-time.
573
574 2004-01-02 Jakub Jelinek <jakub@redhat.com>
575
576 * posix/regex_internal.h (re_match_context_t): Add dfa member.
577 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
578 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
579 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
580 sift_states_backward, update_cur_sifted_state, check_dst_limits,
581 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
582 check_subexp_matching_top, transit_state_sb, transit_state_mb,
583 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
584 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
585 Remove dfa parameter. Get dfa from mctx. Adjust callers.
586 (re_search_internal): Initialize mctx.dfa.
587
588 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
589
590 * posix/regex_internal.h (re_dfa_t): Add syntax field.
591 * posix/regcomp.c (parse): Initialize dfa->syntax.
592 * posix/regexec.c (acquire_init_state_context,
593 prune_impossible_nodes, check_matching, check_halt_state_context,
594 proceed_next_node, sift_states_iter_mb, sift_states_backward,
595 update_cur_sifted_state, sift_states_bkref, transit_state,
596 transit_state_sb, transit_state_mb, transit_state_bkref,
597 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
598 build_trtable): Remove preg argument, add dfa argument instead
599 and remove dfa = preg->buffer initialization in the body.
600 Adjust all callers.
601 (check_node_accept_bytes, group_nodes_into_DFAstates,
602 check_node_accept): Likewise. Use dfa->syntax instead of
603 preg->syntax.
604 (check_arrival_add_next_nodes): Remove preg argument.
605
606 * posix/regex_internal.h (re_match_context_t): Make input
607 re_string_t instead of a pointer to it.
608 * posix/regex_internal.c (re_string_construct_common): Don't clear
609 pstr here...
610 (re_string_construct): ... but only here.
611 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
612 initialize fields to zero.
613 (re_search_internal): Move input into mctx.input.
614 (acquire_init_state_context, check_matching,
615 check_halt_state_context, proceed_next_node,
616 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
617 transit_state, transit_state_sb, transit_state_mb,
618 transit_state_bkref, get_subexp, check_arrival,
619 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
620 Change mctx->input into &mctx->input and mctx->input->field into
621 mctx->input.field.
622
623 2004-01-02 Jakub Jelinek <jakub@redhat.com>
624 Paolo Bonzini <bonzini@gnu.org>
625
626 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
627 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
628 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
629 (re_string_context_at, re_string_reconstruct): Remove last argument.
630 * posix/regex_internal.c (re_string_allocate): Initialize
631 pstr->word_char and pstr->word_ops_used.
632 (re_string_context_at): Remove newline_anchor argument.
633 Use input->newline_anchor instead, swap && conditions.
634 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
635 Use input->word_char bitmap instead of IS_WORD_CHAR.
636 (re_string_reconstruct): Likewise.
637 Adjust re_string_context_at caller.
638 * posix/regexec.c (acquire_init_state_context,
639 check_halt_state_context, transit_state, transit_state_sb,
640 transit_state_mb, transit_state_bkref, check_arrival,
641 check_node_accept): Adjust re_string_context_at and
642 re_string_reconstruct callers.
643 (re_search_internal): Likewise. Set input.newline_anchor.
644 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
645 * posix/regcomp.c (init_word_char): Change return type to void.
646 Set dfa->word_ops_used.
647 (free_dfa_content): Don't free dfa->word_char.
648 (parse_expression): Remove error handling for init_word_char.
649
650 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
651
652 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
653 bitfield.
654
655 * posix/regex_internal.c (re_node_set_insert): Rewrite.
656
657 2004-01-01 Ulrich Drepper <drepper@redhat.com>
658
659 * posix/getconf.c: Update copyright year.
660 * nss/getent.c: Likewise.
661 * nscd/nscd_nischeck.c: Likewise.
662 * iconv/iconvconfig.c: Likewise.
663 * iconv/iconv_prog.c: Likewise.
664 * elf/ldconfig.c: Likewise.
665 * catgets/gencat.c: Likewise.
666 * csu/version.c: Likewise.
667 * elf/ldd.bash.in: Likewise.
668 * elf/sprof.c (print_version): Likewise.
669 * locale/programs/locale.c: Likewise.
670 * locale/programs/localedef.c: Likewise.
671 * nscd/nscd.c (print_version): Likewise.
672 * debug/xtrace.sh: Likewise.
673 * malloc/memusage.sh: Likewise.
674 * malloc/mtrace.pl: Likewise.
675
676 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
677
678 * stdlib/strfmon.c: Make formatting of left-justified currency
679 values match the the POSIX standard. When using format string
680 "[%-14#5.4n]" to print -123.45, the result should be
681 "[-$ 123.4500 ]", not "[-$123.4500 ]".
682
683 2004-01-01 Andreas Jaeger <aj@suse.de>
684
685 * resolv/Makefile (generated): New.
686
687 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
688
689 * CONFORMANCE: Update.
690
691 2003-12-30 Paul Eggert <eggert@twinsun.com>
692
693 * time/mktime.c: (my_mktime_localtime_r):
694 Remove. All uses changed to __localtime_r.
695 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
696 get its implementation.
697 Fix compile-command to allow for TIME_R_POSIX.
698
699 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
700 Remove. All uses changed to __localtime_r and __gmtime_r.
701 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
702 Include "time_r.h" to get their implementations.
703
704 * time/timegm.c: Allow use in GNU applications outside glibc.
705 [defined HAVE_CONFIG_H]: Include <config.h>.
706 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
707 Define __gmtime_r, and declare __mktime_internal.
708 (timegm): Define via a prototype, since we can safely assume C89 now.
709
710 * time/mktime.c (check_result): Use less-confusing report format.
711 "long" -> "long int", as per usual GNU style.
712 (main): Likewise.
713 Don't loop if the iteration overflows time_t.
714 Allow a negative step in the iteration.
715
716 * time/mktime.c: Assume freestanding C89 or better.
717 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
718 assume they're 1.
719 (__P): Remove; not used.
720 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
721 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
722 Prototypes use const * where appropriate.
723 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
724 which caused the testing code to dump core on some hosts.
725
726 2003-12-31 Ulrich Drepper <drepper@redhat.com>
727
728 * locale/setlocale.c (setlocale): Avoid duplicating locale names
729 if we can reuse old strings.
730
731 * inet/rcmd.c: Provide better error message in case of unknown
732 host. Remove USE_IN_LIBIO.
733
734 * nscd/nscd.init: Updated version, more conforming with current
735 init file standards.
736
737 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
738 /var/run/nscd directory.
739 (_PATH_NSCDSOCKET): Likewise.
740
741 * test-skeleton.c (timeout_handler): Fix error message.
742
743 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
744 CNT == 0.
745
746 2003-12-30 Jakub Jelinek <jakub@redhat.com>
747
748 * posix/regexec.c (get_subexp): Only set bkref_str after the first
749 loop, use buf + bkref_str_off in the loop instead.
750 * posix/bug-regex11.c (tests): Add 3 new tests.
751
752 * posix/regexec.c (clean_state_log_if_need): Rename to...
753 (clean_state_log_if_needed): ...this.
754 (transit_state_mb, get_subexp_sub): Adjust callers.
755
756 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
757 failed. Reported by Steve Grubb.
758
759 2003-12-29 Ulrich Drepper <drepper@redhat.com>
760
761 * elf/elf.h: Add a few definitions from Solaris 9.
762
763 2003-12-29 Andreas Schwab <schwab@suse.de>
764
765 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
766 $(fno_unit_at_a_time) to avoid reordering assembler output.
767
768 2003-12-29 Jakub Jelinek <jakub@redhat.com>
769
770 * posix/regexec.c (re_copy_regs): Revert comment change.
771 Avoid memory leak if realloc fails.
772 (proceed_next_node): Return -2 if re_node_set_insert fails.
773 Return -2 if push_fail_stack fails.
774 (push_fail_stack): Change fs->alloc only after successful realloc.
775 (pop_fail_stack): Formatting.
776 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
777 (check_arrival_add_next_nodes): Merge identical statements
778 from if branches.
779
780 * signal/Makefile (tests): Add tst-raise.
781 * signal/tst-raise.c: New test.
782
783 2003-12-28 Ulrich Drepper <drepper@redhat.com>
784
785 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
786
787 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
788 (push_fail_stack): Add missing check for failed memory allocation.
789
790 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
791 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
792 _IO_putwc_unlocked.
793
794 2003-12-28 Andreas Jaeger <aj@suse.de>
795
796 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
797 overflow for 0 as argument. Raise Invalid exception for negative args.
798 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
799 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
800 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
801 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
802 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
803 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
804 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
805 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
806 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
807 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
808 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
809
810 * math/libm-test.inc (yn_test): Expect invalid exception for
811 negative arguments.
812 (y0_test): Likewise.
813 (y1_test): Likewise.
814
815 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
816 execptions for exp(NaN).
817
818 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
819
820 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
821 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
822 among the tokens, rather than among the epsilon-transiting nodes.
823 (re_token_t): Add the opt_subexp flag.
824 * posix/regcomp.c (optimize_utf8, calc_first,
825 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
826 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
827 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
828 OP_DUP_ASTERISK and marking optional subexpressions
829 as such using mark_opt_subexp.
830 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
831 and pass it to update_regs.
832 (update_regs): Use the PREV_INDEX_MATCH parameter, together
833 with the opt_subexp flag, in order to discard a final empty
834 match of a repeated subexpression.
835 * posix/BOOST.tests: Adjust test vectors.
836 * posix/PCRE.tests: Likewise.
837 * posix/rxspencer/tests: Likewise.
838
839 2000-05-22 Jakub Jelinek <jakub@redhat.com>
840
841 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
842 with omitted middle operand.
843
844 2003-12-22 Jakub Jelinek <jakub@redhat.com>
845
846 * posix/regcomp.c: Remove C99-ism.
847 * posix/tst-rxspencer.c: Likewise.
848 Based on a patch by Alex Davis <alex14641@yahoo.com>.
849
850 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
851
852 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
853 (re_string_allocate, re_string_construct, re_string_reconstruct,
854 re_string_realloc_buffers, build_wcs_buffer,
855 build_wcs_upper_buffer, build_upper_buffer,
856 re_string_translate_buffer, re_string_destruct,
857 re_string_elem_size_at, re_string_char_size_at,
858 re_string_wchar_at, re_string_context_at,
859 re_node_set_alloc, re_node_set_init_1
860 re_node_set_init_2, re_node_set_init_copy,
861 re_node_set_add_intersect, re_node_set_init_union,
862 re_node_set_merge, re_node_set_insert
863 re_node_set_compare, re_node_set_contains
864 re_node_set_remove_at, re_dfa_add_node,
865 re_acquire_state, re_acquire_state_context,
866 free_state): Add internal_function to declaration.
867
868 * posix/regexec.c (match_ctx_init, match_ctx_clean,
869 match_ctx_free, match_ctx_free_subtops,
870 match_ctx_add_entry, search_cur_bkref_entry,
871 match_ctx_clear_flag, match_ctx_add_subtop,
872 match_ctx_add_sublast, sift_ctx_init,
873 re_search_internal, re_search_2_stub, re_search_stub,
874 re_copy_regs, acquire_init_state_context,
875 prune_impossible_nodes, check_matching,
876 check_halt_node_context, check_halt_state_context
877 update_regs, proceed_next_node, push_fail_stack,
878 pop_fail_stack, set_regs, free_fail_stack_return,
879 sift_states_iter_mb, sift_states_backward
880 update_cur_sifted_state, add_epsilon_src_nodes,
881 sub_epsilon_src_nodes, check_dst_limits,
882 check_dst_limits_calc_pos, check_subexp_limits,
883 sift_states_bkref, clean_state_log_if_need,
884 merge_state_array, transit_state,
885 check_subexp_matching_top, transit_state_sb,
886 transit_state_mb, transit_state_bkref,
887 get_subexp, get_subexp_sub, find_subexp_node,
888 check_arrival, check_arrival_add_next_nodes,
889 find_collation_sequence_value, check_arrival_expand_ecl,
890 check_arrival_expand_ecl_sub, expand_bkref_cache,
891 build_trtable, check_node_accept_bytes, extend_buffers,
892 group_nodes_into_DFAstates, check_node_accept): Likewise.
893
894 * posix/regex_internal.c (re_string_construct_common,
895 re_string_skip_chars, create_newstate_common,
896 register_state, create_ci_newstate, create_cd_newstate,
897 calc_state_hash): Likewise.
898 (re_string_peek_byte_case, re_fetch_byte_case): Change
899 declaration from ANSI to K&R.
900
901 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
902
903 * posix/regexec.c (build_trtable): Don't allocate the trtable
904 until state->word_trtable is known. Don't hardcode UINT_BITS
905 iterations on each bitset item.
906
907 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
908
909 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
910 Initialize REF before passing it to _dl_lookup_symbol.
911
912 2003-12-21 Roland McGrath <roland@frob.com>
913
914 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
915
916 2003-12-21 Jakub Jelinek <jakub@redhat.com>
917
918 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
919 2003-11-24 changes.
920 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
921 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
922 * posix/bug-regex19.c (tests): Add new tests.
923
924 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
925
926 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
927 after checking syntax. Optimize.
928 (calc_first): Fix comment.
929 * posix/bug-regex13.c (tests): Add new tests.
930
931 2003-12-21 Roland McGrath <roland@redhat.com>
932
933 * manual/arith.texi (Parsing of Integers): Typo fix.
934
935 2003-12-20 Roland McGrath <roland@frob.com>
936
937 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
938 add missing dereference of IFREQS before counting loop.
939
940 2003-12-21 Andreas Schwab <schwab@suse.de>
941
942 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
943 constraints.
944
945 2003-12-20 Ulrich Drepper <drepper@redhat.com>
946
947 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
948
949 2003-12-18 Ulrich Drepper <drepper@redhat.com>
950
951 * stdio-common/printf_fp.c: Add support to use alternative decimal
952 digits.
953 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
954 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
955
956 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
957
958 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
959 reload PIC if we need to call __syscall_error, cleanup asm.
960
961 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
962
963 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
964 FE_ALL_EXCEPT before complimenting.
965 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
966 and gcc '+r' constraint.
967 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
968 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
969 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
970 exception bits, OR with envp, pass to fesetenv.
971 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
972 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
973 triggered by M_PI/69.69 converted to single precision.
974 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
975 bits not raised exception bits.
976
977 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
978 correct build strings.
979 * sysdeps/hppa/dl-fptr.h: New file.
980 * sysdeps/hppa/dl-fptr.c: Removed.
981 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
982 remove const qualifier for map.
983 (_dl_function_address): Removed.
984 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
985 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
986 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
987 DL_DT_FINI_ADDRESS use the previous two macros.
988
989 2003-12-17 Jakub Jelinek <jakub@redhat.com>
990
991 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
992 (tr_memalignhook): New function.
993 (mtrace): Register tr_memalignhook.
994 (muntrace): Deregister tr_memalignhook.
995 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
996 call it directly instead of memalign_internal.
997
998 2003-12-17 Ulrich Drepper <drepper@redhat.com>
999
1000 * misc/mntent_r.c: Change encoding to match recently changed decoder.
1001 Patch by Alexander Achenbach <xela@slit.de>.
1002
1003 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1004
1005 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
1006 vrregset_t.
1007
1008 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
1009
1010 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
1011 conditional to include typedef elf_vrreg_t.
1012
1013 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
1014
1015 * posix/regexec.c (re_search_internal): Limit search to the
1016 beginning of the buffer if the initial states are empty for
1017 contexts that do not include CONTEXT_BEGBUF or, if
1018 !preg->newline_anchor, that do not include any one of
1019 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
1020
1021 2003-12-17 Andreas Jaeger <aj@suse.de>
1022
1023 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
1024 Kevin Pedretti <pedretti@ieee.org>.
1025
1026 2003-12-17 Ulrich Drepper <drepper@redhat.com>
1027
1028 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
1029 removes the visibility attributes which might be defined earlier
1030 for some gcc versions. Instead spell out what strong_alias does
1031 plus the visibility.
1032
1033 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
1034
1035 * posix/regex_internal.h: Make sure the regex code compile
1036 with non-GCC compilers by hiding attributes.
1037
1038 2003-12-16 Jakub Jelinek <jakub@redhat.com>
1039 Paolo Bonzini <bonzini@gnu.org>
1040
1041 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
1042 dests_ch items that are empty.
1043
1044 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1045
1046 * posix/regexec.c (check_arrival): Remove duplicate test.
1047
1048 2003-12-15 Ulrich Drepper <drepper@redhat.com>
1049
1050 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
1051 * posix/regex_internal.c: Likewise.
1052 * posix/regexec.c: Likewise.
1053 Patch by Paolo Bonzini.
1054
1055 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
1056
1057 * posix/regex_internal.c (re_acquire_state_context):
1058 Compare the node sets after all the other comparisons.
1059
1060 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
1061
1062 * posix/regexec.c (find_subexp_node, check_arrival,
1063 check_arrival_add_next_nodes, check_arrival_expand_ecl,
1064 check_arrival_expand_ecl_sub, expand_bkref_cache):
1065 Rename the FL_OPEN parameter to TYPE, which is either
1066 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
1067
1068 2003-12-12 Andreas Jaeger <aj@suse.de>
1069
1070 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
1071 to syscall.
1072
1073 2003-12-11 Ulrich Drepper <drepper@redhat.com>
1074
1075 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
1076 There might always be processes which have no vDSO.
1077 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
1078 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1079
1080 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1081
1082 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
1083 in the right order.
1084
1085 2003-12-01 Jes Sorensen <jes@wildopensource.com>
1086
1087 * rt/tst-clock.c (do_test): Print message when skipping
1088 CLOCK_PROCESS_CPUTIME_ID test.
1089
1090 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
1091 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
1092
1093 2003-12-02 David Mosberger <davidm@hpl.hp.com>
1094
1095 * sysdeps/ia64/elf/initfini.c: Add unwind info.
1096
1097 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
1098 attribute "unused".
1099 (elf_machine_dynamic): Mark with attributes "unused" and "const".
1100 (elf_machine_runtime_setup): Likewise.
1101
1102 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
1103 attribute "always_inline".
1104 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
1105 Likewise.
1106
1107 * configure.in: Check whether compiler has libunwind support.
1108 * config.make.in (have-cc-with-libunwind): New variable.
1109 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
1110 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
1111 mention -lunwind.
1112
1113 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1114
1115 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
1116 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
1117 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
1118 DO_INLINE_SYSCALL.
1119
1120 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
1121 instead of DO_CALL().
1122
1123 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
1124 of DO_CALL().
1125
1126 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
1127 to take advantage of DO_CALL() macro.
1128 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
1129 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
1130
1131 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
1132 program header. On ia64, the check failed previously because
1133 there are two program headers.
1134
1135 2003-12-10 Andreas Jaeger <aj@suse.de>
1136 Ruediger Oertel <ro@suse.de>
1137
1138 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
1139
1140 2003-12-07 Ulrich Drepper <drepper@redhat.com>
1141
1142 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
1143 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1144 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1145 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1146 * sysdeps/generic/s_nexttowardf.c: Likewise.
1147 * math/Makefile (tests): Add bug-nexttoward.
1148 * math/bug-nexttoward.c: New file.
1149
1150 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
1151 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1152 * math/bug-nextafter.c (main): Add tests for overflow and negative
1153 values.
1154
1155 2003-12-06 Ulrich Drepper <drepper@redhat.com>
1156
1157 * math/Makefile (tests): Add bug-nextafter.
1158 * math/bug-nextafter.c: New file.
1159 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
1160 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1161 * math/libm-test.inc (nextafter_test): Add test for overflow after
1162 +/-FLT_MAX etc.
1163
1164 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
1165
1166 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
1167 of fenv.
1168 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1169
1170 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1171
1172 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
1173 statements.
1174 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
1175 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
1176 (END): Add cfi_endproc directive.
1177 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
1178 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
1179 cfi_startproc and cfi_endproc directive.
1180 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
1181 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
1182 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
1183 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
1184 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1185 Likewise.
1186 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1187 Likewise.
1188 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
1189 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
1190 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
1191 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
1192 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
1193 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
1194 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
1195 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
1196 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1197 Likewise.
1198 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1199 Likewise.
1200 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
1201 directives. Move thread_start out of ENTRY/PSEUDO_END block to
1202 make backchain terminate.
1203 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1204
1205 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
1206 (unwind_backtrace, unwind_getip): New variables.
1207 (init, __backchain_backtrace, backtrace_helper): New functions.
1208 (__backtrace): Use unwind info for backtrace instead of backchain
1209 walking if the unwind functions can be found.
1210 * sysdeps/s390/s390-64/backtrace.c: Likewise.
1211
1212 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
1213
1214 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
1215 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
1216 (elf_prstatus32, elf_prpsinfo32): New structures.
1217 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
1218
1219 * scripts/data/c++-types-s390-linux-gnu.data: New file.
1220 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
1221
1222 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
1223
1224 * stdlib/strfmon.c: Correct formatting of international currency
1225 values. The international currency formatting should prefer the
1226 int_* values if they are set for a locale, and use the domestic
1227 values if the int_* values are unset.
1228
1229 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1230
1231 * posix/Makefile (distribute): Add BOOST.tests.
1232 (tests): Add tst-boost, depend on tst-boost-mem.
1233 (generated): Add tst-boost-mem and tst-boost.mtrace.
1234 (tst-boost-ARGS, tst-boost-ENV): Set.
1235 ($(objpfx)tst-boost-mem): New.
1236 * posix/tst-boost.c: New test.
1237 * posix/BOOST.tests: New file.
1238
1239 * posix/Makefile (distribute): Add PCRE.tests.
1240 (tests): Add tst-pcre, depend on tst-pcre-mem.
1241 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
1242 (tst-pcre-ARGS, tst-pcre-ENV): Set.
1243 ($(objpfx)tst-pcre-mem): New.
1244 * posix/tst-pcre.c: New test.
1245 * posix/PCRE.tests: New file.
1246
1247 2003-12-02 Jakub Jelinek <jakub@redhat.com>
1248
1249 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
1250
1251 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
1252 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1253
1254 2003-12-03 Ulrich Drepper <drepper@redhat.com>
1255
1256 * locale/programs/locarchive.c (enlarge_archive): Print size info
1257 only in verbose mode.
1258
1259 * locale/iso-3166.def: Three letter code of Romania changed.
1260
1261 2003-12-02 Roland McGrath <roland@redhat.com>
1262
1263 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
1264 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
1265
1266 2003-11-30 Andreas Jaeger <aj@suse.de>
1267
1268 * config.make.in (fno-unit-at-a-time): Define.
1269
1270 * configure.in: Add test for -fno-unit-at-a-time.
1271 Fix text for -fpie.
1272
1273 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
1274 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
1275
1276 2003-12-01 Automatic
1277
1278 * version.h (VERSION): Bump to 2.3.3.
1279
1280 2003-11-30 Andreas Jaeger <aj@suse.de>
1281
1282 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
1283 decrease stack usage.
1284
1285 2003-11-30 Andreas Schwab <schwab@suse.de>
1286
1287 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
1288 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
1289
1290 2003-11-29 Ulrich Drepper <drepper@redhat.com>
1291
1292 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
1293 recognize \134 as well.
1294
1295 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
1296
1297 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
1298
1299 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1300
1301 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
1302 <asm/fpu.h>.
1303 (struct ia64_fpreg): New definition.
1304
1305 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
1306 <asm/elf.h>.
1307 (ELF_NGREG): New #define.
1308 (ELF_NFPREG): Likewise.
1309 (elf_greg_t): New type.
1310 (elf_gregset_t): Likewise.
1311 (elf_fpreg_t): Likewise.
1312 (elf_fpregset_t): Likewise.
1313
1314 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
1317 <sys/ucontext.h>.
1318 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
1319 (pt_all_user_regs): New type.
1320
1321 2003-10-10 Simon Josefsson <jas@extundo.com>
1322
1323 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
1324 strchrnul.h, strndup.h (from gnulib).
1325 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
1326 Autoconf manual.
1327 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
1328 Autoconf manual version.
1329 * argp/argp.h: Map __restrict to restrict or empty string when
1330 necessary, copied verbatim from posix/regex.h.
1331
1332 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
1333
1334 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
1335 addition to c++-types-$(base-machine)-$(config-os).data.
1336 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
1337 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
1338
1339 2003-11-28 Ulrich Drepper <drepper@redhat.com>
1340
1341 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
1342 of newline.
1343 * manual/sysinfo.texi (mtab): Adjust description accordingly.
1344 Reported by Andries.Brouwer@cwi.nl.
1345
1346 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
1347 to compensate other setup.
1348
1349 2003-11-27 Andreas Jaeger <aj@suse.de>
1350
1351 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
1352
1353 * math/libm-test.inc (atan2_test): Add test that run infinitly.
1354 Reported by "Willus" <etc231etc231@willus.com>.
1355
1356 2003-11-27 Michael Matz <matz@suse.de>
1357
1358 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
1359 with wrong types.
1360
1361 2003-11-28 Jakub Jelinek <jakub@redhat.com>
1362
1363 * posix/regexec.c (acquire_init_state_context): Make inline.
1364 Add always_inline attribute.
1365 (check_matching): Add BE macro. Move if (cur_state->has_backref)
1366 into if (dfa->nbackref).
1367 (sift_states_backward): Fix comment.
1368 (transit_state): Add BE macro. Move if (next_state->has_backref)
1369 into if (dfa->nbackref && next_state). Don't check for next_state
1370 != NULL twice.
1371 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
1372 for ANCHOR.
1373 (parse_expression): Only call init_word_char if word context will be
1374 needed.
1375
1376 * posix/bug-regex11.c (tests): Add new tests.
1377
1378 * posix/tst-regex.c: Include getopt.h.
1379 (timing): New variable.
1380 (main): Set timing to 1 if --timing argument is present.
1381 Add 2 new tests.
1382 (run_test, run_test_backwards): Handle timing.
1383
1384 2003-11-27 Jakub Jelinek <jakub@redhat.com>
1385
1386 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
1387 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
1388 offsets_needed fields. Change icase, is_utf8 and map_notascii
1389 type from int bitfield to unsigned char.
1390 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
1391 (build_wcs_upper_buffer): Change prototype to return int.
1392 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
1393 defines, add prototypes.
1394 * posix/regex_internal.c (re_string_allocate): Don't initialize
1395 stop here. Don't initialize mbs_case. Set valid_raw_len.
1396 Use mbs_allocated instead of MBS_* macros.
1397 (re_string_construct): Don't initialize stop and valid_len here.
1398 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
1399 macros. Reallocate buffers if build_wcs_upper_buffer converted
1400 too few bytes. Set valid_len to bufs_len only for single byte
1401 no translation and set in that case valid_raw_len as well.
1402 (re_string_realloc_buffers): Reallocate offsets if not NULL.
1403 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
1404 mbs_case.
1405 (re_string_construct_common): Initialize raw_len, mbs_allocated,
1406 stop and raw_stop.
1407 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
1408 after it. Set valid_raw_len. Don't set mbs_case.
1409 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
1410 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
1411 before mbrtowc instead of after it. If upper case character
1412 uses different number of bytes than lower case, goto to the
1413 slow path. Don't call towupper unnecessarily twice. Set
1414 valid_raw_len as well. Handle in the slow path the case if
1415 lower and upper case use different number of characters.
1416 Don't set mbs_case.
1417 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
1418 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
1419 valid_raw_len.
1420 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
1421 valid_raw_len.
1422 (re_string_reconstruct): Use raw_len/raw_stop to initialize
1423 len/stop. Clear valid_raw_len and offsets_needed when clearing
1424 valid_len. Use mbs_allocated instead of MBS_* macros.
1425 Check original offset against valid_raw_len instead of valid_len.
1426 Remove mbs_case handling. Adjust valid_raw_len together with
1427 valid_len. If is_utf8 and looking for tip context, apply
1428 pstr->trans first. If buffers start with partial multi-byte
1429 character, initialize mbs array as well if mbs_allocated.
1430 Check return value of build_wcs_upper_buffer.
1431 (re_string_peek_byte_case): New function.
1432 (re_string_fetch_byte_case): New function.
1433 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
1434 Don't free mbs_case. Free offsets.
1435 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
1436 if mb_cur_max == 6.
1437 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
1438 as well. Use valid_raw_len instead of valid_len when looking
1439 through fastmap. Adjust registers through input.offsets.
1440 (extend_buffers): Allow build_wcs_upper_buffer to fail.
1441 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
1442 tests.
1443
1444 2003-11-26 Jakub Jelinek <jakub@redhat.com>
1445
1446 * posix/regexec.c (check_subexp_limits): Only check close
1447 subexpression limitation if one is found. Formatting.
1448 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
1449 Formatting.
1450 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
1451 Add new test.
1452
1453 2003-11-26 Ulrich Drepper <drepper@redhat.com>
1454
1455 * sysdeps/unix/sysv/linux/kernel-features.h
1456 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
1457 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
1458 if __ASSUME_PROT_GROWSUPDOWN is defined.
1459
1460 2003-11-26 Andreas Jaeger <aj@suse.de>
1461
1462 * sysdeps/unix/sysv/linux/dl-execstack.c
1463 (_dl_make_stack_executable): Set dl_stack_flags always for
1464 success.
1465
1466 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
1467
1468 * locale/program/ld-monetary.c: Only check the first three
1469 characters in int_curr_symbol against ISO-4217, to make the
1470 separator character used by a locale independent of the content
1471 in iso-4217.def.
1472 * locale/iso-4217.def: Remove the space character from all
1473 currency values to get the new test code in ld-monetary.c working.
1474
1475 2003-11-21 David Mosberger <davidm@hpl.hp.com>
1476
1477 * elf/soinit.c (_fini): Put _fini() in .init_array section if
1478 HAVE_INITFINI_ARRAY is defined.
1479
1480 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1481
1482 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
1483 Define it appropriately after last change. Use it where __sqrtl
1484 was used.
1485
1486 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
1487
1488 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
1489 sqrt for gcc 3.3 and above.
1490
1491 2003-11-25 Ulrich Drepper <drepper@redhat.com>
1492
1493 * posix/runptests.c (main): Make errors fatal.
1494 * posix/PTESTS: One test in GA135 and GA136 check functionality
1495 which seems not guaranteed.
1496
1497 2003-11-25 Jakub Jelinek <jakub@redhat.com>
1498
1499 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
1500 returned REG_NOMATCH, set match_last to -1. Don't initialize
1501 pmatch[0] needlessly. Fix comment.
1502 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
1503 (set_regs): Fix comment.
1504 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
1505 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
1506 (build_charclass_op): Set has_plural_match if adding both
1507 SIMPLE_BRACKET and COMPLEX_BRACKET.
1508 * posix/bug-regex11.c (tests): Fix register values for one commented
1509 out test. Add new tests.
1510
1511 * posix/regex_internal.c (re_string_allocate): Make sure init_len
1512 is at least dfa->mb_cur_max.
1513 (re_string_reconstruct): If is_utf8, don't fall back into
1514 re_string_skip_chars just because idx points into a middle of
1515 valid UTF-8 character. Instead, set the wcs bytes which correspond
1516 to the partial character bytes to WEOF.
1517 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
1518 instead of dfa->nodes_len + 1 state_log entries initially.
1519 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
1520 tests.
1521
1522 2003-11-24 Jakub Jelinek <jakub@redhat.com>
1523
1524 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
1525 comment.
1526 (re_dfa_t): Add sb_char field.
1527 (bitset_mask): New function.
1528 * posix/regcomp.c (free_dfa_content): Free sb_char.
1529 (init_dfa): Don't initialize word_char unnecessarily.
1530 Initialize sb_char.
1531 (duplicate_node): Don't duplicate !word_char CHARACTERs with
1532 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
1533 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
1534 (duplicate_node_closure): Handle clone_dest == -1 from
1535 duplicate_node.
1536 (peek_token): Initialize word_char bit.
1537 (parse_expression, parse_dup_op): Add comments.
1538 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
1539 starting bytes here at the beginning. Mask off the bits right
1540 before creating SIMPLE_BRACKET.
1541 (build_charclass_op): Likewise.
1542 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
1543 set accept bits for single-byte characters.
1544 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
1545 being single byte encoded and the rest multi-byte.
1546 * posix/bug-regex19.c (tests): Add new tests.
1547 (do_mb_tests): Initialize t to *test.
1548 (main): Fail even on do_mb_tests errors.
1549
1550 2003-11-23 Ulrich Drepper <drepper@redhat.com>
1551
1552 * posix/regexec.c: Correct several memory allocation problems.
1553 Add more BE.
1554 * posix/regex_internal.c: Likewise.
1555 * posix/regcomp.c: Likewise.
1556
1557 * posix/regexec.c: Add const in a number of places.
1558 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
1559 debugging. Its value isn't important.
1560
1561 2003-11-22 Ulrich Drepper <drepper@redhat.com>
1562
1563 * posix/PTESTS: Fix first test of GA143.
1564
1565 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1566
1567 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
1568 isn't likely.
1569
1570 * locale/programs/charmap.c (charmap_read): If encoding is found
1571 not ASCII compatible, set enc_not_ascii_compatible.
1572 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
1573 * locale/programs/ld-ctype.c (ctype_startup): If
1574 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
1575
1576 2003-11-22 Jakub Jelinek <jakub@redhat.com>
1577
1578 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
1579 if !__libc_enable_secure.
1580
1581 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
1582 field.
1583 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
1584 (dl_main): Set GL(dl_use_load_bias) default.
1585 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
1586 Add EXTRA_LD_ENVVARS_13.
1587 * elf/dl-support.c (_dl_use_load_bias): New variable.
1588 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
1589 with GL(dl_use_load_bias).
1590 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
1591 LD_USE_LOAD_BIAS.
1592 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
1593 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
1594 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
1595 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
1596 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
1597
1598 2003-11-21 Ulrich Drepper <drepper@redhat.com>
1599
1600 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
1601
1602 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
1603 pointer. Adjust callers.
1604
1605 * posix/regcomp.c (fetch_token): Change interface to match
1606 peek_token. This avoids some copying and reduces code size.
1607
1608 2003-11-21 Jakub Jelinek <jakub@redhat.com>
1609
1610 * posix/bug-regex19.c (tests): Add more tests.
1611
1612 * posix/bug-regex11.c: And one more commented out test.
1613
1614 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
1615 tests multiple times unnecessarily.
1616
1617 * posix/bug-regex19.c (BRE, ERE): Define.
1618 (tests): Add many new tests, remove UTF-8 ones.
1619 (do_one_test, do_mb_tests): New functions.
1620 (main): Rewritten using do_one_test and do_mb_tests.
1621
1622 2003-11-20 Ulrich Drepper <drepper@redhat.com>
1623
1624 * posix/PTESTS: Fix first test in GA143.
1625
1626 2003-11-20 Jakub Jelinek <jakub@redhat.com>
1627
1628 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
1629 Add word_trtable.
1630 * posix/regex_internal.c (create_newstate_common, free_state):
1631 Don't free trtable_search.
1632 * posix/regexec.c (check_matching): Remove fl_search argument.
1633 (transit_state_sb): Likewise. #ifdef out as unused.
1634 (build_trtable): Remove fl_search argument. Set state->word_trtable
1635 and state->trtable. Build separate word and non-word tables if
1636 multi-byte and they differ for some character.
1637 (transit_state): Remove fl_search argument. Don't update
1638 state->trtable here. Handle state->word_trtable.
1639 #ifdef out unused call to transit_state_sb.
1640 (re_search_internal): Update check_matching caller.
1641 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
1642 bitmask for multi-byte locales.
1643 * posix/bug-regex19.c (tests): Enable some commented out tests, add
1644 2 new tests.
1645 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
1646 multi-byte. Don't run identical multi-byte tests multiple times
1647 unnecessarily.
1648 (main): Check setlocale return value.
1649 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
1650 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
1651 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
1652 here, without --utf8 argument but with MALLOC_TRACE.
1653
1654 2003-11-19 Jakub Jelinek <jakub@redhat.com>
1655
1656 * posix/regexec.c (extend_buffers): Don't allocate
1657 twice as big state_log as needed. Don't modify pstr->valid_len
1658 for mb_cur_max == 1 !icase !trans.
1659
1660 * posix/regcomp.c (free_bin_tree): Removed.
1661 (create_tree): Add dfa argument. Don't call re_malloc for
1662 each tree, instead allocate from str_tree_storage.
1663 (re_dfa_add_tree_node): New function.
1664 (free_dfa_content): Handle freeing if dfa->nodes == NULL
1665 or dfa->state_table == NULL.
1666 (re_compile_internal): Call free_dfa_content if init_dfa
1667 fails. Call free_workarea_compile, re_string_destruct
1668 and free_dfa_content for most of the other failure paths.
1669 (init_dfa): Initialize str_tree_storage_idx.
1670 Don't clear any fields on allocation failure.
1671 (free_workarea_compile): Free str_tree_storage chunks
1672 instead of free_bin_tree (dfa->str_tree).
1673 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
1674 followed by create_tree. Add dfa argument to remaining
1675 create_tree calls. Remove new_idx variable. Remove calls
1676 to free_bin_tree.
1677 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
1678 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
1679 (duplicate_tree): Remove calls to free_bin_tree, add dfa
1680 argument to create_tree.
1681 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
1682 (bin_tree_storage_t): New type.
1683 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
1684 fields.
1685 * posix/Makefile (tests): Add bug-regex21.
1686 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
1687 tst-rxspencer-mem and tst-rxspencer.mtrace.
1688 (tests): Depend on $(objpfx)bug-regex21-mem
1689 and $(objpfx)tst-rxspencer-mem.
1690 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
1691 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
1692 * posix/tst-rxspencer.c (main): Add call to mtrace.
1693 Free line at the end.
1694 * posix/bug-regex21.c: New test.
1695
1696 2003-11-19 Ulrich Drepper <drepper@redhat.com>
1697
1698 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
1699
1700 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
1701 fails, just use the byte, do no fancy conversions.
1702
1703 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
1704 not ->len.
1705 (re_string_is_single_byte_char): Likewise.
1706
1707 2003-11-18 Ulrich Drepper <drepper@redhat.com>
1708
1709 * posix/regexec.c (get_subexp): After calling get_subexp_sub
1710 reload buf and bkref_str. Little optimization by avoiding memcmp.
1711
1712 2003-11-14 David Mosberger <davidm@hpl.hp.com>
1713
1714 * sysdeps/unix/sysv/linux/ia64/sysdep.h
1715 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
1716 that all existing GAS versions have a problem with .align inside
1717 a function.
1718 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
1719 * sysdeps/ia64/memcpy.S: Likewise.
1720 * sysdeps/ia64/memset.S: Likewise.
1721 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
1722 out of .text into .rodata, where it belongs.
1723
1724 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
1725 save/restore input-arguments, because they're necessarily
1726 preserved by the kernel to support syscall-restart.
1727
1728 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1729
1730 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
1731 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
1732 and EPSILON_BIT.
1733 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
1734 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
1735 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
1736 Handle OP_UTF8_PERIOD.
1737 (re_string_reconstruct): Set valid_len for single byte char searching
1738 with no translation and case sensitivity.
1739 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
1740 OP_UTF8_PERIOD.
1741 (re_compile_internal): Don't call optimize_utf8 if preg->translate
1742 != NULL.
1743 (optimize_utf8): Remove BACK_SLASH case.
1744 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
1745 optimized.
1746 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
1747 any bits set and COMPLEX_BRACKET is used.
1748 * posix/regexec.c (transit_state_mb): Fix comment typo.
1749 (group_nodes_into_DFAstates, check_node_accept): Handle
1750 OP_UTF8_PERIOD.
1751 (check_node_accept_bytes): Likewise. Reorder slightly so that
1752 re_string_char_size_at and re_string_elem_size_at are called
1753 only when needed.
1754 * posix/bug-regex20.c (BRE, ERE): Define.
1755 (tests): Use them to make lines shorter. Expect . to be
1756 optimized. Add lots of new tests.
1757 (main): Run (ATM just case sensitive) test with backwards searching
1758 as well.
1759
1760 2003-11-18 Jakub Jelinek <jakub@redhat.com>
1761
1762 * io/bug-ftw4.c: Include string.h.
1763 * posix/fnmatch.c (mbsinit): Remove define.
1764
1765 2003-11-17 Jakub Jelinek <jakub@redhat.com>
1766
1767 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
1768 well.
1769 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
1770 followed by dup operator is expected to be optimized.
1771
1772 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
1773 variables to the block where they are only used, initialize
1774 nrules only immediately before using it.
1775
1776 2003-11-15 Andreas Jaeger <aj@suse.de>
1777
1778 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
1779 * sysdeps/x86_64/fpu/s_truncl.S: New file.
1780 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
1781 * sysdeps/x86_64/fpu/s_floorl.S: New file.
1782 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
1783 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
1784
1785 * math/libm-test.inc (floor_test): Test also ±0.25.
1786 (ceil_test): Test -0.25.
1787
1788 2003-11-17 Ulrich Drepper <drepper@redhat.com>
1789
1790 * sysdeps/posix/getaddrinfo.c: Add support for destination address
1791 selection according to RFC 3484.
1792
1793 2003-11-15 Ulrich Drepper <drepper@redhat.com>
1794
1795 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
1796 Replace last two parameters of re_string_allocate and
1797 re_string_construct with pointer to DFA.
1798 (re_dfa_t): Add map_notascii field.
1799 * posix/regcomp.c (re_compile_internal): Add call of
1800 re_string_construct.
1801 (init_dfa): Initialize map_notascii.
1802 * posix/regex_internal.c: Adjust definitions of re_string_allocate
1803 and re_string_construct.
1804 Pass DFA to re_string_construct. Adjust definition. Initialize
1805 map_notascii field.
1806 (build_wcs_upper_buffer): If map_notascii is zero use simplified
1807 method to map ASCII values to upper case.
1808 * posix/regex.c: Include localeinfo.h.
1809 * posix/regexec.c: Adjust call of re_string_allocate.
1810
1811 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
1812 * locale/localeinfo.h (LIMAGIC): Change value.
1813 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
1814 * locale/C-ctype.h: Likewise.
1815 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
1816 ASCII to non-ASCII value. Write out that value.
1817
1818 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
1819 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
1820
1821 2003-11-14 Jakub Jelinek <jakub@redhat.com>
1822
1823 * posix/tst-rxspencer.c (check_match): @ without any following
1824 characters must match only end of string.
1825 (main): Fix filename in error message.
1826
1827 2003-11-12 David Mosberger <davidm@hpl.hp.com>
1828
1829 * sysdeps/ia64/dl-machine.h: Force inlining of
1830 elf_machine_runtime_setup().
1831
1832 2003-11-13 Andreas Jaeger <aj@suse.de>
1833
1834 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
1835 (CFLAGS-test-double.c): Likewise.
1836 (CFLAGS-test-ldouble.c): Likewise.
1837 (CPPFLAGS-test-ifloat.c): Likewise.
1838 (CPPFLAGS-test-idouble.c): Likewise.
1839 (CPPFLAGS-test-ildoubl.c): Likewise.
1840
1841 * math/libm-test.inc (ceil_test): Test ceil (0.25).
1842
1843 2003-11-04 Ulrich Drepper <drepper@redhat.com>
1844
1845 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
1846 sends the netlink data.
1847 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1848
1849 2003-11-13 Jakub Jelinek <jakub@redhat.com>
1850
1851 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
1852 with no bits set for >= 0x80 chars is seen.
1853 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
1854 optimized.
1855 (main): Run all tests with RE_ICASE as well.
1856
1857 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1858
1859 * posix/Makefile: Add rules to build and run tst-rxspencer.
1860 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
1861 * posix/tst-rxspencer.c: New file.
1862 * posix/rxspencer/tests: New file.
1863 * posix/rxspencer/COPYRIGHT: New file.
1864 Patch mostly by Jakub Jelinek.
1865
1866 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
1867 this is no option given the first token.
1868
1869 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
1870 hyphen in range expression. Return EBRACK in this case.
1871
1872 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
1873 we expect them or it's the last element in the bracket expression.
1874 Indicated by new parameter. Adjust all callers.
1875
1876 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
1877 Prettier error messages.
1878
1879 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
1880 number in {,} expression is larger.
1881
1882 2003-11-13 Andreas Jaeger <aj@suse.de>
1883
1884 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1885 Define appropriately for x86_64.
1886 (__ASSUME_UTIMES): Likewise.
1887 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
1888
1889 * sysdeps/x86_64/fpu/s_ceill.S: New file.
1890
1891 2003-11-13 Ulrich Drepper <drepper@redhat.com>
1892
1893 * posix/regcomp.c (parse_expression): In BRE consecutive
1894 duplications are not allowed.
1895
1896 2003-11-12 Ulrich Drepper <drepper@redhat.com>
1897
1898 * posix/regcomp.c (parse_bracket_exp): If end of expression is
1899 seen, return EBRACK error, not BADPAT.
1900
1901 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
1902 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
1903 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
1904 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
1905
1906 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
1907 return REG_EPAREN.
1908
1909 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
1910 * posix/runptests.c (main): Handle comments.
1911 * posix/PTESTS2C.sed: Handle comments.
1912
1913 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1914
1915 * posix/regcomp.c (optimize_utf8): New function.
1916 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
1917 of !icase.
1918 (re_compile_internal): Call optimize_utf8 if not case insensitive
1919 and in UTF-8 locale.
1920 * posix/regex_internal.h: Ifdef out some prototypes if
1921 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
1922 * posix/Makefile (tests): Add bug-regex20.
1923 (bug-regex20-ENV): Add LOCPATH.
1924 * posix/bug-regex20.c: New test.
1925
1926 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1927
1928 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
1929
1930 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1931
1932 * posix/tst-regex.c (umemlen): New variable.
1933 (test_expr): Add expectedicase argument. Test case insensitive
1934 searches as well as backwards searches (case sensitive and
1935 insensitive) too.
1936 (run_test): Add icase argument. Use it to compute regcomp flags.
1937 (run_test_backwards): New function.
1938 (main): Cast read to size_t to avoid warning. Set umemlen.
1939 Add expectedicase arguments to test_expr.
1940 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
1941 find previous character by walking back instead of converting
1942 all chars from beginning.
1943
1944 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1945
1946 * posix/regex_internal.h (struct re_string_t): Add is_utf8
1947 and mb_cur_max fields.
1948 (struct re_dfa_t): Likewise. Reorder fields to make structure
1949 smaller on 64-bit arches.
1950 (re_string_allocate, re_string_construct): Add mb_cur_max and
1951 is_utf8 arguments.
1952 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
1953 instead of MB_CUR_MAX.
1954 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
1955 instead of MB_CUR_MAX.
1956 (re_compile_internal): Pass new arguments to re_string_construct.
1957 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
1958 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
1959 of MB_CUR_MAX.
1960 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
1961 dfa->mb_cur_max instead of MB_CUR_MAX.
1962 * posix/regex_internal.c (re_string_construct_common): Add
1963 mb_cur_max and is_utf8 arguments. Initialize fields with them.
1964 (re_string_allocate, re_string_construct): Add mb_cur_max and
1965 is_utf8 arguments, pass them to re_string_construct_common.
1966 Use mb_cur_max instead of MB_CUR_MAX.
1967 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
1968 MB_CUR_MAX.
1969 (re_string_reconstruct): Likewise.
1970 (re_string_context_at): Use input->mb_cur_max instead of
1971 MB_CUR_MAX.
1972 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
1973 instead of MB_CUR_MAX.
1974 * posix/regexec.c (re_search_internal): Likewise.
1975 Pass new arguments to re_string_allocate.
1976 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
1977 MB_CUR_MAX.
1978 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
1979
1980 2003-11-12 Jakub Jelinek <jakub@redhat.com>
1981
1982 * posix/Makefile (tests): Add bug-regex19.
1983 (bug-regex19-ENV): Add LOCPATH.
1984 * posix/bug-regex19.c: New test.
1985
1986 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1987
1988 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
1989 with MB_CUR_MAX > 1 locales in the fastmap.
1990
1991 2003-11-11 Jakub Jelinek <jakub@redhat.com>
1992
1993 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
1994 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
1995 of toupper.
1996 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
1997 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
1998 * posix/bug-regex17.c: New file
1999 * posix/bug-regex18.c: New file.
2000
2001 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
2002
2003 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
2004 Define __NR_pread/__NR_pwrite if not done in kernel headers
2005
2006 2003-11-11 Roland McGrath <roland@redhat.com>
2007
2008 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
2009
2010 * manual/Makefile (info): Don't depend on dir-add.info.
2011 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
2012 (dir-add.info): Target removed, replaced with ...
2013 (dir-add.texi): New target.
2014 (distribute): Add it.
2015 (install): Remove variant with --section arguments.
2016 Let the @dircategory directives do their work.
2017 (mostlyclean): Don't remove dir-add.info here.
2018 (realclean): Remove dir-add.texi here.
2019 * manual/libc.texinfo: @include dir-add.texi
2020 * configure.in: Remove check for old Debian install-info.
2021 * configure: Regenerated.
2022 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
2023
2024 2003-11-08 Andreas Schwab <schwab@suse.de>
2025
2026 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
2027
2028 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2029
2030 * io/ftwtest-sh: Fix nested sed commands.
2031
2032 2003-11-10 Jakub Jelinek <jakub@redhat.com>
2033
2034 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
2035 valid_len wide chars.
2036
2037 2003-11-09 Roland McGrath <roland@redhat.com>
2038
2039 * manual/examples/dir2.c (one): Add const to argument type.
2040 Reported by J de Haan <j.de.haan@home.nl>.
2041
2042 2003-11-07 Ulrich Drepper <drepper@redhat.com>
2043
2044 * po/pl.po: Update from translation team.
2045
2046 2003-11-07 Jakub Jelinek <jakub@redhat.com>
2047
2048 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2049 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
2050 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
2051 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
2052 and compat_symbol.
2053 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
2054 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
2055 and nftw64@@GLIBC_2.3.3.
2056
2057 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
2058 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
2059 * io/ftw.c (ftw_dir): Add old_dir argument.
2060 Clear result if it was FTW_SKIP_SIBLINGS after processing all
2061 dir entries. Change cwd back if old_dir != NULL.
2062 (process_entry): Adjust caller. Don't change cwd back here.
2063 Change FTW_SKIP_SUBTREE result to 0.
2064 (ftw_startup): Adjust ftw_dir caller.
2065 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
2066 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
2067 (options, main): Add --skip-subtree and --skip-siblings options.
2068 (cb): Use return FTW_CONTINUE instead of return 0.
2069 Handle --skip-subtree and --skip-siblings.
2070 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
2071 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
2072
2073 2003-11-04 Jakub Jelinek <jakub@redhat.com>
2074
2075 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
2076 non-zero.
2077 * io/Makefile (tests): Add bug-ftw4.
2078 * io/bug-ftw4.c: New test.
2079
2080 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
2081
2082 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
2083 (struct _IO_FILE_complete_plus): New type.
2084 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
2085 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
2086 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
2087 Call _IO_old_init instead of _IO_init.
2088
2089 2003-11-03 Ulrich Drepper <drepper@redhat.com>
2090
2091 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
2092
2093 * locale/iso-639.def: Add Blin.
2094 Patch by Daniel Yacob <locales@geez.org>.
2095
2096 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
2097
2098 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
2099 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
2100
2101 2003-11-01 Randolph Chung <tausq@debian.org>
2102
2103 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
2104 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
2105 Add missing parentheses.
2106
2107 2003-11-01 Roland McGrath <roland@redhat.com>
2108
2109 * libio/bug-ftell.c (do_test): Add a cast.
2110
2111 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
2112
2113 * Makerules (shlib.lds): Make sure that ld doesn't try to link
2114 anything while generating the linker script.
2115
2116 2003-10-31 Roland McGrath <roland@redhat.com>
2117
2118 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
2119 special members.
2120
2121 2003-10-29 Ulrich Drepper <drepper@redhat.com>
2122
2123 * po/be.po: Update from translation team.
2124
2125 2003-10-27 Ulrich Drepper <drepper@redhat.com>
2126
2127 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
2128 _dl_map_object.
2129
2130 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
2131 ELF header.
2132
2133 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
2134 rest of line. We use getline which means this cannot happen.
2135
2136 2003-10-26 Ulrich Drepper <drepper@redhat.com>
2137
2138 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
2139 Avoid infinite loops in case the mounts file is hosed.
2140 * io/Makefile: Add rules to build and run tst-statvfs.
2141 * io/tst-statvfs.c: New file.
2142
2143 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
2144 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
2145 executables unless __RTLD_OPENEXEC flag is present.
2146 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
2147 _dl_map_object when loading the executable.
2148
2149 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
2150 correctly.
2151 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
2152
2153 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
2154 reverse lookup format for IPv6 addresses is using bitstring and
2155 .ip6.arpa suffix.
2156 * resolv/ns_name.c: Implement encoding and decoding bitstring in
2157 hex format.
2158
2159 2003-10-23 Jakub Jelinek <jakub@redhat.com>
2160
2161 * locale/programs/locale.c (show_info): Fix printing word values on
2162 64-bit big-endian architectures.
2163
2164 2003-10-19 Bruno Haible <bruno@clisp.org>
2165
2166 * intl/hash-string.c (hash_string): Zero-extend each char from the
2167 string; the old code did a sign-extend on some platforms.
2168
2169 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
2170
2171 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
2172 append options to these.
2173 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
2174
2175 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2176
2177 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
2178
2179 2003-10-15 Roland McGrath <roland@redhat.com>
2180
2181 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
2182 Fake an entry for the main executable and then call __dl_iterate_phdr.
2183 * elf/Makefile (routines): Remove dl-iteratephdr-static.
2184 (elide-routines.os): Likewise.
2185 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
2186 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
2187 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
2188
2189 2003-10-15 Jakub Jelinek <jakub@redhat.com>
2190
2191 * elf/rtld.c (print_statistics): Print also number of relative
2192 relocations.
2193
2194 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
2195
2196 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
2197 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
2198 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
2199 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
2200 and undef JUMPTARGET before use.
2201 [PIC]: Save pic register around syscall.
2202 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
2203 Cleanup asm statment.
2204
2205 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2206
2207 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
2208 after trapa instruction.
2209
2210 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2211
2212 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
2213
2214 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
2215
2216 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2217
2218 2003-10-09 Roland McGrath <roland@redhat.com>
2219
2220 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
2221 is no file to name.
2222
2223 2003-10-08 Jakub Jelinek <jakub@redhat.com>
2224
2225 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
2226 two identical copies of strings.
2227
2228 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2229
2230 * posix/bug-regex11.c: Add some more tests which fail so far.
2231 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
2232
2233 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
2234
2235 * posix/bug-regex11.c: Add more backreference-related test cases.
2236 (main): Show the failing regex in the error messages.
2237 * posix/regexec.c (check_dst_limits_calc_pos):
2238 Simplify some nested conditionals. Replace if's with a switch
2239 statement.
2240 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
2241 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
2242 does not change in the recursive invocation, fixing an infinite loop
2243 in the ()\1*\1* regex.
2244 (sift_states_backward): Fix function comment.
2245 * posix/regcomp.c (calc_epsdest): Add an assertion.
2246
2247 2003-10-06 Ulrich Drepper <drepper@redhat.com>
2248
2249 * manual/examples/testopt.c: Fix warnings. Better error message
2250 for missing -c argument.
2251 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
2252
2253 * timezone/asia: Update from tzdata2003d.
2254 * timezone/australasia: Likewise.
2255 * timezone/backward: Likewise.
2256 * timezone/europe: Likewise.
2257 * timezone/iso3166.tab: Likewise.
2258 * timezone/northamerica: Likewise.
2259 * timezone/southamerica: Likewise.
2260 * timezone/zone.tab: Likewise.
2261
2262 2003-10-05 Jakub Jelinek <jakub@redhat.com>
2263
2264 * sysdeps/ia64/backtrace.c: New file.
2265 * sysdeps/x86_64/backtrace.c: New file.
2266 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
2267 (_Unwind_Backtrace): New prototype.
2268
2269 2003-10-03 Ulrich Drepper <drepper@redhat.com>
2270
2271 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
2272 * sysdeps/i386/elf/setjmp.S: Likewise.
2273
2274 2003-10-02 Roland McGrath <roland@redhat.com>
2275
2276 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
2277 * argp/argp-namefrob.h
2278 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
2279 (__argp_short_program_name): Don't declare fn, define it as a macro.
2280
2281 2003-08-22 Simon Josefsson <jas@extundo.com>
2282
2283 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
2284
2285 * argp/argp-help.c: Don't include malloc.h, some platforms
2286 complain and it doesn't appear to be used.
2287 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
2288 strerror_r.
2289 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
2290 strerror.
2291 (hol_entry_long_iterate): Change __attribute to __attribute__.
2292 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
2293 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
2294 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
2295 modified after comments from Ulrich Drepper.
2296 (__argp_short_program_name): Ditto.
2297 (__argp_state_help, __argp_error, __argp_failure): Use it.
2298 (__argp_failure): Use strerror when necessary.
2299
2300 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
2301 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
2302 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
2303 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
2304 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
2305 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
2306 non-unlocked functions.
2307 [!_LIBC]: Add prototypes for __argp_basename and
2308 __argp_short_program_name.
2309
2310 * argp/argp-parse.c (argp_default_parser): Only use
2311 program_invocation{_short,}_name if declared.
2312 (parser_init): Use __argp_short_program_name.
2313
2314 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
2315 '#include features.h'.
2316
2317 * argp/argp.h [!__attribute__]: Define to nothing.
2318
2319 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
2320
2321 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
2322 for the first token in a subexpression as well.
2323
2324 2003-10-02 Jakub Jelinek <jakub@redhat.com>
2325
2326 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
2327 handling again.
2328 (parse_reg_exp): Likewise.
2329 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
2330
2331 * posix/bug-regex11.c (tests): Add new tests.
2332 * posix/bug-regex12.c (tests): Add new test.
2333
2334 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
2335
2336 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2337 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
2338
2339 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
2340
2341 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
2342 the old thread-m.h header too.
2343
2344 2003-10-02 Ulrich Drepper <drepper@redhat.com>
2345
2346 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
2347 back to 131027 since this is what the kernel enforces.
2348
2349 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
2350 define it with libc_freeres_ptr.
2351
2352 2003-10-01 Roland McGrath <roland@redhat.com>
2353
2354 * elf/rtld.c (dl_main): Add cast in last change.
2355
2356 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2357
2358 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
2359 "#if 0" surrounding most of contents.
2360 (SYSCALL_ERROR_LABEL): Define.
2361 (__SYSCALL_CLOBBERS): Add $10.
2362 (internal_syscall7): Remove.
2363 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2364
2365 2003-09-30 Ulrich Drepper <drepper@redhat.com>
2366
2367 * elf/rtld.c (dl_main): Also set l_map_start.
2368
2369 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
2370
2371 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
2372 to work around kernel problem.
2373
2374 2003-09-27 Wolfram Gloger <wg@malloc.de>
2375
2376 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
2377 "thread-m.h", so that default parameters can be overridden in a
2378 system-specific malloc-machine.h. Remove extra ; from extern "C"
2379 closing brace.
2380 * sysdeps/generic/malloc-machine.h: New file.
2381 * sysdeps/mach/hurd/malloc-machine.h: New file.
2382 * malloc/thread-m.h: Removed.
2383 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
2384 is in sysdeps/generic/malloc-machine.h now.
2385
2386 2003-09-29 Ulrich Drepper <drepper@redhat.com>
2387
2388 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
2389 variables only used if TLS_TCB_AT_TP is defined into the #if
2390 branch.
2391
2392 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
2393 well to cover using long long in C90.
2394
2395 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
2396
2397 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
2398 Redefine and use __libc_cleanup_region_end instead.
2399
2400 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
2401
2402 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
2403 fix prototypes for picky C++ compilers.
2404
2405 2003-09-27 Ulrich Drepper <drepper@redhat.com>
2406
2407 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
2408 the device ID is invalid and return -1.
2409 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2410
2411 2003-09-26 Andreas Schwab <schwab@suse.de>
2412
2413 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
2414 rt_sigprocmask system call.
2415
2416 2003-09-25 Roland McGrath <roland@redhat.com>
2417
2418 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2419 Don't check for zero __libc_stack_end, it should be initialized.
2420 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
2421 and fall back if it fails with EINVAL.
2422 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
2423
2424 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2425
2426 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
2427 sysdeps/i386/dl-procinfo.c instead of
2428 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
2429 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
2430 #include_next.
2431
2432 2003-09-25 Ulrich Drepper <drepper@redhat.com>
2433
2434 * posix/regcomp.c (peek_token): Remove recent changes for anchor
2435 handling again.
2436 (parse_reg_exp): Likewise.
2437 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
2438
2439 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
2440 banners.
2441
2442 * nis/nis_table.c (nis_list): Always strdup string used with
2443 ibreq->ibr_name. Add several NULL pointer checks.
2444
2445 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
2446 of nis_list.
2447 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
2448 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2449 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
2450 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
2451 * nis/nss_nisplus/nisplus-network.c: Likewise.
2452 * nis/nss_nisplus/nisplus-proto.c: Likewise.
2453 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2454 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2455 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
2456 * nis/nss_nisplus/nisplus-service.c: Likewise.
2457 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
2458
2459 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
2460 and PROT_GROWSUP.
2461 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2462 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
2463 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2464 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2465 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2466 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2467 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2468 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2469 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2470 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2471 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2472
2473 2003-09-25 Jakub Jelinek <jakub@redhat.com>
2474
2475 * misc/syslog.c: Include locale.h.
2476 (vsyslog): Add date always in C locale %h %e %T format.
2477
2478 2003-09-24 Paul Eggert <eggert@twinsun.com>
2479
2480 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
2481 size_t overflow when reallocating storage.
2482 * argp/argp-help.c (make_hol, hol_append): Likewise.
2483 (SIZE_MAX): New macro.
2484
2485 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
2486
2487 * sysdeps/mach/hurd/bits/libc-lock.h
2488 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
2489
2490 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
2491
2492 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
2493 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
2494 #include_next dl-procinfo.h to get them.
2495 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
2496 (_DL_PLATFORMS_COUNT): Likewise.
2497 (_DL_FIRST_PLATFORM): Likewise.
2498 (_DL_HWCAP_PLATFORM): Likewise.
2499 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
2500 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
2501 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
2502 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
2503 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
2504 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
2505 HWCAP_IMPORTANT): Likewise.
2506 (_DL_PROCINFO_H_): Likewise.
2507 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
2508 (_dl_string_platform): Likewise.
2509 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
2510 * sysdeps/i386/dl-procinfo.c: ... here, new file.
2511
2512 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2513
2514 * sysdeps/unix/sysv/linux/dl-execstack.c
2515 (_dl_make_stack_executable): Remember that we changed the permission.
2516
2517 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
2518 __libc_stack_end. Patch by David Mosberger.
2519
2520 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2521
2522 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
2523 __libc_stack_end@GLIBC_PRIVATE.
2524
2525 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
2526 (_dl_sysdep_start): Set __libc_stack_end here.
2527 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
2528 __libc_stack_end.
2529 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
2530 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
2531 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
2532 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2533 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
2534 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
2535 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
2536 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
2537 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
2538 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
2539 (RTLD_START): Remove setting of __libc_stack_end.
2540 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
2541 (RTLD_START): Remove setting of __libc_stack_end.
2542
2543 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2544
2545 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
2546 function definitions. Adjust macro expansions accordingly.
2547 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
2548 minor, makedev name.
2549 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
2550
2551 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2552
2553 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
2554 Add __THROW.
2555
2556 2003-09-24 Jakub Jelinek <jakub@redhat.com>
2557
2558 * nscd/Makefile (others): Add nscd before including ../Rules.
2559
2560 2003-09-24 Ulrich Drepper <drepper@redhat.com>
2561
2562 * nscd/Makefile: Add rules to build nscd as a PIE.
2563 * configure.in: Check for -fpie and -pie compiler options.
2564 * config.make.in (have-fpie): Define.
2565
2566 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2567
2568 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
2569 kernel dev_t size.
2570 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
2571 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
2572 * sysdeps/unix/sysv/linux/makedev.c: New file.
2573 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
2574 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
2575 (sysdep_routines): Add makedev.
2576 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
2577 major, minor, makedev.
2578 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
2579 kernel dev_t.
2580 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
2581 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
2582 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
2583 Code by Alexander Viro <aviro@redhat.com>.
2584
2585 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2586
2587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
2588 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
2589 makecontext.
2590 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
2591 for include Altivec support for PPC32. It was not compatible.
2592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
2593 offsets for ucontext_t change.
2594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
2595 for ucontext_t change. Add compatibility code.
2596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
2597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2599 Patch by Paul Mackerras <paulus@samba.org>.
2600
2601 2003-02-25 Randolph Chung <tausq@debian.org>
2602
2603 * sysdeps/hppa/Makefile: Include compat code in build.
2604 * sysdeps/hppa/libgcc-compat.c: New file.
2605 * sysdeps/hppa/Dist: Add libgcc-compat.c.
2606 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
2607
2608 2003-09-23 Roland McGrath <roland@redhat.com>
2609
2610 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
2611 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
2612 Move GL(dl_make_stack_executable_hook) initialization up.
2613 * elf/tst-execstack-prog.c: New file.
2614 * elf/Makefile (tests-execstack-yes): Add it.
2615 (LDFLAGS-tst-execstack-prog): New variable.
2616
2617 2003-09-23 Jakub Jelinek <jakub@redhat.com>
2618
2619 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
2620 before calling _dl_start, using %rip relative access.
2621 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
2622 and _dl_fini.
2623
2624 2003-09-23 Roland McGrath <roland@redhat.com>
2625
2626 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
2627 calling _dl_start, using GOTOFF access.
2628
2629 * configure.in (libc_cv_z_execstack): New check.
2630 * configure: Regenerated.
2631 * config.make.in (have-z-execstack): New variable set by it.
2632 * elf/tst-execstack.c: New file.
2633 * elf/tst-execstack-mod.c: New file.
2634 * elf/tst-execstack-needed.c: New file.
2635 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
2636 variables.
2637 (tests, modules-names): Conditionally include them.
2638 (distribute): Add tst-execstack-mod.c here.
2639 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
2640 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
2641 ($(objpfx)tst-execstack-needed): New target.
2642 (LDFLAGS-tst-execstack-needed): New variable.
2643
2644 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
2645 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
2646 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
2647 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
2648 Initialize _dl_make_stack_executable_hook.
2649 * elf/dl-support.c: Define those new variables.
2650 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
2651 (_dl_phdr): Fix type.
2652 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
2653 enable execute permission for the stack if necessary.
2654 * sysdeps/generic/dl-execstack.c: New file.
2655 * elf/Makefile (dl-routines): Add it.
2656 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
2657 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
2658
2659 2003-09-23 Ulrich Drepper <drepper@redhat.com>
2660
2661 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
2662
2663 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
2664
2665 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
2666 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
2667 __fcntl_nocancel.
2668
2669 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2670
2671 * malloc/malloc.c: Include <stdint.h>.
2672
2673 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
2674
2675 * posix/regcomp.c (build_word_op): Rename like...
2676 (build_charclass_op): ...this. Accept two extra parameters,
2677 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
2678 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
2679 (parse_expression): Replace build_word_op with
2680 build_charclass_op, add new arguments, accept OP_SPACE
2681 and OP_NOTSPACE.
2682 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
2683 and OP_NOTSPACE.
2684
2685 * posix/regcomp.c (peek_token): Don't look back for ( or |
2686 to check whether to treat a caret as special. It fails
2687 for the (extended) regex \(^.
2688 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
2689 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
2690
2691 * posix/regexec.c: Check out of bounds value before shifting.
2692
2693 * posix/regex_internal.h: Define __attribute for non-gcc.
2694
2695 2003-09-22 Jakub Jelinek <jakub@redhat.com>
2696
2697 * include/atomic.h (atomic_compare_and_exchange_val_rel,
2698 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
2699 to avoid confusion.
2700
2701 * sysdeps/unix/opendir.c: Include string.h.
2702
2703 2003-09-22 Ulrich Drepper <drepper@redhat.com>
2704
2705 * timezone/zdump.c: Update from tzcode2003c.
2706 * timezone/zic.c: Likewise.
2707 * timezone/leapseconds: Update from tzdata2003c.
2708
2709 2003-09-19 Ulrich Drepper <drepper@redhat.com>
2710
2711 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
2712 final build to ease quality control.
2713
2714 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
2715 ld.so, don't include NULL buffer pointer handling.
2716
2717 2003-09-19 Jakub Jelinek <jakub@redhat.com>
2718
2719 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
2720
2721 2003-09-18 Jakub Jelinek <jakub@redhat.com>
2722
2723 * libio/memstream.c (open_memstream): Use _IO_init instead of
2724 _IO_old_init.
2725
2726 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2727
2728 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
2729 have to recognize octal and hexadecimal numbers as well. Simplify
2730 function, signs are handled in strtol.
2731 * posix/wordexp-test.c: Add tests for octal and hexadecimal
2732 numbers in arithmetic expressions.
2733
2734 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2735
2736 * elf/Makefile (distribute): Add tst-alignmod.c.
2737 (tests): Add tst-align.
2738 (modules-names): Add tst-alignmod.
2739 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
2740 $(stack-align-test-flags).
2741 ($(objpfx)tst-align): Depend on libdl.
2742 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
2743 * elf/tst-align.c: New file.
2744 * elf/tst-alignmod.c: New file.
2745 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
2746 * misc/tst-tsearch.c: Include tst-stack-align.h.
2747 (stack_align_check): New array.
2748 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
2749 (main): Report error if stack was not enough aligned
2750 in cmp_fn or walk_action.
2751 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
2752 * stdlib/tst-qsort.c: Include tst-stack-align.h.
2753 (align_check): New var.
2754 (compare): Use TEST_STACK_ALIGN () macro.
2755 (main): Report error if stack was not enough aligned in compare.
2756 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
2757 unneeded -mpreferred-stack-boundary=4.
2758 * sysdeps/x86_64/tst-stack-align.h: New file.
2759
2760 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
2761 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
2762
2763 2003-09-17 Philip Blundell <philb@gnu.org>
2764
2765 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
2766 (BX): Define.
2767 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
2768
2769 * sysdeps/arm/sysdep.h (DO_RET): New.
2770
2771 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
2772 required but not defined. Improve test of error code.
2773
2774 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2775
2776 * sysdeps/i386/Makefile (stack-align-test-flags): Add
2777 -malign-double -mpreferred-stack-boundary=4.
2778
2779 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2780
2781 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
2782 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
2783
2784 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2785
2786 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
2787 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
2788
2789 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2790
2791 * Makeconfig (stack-align-test-flags): Set.
2792 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
2793 $(stack-align-test-flags).
2794 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
2795 (align_check): New var.
2796 (comp): Use TEST_STACK_ALIGN macro.
2797 (do_test): Fail if align_check != 1.
2798 * sysdeps/generic/tst-stack-align.h: New file.
2799 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
2800 * sysdeps/i386/i686/tst-stack-align.h: New file.
2801
2802 2003-09-17 Ulrich Drepper <drepper@redhat.com>
2803
2804 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
2805 stack which is aligned (mod 16).
2806
2807 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
2808 Hans-Peter Nilsson <hp@axis.com>
2809
2810 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
2811 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
2812
2813 2003-09-17 Jakub Jelinek <jakub@redhat.com>
2814
2815 * dirent/scandir.c: Include bits/libc-lock.h.
2816 (struct scandir_cancel_struct): New type.
2817 (cancel_handler): New function.
2818 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
2819 scandir_cancel_struct.
2820
2821 2003-09-16 Ulrich Drepper <drepper@redhat.com>
2822
2823 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
2824 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2825 Add internal_statvfs.
2826 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
2827 instead of including "internal_statvfs.c".
2828 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2829 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
2830 Add code to avoid the stat calls on all the reported mount points
2831 when we can determine mismatch in advance.
2832 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
2833 USBDEVFS_SUPER_MAGIC.
2834
2835 2003-09-16 Jakub Jelinek <jakub@redhat.com>
2836
2837 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
2838 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
2839
2840 2003-09-16 Bruno Haible <bruno@clisp.org>
2841
2842 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
2843 invoking msgfmt, not before.
2844
2845 2003-09-15 Jakub Jelinek <jakub@redhat.com>
2846
2847 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
2848 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
2849 $(uses-callbacks).
2850 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
2851 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
2852 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
2853 * elf/dl-iteratephdr.c (cancel_handler): New function.
2854 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
2855 * elf/link.h (dl_iterate_phdr): Remove __THROW.
2856 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
2857 Add $(uses-callbacks).
2858 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
2859 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
2860 $(exceptions) to $(uses-callbacks).
2861 * Makeconfig (uses-callbacks): Set to $(exceptions).
2862 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
2863 $(uses-callbacks).
2864 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
2865 Likewise.
2866
2867 2003-09-15 Andreas Schwab <schwab@suse.de>
2868
2869 * sysdeps/m68k/setjmp.c: Add hidden_def.
2870
2871 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2872
2873 * libio/memstream.c (open_memstream): Don't allow wide char operations.
2874
2875 * dirent/dirent.h: Remove __THROW from scandir.
2876
2877 2003-09-14 Philip Blundell <philb@gnu.org>
2878
2879 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
2880 to be available.
2881
2882 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
2883
2884 * sysdeps/arm/memset.S: Rewrite.
2885
2886 2003-09-12 Jakub Jelinek <jakub@redhat.com>
2887
2888 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
2889 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
2890 __SLONGWORD_TYPE otherwise.
2891
2892 2003-09-14 Ulrich Drepper <drepper@redhat.com>
2893
2894 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
2895 (CFLAGS-ftw64.c): Likewise.
2896
2897 2003-09-13 Ulrich Drepper <drepper@redhat.com>
2898
2899 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
2900 (CFLAGS-nscd_getgr_r.c): Likewise.
2901 (CFLAGS-nscd_gethst_r.c): Likewise.
2902
2903 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2904
2905 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
2906 interfaces.
2907
2908 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
2909 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
2910 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
2911 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
2912 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
2913 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
2914 Likewise.
2915 * misc/Makefile (CFLAGS-err.c): Likewise.
2916 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
2917 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
2918 CFLAGS-glob64.c): Likewise.
2919 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
2920 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
2921 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
2922 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
2923 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
2924
2925 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
2926
2927 * libio/stdio.h: Remove __THROW from cuserid prototype.
2928
2929 * locale/loadarchive.c: Use only non-cancelable interfaces.
2930 * resolv/herror.c (herror): Likewise.
2931
2932 * malloc/hooks.c: Before using IO stream mark stream so it uses
2933 only non-cancelable interfaces.
2934 * malloc/malloc.c: Likewise.
2935 * posix/getopt.c: Likewise.
2936
2937
2938 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2939
2940 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
2941
2942 2003-09-12 Ulrich Drepper <drepper@redhat.com>
2943
2944 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
2945
2946 * misc/err.h: Remove __THROW from all prototypes.
2947
2948 * posix/getopt.h (__THROW): Define if not already defined. Add
2949 __THROW to the getopt functions.
2950
2951 2003-09-11 Ulrich Drepper <drepper@redhat.com>
2952
2953 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
2954 (CFLAGS-fts.c): Likewise.
2955 * io/fcntl.h: Remove __THROW from lockf prototypes.
2956 * io/fts.h: Remove most __THROW.
2957
2958 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
2959
2960 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
2961 (TLS_LD): Likewise.
2962 (TLS_GD): Likewise.
2963
2964 2003-09-11 Jakub Jelinek <jakub@redhat.com>
2965
2966 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
2967 _IO_free_backup_area call.
2968
2969 2003-09-10 Chris Demetriou <cgd@broadcom.com>
2970
2971 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
2972 syscall invocation.
2973 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
2974 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
2975 Also, only assert off_t size is 4 for N32 and O32, and clean up
2976 white space.
2977 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
2978
2979 2003-09-10 Roland McGrath <roland@redhat.com>
2980
2981 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
2982 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
2983 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
2984 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
2985 Reported by Daniel Jacobowitz <drow@mvista.com>.
2986
2987 2003-09-10 Jakub Jelinek <jakub@redhat.com>
2988
2989 * string/Makefile (strop-tests): Add memccpy.
2990 * string/test-memccpy.c: New test.
2991
2992 2003-09-09 Jakub Jelinek <jakub@redhat.com>
2993
2994 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
2995 siginfo_t * argument before, change into struct ucontext *.
2996 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
2997 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
2998 instead of structure.
2999 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
3000 Likewise.
3001
3002 2003-09-09 Ulrich Drepper <drepper@redhat.com>
3003
3004 * string/stratcliff.c (main): Check memccpy.
3005
3006 2003-04-11 Jes Sorensen <jes@wildopensource.com>
3007
3008 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
3009 character is found during recovery, use correct register when
3010 determining the position of the found character.
3011
3012 2003-04-01 Jes Sorensen <jes@wildopensource.com>
3013
3014 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
3015 avoid segfaults when reading from unmapped pages. For aligned
3016 reload and continue, for misaligned, roll back and use byte copy.
3017 Save ar.ec on entry and restore on exit.
3018
3019 2003-09-09 Chris Demetriou <cgd@broadcom.com>
3020
3021 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
3022
3023 2003-09-08 Chris Demetriou <cgd@broadcom.com>
3024
3025 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
3026 the top of the list.
3027 * sysdeps/mips/mips64/n64/Implies: Likewise.
3028
3029 2003-09-08 Roland McGrath <roland@frob.com>
3030
3031 * sysdeps/unix/sysv/linux/speed.c
3032 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
3033 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
3034 * sysdeps/unix/sysv/linux/bits/termios.h
3035 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
3036 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3037 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3038
3039 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3040
3041 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
3042 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
3043
3044 2003-09-08 Jakub Jelinek <jakub@redhat.com>
3045
3046 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
3047 (__u_quad_t): Make unsigned long int if 64-bit.
3048 (__SQUAD_TYPE): Make long int if 64-bit.
3049 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
3050 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
3051
3052 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3053
3054 * Makefile (tests): Run check-c++-types.sh if possible.
3055 * scripts/check-c++-types.h: New file.
3056 * scripts/data/c++-types-i386-linux-gnu.data: New file.
3057
3058 2003-09-08 Andreas Jaeger <aj@suse.de>
3059
3060 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3061 Use struct sigcontext.
3062
3063 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
3064 Use struct sigcontext.
3065 (GET_PC): Adopt.
3066 (GET_FRAME): Likewise.
3067 (GET_STACK): Likewise.
3068
3069 2003-09-08 Wolfram Gloger <wg@malloc.de>
3070
3071 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
3072 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
3073 (mALLOPt): Avoid requirement of C99.
3074
3075 2003-09-08 Ulrich Drepper <drepper@redhat.com>
3076
3077 * libio/bug-ftell.c: Include <sys/types.h>.
3078 (main): Mark cp as const.
3079
3080 2003-09-07 Jakub Jelinek <jakub@redhat.com>
3081
3082 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
3083 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
3084
3085 2003-09-05 Roland McGrath <roland@redhat.com>
3086
3087 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
3088 and c_ospeed fields.
3089 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
3090 (cfsetispeed): Set c_ispeed field.
3091 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
3092 to match corresponding speed.c code.
3093
3094 2003-09-06 Ulrich Drepper <drepper@redhat.com>
3095
3096 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
3097 narrow character buffer.
3098 * libio/Makefile: Add rules to build and run bug-ftell.
3099 * libio/bug-ftell.c: New file.
3100
3101 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
3102
3103 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
3104 matching the decimal point and possibly leading the thousands
3105 separator. This caused the recognition of thousands separators to
3106 always fail.
3107
3108 2003-09-05 Ulrich Drepper <drepper@redhat.com>
3109
3110 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
3111 write mode from read in backup buffer.
3112 * libio/Makefile (tests): Add bug-ungetc2.
3113 * libio/bug-ungetc2.c: New file.
3114
3115 2003-09-05 Roland McGrath <roland@redhat.com>
3116
3117 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
3118
3119 2003-09-04 Roland McGrath <roland@frob.com>
3120
3121 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
3122 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
3123
3124 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
3125
3126 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
3127 Fix a typo.
3128
3129 2003-09-05 Andreas Jaeger <aj@suse.de>
3130
3131 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
3132 to make it conforming C.
3133 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
3134
3135 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
3136 prototype to use variable argument lists and get the possible one
3137 argument via va_arg.
3138 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
3139 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
3140
3141 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3142
3143 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
3144
3145 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3146 Report correct value for vxfs.
3147 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
3148
3149 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
3150 data.
3151
3152 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
3153 over the place. It would be allowed to have these functions as
3154 cancellation points but the cleanup would be ugly and a lot of
3155 work.
3156
3157 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
3158 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
3159
3160 * include/fcntl.h (__fcntl_nocancel): Declare.
3161 * sysdeps/unix/sysv/linux/fcntl.c: New file.
3162 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
3163 cancellation if absolutely needed.
3164 (__fcntl_nocancel): Define.
3165
3166 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
3167 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
3168 -fexceptions.
3169 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
3170 extend_alloca.
3171
3172 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
3173 instead of __close.
3174
3175 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
3176 unnecessary errno handling.
3177
3178 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
3179 Initialize it in all cases. Change it to be a bit more like the
3180 code we had before.
3181
3182 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3183
3184 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
3185 __builtin_expect.
3186 (_IO_file_open): Likewise. Use close_not_cancel.
3187
3188 2003-09-04 Ulrich Drepper <drepper@redhat.com>
3189
3190 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
3191 * libio/fileops.c [_LIBC]: Remove close macro.
3192 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
3193 (_IO_new_file_open): Recognize 'c' flag in mode string.
3194 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
3195 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
3196 write_not_cancel.
3197 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
3198 * inet/rcmd.c: Likewise.
3199 * inet/ruserpass.c: Likewise.
3200 * intl/localealias.c: Likewise.
3201 * malloc/mtrace.c: Likewise.
3202 * misc/getpass.c: Likewise.
3203 * misc/getttyent.c: Likewise.
3204 * misc/mntent_r.c: Likewise.
3205 * misc/getusershell.c: Likewise.
3206 * nss/nsswitch.c: Likewise.
3207 * resolv/res_hconf.c: Likewise.
3208 * resolv/res_init.c: Likewise.
3209 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
3210 * time/getdate.c: Likewise.
3211 * time/tzfile.c: Likewise.
3212 * misc/fstab.h: Undo last change.
3213 * misc/mntent.h: Likewise.
3214 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
3215 CFLAGS-fstab.c definition.
3216
3217 2003-09-04 Jakub Jelinek <jakub@redhat.com>
3218
3219 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
3220
3221 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3222
3223 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
3224 returning ERANGE if this wasn't intended.
3225
3226 2003-09-03 Jakub Jelinek <jakub@redhat.com>
3227
3228 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
3229 function-like macros.
3230
3231 2003-09-03 Ulrich Drepper <drepper@redhat.com>
3232
3233 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
3234 (CFLAGS-getgrent.c): Likewise.
3235 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
3236 (CFLAGS-getpwent.c): Likewise.
3237 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
3238 (CFLAGS-getspent.c): Likewise.
3239
3240 * inet/Makefile: Add -fexceptions to CFLAGS for the various
3241 getXXent and getXXbyYY functions.
3242
3243 * locale/loadlocale.c: Use not-cancelable variants of open, close,
3244 and read.
3245
3246 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3247
3248 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
3249 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
3250 rt_sigpending.
3251 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
3252 New prototype.
3253 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
3254 unused __syscall_ stubs.
3255 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
3256 rt_*.
3257 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
3258 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
3259 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
3260 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
3261 unused __syscall_ stubs.
3262 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
3263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3264 (__syscall_*): Remove unused __syscall_ stubs.
3265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3266 (__syscall_*): Likewise.
3267 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
3268 rt_*.
3269 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
3270 Remove unused __syscall_ stubs.
3271 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
3272 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
3273 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
3274 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
3275 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
3276 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
3277 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
3278 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
3279 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
3280 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
3281 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
3282 __syscall_* prototypes.
3283 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
3284 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3285 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3286 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3287 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
3288 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3289 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
3290 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3291 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3292 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3293 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3294 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3295 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3296 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3297 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3298 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3299 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3300 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3301 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3302 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
3303 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3304 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
3305 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3306 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3307 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3308 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
3309 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3310 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3311 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
3312 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3313 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3314 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3315 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3316 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3317 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
3318 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3319 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3320 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
3321 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3322 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
3323 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
3324 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3325 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3326 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3327 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3328 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
3329 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3330 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3331 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
3332 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3333 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
3334 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
3335 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3336 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
3337 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3338 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
3339 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
3340 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
3341 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3342 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
3343 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3344 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
3345 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
3346 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3347 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3348 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3349 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3350 * sysdeps/unix/sysv/linux/execve.c: Likewise.
3351 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3352 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
3353 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
3354 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3355 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3356 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3357 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
3358 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
3359 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
3360 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3361 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3362 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3363 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
3364 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
3365 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
3366 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3367 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3368 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3369 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
3370 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
3371 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3372 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3373 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3374 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3375 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
3376 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
3377 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3378 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
3379 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3380 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3381 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3382 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3383 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
3384 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
3385
3386 2003-09-02 Jakub Jelinek <jakub@redhat.com>
3387
3388 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
3389 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
3390 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
3391
3392 2003-09-02 Ulrich Drepper <drepper@redhat.com>
3393
3394 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
3395
3396 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
3397 open, close, and read.
3398
3399 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
3400 *_nocancel name.
3401
3402 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
3403
3404 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
3405 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
3406 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
3407
3408 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
3409
3410 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
3411 (CFLAGS-fstatfs.c): Likewise.
3412 (CFLAGS-statvfs.c): Likewise.
3413 (CFLAGS-fstatvfs.c): Likewise.
3414
3415 2003-09-01 Ulrich Drepper <drepper@redhat.com>
3416
3417 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
3418 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
3419 sysconf.
3420 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
3421 (CFLAGS-pathconf.c): Likewise.
3422 (CFLAGS-fpathconf.c): Likewise.
3423
3424 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
3425 * misc/fstab.h: Remove all __THROW.
3426 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
3427 (CFLAGS-mntent_r.c): Likewise.
3428 * misc/mntent.h: Remove most __THROW.
3429
3430 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
3431 (CFLAGS-mkstemp64.c): Likewise.
3432
3433 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
3434 around call to exec_comm.
3435 * posix/wordexp.h: Remove __THROW from wordexp.
3436 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
3437
3438 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
3439 not-cancelable functions.
3440
3441 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
3442 (CFLAGS-iofopen.c): Likewise.
3443 (CFLAGS-iofopen64.c): Likewise.
3444
3445 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
3446 functions.
3447 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
3448 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
3449
3450 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
3451 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
3452
3453 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
3454
3455 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
3456 NSS_STATUS_SUCCESS if entry was found.
3457 (getspent_next_file): Store user in blacklist after entry
3458 was found, use innetgr.
3459
3460 2003-09-01 Jakub Jelinek <jakub@redhat.com>
3461
3462 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
3463 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
3464
3465 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
3466 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
3467 DTV_AT_TP, optimize.
3468
3469 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3470
3471 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
3472 posix_fallocate64 at GLIBC_2.3.3.
3473 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
3474 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3475
3476 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3477
3478 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
3479 functions.
3480
3481 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3482
3483 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
3484 Code by Richard Henderson.
3485
3486 2003-08-31 Philip Blundell <philb@gnu.org>
3487
3488 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
3489 posix_fallocate64 at GLIBC_2.3.3.
3490
3491 2003-08-31 Ulrich Drepper <drepper@redhat.com>
3492
3493 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
3494 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
3495
3496 2003-08-30 Jakub Jelinek <jakub@redhat.com>
3497
3498 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
3499 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
3500 included multiple times.
3501 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
3502 ptid, tls, ctid arguments to the kernel.
3503 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
3504 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
3505 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3506 (__libc_sigaction): Use INLINE_SYSCALL instead of
3507 __syscall_rt_sigaction.
3508 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3509 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
3510 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
3511 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
3512 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
3513 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
3514 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
3515 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
3516 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
3517 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
3518 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
3519 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3520 (__CLONE_SYSCALL_STRING): Define.
3521 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
3522 CFI directives.
3523 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3524 (__CLONE_SYSCALL_STRING): Define.
3525 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
3526 Define.
3527 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
3528
3529 2003-08-30 Ulrich Drepper <drepper@redhat.com>
3530
3531 * sunrpc/rpc/clnt.h: Remove a few __THROW.
3532 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
3533 (CFLAGS-key_call.c): Likewise.
3534 (CFLAGS-pmap_rmt.c): Likewise.
3535 (CFLAGS-clnt_perr.c): Likewise.
3536 * sunrpc/rpc/auth.h: Remove serveral __THROW.
3537
3538 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
3539 (CFLAGS-gethstbynm_r.c): Likewise.
3540 (CFLAGS-gethstbynm2_r.c): Likewise.
3541 (CFLAGS-rcmd.c): Likewise.
3542 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
3543
3544 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
3545 (CFLAGS-argp-fmtstream.c): Likewise.
3546 * argp/argp.h: Remove a number of __THROW.
3547
3548 * misc/sys/syslog.h (vsyslog): Remove __THROW.
3549
3550 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
3551 * misc/getpass.c (getpass): Add cleanup handler to ensure the
3552 stream is closed even if the thread is canceled.
3553 (call_fclose): New function.
3554 * posix/unistd.h: Remove __THROW from getpass prototype.
3555
3556 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
3557
3558 * signal/signal.h (psignal): Remove __THROW.
3559 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
3560
3561 * misc/Makefile (CFLAGS-error.c): Define.
3562 * misc/error.c (error): Disable cancellation handling around the
3563 actual output. The message should in any case be printed.
3564 (error_at_line): Likewise.
3565
3566 * misc/error.h: Protect parameter names with leading __.
3567
3568 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
3569
3570 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
3571
3572 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3573
3574 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
3575 end.
3576
3577 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3578
3579 * libio/stdio.h: Remove a few more __THROW.
3580
3581 2003-08-29 Jakub Jelinek <jakub@redhat.com>
3582
3583 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
3584 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
3585 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
3586 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
3587 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
3588 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
3589 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
3590 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
3591 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
3592 putwchar.c and rewind.c with exceptions.
3593 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
3594 _IO_release_lock): Define.
3595 * libio/fileops.c (_IO_new_file_underflow): Use it.
3596 * libio/fputc.c (fputc): Likewise.
3597 * libio/fputwc.c (fputwc): Likewise.
3598 * libio/freopen64.c (freopen64):
3599 * libio/freopen.c (freopen): Likewise.
3600 * libio/fseek.c (fseek): Likewise.
3601 * libio/fseeko64.c (fseeko64): Likewise.
3602 * libio/fseeko.c (fseeko): Likewise.
3603 * libio/ftello64.c (ftello64): Likewise.
3604 * libio/ftello.c (ftello): Likewise.
3605 * libio/fwide.c (fwide): Likewise.
3606 * libio/getc.c (_IO_getc): Likewise.
3607 * libio/getchar.c (getchar): Likewise.
3608 * libio/getwc.c (_IO_getwc): Likewise.
3609 * libio/getwchar.c (getwchar): Likewise.
3610 * libio/iofclose.c (_IO_new_fclose):
3611 * libio/iofflush.c (_IO_fflush): Likewise.
3612 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
3613 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
3614 * libio/iofgets.c (_IO_fgets): Likewise.
3615 * libio/iofgetws.c (fgetws): Likewise.
3616 * libio/iofputs.c (_IO_fputs): Likewise.
3617 * libio/iofputws.c (fputws): Likewise.
3618 * libio/iofread.c (_IO_fread): Likewise.
3619 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
3620 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3621 * libio/ioftell.c (_IO_ftell): Likewise.
3622 * libio/iofwrite.c (_IO_fwrite): Likewise.
3623 * libio/iogetdelim.c (_IO_getdelim): Likewise.
3624 * libio/iogets.c (_IO_gets): Likewise.
3625 * libio/ioputs.c (_IO_puts): Likewise.
3626 * libio/ioseekoff.c (_IO_seekoff): Likewise.
3627 * libio/ioseekpos.c (_IO_seekpos): Likewise.
3628 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
3629 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
3630 * libio/ioungetc.c (_IO_ungetc): Likewise.
3631 * libio/ioungetwc.c (ungetwc): Likewise.
3632 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3633 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
3634 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
3635 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
3636 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
3637 * libio/peekc.c (_IO_peekc_locked): Likewise.
3638 * libio/putc.c (_IO_putc): Likewise.
3639 * libio/putchar.c (putchar): Likewise.
3640 * libio/putwc.c (putwc): Likewise.
3641 * libio/putwchar.c (putwchar): Likewise.
3642 * libio/rewind.c (rewind): Likewise.
3643 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
3644
3645 2003-08-29 Ulrich Drepper <drepper@redhat.com>
3646
3647 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
3648 available in XPG4.2.
3649
3650 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
3651 Jakub Jelinek <jakub@redhat.com>
3652
3653 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
3654 big endian arches. Don't read beyond end of fds_bits array.
3655
3656 2003-04-27 Bruno Haible <bruno@clisp.org>
3657
3658 * manual/message.texi (Advanced gettext functions): Add information
3659 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
3660 Add section about Lithuanian, reported by Ricardas Cepas
3661 <rch@richard.eu.org>.
3662 Add information about Croatian.
3663 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
3664 Remove remark about continuation lines that is not true for PO files.
3665 Fix formula for Slovenian, reported by Roman Maurer
3666 <roman.maurer@amis.net>.
3667
3668 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3669
3670 * math/math_private.h: Declare __copysignf.
3671 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
3672 copysignf.
3673
3674 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
3675 __signbit, and __signbitl inline functions.
3676
3677 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
3678 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
3679
3680 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
3681 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
3682
3683 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3684
3685 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
3686
3687 2003-08-27 Ulrich Drepper <drepper@redhat.com>
3688
3689 * include/stdio.h: Add declarations for __builtin_fwrite and
3690 __builtin_fwrite_unlocked.
3691
3692 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3693
3694 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
3695 fits into allocation. Add padding on 32-bit arches so that
3696 dirp->data is enough aligned for struct dirent64.
3697 Avoid clearing of the buffer, just clear DIR structure.
3698
3699 2003-08-26 Ulrich Drepper <drepper@redhat.com>
3700
3701 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
3702 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
3703
3704 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
3705
3706 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
3707
3708 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3709
3710 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
3711 to match format string.
3712 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
3713 __old_buf.
3714 (__new_semctl): Shut up warning.
3715 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
3716 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
3717
3718 2003-08-26 Jakub Jelinek <jakub@redhat.com>
3719
3720 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
3721 link file use the real file name, not the resolved name we got by
3722 following the symlinks.
3723
3724 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3725
3726 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
3727 if the object size is large enough.
3728
3729 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3730
3731 * elf/ldconfig.c (search_dir): Treat symlink as regular file
3732 if it won't point to itself unless it is .so symlink for the linker.
3733
3734 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3735
3736 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
3737 use _mode if _IO_fwide_maybe_incompatible.
3738 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
3739 the compatibility test.
3740
3741 2003-08-25 Jakub Jelinek <jakub@redhat.com>
3742
3743 * elf/cache.c (save_cache): Don't write beyond end of file_entries
3744 buffer.
3745 Duplicate last old cache entry if the count would be odd.
3746
3747 2003-08-25 Andreas Jaeger <aj@suse.de>
3748
3749 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
3750 __LONG_LONG_PAIR to long.
3751
3752 2003-08-25 Philip Blundell <philb@gnu.org>
3753
3754 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
3755 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
3756
3757 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
3758
3759 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
3760 and use __libc_cleanup_region_end instead.
3761
3762 2003-08-25 Ulrich Drepper <drepper@redhat.com>
3763
3764 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
3765
3766 2003-08-22 Ulrich Drepper <drepper@redhat.com>
3767
3768 * io/fcntl.h (posix_fallocate): Change type of third parameter to
3769 off_t.
3770 (posix_fallocate64): Change type of third parameter to off64_t.
3771 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
3772 * sysdeps/posix/posix_fallocate.c: Likewise.
3773 * sysdeps/generic/posix_fallocate64.c: Likewise.
3774 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
3775 code for 32-bit platforms.
3776 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
3777 posix_fallocate64.
3778 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
3779 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
3780 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3781
3782 2003-08-19 Ulrich Drepper <drepper@redhat.com>
3783
3784 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
3785 the type, not to name.
3786
3787 * stdio-common/test-vfprintf.c (main): Don't write temporary file
3788 into source directory.
3789
3790 * malloc/malloc.c (_int_free): Add cheap test for some invalid
3791 block sizes.
3792
3793 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
3794 syscall name.
3795
3796 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3797
3798 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
3799 into EINVAL.
3800
3801 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
3802
3803 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
3804 (elf_machine_lazy_rel): Likewise.
3805
3806 2003-08-18 Art Haas <ahaas@airmail.net>
3807
3808 * malloc/malloc.h: Remove unneeded ';' where closing the C++
3809 extern block.
3810
3811 2003-08-18 Ulrich Drepper <drepper@redhat.com>
3812
3813 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
3814 loading big binaries where @gprel(sym) cannot be handled in 'add'
3815 but instead has to be used with 'movl'.
3816
3817 2003-08-17 Juergen Kreileder <jk@blackdown.de>
3818 Andreas Jaeger <aj@suse.de>
3819
3820 * sysdeps/x86_64/bits/byteswap.h: New file.
3821
3822 2003-08-17 Andreas Jaeger <aj@suse.de>
3823
3824 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
3825
3826 2003-08-16 Jakub Jelinek <jakub@redhat.com>
3827
3828 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
3829 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3830 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
3831 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3832 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
3833 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3834 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
3835 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
3836 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
3837 ret_ERRVAL): Define.
3838 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
3839 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3840 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
3841 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3842 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
3843 Define.
3844 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
3845 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3846 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
3847
3848 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
3849 posix_fadvise64_64): Remove.
3850 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
3851 V flag.
3852 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
3853 Likewise.
3854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
3855 (posix_fadvise64): Likewise.
3856 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
3857 (posix_fadvise64): Likewise.
3858 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
3859 (posix_fadvise64): Likewise.
3860 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
3861 Likewise.
3862 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
3863 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
3864 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
3865 (__posix_fadvise64_l32): New function.
3866 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
3867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
3868 posix_fadvise64@@GLIBC_2.3.3.
3869 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3870 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3871 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
3872 error value.
3873 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
3874
3875 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3876 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
3877
3878 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3879
3880 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
3881 (elf_machine_matches_host): Remove weak extern stuff.
3882 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
3883 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
3884 stuff. Use GL(dl_hwcap) unconditionally.
3885
3886 2003-08-16 Alan Modra <amodra@bigpond.net.au>
3887
3888 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
3889 __libc_start_main branch.
3890
3891 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
3892 Andreas Jaeger <aj@suse.de>
3893
3894 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
3895 instead of setting errno.
3896 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3897
3898 2003-08-16 Andreas Jaeger <aj@suse.de>
3899
3900 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
3901 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
3902
3903 2003-08-15 Ulrich Drepper <drepper@redhat.com>
3904
3905 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
3906 off_t.
3907 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
3908 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
3909 description indicating the error value is returned, not -1.
3910 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
3911 __ASSUME_FADVISE64_64_SYSCALL.
3912 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
3913 posix_madvise in one file. Have posix_madvise defined with error
3914 value returned.
3915 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
3916 entry.
3917 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
3918 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
3919 PSEUDO_END_ERRVAL, and ret_ERRVAL.
3920 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3921 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3922 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
3923 posix_fadvise64.
3924
3925 * posix/Makefile (routines): Add posix_madvise.
3926 * sysdeps/generic/madvise.c: Don't define posix_madvise.
3927 * sysdeps/generic/posix_madvise.c: New file.
3928 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
3929 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
3930 Add posix_fadvise64_64.
3931
3932 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3933
3934 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
3935 3.0, not for !gcc or gcc < 3.0.
3936
3937 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
3938
3939 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
3940 Address passed to test_in_mod1 and test_in_mod2 without casting.
3941 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
3942 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
3943 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
3944 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
3945
3946 2003-08-15 Jakub Jelinek <jakub@redhat.com>
3947
3948 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
3949 Change quotes before using [].
3950
3951 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
3952
3953 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
3954 Renamed to...
3955 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
3956 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
3957 argument. Select one of 64 locks from address bits.
3958 (atomic_compare_and_exchange_val_acq,
3959 atomic_compare_and_exchange_bool_acq): Pass memory address to
3960 __sparc32_atomic_do_{,un}lock.
3961
3962 2003-08-14 Ulrich Drepper <drepper@redhat.com>
3963
3964 * assert/assert.h (assert): Use !! in front of expression to allow
3965 use of pointers.
3966
3967 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
3968 Changed conversion of JIS X 0201 from using a table to calculating.
3969 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
3970 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
3971 EUC-JP-MS.
3972 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
3973 * iconvdata/CP932.irreversible: New file.
3974 * iconvdata/EUC-JP-MS.irreversible: New file.
3975 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
3976
3977 2003-08-13 Ulrich Drepper <drepper@redhat.com>
3978
3979 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
3980
3981 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
3982 text processing tools.
3983
3984 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
3985 element unless BROKEN_THREAD_SIGNALS is defined.
3986 (struct requestlist): Likewise.
3987 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
3988 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
3989 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
3990 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
3991 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
3992 Pass current PID to __aio_sigqueue.
3993 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
3994 call. Don't initialize caller_pid field of waitlist element.
3995
3996 2003-08-12 Jakub Jelinek <jakub@redhat.com>
3997
3998 * libio/libioP.h (_IO_vtable_offset): Define.
3999 * libio/freopen.c (freopen): Use it.
4000 * libio/ioputs.c (_IO_puts): Likewise.
4001 * libio/freopen64.c (freopen64): Likewise.
4002 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
4003 Likewise.
4004 * libio/iofclose.c (_IO_new_fclose): Likewise.
4005 * libio/iofputs.c (_IO_fputs): Likewise.
4006 * libio/ioftell.c (_IO_ftell): Likewise.
4007 * libio/iofwrite.c (_IO_fwrite): Likewise.
4008 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
4009 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
4010 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
4011 * stdio-common/vfscanf.c (ORIENT): Likewise.
4012
4013 2003-08-11 Ulrich Drepper <drepper@redhat.com>
4014
4015 * assert/assert.h: Use __builtin_expect in assert and
4016 assert_perror definitions if possible.
4017
4018 2003-08-07 Jakub Jelinek <jakub@redhat.com>
4019
4020 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
4021 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
4022 * elf/rtld.c (rtld_lock_default_lock_recursive,
4023 rtld_lock_default_unlock_recursive): New functions.
4024 (dl_main): Initialize _dl_rtld_lock_recursive and
4025 _dl_rtld_unlock_recursive.
4026
4027 2003-08-05 Jakub Jelinek <jakub@redhat.com>
4028
4029 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
4030 config_file directories instead of prepending.
4031
4032 2003-08-02 Ulrich Drepper <drepper@redhat.com>
4033
4034 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4035 __ASSUME_CLONE_STOPPED.
4036
4037 2003-08-01 Ulrich Drepper <drepper@redhat.com>
4038
4039 * sysdeps/generic/bits/libc-lock.h
4040 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
4041
4042 2003-08-01 Roland McGrath <roland@frob.com>
4043
4044 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
4045
4046 2003-07-31 Jakub Jelinek <jakub@redhat.com>
4047
4048 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
4049 instead of __SWORD_TYPE.
4050 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4051 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
4052 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
4053 Define.
4054 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
4055 Define.
4056 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
4057 Define.
4058 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
4059
4060 * dlfcn/dlerror.c (once): New.
4061 (dlerror): Call __libc_once.
4062 (_dlerror_run): Remove once.
4063
4064 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4065 Sync with 2.5.7 and 2.5.73 kernel changes.
4066
4067 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
4068 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
4069 formats to size_t.
4070 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
4071 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
4072 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
4073 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
4074 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
4075 difference argument.
4076 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
4077 format to wint_t.
4078 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
4079 %d format and cast expected value to int.
4080 * sysdeps/generic/libc-start.c (STATIC): Add
4081 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
4082 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
4083 to ieee_float_shape_type.
4084 (__sqrt): Avoid type punning.
4085 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
4086 to ieee_float_shape_type.
4087 (__sqrtf): Avoid type punning.
4088 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
4089 refsym if in dl-conflict.c.
4090 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
4091 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
4092 (__new_semctl): Shut up warning.
4093 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
4094 (__new_semctl): Shut up warning.
4095 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
4096 Change old into union of __old_shmid_ds and __old_shminfo structs.
4097 Adjust all users.
4098 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
4099
4100 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
4101 modtime computation.
4102 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
4103 * sysdeps/posix/utimes.c (__utimes): Likewise.
4104
4105 2003-07-30 Jakub Jelinek <jakub@redhat.com>
4106
4107 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
4108 call dl_signal_error directly. If already relocated, call
4109 GL(dl_init_static_tls) directly, otherwise queue it for later.
4110 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
4111 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
4112 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
4113 for all static TLS initializations delayed in _dl_allocate_static_tls.
4114 * elf/dl-support.c (_dl_init_static_tls): New variable.
4115 * include/link.h (struct link_map): Add l_need_tls_init.
4116 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
4117 (_dl_nothread_init_static_tls): New prototype.
4118 (_dl_allocate_static_tls): Adjust prototype.
4119
4120 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
4121
4122 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
4123
4124 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
4125 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
4126 reloc_addr is aligned.
4127 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
4128 elf_machine_rela_relative): Adjust.
4129 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
4130 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4131 * sysdeps/cris/dl-machine.h (elf_machine_rela,
4132 elf_machine_rela_relative): Adjust.
4133 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
4134 elf_machine_rela_relative): Adjust.
4135 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
4136 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
4137 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
4138 elf_machine_rela_relative): Adjust.
4139 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
4140 elf_machine_rela_relative): Adjust.
4141 * sysdeps/mips/dl-machine.h (elf_machine_rela,
4142 elf_machine_rela_relative): Adjust.
4143 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
4144 elf_machine_rela_relative): Adjust.
4145 * sysdeps/powerpc/powerpc64/dl-machine.h
4146 (elf_machine_rela_relative, elf_machine_rela): Adjust.
4147 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
4148 elf_machine_rela_relative): Adjust.
4149 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
4150 elf_machine_rela_relative): Adjust.
4151 * sysdeps/sh/dl-machine.h (elf_machine_rela,
4152 elf_machine_rela_relative): Adjust.
4153 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
4154 elf_machine_rela_relative): Adjust.
4155 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
4156 elf_machine_rela_relative): Adjust.
4157 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
4158 elf_machine_rela_relative): Adjust.
4159
4160 2003-07-29 Ulrich Drepper <drepper@redhat.com>
4161
4162 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
4163 alignment of TCB used before the last change so that it matches
4164 ld's output for IE code.
4165
4166 2003-07-29 Jakub Jelinek <jakub@redhat.com>
4167
4168 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
4169 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
4170 break strict-aliasing rules" warnings.
4171
4172 2003-07-29 Roland McGrath <roland@redhat.com>
4173
4174 * elf/Makefile: Revert accidental changes in last commit.
4175 * elf/dl-support.c: Likewise.
4176
4177 * rt/tst-timer2.c: New file.
4178 * rt/Makefile (tests): Add it.
4179
4180 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4181
4182 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
4183
4184 2003-07-29 Roland McGrath <roland@redhat.com>
4185
4186 * elf/Makefile (tests) [$(build-shared) = yes]:
4187 Depend on $(test-modules).
4188 * dlfcn/Makefile: Likewise.
4189
4190 2003-07-28 Roland McGrath <roland@redhat.com>
4191
4192 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
4193 Use that instead of `typedef' when using __*_TYPE macros in rhs.
4194
4195 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
4196 * elf/tst-tlsmod14a.c: Likewise.
4197
4198 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
4199 before <linux/sysctl.h>.
4200
4201 2003-07-27 Ulrich Drepper <drepper@redhat.com>
4202
4203 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
4204 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
4205 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
4206 * sysdeps/unix/syscalls.list: umask syscall never fails.
4207
4208 2003-07-27 Andreas Jaeger <aj@suse.de>
4209
4210 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
4211
4212 2003-07-25 Jakub Jelinek <jakub@redhat.com>
4213
4214 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
4215 Include bits/a.out.h.
4216 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4217 bits/a.out.h.
4218 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
4219 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
4220 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
4221 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
4222 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
4223 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
4224 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
4225 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
4226
4227 2003-07-24 Jakub Jelinek <jakub@redhat.com>
4228
4229 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
4230 if aiocbp != NULL and has already completed. Return -1/EINVAL if
4231 aiocbp->aio_fildes does not match fildes.
4232
4233 2003-07-24 Ulrich Drepper <drepper@redhat.com>
4234
4235 * timezone/zic.c (rpytime): Replace cheap overflow check with a
4236 functioning one.
4237
4238 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
4239 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
4240 Fix calculation of offsets to take misalignment of first byte in
4241 file into account.
4242 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
4243 l_tls_firstbyte_offset field.
4244 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
4245 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
4246 Take l_tls_firstbyte_offset information into account.
4247 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
4248 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
4249 * elf/Makefile: Add rules to build and run tst-tls14.
4250 * elf/tst-tls14.c: New file.
4251 * elf/tst-tlsmod14a.c: New file.
4252 * elf/tst-tlsmod14b.c: New file.
4253
4254 2003-07-23 Jakub Jelinek <jakub@redhat.com>
4255
4256 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
4257 (lio_listio): Use it.
4258 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
4259 after few defines to avoid duplication.
4260
4261 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4262
4263 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
4264 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4265 Likewise.
4266 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
4267 Add libc_hidden_def.
4268 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
4269 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4270 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
4271 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
4272 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
4273 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
4274 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
4275 change.
4276 * sysdeps/generic/unwind.inc: Removed.
4277
4278 * include/resolv.h (__resp): Declare. Define to __libc_resp
4279 if in libc.so.
4280 (_res): If USE___THREAD, define to (*__resp).
4281 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
4282 even if USE___THREAD.
4283 (__resp): New __thread variable.
4284 (__libc_resp): New alias.
4285 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
4286 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
4287 * sysdeps/generic/res-state.c (__res_state): Return __resp
4288 if USE___THREAD.
4289
4290 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4291
4292 * elf/dl-support.c (_dl_hwcap): New variable.
4293 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
4294
4295 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
4296 and <dl-procinfo.h>.
4297 (__feclearexcept): Clear MXCSR if needed.
4298 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
4299
4300 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
4301 that newer hardware needs more than these macros.
4302
4303 * sysdeps/i386/setfpucw.c: New file.
4304
4305 2003-07-22 Jakub Jelinek <jakub@redhat.com>
4306
4307 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
4308 * elf/ldconfig.c: Include dl-procinfo.c.
4309 (PROCINFO_CLASS): Define.
4310 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
4311 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
4312 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
4313 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
4314 Define if not yet defined. Use it instead of EXTERN. Undefine
4315 at the end of the file.
4316 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
4317 Likewise.
4318 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
4319 (PROCINFO_CLASS): Likewise.
4320 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
4321 (PROCINFO_CLASS): Likewise.
4322
4323 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
4324
4325 * elf/ldconfig.c (main): Issue a fatal error if relative path
4326 is used to build cache.
4327
4328 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4329
4330 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
4331
4332 2003-07-21 Art Haas <ahaas@airmail.net>
4333
4334 * manual/charset.texi (Converting a Character): Fix example code so a
4335 valid pointer is returned.
4336
4337 2003-07-22 Andreas Jaeger <aj@suse.de>
4338
4339 * elf/readlib.c (process_file): Check that file is a shared
4340 object.
4341
4342 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
4343 will not optimize it away.
4344 (__DTOR_END__): Likewise.
4345 (__CTOR_END__): Likewise.
4346
4347 * include/libc-symbols.h (_elf_set_element): Use attribute used so
4348 that gcc will not optimize it away.
4349 (link_warning): Likewise.
4350
4351 2003-07-22 Ulrich Drepper <drepper@redhat.com>
4352
4353 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
4354 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
4355 * wcsmbs/tst-wcpncpy.c: New file.
4356
4357 2003-07-21 Ulrich Drepper <drepper@redhat.com>
4358
4359 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
4360
4361 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
4362 stmxcsr and ldmxcsr.
4363
4364 * Makerules (build-module-helper): Add -z defs unless explicitly said
4365 not to do it.
4366 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
4367 which has undefined symbols.
4368 * elf/Makefile: Likewise.
4369
4370 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
4371 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
4372 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
4373 * sysdeps/i386/fpu/fesetround.c: Likewise.
4374 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
4375
4376 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
4377
4378 * elf/ldconfig.c (search_dir): Treat symlink as regular file
4379 if it won't point to itself.
4380
4381 2003-07-20 Ulrich Drepper <drepper@redhat.com>
4382
4383 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
4384
4385 2003-07-20 Andreas Jaeger <aj@suse.de>
4386
4387 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
4388 STANDARD_TO_LOOP_ERR_HANDLER.
4389 * iconvdata/euc-jp-ms.c (BODY): Likewise.
4390
4391 2003-07-19 Ulrich Drepper <drepper@redhat.com>
4392
4393 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
4394
4395 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
4396
4397 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
4398 Andreas Jaeger <aj@suse.de>
4399
4400 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
4401 256K, remove unneeded declaration of __getpagesize.
4402
4403 2003-07-16 Andreas Schwab <schwab@suse.de>
4404
4405 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
4406
4407 2003-07-15 Ulrich Drepper <drepper@redhat.com>
4408
4409 * io/test-utime.c (main): Make test yet more robust.
4410
4411 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4412
4413 More cancellation handling fixups.
4414 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
4415 * sysdeps/generic/not-cancel.h: Likewise.
4416 * catgets/open_catalog.c: Use not-cancelable syscalls.
4417 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
4418 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
4419 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
4420 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
4421 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
4422 * libio/fileops.c: Use not-cancelable syscalls for fclose.
4423 * libio/iopopen.c: Use no-cancelable syscalls.
4424 * libio/stdio.h: Mark popen and pclose with __THROW again.
4425 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
4426 * misc/syslog.c: Fix locking and cancellation cleanup handling.
4427 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
4428 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
4429 CFLAGS-tempname.c): Add -fexceptions.
4430 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
4431 * string/string.h: Mark strerror and strerror_r with _THROW again.
4432 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
4433 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
4434 #ifs since we now need all the code compiled.
4435 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
4436 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
4437 * sysdeps/unix/opendir.c: Likewise.
4438
4439 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
4440 Add rule for EUC-JP-MS dependency.
4441 * iconvdata/cp932.c: New file.
4442 * iconvdata/eucjp-ms.c: New file.
4443 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
4444 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
4445
4446 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4447
4448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
4449 cfi directives.
4450
4451 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4452
4453 * sysdeps/unix/sysv/linux/kernel-features.h
4454 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
4455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
4456
4457 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
4458
4459 2003-07-14 Ulrich Drepper <drepper@redhat.com>
4460
4461 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4462 __ASSUME_TGKILL for Alpha appropriately.
4463
4464 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4465
4466 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
4467 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
4468 Likewise.
4469 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
4470 Likewise.
4471
4472 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4473 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
4474
4475 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
4476 second parameter == NULL.
4477 * sysdeps/unix/sysv/linux/utimes.c: New file.
4478
4479 2003-07-12 Jakub Jelinek <jakub@redhat.com>
4480
4481 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
4482 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
4483 a typo.
4484
4485 2003-07-12 Ulrich Drepper <drepper@redhat.com>
4486
4487 * time/sys/time.h: Namespace cleanup.
4488 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4489 __ASSUME_UTIMES for the architectures which always had the syscall.
4490 * sysdeps/unix/sysv/linux/futimes.c: New file.
4491
4492 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4493
4494 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
4495 register across CENABLE and CDISABLE.
4496
4497 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4498
4499 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
4500 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4501 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4502 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
4503 int before assigning to max to avoid warnings.
4504
4505 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4506
4507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
4508 cfi directives.
4509 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
4510 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
4511
4512 2003-07-10 Jakub Jelinek <jakub@redhat.com>
4513
4514 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
4515 .data.rel.ro.local to "aw".
4516
4517 2003-07-10 Ulrich Drepper <drepper@redhat.com>
4518
4519 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
4520 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
4521 (PIC-ccflag): Define.
4522
4523 2003-07-04 Jakub Jelinek <jakub@redhat.com>
4524
4525 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
4526 if PIC.
4527 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4528
4529 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4530
4531 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
4532 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
4533
4534 2003-07-07 Ulrich Drepper <drepper@redhat.com>
4535
4536 * sysdeps/unix/sysv/linux/kernel-features.h: Version
4537 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
4538
4539 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
4540 compilation with HAVE_AUX_SECURE defined.
4541
4542 2003-07-05 Richard Henderson <rth@redhat.com>
4543
4544 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
4545
4546 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4547
4548 * configure.in: Also check for .cfi_rel_offset pseudo-op.
4549
4550 2003-07-03 Jakub Jelinek <jakub@redhat.com>
4551
4552 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
4553 typo.
4554
4555 2003-07-03 Ulrich Drepper <drepper@redhat.com>
4556
4557 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
4558 Define.
4559 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
4560
4561 2003-07-02 Jakub Jelinek <jakub@redhat.com>
4562
4563 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
4564 decl and use with #ifdef NEED_DL_SYSINFO.
4565
4566 2003-07-02 Ulrich Drepper <drepper@redhat.com>
4567
4568 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
4569 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
4570 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4571 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
4572 vsyscall DSO was added.
4573
4574 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
4575 depending on selected standard.
4576 (NGROUPS_MAX): Define to 8 if not defined.
4577
4578 2003-07-02 Andreas Jaeger <aj@suse.de>
4579
4580 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
4581
4582 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
4583
4584 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
4585 * malloc/thread-m.h: Include <atomic.h>.
4586 (atomic_full_barrier): Provide default.
4587 (atomic_read_barrier): Likewise.
4588 (atomic_write_barrier): Likewise.
4589 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
4590
4591 2003-06-30 Ulrich Drepper <drepper@redhat.com>
4592
4593 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
4594
4595 2003-06-30 Richard Henderson <rth@redhat.com>
4596
4597 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
4598 Invert the sense of the return value.
4599 (__arch_exchange_16_int): Fix paste-o.
4600 (__arch_exchange_{32,64}_int): Fix think-o.
4601
4602 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
4603
4604 2003-06-30 Richard Henderson <rth@redhat.com>
4605
4606 * include/sys/resource.h (__getrusage): Mark hidden.
4607 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
4608 * include/sys/wait.h (__wait4): Likewise.
4609
4610 2003-06-17 Guido Guenther <agx@sigxcpu.org>
4611
4612 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
4613 case.
4614 (xstat_conv): Rename to __xstat_conv and remove static inline.
4615 (xstat64_conv): Likewise.
4616
4617 2003-06-29 Ulrich Drepper <drepper@redhat.com>
4618
4619 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
4620 values which cannot be handled in one nanosleep call.
4621
4622 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
4623
4624 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
4625 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
4626
4627 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
4628
4629 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
4630
4631 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
4632 fix typo.
4633
4634 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
4635
4636 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
4637 Conditionalize function definitions that use struct kernel_stat.
4638 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
4639 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
4640 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
4641
4642 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4643
4644 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
4645 implementation.
4646
4647 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
4648
4649 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
4650 (getgrent_next_file): Don't store group name to early in blacklist.
4651
4652 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
4653 and use memcpy instead of strcpy.
4654
4655 2003-06-28 Ulrich Drepper <drepper@redhat.com>
4656
4657 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
4658 stream unlocked.
4659 * nis/nss_compat/compat-initgroups.c: Likewise.
4660 * nis/nss_compat/compat-pwd.c: Likewise.
4661 * nis/nss_compat/compat-spwd.c: Likewise.
4662
4663 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
4664
4665 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
4666 functions, dlopen corresponding NSS module instead.
4667
4668 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
4669
4670 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
4671 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4672 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4673 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4674
4675 2003-06-27 Ulrich Drepper <drepper@redhat.com>
4676
4677 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
4678
4679 2003-06-26 Roland McGrath <roland@frob.com>
4680
4681 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
4682 * sysdeps/mach/configure: Regenerated.
4683 * sysdeps/mach/hurd/times.c (times_init): Function removed.
4684 (__times): Assume `creation_time' field is available.
4685 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
4686 Don't append set-init.
4687 * sysdeps/mach/hurd/set-init.c: File removed.
4688
4689 2003-06-26 Roland McGrath <roland@redhat.com>
4690
4691 * elf/elf.h (AT_SECURE): New macro.
4692 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
4693 set __libc_enable_secure.
4694 (_dl_show_auxv): Add AT_SECURE to name table.
4695 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
4696 __libc_enable_secure and __libc_enable_secure_decided.
4697 * sysdeps/unix/sysv/linux/ldsodefs.h
4698 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
4699 * sysdeps/unix/sysv/linux/kernel-features.h
4700 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
4701
4702 2003-06-26 Ulrich Drepper <drepper@redhat.com>
4703
4704 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
4705 boundary test to take rounding of nanoseconds into account.
4706
4707 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
4708 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4709 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
4710 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4711 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4712 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4713 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4714
4715 2003-06-26 Andreas Schwab <schwab@suse.de>
4716
4717 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
4718 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
4719 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
4720
4721 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
4722
4723 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
4724 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
4725 dlopen corresponding NSS module instead.
4726 * nis/nss_compat/compat-pwd.c: Likewise.
4727 * nis/nss_compat/compat-spwd.c: Likewise.
4728 * nis/nss_compat/compat-initgroups.c: Disabled for now.
4729 * nss/Versions: Export __nss_lookup_function.
4730
4731 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4732
4733 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
4734 for the SH architecture.
4735
4736 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
4737
4738 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
4739
4740 2003-06-25 Andreas Jaeger <aj@suse.de>
4741
4742 * stdlib/tst-strtod.c (main): Declare constant long double as
4743 suggested by Jakub Jelinek and Andreas Schwab.
4744
4745 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
4746 declaration.
4747
4748 * stdio-common/tst-fphex.c: Fix format string.
4749
4750 * posix/transbug.c: Include <string.h> for memset and strlen
4751 declarations.
4752
4753 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
4754
4755 * stdlib/tst-strtod.c (main): Pass long double value.
4756
4757 * test-skeleton.c: Include <time.h> for nanosleep declaration.
4758
4759 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4760
4761 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
4762 defined.
4763
4764 2003-06-11 Jakub Jelinek <jakub@redhat.com>
4765
4766 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
4767 * elf/dl-libc.c (struct dl_open_hook): New.
4768 (_dl_open_hook): New variable.
4769 (do_dlsym_private): New function.
4770 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
4771 and initialize it if found.
4772 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
4773 call dlopen_mode hook.
4774 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
4775 call dlsym hook.
4776 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
4777 call dlclose hook.
4778
4779 2003-06-25 Ulrich Drepper <drepper@redhat.com>
4780
4781 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
4782 result to long int so that extensions to long long int work.
4783 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
4784
4785 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4786
4787 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
4788 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
4789 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
4790 dl-cache.h.
4791 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
4792 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
4793 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
4794 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
4795
4796 2003-06-19 Jakub Jelinek <jakub@redhat.com>
4797
4798 * test-skeleton.c (timeout_handler): If waitpid returned 0,
4799 retry once after a second. If killed == 0, assume
4800 WTERMSIG (status) == SIGKILL.
4801
4802 2003-06-18 Roland McGrath <roland@redhat.com>
4803
4804 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
4805 elements in the table instead of printing an empty name string.
4806
4807 2003-06-05 Roland McGrath <roland@redhat.com>
4808
4809 * elf/elf.h (PT_GNU_STACK): New macro.
4810
4811 2003-06-24 Ulrich Drepper <drepper@redhat.com>
4812
4813 * include/time.h: Define CLOCK_IDFIELD_SIZE.
4814 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
4815 * sysdeps/unix/clock_gettime.c: Likewise.
4816 * sysdeps/unix/clock_settime.c: Likewise.
4817 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
4818 clock id for thread CPU clocks.
4819
4820 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
4821 for the fstatfs64 syscall.
4822 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
4823 the statfs64 syscall.
4824
4825 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4826 __ASSUME_STATFS64 appropriately.
4827
4828 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
4829 from statfs structure if it has been filled in.
4830
4831 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
4832 field.
4833 (struct statfs64): Likewise.
4834 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
4835 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
4836
4837 2003-06-24 Richard Henderson <rth@redhat.com>
4838
4839 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
4840 the 64-bit syscall name.
4841
4842 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
4843
4844 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
4845 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
4846
4847 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
4848 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
4849 libc_hidden_def.
4850 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4851 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
4852 on them.
4853
4854 * sysdeps/alpha/bits/atomic.h: New file.
4855
4856 2003-06-24 Andreas Schwab <schwab@suse.de>
4857
4858 * sysdeps/m68k/fpu/libm-test-ulps: Update.
4859
4860 2003-06-24 Andreas Jaeger <aj@suse.de>
4861
4862 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
4863 redeclaration with 32-bit code.
4864
4865 2003-05-19 Ed Connell <ed.connell@sas.com>
4866
4867 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
4868 floating point mask.
4869 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
4870
4871 2003-06-23 Ulrich Drepper <drepper@redhat.com>
4872
4873 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
4874 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
4875 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
4876
4877 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
4878 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
4879 instead of __libc_cleanup_region_*.
4880
4881 2003-06-20 Richard Henderson <rth@redhat.com>
4882
4883 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
4884 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
4885
4886 2003-06-20 Richard Henderson <rth@redhat.com>
4887
4888 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
4889 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
4890 Unset for alpha.
4891 (__ASSUME_TIMEVAL64): Set for alpha.
4892 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
4893 adjtimex, osf_sigprocmask, old_adjtimex.
4894 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
4895 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
4896 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
4897 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4898 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4899 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4900 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4901 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4902 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4903 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4904 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
4905 PIC code sequence.
4906 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4907 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
4908 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
4909 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
4910 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
4911 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
4912 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
4913 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
4914 defer to __syscall_name; error for rt_sigaction.
4915 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
4916
4917 2003-06-18 Ulrich Drepper <drepper@redhat.com>
4918
4919 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
4920 hasn't happened yet.
4921
4922 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
4923 Fix completely broken implementation. The second parameter is of
4924 type struct ucontext*.
4925
4926 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
4927 inline.
4928
4929 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
4930 * sysdeps/generic/dl-hash.h: Likewise.
4931
4932 * sysdeps/generic/memcmp.c: Remove inline from
4933 memcmp_common_alignment and memcmp_not_common_alignment definition.
4934
4935 * intl/localealias.c (read_alias_file): Determine whether line is
4936 read incompletely early, before we modify the line.
4937
4938 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4939
4940 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
4941 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
4942
4943 2003-06-17 Paul Mackerras <paulus@samba.org>
4944
4945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
4946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
4947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
4948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
4949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
4950 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
4951
4952 2003-06-17 Jakub Jelinek <jakub@redhat.com>
4953
4954 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
4955
4956 2003-06-17 Ulrich Drepper <drepper@redhat.com>
4957
4958 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
4959 takes care of enabling cancellation.
4960
4961 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
4962 cancelable. It's not correct to disable cancellation. Instead of
4963 a cleanup handler.
4964
4965 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
4966 and part of the incoming set, create a temporary set without this
4967 signal.
4968 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
4969 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4970
4971 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
4972 returning because seconds==0. Add __builtin_expect.
4973
4974 2003-06-16 Ulrich Drepper <drepper@redhat.com>
4975
4976 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
4977
4978 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
4979 variable.
4980
4981 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
4982
4983 * include/libc-symbols.h: Add static_link_warning macro.
4984 * grp/initgroups.c: Print linker warning if this function
4985 is called in a static linked binary.
4986 * nss/getXXbyYY.c: Likewise.
4987 * nss/getXXbyYY_r.c: Likewise.
4988 * nss/getXXent.c: Likewise.
4989 * nss/getXXent_r.c: Likewise.
4990 * sysdeps/posix/getaddrinfo.c: Likewise.
4991
4992 2003-06-16 Bruno Haible <bruno@clisp.org>
4993
4994 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
4995 LATIN-9.
4996 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
4997 (IBM1047): Add alias IBM-1047.
4998 (GBK): Add aliases MS936, WINDOWS-936.
4999
5000 2003-06-16 Jakub Jelinek <jakub@redhat.com>
5001
5002 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
5003 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
5004 (__xstat64_conv): Change xstat_conv to __xstat_conv.
5005
5006 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5007
5008 * locale/iso-639.def: Update from current official ISO 639.
5009
5010 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
5011
5012 2003-06-15 Andreas Jaeger <aj@suse.de>
5013
5014 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
5015 of MXCSR.
5016 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5017 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
5018 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
5019
5020 * math/tgmath.h (carg): Handle real arguments.
5021 (conj): Likewise.
5022 (cproj): Likewise.
5023 (cimag): Likewise.
5024 (creal): Likewise.
5025
5026 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
5027 (tests): Add test-tgmath-ret.
5028 * math/test-tgmath-ret.c: New file.
5029
5030 * math/tgmath.h (ilogb): Return always an int.
5031
5032 2003-06-16 Ulrich Drepper <drepper@redhat.com>
5033
5034 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
5035 computation so that prelinking works.
5036
5037 2003-06-15 Ulrich Drepper <drepper@redhat.com>
5038
5039 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
5040 linker's map.
5041 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
5042 dynamic linker's map.
5043
5044 Fix cancellation point handling wrt exception based cleanup.
5045 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
5046 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
5047 with exceptions.
5048 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
5049 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
5050 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
5051 exceptions.
5052 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
5053 sigwait.c, and sigwaitinfo.c with exceptions.
5054 * stdlib/Makefile: Compile system.c with exceptions.
5055 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
5056 * termios/Makefile: Compile tcdrain.c with exceptions.
5057 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
5058 situation.
5059 * sysdeps/generic/pselect.c: Likewise.
5060 * sysdeps/posix/sigpause.c: Likewise.
5061 * sysdeps/posix/system.c: Likewise.
5062 * sysdeps/posix/waitid.c: Likewise.
5063 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5064 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
5065 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
5066 INTERNAL_SYSCALL to not use push inside asm statement so that
5067 unwind info is correct around the syscall.
5068 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
5069 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
5070
5071 2003-06-15 Andreas Jaeger <aj@suse.de>
5072
5073 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5074 Add CFI directives.
5075
5076 2003-06-15 Guido Guenther <agx@sigxcpu.org>
5077
5078 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
5079 create $(objpfx).
5080
5081 2003-06-14 Ulrich Drepper <drepper@redhat.com>
5082
5083 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
5084 not close.
5085
5086 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
5087 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
5088 definition.
5089
5090 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
5091 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
5092 * inet/Makefile (routines): Add inet6_option.
5093 * inet/inet6_option.c: New file.
5094 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
5095 inet6_option_init, inet6_option_append, inet6_option_alloc,
5096 inet6_option_next, and inet6_option_find.
5097
5098 2003-06-13 Ulrich Drepper <drepper@redhat.com>
5099
5100 * inet/netinet/ip6.h (struct ip6_ext): Define.
5101
5102 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
5103
5104 Fixing gcc 3.3 warnings, part II.
5105 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
5106 * elf/dl-load.c (cache_rpath): Don't inline.
5107 * iconvdata/cns11642l2.h: Always inline all functions.
5108 * iconvdata/iso-ir-165.h: Likewise.
5109 * locale/Makefile (aux): Add coll-lookup.
5110 * locale/coll-lookup.c: New file.
5111 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
5112 (collseq_table_lookup): Likewise.
5113 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
5114 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
5115 change.
5116 * posix/regcomp.c: Likewise.
5117 * posix/regexec.c: Likewise.
5118 * locale/programs/3level.h (*_get): Always inline.
5119 * locale/programs/locfile.h: Move definition of handle_copy to...
5120 * locale/programs/locfile.c: ...here.
5121 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
5122 (obstack_int32_grow_fast): Likewise.
5123 (utf8_encode): Likewise.
5124 (find_element): Avoid aliasing problems.
5125 (insert_value): Likewise.
5126 (collate_read): Likewise.
5127 * nss/getent.c (print_hosts): Don't inline
5128 (print_networks): Likewise.
5129 (print_shadow): Likewise.
5130 (build_doc): Likewise.
5131 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
5132 inline.
5133 * posix/regcomp.c (re_set_fastmap): Always inline.
5134 (seek_collating_symbol_entry): Likewise.
5135 (lookup_collation_sequence_value): Likewise.
5136 (build_range_exp): Likewise.
5137 (build_collating_symbol): Likewise.
5138 * posix/regexec.c (acquire_init_state_context): Don't inline.
5139 (clean_state_log_if_need): Likewise.
5140 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
5141 adjust all callers.
5142 (evConsTime): Likewise.
5143 (evAddTime): Likewise.
5144 (evSubTime): Likewise.
5145 (evNowTime): Likewise.
5146 (evTimeSpec): Removed.
5147 (__libc_res_nsend): Avoid aliasing problem.
5148 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
5149 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
5150 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
5151 Always inline.
5152 (_dl_string_platform): Likewise.
5153 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
5154 (wcwidth_table_lookup): Likewise.
5155 (wctrans_table_lookup): Likewise.
5156
5157 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
5158
5159 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5160
5161 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
5162
5163 2003-05-29 Jim Meyering <jim@meyering.net>
5164
5165 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
5166 && HAVE_STRFTIME]: Use underlying_strftime for %r.
5167 Suggested by Daniel Yacob <locales@geez.org>.
5168
5169 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
5170
5171 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
5172 @got notation with @toc.
5173 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
5174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
5175
5176 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5177
5178 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
5179 if only PF_INET address is needed.
5180
5181 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
5182 case of an error.
5183
5184 * scripts/config.guess: Update from upstream version.
5185 * scripts/config.sub: Likewise.
5186
5187 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5188
5189 * locale/programs/ld-time.c (time_output): Also copy the era format,
5190 not only the name.
5191
5192 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
5193
5194 * posix/transbug.c (run_test): Return 1 for failure.
5195 (do_test): Compare only if run_test is successful.
5196
5197 2003-06-12 Simon Josefsson <jas@extundo.com>
5198
5199 * argp/argp.h [!__THROW]: Define if undefined.
5200
5201 2003-06-12 Ulrich Drepper <drepper@redhat.com>
5202
5203 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
5204 more than four parameters.
5205 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
5206
5207 2003-06-12 Jakub Jelinek <jakub@redhat.com>
5208
5209 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5210 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
5211 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
5212
5213 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
5214
5215 2003-06-12 Roland McGrath <roland@redhat.com>
5216
5217 * Makerules ($(objpfx)stubs): Rewrite sed magic.
5218
5219 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
5220
5221 * posix/regcomp.c (parse_expression): Deliver translation to
5222 build_word_op, and build_charclass.
5223 (build_charclass): Apply translation for character classes too.
5224 (build_word_op): Deliver translation to build_charclass.
5225 * posix/transbug.c: New file.
5226 * posix/Makefile (tests): Add transbug.
5227
5228 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
5229
5230 * posix/regexec.c (group_nodes_into_DFAstates): Check for
5231 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
5232 'continue' before the others.
5233
5234 2003-06-11 Ulrich Drepper <drepper@redhat.com>
5235
5236 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
5237 function [PR libc/5045].
5238
5239 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
5240 also for P4.
5241
5242 * time/tzfile.c: Add a couple of __builtin_expect.
5243
5244 Remove warnings gcc 3.3 shows.
5245 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
5246 * elf/dl-load.c (fillin_rpath): Likewise.
5247 (add_path): Likewise.
5248 * elf/dl-version.c (find_needed): Always inline.
5249 * elf/do-lookup.c (FCT): Don't inline.
5250 * iconv/Makefile: Extend vpath to intl subdir.
5251 (iconvconfig-modules): Add hash-string.
5252 * iconv/gconv_charset.h (strip): Don't inline.
5253 (upstr): Always inline.
5254 Move __gconv_compare_alias prototype to...
5255 * iconv/gconv_int.h: ...here.
5256 * iconv/gconv_db.c: Don't include gconv_charset.h.
5257 * iconv/gconv_conf.c (add_alias): Don't inline.
5258 (insert_module): Likewise.
5259 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
5260 (internal_ucs4_loop_unaligned): Likewise.
5261 (internal_ucs4_loop_single): Likewise.
5262 (ucs4_internal_loop): Likewise.
5263 (ucs4_internal_loop_unaligned): Likewise.
5264 (ucs4_internal_loop_single): Likewise.
5265 (internal_ucs4le_loop): Always inline.
5266 (internal_ucs4le_loop_unaligned): Likewise.
5267 (internal_ucs4le_loop_single): Likewise.
5268 (ucs4le_internal_loop): Likewise.
5269 (ucs4le_internal_loop_unaligned): Likewise.
5270 (ucs4le_internal_loop_single): Likewise.
5271 * iconv/loop.c: Always inline the defined functions.
5272 * iconvdata/cns11642.h: Likewise.
5273 * iconvdata/cns11642l1.h: Likewise.
5274 * iconvdata/euc-kr.c: Likewise.
5275 * iconvdata/gb2312.h: Likewise.
5276 * iconvdata/jis0201.h: Likewise.
5277 * iconvdata/jis0208.h: Likewise.
5278 * iconvdata/jis0212.h: Likewise.
5279 * iconvdata/jisx0213.h: Likewise.
5280 * iconvdata/ksc5601.h: Likewise.
5281 * iconvdata/utf-7.c (base64): Don't inline.
5282 * include/libc-symbols.h (symbol_set_first_element): Add cast
5283 (symbol_set_end_p): Likewise.
5284 * include/set-hooks (RUN_HOOK): Likewise.
5285 * inet/Makefile (aux): Add ifreq.
5286 * intl/Makefile (aux): Add some entries from routines. Add
5287 hash-string.
5288 * intl/hash-string.c: New file.
5289 * intl/hash-string.h: Remove hash_string definition. Declare
5290 __hash_string.
5291 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
5292 * iconv/iconvconfig.c (new_name): Likewise.
5293 * intl/dcigettext.c (_nl_find_msg): Likewise.
5294 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
5295 * io/ftw.c (open_dir_stream): Always inline.
5296 (process_entry): Don't inline.
5297 * locale/findlocale.c: Include gconv_int.h.
5298 * locale/setlocale.c (new_composite_name): Don't inline.
5299 * locale/weight.h (findidx): Always inline.
5300 * locale/weightwc.h (findidx): Likewise.
5301 * locale/programs/linereader.c (lr_ignore_rest): Define here.
5302 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
5303 just declare it.
5304 (lr_getc): Always inline.
5305 (lr_ungetc): Likewise.
5306 * nss/nss_files/files-parse.c (parse_list): Likewise.
5307 * stdio-common/Makefile (aux): Add printf-parsemb and
5308 printf-parsewc.
5309 * stdio-common/_itoa.h (_itoa_word): Always inline.
5310 (_fitoa_word, _fitoa): Don't define here, only declare.
5311 * stdio-common/_itoa.c (_iftoa_word): Add here.
5312 (_fitoa): Likewise.
5313 * stdio-common/_itowa.h (_itowa_word): Always inline.
5314 * stdio-common/printf-parse.h (read_int): Don't inline.
5315 (find_spec): Don't define.
5316 Declare __find_specmb and __find_specwc.
5317 (parse_one_spec): Don't define.
5318 Declare __parse_one_specmb and __parse_one_specwc.
5319 * stdio-common/printf-parsemb.c: New file.
5320 * stdio-common/printf-parsewc.c: New file.
5321 * stdio-common/vfprintf.c: Update calls to find_spec and
5322 parse_one_spec for new names.
5323 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
5324 * stdlib/Makefile (aux): Add grouping and groupingwc.
5325 * stdlib/grouping.c: New file.
5326 * stdlib/groupingwc.c: New file.
5327 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
5328 Just prototype.
5329 * stdlib/rpmatch.c (try): Don't inline.
5330 * stdlib/strtod.c (round_and_return): Don't line.
5331 (str_to_mpn): Likewise.
5332 (__mpn_lshift_1): Always inline. Optimize only for constant count.
5333 Adjust for name change of correctly_grouped_prefix.
5334 * sysdeps/generic/strtol.c: Adjust for name change of
5335 correctly_grouped_prefix.
5336 * string/strxfrm.c (utf8_encode): Don't inline.
5337 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
5338 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
5339 * sysdeps/generic/ifreq.c: New file.
5340 * sysdeps/unix/sysv/linux/ifreq.c: New file.
5341 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
5342 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
5343 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
5344 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
5345 (fde_split): Likewise.
5346 (fde_merge): Likewise.
5347 (end_fde_sort): Likewise.
5348 (init_object): Likewise.
5349 (binary_search_unencoded_fdes): Likewise.
5350 (binary_search_single_encoding_fdes): Likewise.
5351 (binary_search_mixed_encoding_fdes): Likewise.
5352 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
5353 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
5354 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
5355 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5356 Add xstatconv.
5357 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
5358 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
5359 Export them. Prepend __ to name.
5360 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
5361 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
5362 conversion functions.
5363 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5364 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5365 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5366 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5367 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5368 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5369 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5370 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5371 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
5372 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
5373 to name. Change callers.
5374 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
5375 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
5376 declare.
5377 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
5378 * time/tzfile.c (decode): Always inline.
5379 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
5380 Remove cast in tomb function call.
5381 * wcsmbs/wcsrtombs.c Likewise.
5382 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
5383 tomb function call.
5384
5385 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5386
5387 * po/zh_CN.po: Update from translation team.
5388
5389 2003-06-10 Jakub Jelinek <jakub@redhat.com>
5390
5391 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
5392 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
5393
5394 2003-06-10 Ulrich Drepper <drepper@redhat.com>
5395
5396 * inet/Makefile (aux): Add check_pf.
5397 * include/ifaddrs.h: Add prototype for __check_pf.
5398 * sysdeps/generic/check_pf.c: New file.
5399 * sysdeps/unix/sysv/linux/check_pf.c: New file.
5400 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
5401 from no_netlink_support. Export.
5402 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
5403 call __check_pf.
5404
5405 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
5406
5407 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
5408 from getifaddr calls.
5409
5410 2003-06-09 Jakub Jelinek <jakub@redhat.com>
5411
5412 * sysdeps/unix/sysv/linux/kernel-features.h
5413 (__ASSUME_SETRESGID_SYSCALL): Define.
5414 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
5415 instead of __ASSUME_SETRESUID_SYSCALL.
5416 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
5417 defined.
5418 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
5419 inline syscall if __NR_setresuid32 is defined.
5420 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5421 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
5422 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
5423 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5424 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
5425 code handling non-existant setresgid32 syscall with
5426 #if __ASSUME_SETRESGID_SYSCALL == 0.
5427
5428 2003-06-09 Andreas Schwab <schwab@suse.de>
5429
5430 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
5431 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
5432 $(objpfx)rpc-proto.d.
5433 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
5434 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
5435 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
5436
5437 2003-06-08 Ulrich Drepper <drepper@redhat.com>
5438
5439 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
5440 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5441 defined drop compatibility code.
5442 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
5443 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
5444 defined drop compatibility code.
5445 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
5446 setresuid32 syscall directly if possible.
5447 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
5448 setresgid32 syscall directly if possible.
5449 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
5450 compliant. Don't change sgid.
5451 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
5452 compliant. Don't change suid.
5453
5454 * config.h.in: Add have-forced-unwind.
5455 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
5456
5457 2003-06-07 Ulrich Drepper <drepper@redhat.com>
5458
5459 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
5460 returned status from child matches.
5461
5462 * Makeconfig (gnulib): Add -lgcc_eh once again.
5463
5464 2003-06-06 Ulrich Drepper <drepper@redhat.com>
5465
5466 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
5467
5468 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
5469 %edx for first parameter. This means no pushl and therefore the
5470 unwind info isn't screwed up.
5471
5472 2003-06-04 Richard Henderson <rth@redhat.com>
5473
5474 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
5475 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
5476 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
5477 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
5478 entry sequence and explicit relocs. Add unwind info for sigreturn
5479 and rt_sigreturn.
5480 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
5481
5482 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
5483 Annotate some parameters.
5484 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
5485
5486 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
5487
5488 * include/libc-symbols.h (symbol_set_declare): Use arrays
5489 of unspecified size.
5490
5491 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5492
5493 * config.make.in (ASFLAGS-config): New.
5494 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
5495 * configure.in (libc_cv_as_noexecstack): New check.
5496 (ASFLAGS_config): Substitute.
5497
5498 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5499
5500 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
5501 hypot, logb): Protect with #ifdef __FAST_MATH__.
5502
5503 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
5504
5505 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
5506 #ifdef __FAST_MATH__.
5507
5508 2003-06-03 Ulrich Drepper <drepper@redhat.com>
5509
5510 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
5511 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
5512 * posix/globtest.sh: Adjust for this change.
5513
5514 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
5515 to get the actual PID value used in the records passed up.
5516 (getifaddrs): Don't initialize nh.pid here.
5517
5518 2003-06-02 Ulrich Drepper <drepper@redhat.com>
5519
5520 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
5521 optimization.
5522
5523 * po/zh_CN.po: Update from translation team.
5524
5525 * posix/getconf.c (main): Also recognize names without the
5526 _POSIX_ prefix.
5527
5528 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
5529
5530 2003-06-02 Bernd Schmidt <bernds@redhat.com>
5531
5532 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
5533 ldexpf, ldexpl): Only define if __FAST_MATH__.
5534
5535 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
5536
5537 Replace hard-coded offsets into struct sigcontext with generated file.
5538 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
5539 * sysdeps/unix/sysv/linux/ia64/Makefile
5540 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
5541 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
5542 defining SC_* macros here.
5543
5544 2003-06-02 Jakub Jelinek <jakub@redhat.com>
5545
5546 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
5547
5548 2003-06-01 Jakub Jelinek <jakub@redhat.com>
5549
5550 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
5551
5552 2003-06-01 Ulrich Drepper <drepper@redhat.com>
5553
5554 * test-skeleton.c (main): Request getopt to not reorder the
5555 command line.
5556
5557 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
5558
5559 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
5560 stpncpy.
5561
5562 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5563
5564 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
5565
5566 2003-05-31 Jakub Jelinek <jakub@redhat.com>
5567
5568 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
5569 New function.
5570 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
5571 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
5572 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
5573
5574 2003-05-31 Ulrich Drepper <drepper@redhat.com>
5575
5576 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
5577 CFI directives.
5578
5579 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
5580
5581 * libio/fileops.c (_IO_file_open): Don't mark as inline.
5582
5583 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
5584 attribute used.
5585
5586 2003-05-30 Ulrich Drepper <drepper@redhat.com>
5587
5588 * scripts/config.guess: Update from master copy.
5589 * scripts/config.sub: Likewise.
5590
5591 2003-05-30 Guido Guenther <agx@sigxcpu.org>
5592
5593 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
5594 SETUP_GP64 and friends.
5595 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
5596 names in internal_syscall{6,7}.
5597 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
5598 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
5599 number of syscall arguments.
5600 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5601 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5602 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5603
5604 2003-05-30 Andreas Jaeger <aj@suse.de>
5605
5606 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5607 Add CFI directives.
5608
5609 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
5610 directives.
5611
5612 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
5613
5614 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5615 Add CFI directives.
5616
5617 2003-05-30 Jakub Jelinek <jakub@redhat.com>
5618
5619 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
5620 SHARED.
5621
5622 2003-05-11 Andreas Schwab <schwab@suse.de>
5623
5624 * Makerules: Always use -MP together with -MD.
5625 (sed-remove-dotot): Substitute $(..) also at start of line.
5626 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
5627 Generated defines with a single compiler call.
5628 Use $(sed-remove-dotdot).
5629 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
5630 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
5631 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
5632 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
5633 * sysdeps/unix/sysv/linux/mips/Makefile
5634 ($(objpfx)syscall-%.h): Likewise.
5635
5636 2003-05-28 Roland McGrath <roland@redhat.com>
5637
5638 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
5639
5640 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
5641
5642 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
5643
5644 2003-05-28 Roland McGrath <roland@redhat.com>
5645
5646 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
5647 rt_sigprocmask system call.
5648 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
5649 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
5650
5651 2003-05-28 Ulrich Drepper <drepper@redhat.com>
5652
5653 * include/libc-symbols.h: Define hidden attribute for real also if
5654 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
5655
5656 * csu/Makefile: Add rules to build Scrt1.o.
5657 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
5658 * sysdeps/x86_64/elf/start.S: Likewise.
5659
5660 2003-05-27 Jakub Jelinek <jakub@redhat.com>
5661
5662 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
5663 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
5664 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
5665 pa_short_int, pa_u_short_int and pa_float.
5666
5667 2003-05-26 Jakub Jelinek <jakub@redhat.com>
5668
5669 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
5670 _IO_str_init_static_internal.
5671 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
5672 change size argument to _IO_size_t, don't limit sprintf to 64M.
5673 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
5674 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
5675 _IO_size_t, don't limit swprintf to 256M.
5676 (_IO_wstr_init_readonly): Remove.
5677 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
5678 Adjust prototypes.
5679 (_IO_wstr_init_readonly): Remove prototype.
5680 * libio/iovsprintf.c (_IO_vsprintf): Use
5681 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
5682 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5683 * libio/memstream.c (open_memstream): Likewise.
5684 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
5685 * libio/vasprintf.c (_IO_vasprintf): Likewise.
5686 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5687 * stdio-common/tst-sprintf.c (main): Add new test.
5688
5689 2003-05-26 Ulrich Drepper <drepper@redhat.com>
5690
5691 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
5692 other implementation in respect of multiple uses of parameter with
5693 different types.
5694
5695 2003-05-25 Ulrich Drepper <drepper@redhat.com>
5696
5697 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5698 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
5699
5700 2003-05-22 Andreas Jaeger <aj@suse.de>
5701
5702 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
5703 directives.
5704 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
5705 * sysdeps/x86_64/strtok.S: Likewise.
5706
5707 2003-05-20 Guido Guenther <agx@sigxcpu.org>
5708
5709 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
5710 to -60 and define SI_TKILL.
5711
5712 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
5713
5714 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
5715 (feexcp_mask_test): Likewise.
5716
5717 2003-05-21 Ulrich Drepper <drepper@redhat.com>
5718
5719 * locale/programs/locale.c (main): Fix typo in last patch.
5720
5721 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
5722 __init_array_start, __init_array_end, __fini_array_start, and
5723 __fini_array_end as hidden.
5724
5725 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
5726
5727 * locale/programs/locale.c (main): Report an error if setlocale()
5728 fails [PR libc/2254].
5729
5730 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5731
5732 * sysdeps/unix/sysv/linux/s390/system.c: New file.
5733
5734 2003-05-21 Jakub Jelinek <jakub@redhat.com>
5735
5736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
5737 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5738 LOADARGS_6): Don't error if syscall argument is a string literal.
5739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
5740 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
5741 LOADARGS_6): Likewise.
5742
5743 2003-05-21 Andreas Jaeger <aj@suse.de>
5744
5745 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
5746 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
5747 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
5748
5749 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
5750 (ENTRY): Likewise.
5751 (END): Likewise.
5752
5753 * configure.in: Test for asm cfi directives.
5754
5755 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
5756
5757 2003-05-17 Andreas Jaeger <aj@suse.de>
5758
5759 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
5760
5761 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
5762
5763 2003-05-16 Ulrich Drepper <drepper@redhat.com>
5764
5765 * rt/Makefile (tests): Add tst-clock_nanosleep.
5766 * rt/tst-clock_nanosleep.c: New file.
5767 * posix/Makefile (tests): Add tst-nanosleep.
5768 * posix/tst-nanosleep.c: New file.
5769
5770 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
5771
5772 * include/features.h (__USE_XOPEN2K): Define also for
5773 _POSIX_C_SOURCE>=200112L.
5774
5775 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
5776 SI_TKILL code into SI_USER.
5777 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
5778
5779 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
5780
5781 2003-05-15 Jakub Jelinek <jakub@redhat.com>
5782
5783 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
5784 Remove sym argument, always use refsym.
5785 (__process_machine_rela): Adjust callers.
5786 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
5787 Likewise.
5788 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
5789 Adjust prototype.
5790 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
5791
5792 2003-05-15 Ulrich Drepper <drepper@redhat.com>
5793
5794 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
5795 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
5796 print numeric values.
5797
5798 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
5799
5800 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
5801
5802 2003-05-14 Andreas Schwab <schwab@suse.de>
5803
5804 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
5805
5806 2003-05-14 Jakub Jelinek <jakub@redhat.com>
5807
5808 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
5809 even if no DT_NEEDED is present.
5810
5811 2003-05-13 David Mosberger <davidm@hpl.hp.com>
5812
5813 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
5814 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
5815 __sigjmp_save) so we can't keep the saved unat value in a scratch
5816 register (r16). Use loc2 instead.
5817
5818 2003-05-13 Ulrich Drepper <drepper@redhat.com>
5819
5820 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
5821 binaries it has to be relocatable.
5822
5823 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
5824
5825 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
5826
5827 * sysdeps/powerpc/bits/atomic.h
5828 (__arch_compare_and_exchange_bool_8_rel): Define.
5829 (__arch_compare_and_exchange_bool_16_rel): Define.
5830 (__ARCH_REL_INSTR): Define if not already defined.
5831 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
5832 (__arch_atomic_decrement_if_positive_32):
5833 Add "memory" to clobber list.
5834 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
5835 (__arch_compare_and_exchange_val_32_rel): Define.
5836 (__arch_atomic_exchange_32): Remove.
5837 (__arch_atomic_exchange_32_acq): Define.
5838 (__arch_atomic_exchange_32_rel): Define.
5839 (atomic_compare_and_exchange_val_rel): Define.
5840 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
5841 (atomic_exchange_rel): Define.
5842 * sysdeps/powerpc/powerpc32/bits/atomic.h
5843 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
5844 (__arch_compare_and_exchange_bool_32_rel): Define.
5845 (__arch_compare_and_exchange_bool_64_rel): Define.
5846 (__arch_compare_and_exchange_val_64_rel): Define.
5847 (__arch_atomic_exchange_64): Remove.
5848 (__arch_atomic_exchange_64_acq): Define.
5849 (__arch_atomic_exchange_64_rel): Define.
5850 * sysdeps/powerpc/powerpc64/bits/atomic.h
5851 (__arch_compare_and_exchange_bool_32_rel): Define.
5852 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
5853 (__arch_compare_and_exchange_bool_64_rel): Define.
5854 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
5855 (__arch_compare_and_exchange_val_64_rel): Define.
5856 (__arch_atomic_exchange_64): Remove.
5857 (__arch_atomic_exchange_64_acq): Define.
5858 (__arch_atomic_exchange_64_rel): Define.
5859 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
5860 (__arch_atomic_decrement_if_positive_64):
5861 Add "memory" to clobber list.
5862 [!UP](__ARCH_REL_INSTR): Define as lwsync.
5863
5864 2003-05-11 Andreas Schwab <schwab@suse.de>
5865
5866 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
5867
5868 2003-05-11 Ulrich Drepper <drepper@redhat.com>
5869
5870 * time/tst-strftime.c (do_test): Add tests for - flag.
5871
5872 2003-05-11 Jim Meyering <jim@meyering.net>
5873
5874 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
5875 the space-padded-by-default conversion specifiers, %e, %k, %l.
5876
5877 2003-05-11 Andreas Schwab <schwab@suse.de>
5878
5879 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
5880
5881 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5882
5883 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
5884 already defined and when really needed.
5885 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5886
5887 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5888
5889 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
5890 headers, add defines from kernel header, move it from here...
5891 * inet/netinet/igmp.h: ... to here.
5892 * inet/Makefile (headers): Add netinet/igmp.h.
5893 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
5894 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
5895
5896 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5897
5898 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
5899 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
5900
5901 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
5902
5903 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
5904 (remove __THROW from possible cancellation points).
5905
5906 2003-05-10 Ulrich Drepper <drepper@redhat.com>
5907
5908 * posix/sched.h (CPU_SETSIZE): Define.
5909
5910 2003-05-09 Ulrich Drepper <drepper@redhat.com>
5911
5912 * Makeconfig (gnulib): Remove -lgcc_eh again.
5913
5914 * posix/sched.h: Change prototypes of sched_getaffinity and
5915 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
5916 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
5917 * sysdeps/generic/sched_setaffinity.c: Likewise.
5918 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
5919 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
5920 __CPU_CLR, and __CPU_ISSET.
5921 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5922 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
5923 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
5924
5925 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
5926 (atomic_exchange_rel): New #define.
5927 * sysdeps/ia64/bits/atomic.h: Likewise.
5928 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
5929 atomic_exchange.
5930 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
5931 * sysdeps/powerpc/bits/atomic.h: Likewise.
5932 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
5933 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
5934 * sysdeps/x86_64/bits/atomic.h: Likewise.
5935 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
5936
5937 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
5938
5939 2003-05-08 Ulrich Drepper <drepper@redhat.com>
5940
5941 * malloc/thread-m.h: Remove special handling of thread_atfork if
5942 HAVE_register_atfork_malloc is defined.
5943
5944 2003-05-07 Andreas Jaeger <aj@suse.de>
5945
5946 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
5947 information.
5948
5949 2003-05-06 Ulrich Drepper <drepper@redhat.com>
5950
5951 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
5952 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5953 * libio/libioP.h: Declare _IO_old_init.
5954 * libio/genops.c (_IO_no_init): Split in two. New function
5955 _IO_old_init.
5956
5957 2003-05-05 Ulrich Drepper <drepper@redhat.com>
5958
5959 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
5960 variable.
5961 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
5962 is nonzero.
5963 * include/unistd.h: Declare __libc_enable_secure_decided.
5964 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
5965 and AT_EGID. If all found, set __libc_enable_secure and
5966 __libc_enable_secure_decided.
5967
5968 * sysdeps/generic/libc-start.c [!SHARED]: Call
5969 __libc_check_standard_fds after __libc_init_first.
5970
5971 2003-05-05 Roland McGrath <roland@redhat.com>
5972
5973 * Makerules (common-before-compile): New variable.
5974 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
5975 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
5976 to after all setting of before-compile.
5977
5978 2003-05-05 Jakub Jelinek <jakub@redhat.com>
5979
5980 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5981 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
5982 * sysdeps/powerpc/powerpc32/bits/atomic.h
5983 (__arch_compare_and_exchange_val_64_acq): Likewise.
5984 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
5985 (__arch_compare_and_exchange_val_8_acq,
5986 __arch_compare_and_exchange_val_16_acq,
5987 __arch_compare_and_exchange_val_64_acq): Likewise.
5988 * sysdeps/sparc/sparc64/bits/atomic.h
5989 (__arch_compare_and_exchange_val_8_acq,
5990 __arch_compare_and_exchange_val_16_acq): Likewise.
5991 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
5992 __arch_compare_and_exchange_val_16_acq,
5993 __arch_compare_and_exchange_val_64_acq): Likewise.
5994 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5995 (__arch_compare_and_exchange_val_64_acq): Likewise.
5996 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
5997 up warning.
5998 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
5999
6000 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6001 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
6002 Return long instead of int.
6003 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
6004 0xfffff001u with -4095UL.
6005
6006 2003-05-05 Andreas Jaeger <aj@suse.de>
6007
6008 * sysdeps/x86_64/fpu_control.h: New from i386.
6009
6010 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
6011 Define if not defined.
6012
6013 * sunrpc/Makefile (generated-dirs): New variable.
6014 * resolv/Makefile (generated): New variable.
6015
6016 2003-05-04 Roland McGrath <roland@redhat.com>
6017
6018 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
6019 Depend on $(before-compile).
6020
6021 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
6022 pattern rule. The implicit rule could be ruled out when $(objpfx)
6023 didn't exist at the time of its consideration (ugh!).
6024
6025 * Makerules (+make-deps): Fix target matching.
6026 Use $(sed-remove-dotdot).
6027
6028 2003-05-03 Ulrich Drepper <drepper@redhat.com>
6029
6030 * nscd/nscd.c (main): Parse config file right after parsing
6031 parameters. Then, if get_stats is true, call receive_print_stats.
6032 Drop parameter from nscd_init call.
6033 (get_stats): New variable.
6034 (parse_opt): Set get_stats, don't call receive_print_stats here.
6035 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
6036 prototype.
6037 * nscd/connections.c (stat_user, stat_uid): New variables.
6038 (dbs): Make global.
6039 (nscd_init): Don't read configuration file here. Drop parameter.
6040 (handle_request): Cleanup handling of non-database lookup requests.
6041 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
6042 Get UID of the specified user. Use xstrdup instead of strdup.
6043 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
6044 check stat_user.
6045 * nscd/Makefile (nscd-modules): Add xstrdup.
6046 * nscd/nscd.conf: Document stat-user entry.
6047
6048 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
6049
6050 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
6051 if not defined.
6052
6053 2003-04-22 Roland McGrath <roland@redhat.com>
6054
6055 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
6056 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6057 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
6058 * elf/dl-support.c: Update defn.
6059 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
6060 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6061 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
6062 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
6063 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
6064 set, set up a link_map for the preloaded, prelinked object.
6065
6066 2003-05-03 Roland McGrath <roland@redhat.com>
6067
6068 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
6069 * stdio-common/Makefile: ... not here.
6070
6071 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
6072 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
6073
6074 2003-05-02 Ulrich Drepper <drepper@redhat.com>
6075
6076 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
6077
6078 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
6079
6080 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
6081 comparing ftab elements.
6082 (_dl_unmap): Fix typo in test.
6083 (_dl_make_fptr): Fix typos introduced in last change.
6084
6085 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
6086 original patch. Use non-exported symbols. Mark translatable
6087 strings. Pretty printing.
6088
6089 2003-05-02 Roland McGrath <roland@redhat.com>
6090
6091 * Makerules (do-stamp): Do $(make-target-directory).
6092
6093 2003-04-07 H.J. Lu <hjl@gnu.org>
6094
6095 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
6096
6097 2003-04-03 H.J. Lu <hjl@gnu.org>
6098
6099 * sysdeps/ia64/dl-fptr.c: Moved to ...
6100 * sysdeps/generic/dl-fptr.c: Here.
6101
6102 * sysdeps/generic/dl-fptr.h: New.
6103 * sysdeps/ia64/dl-fptr.h: New.
6104
6105 * sysdeps/ia64/dl-symaddr.c: Moved to ...
6106 * sysdeps/generic/dl-symaddr.c: here.
6107
6108 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
6109 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
6110 (ia64_fdesc): Likewise.
6111 (ia64_fdesc_table): Likewise.
6112 (__ia64_make_fptr): Likewise.
6113 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
6114 with _dl_boot_fptr_table.
6115 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
6116 `struct fdesc'.
6117 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
6118
6119 2003-05-01 Roland McGrath <roland@redhat.com>
6120
6121 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
6122 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
6123
6124 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
6125 Use $(make-target-directory).
6126 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
6127
6128 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
6129 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
6130 (compile-command.s, compile-command.c): Likewise.
6131 ($(objpfx)%.d): All such pattern rules removed.
6132 ($(+sysdir_pfx)sysd-rules): Don't generate them.
6133 ($(common-objpfx)dummy.d): Target removed.
6134 (make-dummy-dep): Variable removed.
6135 (generate-md5): Likewise.
6136 (%.d: %.dt): New pattern rule.
6137 (+depfiles): Use $(wildcard) function to get just existing *.d files
6138 and .d files for existing *.dt files.
6139 (common-clean): Remove all *.d and *.dt files.
6140 (before-compile): Add $(objpfx). when it doesn't exist,
6141 regardless of $(no_deps).
6142 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
6143 (rtld-depfiles): Use .os.d instead of .d names.
6144 Include existing *.d files and .d files for existing *.dt files.
6145
6146 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
6147 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
6148
6149 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
6150 Do s-*.d includes only if we have some syscall routines in this subdir.
6151
6152 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
6153 @nobits. The former is accepted by gas on any ELF platform.
6154
6155 2003-05-01 Ulrich Drepper <drepper@redhat.com>
6156
6157 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
6158
6159 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
6160
6161 2003-04-29 Andreas Schwab <schwab@suse.de>
6162
6163 * string/test-strcat.c (do_one_test): Fix attribute name.
6164
6165 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
6166
6167 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
6168 uc_flags long for all ABIs.
6169
6170 2003-04-30 Andreas Jaeger <aj@suse.de>
6171
6172 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
6173 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
6174 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
6175 Add bi-arch support.
6176
6177 2003-04-30 Ulrich Drepper <drepper@redhat.com>
6178
6179 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
6180 (__posix_memalign): Use __memalign_internal instead of memalign.
6181
6182 2003-04-29 Roland McGrath <roland@redhat.com>
6183
6184 * configure.in: Search for AUTOCONF unconditionally.
6185 Just don't complain about missing it under --without-cvs.
6186
6187 * include/libc-symbols.h (__symbol_set_attribute): New macro,
6188 give hidden for [SHARED] and weak for [! SHARED].
6189 (symbol_set_declare): Use that. Never need weak_extern these days.
6190 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
6191 Depend on $(..)Makerules.
6192
6193 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6194
6195 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
6196 variants of socket, bind, recvmsg, and sendto.
6197
6198 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
6199
6200 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
6201 * signal/sigaddset.c: Add libc_hidden_def.
6202 * signal/sigdelset.c: Likewise.
6203
6204 2003-04-29 Jakub Jelinek <jakub@redhat.com>
6205
6206 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
6207 to the end of the file.
6208
6209 * configure.in: Change __oline__ to $LINENO.
6210 (HAVE_BUILTIN_REDIRECTION): New check.
6211 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
6212 * include/libc-symbols.h (libc_hidden_builtin_proto,
6213 libc_hidden_builtin_def, libc_hidden_builtin_weak,
6214 libc_hidden_builtin_ver): Define.
6215 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
6216 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
6217 strspn, strstr): Add libc_hidden_builtin_proto.
6218 * intl/plural.y: Include string.h.
6219 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
6220 libc_hidden_builtin_def.
6221 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
6222 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
6223 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
6224 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
6225 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
6226 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
6227 * sysdeps/alpha/memchr.S (memchr): Likewise.
6228 * sysdeps/alpha/memset.S (memset): Likewise.
6229 * sysdeps/alpha/strcat.S (strcat): Likewise.
6230 * sysdeps/alpha/strchr.S (strchr): Likewise.
6231 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
6232 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
6233 * sysdeps/alpha/strlen.S (strlen): Likewise.
6234 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
6235 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
6236 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
6237 * sysdeps/arm/memset.S (memset): Likewise.
6238 * sysdeps/arm/strlen.S (strlen): Likewise.
6239 * sysdeps/generic/memchr.c (memchr): Likewise.
6240 * sysdeps/generic/memcpy.c (memcpy): Likewise.
6241 * sysdeps/generic/memmove.c (memmove): Likewise.
6242 * sysdeps/generic/memset.c (memset): Likewise.
6243 * sysdeps/generic/strcat.c (strcat): Likewise.
6244 * sysdeps/generic/strchr.c (strchr): Likewise.
6245 * sysdeps/generic/strcmp.c (strcmp): Likewise.
6246 * sysdeps/generic/strcpy.c (strcpy): Likewise.
6247 * sysdeps/generic/strcspn.c (strcspn): Likewise.
6248 * sysdeps/generic/strlen.c (strlen): Likewise.
6249 * sysdeps/generic/strncmp.c (strncmp): Likewise.
6250 * sysdeps/generic/strncpy.c (strncpy): Likewise.
6251 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
6252 * sysdeps/generic/strrchr.c (strrchr): Likewise.
6253 * sysdeps/generic/strspn.c (strspn): Likewise.
6254 * sysdeps/generic/strstr.c (strstr): Likewise.
6255 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
6256 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
6257 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
6258 * sysdeps/i386/i586/memset.S (memset): Likewise.
6259 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
6260 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
6261 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
6262 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
6263 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
6264 * sysdeps/i386/i686/memset.S (memset): Likewise.
6265 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
6266 * sysdeps/i386/memchr.S (memchr): Likewise.
6267 * sysdeps/i386/memset.c (memset): Likewise.
6268 * sysdeps/i386/strchr.S (strchr): Likewise.
6269 * sysdeps/i386/strcspn.S (strcspn): Likewise.
6270 * sysdeps/i386/strlen.c (strlen): Likewise.
6271 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
6272 * sysdeps/i386/strrchr.S (strrchr): Likewise.
6273 * sysdeps/i386/strspn.S (strspn): Likewise.
6274 * sysdeps/ia64/memchr.S (memchr): Likewise.
6275 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
6276 * sysdeps/ia64/memmove.S (memmove): Likewise.
6277 * sysdeps/ia64/memset.S (memset): Likewise.
6278 * sysdeps/ia64/strcat.S (strcat): Likewise.
6279 * sysdeps/ia64/strchr.S (strchr): Likewise.
6280 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
6281 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
6282 * sysdeps/ia64/strlen.S (strlen): Likewise.
6283 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
6284 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
6285 * sysdeps/m68k/memchr.S (memchr): Likewise.
6286 * sysdeps/m68k/strchr.S (strchr): Likewise.
6287 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
6288 * sysdeps/mips/mips64/memset.S (memset): Likewise.
6289 * sysdeps/mips/memcpy.S (memcpy): Likewise.
6290 * sysdeps/mips/memset.S (memset): Likewise.
6291 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
6292 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
6293 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
6294 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
6295 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
6296 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6297 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6298 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
6299 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
6300 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
6301 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
6302 * sysdeps/powerpc/strcat.c (strcat): Likewise.
6303 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
6304 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
6305 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
6306 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
6307 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
6308 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
6309 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
6310 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
6311 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
6312 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
6313 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
6314 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
6315 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
6316 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
6317 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
6318 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
6319 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
6320 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
6321 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
6322 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
6323 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
6324 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
6325 * sysdeps/sh/memcpy.S (memcpy): Likewise.
6326 * sysdeps/sh/memset.S (memset): Likewise.
6327 * sysdeps/sh/strlen.S (strlen): Likewise.
6328 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
6329 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
6330 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
6331 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
6332 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
6333 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
6334 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
6335 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
6336 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
6337 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
6338 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
6339 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
6340 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
6341 * sysdeps/x86_64/memset.S (memset): Likewise.
6342 * sysdeps/x86_64/strcat.S (strcat): Likewise.
6343 * sysdeps/x86_64/strchr.S (strchr): Likewise.
6344 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
6345 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
6346 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
6347 * sysdeps/x86_64/strlen.S (strlen): Likewise.
6348 * sysdeps/x86_64/strspn.S (strspn): Likewise.
6349 * string/string-inlines.c: Move...
6350 * sysdeps/generic/string-inlines.c: ...here.
6351 (__memcpy_g, __strchr_g): Remove.
6352 (__NO_INLINE__): Define before including <string.h>,
6353 undefine after. Include bits/string.h and bits/string2.h.
6354 * sysdeps/i386/i486/string-inlines.c: New file.
6355 * sysdeps/i386/string-inlines.c: New file.
6356 * sysdeps/i386/i486/Versions: Remove.
6357 All GLIBC_2.1.1 symbols moved...
6358 * sysdeps/i386/Versions (libc): ...here.
6359
6360 2003-04-29 Ulrich Drepper <drepper@redhat.com>
6361
6362 * sysdeps/i386/fpu/Makefile: New file.
6363 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
6364 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6365 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6366 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
6367 [PR libc/4987].
6368
6369 2003-04-28 Ulrich Drepper <drepper@redhat.com>
6370
6371 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
6372 * nscd/nscd_getpw_r.c: Likewise.
6373 * nscd/nscd_gethst_r.c: Likewise.
6374
6375 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6376
6377 * nscd/pwdcache.c: Initialize .version element in result.
6378 * nscd/grpcache.c: Likewise.
6379 * nscd/pwdcache.c: Likewise.
6380
6381 2003-04-27 Andreas Schwab <schwab@suse.de>
6382
6383 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
6384 subdirectory.
6385
6386 2003-04-27 Andreas Schwab <schwab@suse.de>
6387
6388 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
6389
6390 2003-04-27 Ulrich Drepper <drepper@redhat.com>
6391
6392 * nscd/connections.c (client_queued): New variable.
6393 (nscd_run): Revamp the loop. Don't call poll except for cleanup
6394 threads. Keep track of the number of delays caused because of busy
6395 worker threads.
6396 * nscd/nscd.h: Declare client_queued.
6397 * nscd/nscd_stat.c: Transmit and print client_queued information.
6398
6399 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
6400
6401 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
6402 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
6403
6404 2003-04-26 Ulrich Drepper <drepper@redhat.com>
6405
6406 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
6407 tracking of freed memory in static TLS block.
6408 * elf/Makefile: Add rules to build and run tst-tls13.
6409 * elf/tst-tls13.c: New file.
6410 * elf/tst-tlsmod13.c: New file.
6411 * elf/tst-tlsmod13a.c: New file.
6412
6413 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
6414
6415 * elf/dl-reloc.c: Pretty printing.
6416
6417 2003-04-26 Roland McGrath <roland@redhat.com>
6418
6419 * Makerules ($(common-objpfx)shlib.lds): New target.
6420 (common-generated): Add it.
6421 (build-shlib, build-module): Use that instead of generating every time.
6422 ($(common-objpfx)libc.so): Depend on it.
6423 (lib%.so rule): Likewise.
6424 (build-module-helper-objlist): Remove %.lds.
6425 (LDSEDCMD-c.so): Variable removed.
6426 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
6427 Depend on $(common-objpfx)shlib.lds.
6428 * dlfcn/Makefile ($(test-modules)): Likewise.
6429
6430 2003-04-26 Roland McGrath <roland@frob.com>
6431
6432 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
6433
6434 2003-04-26 Andreas Schwab <schwab@suse.de>
6435
6436 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
6437
6438 2003-04-25 Ulrich Drepper <drepper@redhat.com>
6439
6440 * nscd/cache.c (cache_search): Keep track of how many chain links
6441 we searched and update table statistics.
6442 (cache_add): Keep track of how many values are in the table.
6443 (prune_cache): Likewise. Keep track of locking success.
6444 Print messages about removed entries in separate pass.
6445 * nscd/connections.c (handle_request): Don't print debug message here.
6446 The caller will do it. Keep track of locking success.
6447 (nscd_run): Print debug message. Also print PID of the client process.
6448 * nscd/nscd.c (start_time): New variable.
6449 (main): Remember start time.
6450 * nscd/nscd.h: Declare start_time.
6451 (struct database): Add more members for new statistics.
6452 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
6453 of new statistics.
6454
6455 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
6456
6457 2003-04-22 Jakub Jelinek <jakub@redhat.com>
6458
6459 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
6460 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
6461 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
6462 NO_TLS_OFFSET.
6463 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
6464 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
6465 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
6466 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
6467 TLS_TCB_SIZE.
6468
6469 2003-04-24 Ulrich Drepper <drepper@redhat.com>
6470
6471 * nss/getent.c: Implement alternative host database lookup via
6472 getaddrinfo.
6473
6474 * include/ifaddrs.h: New file.
6475 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
6476 AI_ADDRCONFIG...
6477 * resolv/netdb.h: ...here.
6478 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
6479 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6480 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
6481 AI_ADDRCONFIG.
6482
6483 2003-04-24 Roland McGrath <roland@redhat.com>
6484
6485 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
6486
6487 2003-04-24 Jakub Jelinek <jakub@redhat.com>
6488
6489 * elf/dl-reloc.c (allocate_static_tls): Rename to...
6490 (_dl_allocate_static_tls): ... this function. No longer static.
6491 (CHECK_STATIC_TLS): Adjust.
6492 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
6493 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
6494 Add SYM_MAP argument.
6495 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
6496 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
6497 TLS relocs here. #ifdef out relocs which never appear in
6498 .gnu.conflict section from dl-conflict.c processing.
6499 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
6500 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
6501
6502 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
6503 out relocs which never appear in .gnu.conflict section from
6504 dl-conflict.c processing.
6505 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6506 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6507 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
6508 Use r_type in RESOLVE macro.
6509
6510 2003-04-23 Ulrich Drepper <drepper@redhat.com>
6511
6512 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
6513 NULL. Remove code made redundant by this assumption.
6514 (__yp_unbind): Add call to free. Adjust all callers.
6515
6516 * nis/ypclnt.c (yp_all): Free the dom_binding object after
6517 unbinding it.
6518
6519 * grp/initgroups.c (getgrouplist): Don't copy too much into the
6520 user buffer if more groups are found than fit into it.
6521
6522 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
6523 extend_alloca.
6524
6525 2003-04-23 Jakub Jelinek <jakub@redhat.com>
6526
6527 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
6528 not rc == errno. Use extend_alloca.
6529
6530 * elf/tst-tls12.c (main): Fix declaration.
6531 * elf/tst-tls10.c (dummy): Make hidden instead of static.
6532 * elf/tst-tlsmod7.c (dummy): Likewise.
6533 * elf/tst-tlsmod8.c (dummy): Likewise.
6534 * elf/tst-tlsmod9.c (dummy): Likewise.
6535
6536 2003-04-22 Roland McGrath <roland@redhat.com>
6537
6538 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
6539 (open_not_cancel): Make last argument non-optional.
6540 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
6541 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6542 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6543
6544 * include/tls.h: Protect against multiple inclusion.
6545
6546 2003-04-22 Ulrich Drepper <drepper@redhat.com>
6547
6548 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
6549 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
6550 open_socket. Not static anymore.
6551 (nscd_gethst_r): Use __nscd_open_socket.
6552 * nscd/nscd_getgr_r.c (open_socket): Removed.
6553 (nscd_getgr_r): Use __nscd_open_socket.
6554 * nscd/nscd_getpw_r.c (open_socket): Removed.
6555 (nscd_getpw_r): Use __nscd_open_socket.
6556
6557 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
6558 * nscd/connections.c (handle_request): Add cast to avoid warning.
6559
6560 2003-04-21 Ulrich Drepper <drepper@redhat.com>
6561
6562 * signal/sigfillset.c: Moved to...
6563 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
6564 do not set the corresponding bit.
6565
6566 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
6567 SIGCANCEL.
6568 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
6569 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
6570 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
6571 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
6572 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
6573
6574 2003-04-20 Ulrich Drepper <drepper@redhat.com>
6575
6576 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
6577 first syscall parameter to const char*.
6578
6579 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6580
6581 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
6582
6583 * configure.in: Add AC_PROG_CXX.
6584 * config.make.in (CXX): Define.
6585
6586 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
6587 __len to size_t to avoid warnings.
6588
6589 2003-04-18 Jes Sorensen <jes@wildopensource.com>
6590
6591 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
6592 2.5.67.
6593 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6594
6595 2003-04-19 Ulrich Drepper <drepper@redhat.com>
6596
6597 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
6598 UNREGISTER_ATFORK if d == NULL.
6599
6600 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
6601 * dirent/dirent.h: Likewise.
6602 * dlfcn/dlfcn.h: Likewise.
6603 * grp/grp.h: Likewise.
6604 * iconv/iconv.h: Likewise.
6605 * io/fcntl.h: Likewise.
6606 * io/ftw.h: Likewise.
6607 * libio/stdio.h: Likewise.
6608 * misc/sys/mman.h: Likewise.
6609 * misc/sys/select.h: Likewise.
6610 * misc/sys/syslog.h: Likewise.
6611 * misc/sys/uio.h: Likewise.
6612 * posix/spawn.h: Likewise.
6613 * posix/unistd.h: Likewise.
6614 * posix/sys/wait.h: Likewise.
6615 * pwd/pwd.h: Likewise.
6616 * resolv/netdb.h: Likewise.
6617 * rt/aio.h: Likewise.
6618 * shadow/shadow.h: Likewise.
6619 * signal/signal.h: Likewise.
6620 * socket/sys/socket.h: Likewise.
6621 * stdlib/stdlib.h: Likewise.
6622 * streams/stropts.h: Likewise.
6623 * string/string.h: Likewise.
6624 * sysdeps/gnu/utmpx.h: Likewise.
6625 * sysvipc/sys/msg.h: Likewise.
6626 * termios/termios.h: Likewise.
6627 * time/time.h: Likewise.
6628 * wcsmbs/wchar.h: Likewise.
6629 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
6630 functions.
6631 * misc/daemon.c: Likewise.
6632 * sysdeps/generic/backtracesymsfd.c: Likewise.
6633 * sysdeps/generic/check_fds.c: Likewise.
6634 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
6635 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
6636 * sysdeps/generic/not-cancel.h: New file.
6637 * csu/Makefile (distribute): Add not-cancel.h.
6638 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
6639 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
6640 for assert.c and assert-perr.c to include <fatal-prepare.h>.
6641 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
6642
6643 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
6644 errno and unlink first.
6645
6646 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
6647
6648 2003-04-18 Ulrich Drepper <drepper@redhat.com>
6649
6650 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
6651 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
6652
6653 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6654
6655 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
6656
6657 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
6658 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
6659 replace.
6660
6661 * signal/Makefile (tests): Add tst-sigsimple.
6662 * signal/tst-sigsimple.c: New file.
6663
6664 2003-04-16 Jakub Jelinek <jakub@redhat.com>
6665
6666 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
6667 tst-tls10.h.
6668 (tests): Add tst-tls1[0-2].
6669 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
6670 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
6671 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
6672 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
6673 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
6674 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
6675 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
6676 * elf/tst-tls10.c: New test.
6677 * elf/tst-tls11.c: New test.
6678 * elf/tst-tls12.c: New test.
6679 * elf/tst-tls10.h: New file.
6680 * elf/tst-tlsmod7.c: New file.
6681 * elf/tst-tlsmod8.c: New file.
6682 * elf/tst-tlsmod9.c: New file.
6683 * elf/tst-tlsmod10.c: New file.
6684 * elf/tst-tlsmod11.c: New file.
6685 * elf/tst-tlsmod12.c: New file.
6686
6687 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6688
6689 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
6690 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
6691 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
6692
6693 2003-04-17 Ulrich Drepper <drepper@redhat.com>
6694
6695 * posix/regex.h: Include <sys/types.h>.
6696
6697 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
6698 The signal number must be checked.
6699 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
6700 The signal number must be checked [PR libc/5004].
6701
6702 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
6703 don't do anything fancy.
6704
6705 * sysdeps/generic/bits/libc-lock.h: Define
6706 __rtld_lock_define_initialized_recursive.
6707
6708 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
6709 contacting nscd if NOT_USENSCD_NAME > 0.
6710 * nss/nsswitch.c (__nss_disable_nscd): New function.
6711 * nss/nsswitch.h: Declare it.
6712 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
6713 * nscd/nscd.c (main): Call __nss_disable_nscd.
6714
6715 2003-04-16 Ulrich Drepper <drepper@redhat.com>
6716
6717 * stdio-common/perror.c (perror): We don't need to set the offset
6718 to _IO_pos_bad, this is how streams are initialized.
6719
6720 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
6721 (time_output): If necessary, allocate new buffer for .name string if
6722 padding is required.
6723
6724 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
6725 before copying. This might leave holes in the list. Adjust
6726 pointers if necessary.
6727 (netlink_receive): Allocate only one block.
6728 (free_netlink_handle): Adjust appropriately.
6729 (getifaddrs): Lots of cleanups.
6730
6731 * string/test-strncpy.c (do_one_test): Mark start and stop as
6732 possibly unused.
6733 * string/test-memchr.c: Likewise.
6734 * string/test-memcmp.c: Likewise.
6735 * string/test-memcpy.c: Likewise.
6736 * string/test-memmove.c: Likewise.
6737 * string/test-memset.c: Likewise.
6738 * string/test-strcat.c: Likewise.
6739 * string/test-strchr.c: Likewise.
6740 * string/test-strcmp.c: Likewise.
6741 * string/test-strcpy.c: Likewise.
6742 * string/test-strlen.c: Likewise.
6743 * string/test-strncmp.c: Likewise.
6744 * string/test-strpbrk.c: Likewise.
6745 * string/test-strrchr.c: Likewise.
6746 * string/test-strspn.c: Likewise.
6747
6748 2003-04-15 Roland McGrath <roland@redhat.com>
6749
6750 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
6751
6752 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
6753 INTUSE(__register_frame_info_bases).
6754
6755 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6756
6757 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
6758 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
6759 AT_SYSINFO_EH_FRAME. Adjust string width.
6760 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
6761 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
6762 Add _dl_sysinfo_eh_frame field.
6763 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
6764 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
6765 variable.
6766 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
6767 if _dl_sysinfo_eh_frame is non-NULL.
6768
6769 * Makeconfig (gnulib): Add -lgcc_eh.
6770
6771 * config.h.in: Define HAVE_FORCED_UNWIND.
6772
6773 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6774
6775 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
6776 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
6777
6778 2003-04-15 Jakub Jelinek <jakub@redhat.com>
6779
6780 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
6781 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
6782 against local symbol in conflict processing.
6783
6784 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
6785
6786 * sysdeps/powerpc/bits/atomic.h
6787 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
6788 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
6789 as abort stub.
6790 (__arch_compare_and_exchange_val_32_acq): Define.
6791 (atomic_compare_and_exchange_val_acq): Define.
6792
6793 2003-04-15 Ulrich Drepper <drepper@redhat.com>
6794
6795 * include/atomic.h: Pretty printing.
6796
6797 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6798
6799 * stdio-common/vfscanf.c: Add casts to avoid warnings.
6800
6801 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6802
6803 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
6804 * sysdeps/x86_64/bits/atomic.h: Likewise.
6805
6806 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6807
6808 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
6809 POPARGS_1 to emit labels for the mov instructions.
6810
6811 2003-04-14 Jakub Jelinek <jakub@redhat.com>
6812
6813 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
6814
6815 2003-04-14 Roland McGrath <roland@redhat.com>
6816
6817 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
6818 compiler warning.
6819
6820 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
6821
6822 2003-04-14 Ulrich Drepper <drepper@redhat.com>
6823
6824 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
6825 position. Reported by jreiser@BitWagon.com.
6826
6827 2003-04-13 Ulrich Drepper <drepper@redhat.com>
6828
6829 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
6830 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
6831 * sysdeps/generic/unwind-dw2.c: Likewise.
6832 * sysdeps/generic/unwind-pe.h: Likewise.
6833
6834 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
6835
6836 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
6837 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
6838 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
6839 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
6840 (mcontext_t): Make it match the 32-bit mips kernel in o32.
6841 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
6842 the mips and mips64 headers.
6843 (struct user): Port to n32/n64.
6844
6845 2003-04-12 Ulrich Drepper <drepper@redhat.com>
6846
6847 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
6848 avoid warning.
6849
6850 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
6851 __ASSUME_VSYSCALL is defined don't add restorer.
6852 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6853 __ASSUME_VSYSCALL for 2.5.53.
6854
6855 2003-04-11 Ulrich Drepper <drepper@redhat.com>
6856
6857 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
6858 Remove HAVE_CANCELBUF code. Replace with code using the new
6859 initializers for unwind-based cleanup handling.
6860 * sysdeps/generic/unwind.h: Update from latest gcc version.
6861 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
6862 places to allow unwind data generation.
6863 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
6864 * sysdeps/x86_64/bits/setjmp.h: Likewise.
6865 * sysdeps/sh/bits/setjmp.h: Likewise.
6866 * sysdeps/powerpc/bits/setjmp.h: Likewise.
6867 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
6868 * sysdeps/alpha/bits/setjmp.h: Likewise.
6869
6870 2003-04-11 Roland McGrath <roland@redhat.com>
6871
6872 * csu/tst-empty.c: New file.
6873 * csu/Makefile (tests, tests-static): Add it.
6874
6875 2003-04-11 Jakub Jelinek <jakub@redhat.com>
6876
6877 * string/test-strcmp.c (do_random_tests): Test whether return value
6878 has been promoted to wordsize if the ABI requires caller to do so.
6879 * string/test-strncmp.c (do_random_tests): Likewise.
6880 * string/test-memcmp.c (do_random_tests): Likewise.
6881
6882 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
6883 before returning.
6884
6885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
6886 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
6887 is not defined, but the prctl constants are.
6888
6889 * string/tester.c (test_strcmp): Fix a typo.
6890
6891 2003-04-09 Ulrich Drepper <drepper@redhat.com>
6892
6893 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
6894 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
6895
6896 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6897
6898 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
6899 NewABI.
6900 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
6901 NewABI.
6902 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
6903 conventions.
6904 * sysdeps/mips/mips64/memset.S: Likewise.
6905 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
6906 Use t0 instead of t4 as temporary.
6907
6908 2003-04-07 Ulrich Drepper <drepper@redhat.com>
6909
6910 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
6911 feof_unlocked instead of feof.
6912 (add_dir): Ignore trailing whitespace.
6913
6914 2003-04-07 Jakub Jelinek <jakub@redhat.com>
6915
6916 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
6917 sum of SIZE1 and SIZE2 arguments.
6918
6919 2003-04-06 Ulrich Drepper <drepper@redhat.com>
6920
6921 * iconv/iconv_prog.c (process_block): Don't print message about
6922 invalid input if the -c option is used.
6923 (main): Correctly append IGNORE string for -c option.
6924
6925 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6926
6927 * sysdeps/sh/bits/atomic.h: Moved to ...
6928 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
6929 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
6930 arguments.
6931 (atomic_bit_set, atomic_bit_test_set): Likewise.
6932 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
6933 twice.
6934 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
6935
6936 2003-04-06 Roland McGrath <roland@redhat.com>
6937
6938 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
6939 restoration as done for setcontext yesterday.
6940
6941 2003-04-06 Jakub Jelinek <jakub@redhat.com>
6942
6943 * elf/rtld.c: Revert 2003-03-14 change.
6944 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
6945 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
6946
6947 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6948
6949 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
6950
6951 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6952 Always initialize *signgamp before returning an error.
6953
6954 2003-04-05 Roland McGrath <roland@redhat.com>
6955
6956 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
6957 below the stack pointer even if switching to the same context we are
6958 running right now.
6959
6960 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6961
6962 * catgets/gencat.c (read_input_file): Make sure that \n is not
6963 alone on the line before testing for continuation.
6964
6965 * math/test-tgmath.c (compile_test): Initialize c.
6966
6967 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
6968
6969 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
6970 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
6971 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
6972 on mips n32.
6973 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
6974 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
6975 structure on n32 as well.
6976 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
6977 data types on n32 and n64.
6978
6979 2003-04-05 Ulrich Drepper <drepper@redhat.com>
6980
6981 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
6982 after getting them.
6983
6984 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
6985 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
6986 instead of __register_atfork.
6987
6988 2003-04-05 Jakub Jelinek <jakub@redhat.com>
6989
6990 * stdio-common/reg-printf.c (__register_printf_function): Calloc
6991 instead of malloc __printf_arginfo_table and __printf_function_table.
6992 Reported by John Reiser <jreiser@BitWagon.com>.
6993
6994 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
6995
6996 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
6997 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
6998
6999 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
7000 defining.
7001
7002 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
7003
7004 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
7005 for n64 abi.
7006
7007 2003-04-03 Roland McGrath <roland@redhat.com>
7008
7009 * configure.in: Fix up use of compilation flags to match the build:
7010 For .s files, $ASFLAGS;
7011 For .S files, $CPPFLAGS $ASFLAGS;
7012 For .c files, $CFLAGS $CPPFLAGS;
7013 when linking, add $LDFLAGS.
7014 * configure: Regenerated.
7015
7016 2003-04-03 Jakub Jelinek <jakub@redhat.com>
7017
7018 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
7019 for atomic_compare_and_exchange_bool_acq failure.
7020
7021 2003-04-03 Ulrich Drepper <drepper@redhat.com>
7022
7023 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
7024 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
7025 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
7026 Remove declaration of pthread_atfork.
7027
7028 2003-04-02 Ulrich Drepper <drepper@redhat.com>
7029
7030 * locale/iso-639.def: Add many more languages from the current ISO 639.
7031
7032 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
7033 * sysdeps/generic/semtimedop.c: New file.
7034 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
7035 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
7036 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7037 * sysvipc/Makefile (routines): Add semtimedop.
7038 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
7039 * sysvipc/sys/sem.h: Declare semtimedop.
7040
7041 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
7042
7043 * configure.in: Check for __register_frame_info in both
7044 -lgcc and -lgcc_eh.
7045 * configure: Regenerated.
7046
7047 2003-04-01 Roland McGrath <roland@redhat.com>
7048
7049 * scripts/abilist.awk: Allow dots in soname suffix.
7050
7051 * scripts/abilist.awk (emit): Fix bailout condition.
7052
7053 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7054
7055 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
7056 IA-64 version.
7057
7058 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
7059 register as input to asm.
7060
7061 2003-04-01 Jakub Jelinek <jakub@redhat.com>
7062
7063 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
7064
7065 2003-04-01 Andreas Jaeger <aj@suse.de>
7066
7067 * configure.in: Output as/ld as name if version is too old.
7068
7069 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
7070
7071 * configure.in: Don't require an installed C library in the test
7072 for ".set" assembler support.
7073
7074 2003-03-31 Roland McGrath <roland@redhat.com>
7075
7076 * signal/tst-sigset.c: New file.
7077 * signal/Makefile (tests): Add it.
7078
7079 2003-03-31 Ulrich Drepper <drepper@redhat.com>
7080
7081 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
7082 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
7083 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
7084 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
7085 (__SIGRTMAX): Adjust accordingly.
7086 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
7087 second compatibility symbol set.
7088 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
7089
7090 2003-03-31 Andreas Schwab <schwab@suse.de>
7091
7092 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
7093 Define.
7094 (atomic_decrement_and_test): Fix test.
7095
7096 2003-03-31 Jakub Jelinek <jakub@redhat.com>
7097
7098 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
7099 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
7100 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
7101 * sysdeps/sparc/sparc32/atomicity.h: Removed.
7102 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
7103 * sysdeps/sparc/sparc64/atomicity.h: Removed.
7104
7105 2003-03-30 Roland McGrath <roland@redhat.com>
7106
7107 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
7108
7109 * intl/po2test.sed: Anchor substitution regexps to fix last change.
7110
7111 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
7112
7113 * intl/po2test.sed: Unify the transformations for msgid and msgstr
7114 and remove a useless s/// command.
7115
7116 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7117
7118 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
7119 directive into empty .prologue region to ensure that call-chain
7120 is terminated even for the first instruction.
7121
7122 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
7123 to terminate call-chain right from the get-go.
7124
7125 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
7126 stop bit between compare & branch.
7127
7128 2003-03-29 Ulrich Drepper <drepper@redhat.com>
7129
7130 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
7131 point correctly [PR libc/4993].
7132
7133 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
7134 netlink_open calls if netlink is known to not be available.
7135
7136 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
7137
7138 * configure.in: Add mips64* support.
7139 * sysdeps/mips/bits/endian.h: Make it bi-endian.
7140 * sysdeps/mips/mipsel/bits/endian.h: Removed.
7141 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
7142 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
7143 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
7144 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
7145 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
7146 * sysdeps/mips/Implies: Moved wordsize-32 to...
7147 * sysdeps/mips/mips32/Implies: New file.
7148 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
7149 ret_NOERRNO): New.
7150 (ret, PSEUDO_END): Moved past END.
7151 (PSEUDO): Moved to...
7152 * sysdeps/unix/mips/mips32/sysdep.h: New file.
7153 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
7154 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
7155 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
7156 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
7157 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
7158
7159 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
7160 Re-introduce ENTRY.
7161
7162 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
7163
7164 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
7165 * inet/test-ifaddrs.c: Allow AF_PACKET.
7166 * sysdeps/unix/sysv/linux/kernel-features.h: Add
7167 __ASSUME_NETLINK_SUPPORT.
7168
7169 2003-03-28 Ulrich Drepper <drepper@redhat.com>
7170
7171 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
7172
7173 2003-03-26 H.J. Lu <hjl@gnu.org>
7174
7175 * elf/vismod.h (getvarlocal1): Return const char **.
7176 (getvarinmod1): Likewise.
7177 (getvaritcpt1): Likewise.
7178 (getvarlocal2): Likewise.
7179 (getvarinmod2): Likewise.
7180 (getvaritcpt2): Likewise.
7181 (getvaritcpt3): Likewise.
7182 * elf/vismain.c (do_test): Adjusted.
7183 * elf/vismod1.c (getvarlocal1): Return address.
7184 (getvarinmod1): Likewise.
7185 (getvaritcpt1): Likewise.
7186 * elf/vismod2.c (getvarlocal2): Likewise.
7187 (getvarinmod2): Likewise.
7188 (getvaritcpt2): Likewise.
7189 * elf/vismod3.c (getvaritcpt3): Likewise.
7190
7191 2003-03-28 Roland McGrath <roland@redhat.com>
7192
7193 * elf/vismain.c (do_test): Print both addresses when they don't match.
7194
7195 * scripts/abilist.awk: If given -v filename_regexp and/or -v
7196 libname_regexp when parsing names, then produce output only
7197 for those matching the given regexps. In combine mode, save all
7198 stanzas for a final sorting by stanza header at the end.
7199 Emit a blank line between stanzas.
7200
7201 * scripts/abilist.awk: When given -v combine=1, do parse_names and
7202 emit a single output stream with lib name in stanza header lines.
7203
7204 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
7205
7206 2003-03-27 Roland McGrath <roland@redhat.com>
7207
7208 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
7209 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
7210
7211 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7212
7213 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7214 Return old value. Make asm output reg constraint earlyclobber.
7215 Renamed from...
7216 (__arch_compare_and_exchange_8_acq): ... this.
7217 (__arch_compare_and_exchange_val_16_acq):
7218 Return old value. Make asm output reg constraint earlyclobber.
7219 Renamed from...
7220 (__arch_compare_and_exchange_16_acq): ... this.
7221 (__arch_compare_and_exchange_val_32_acq):
7222 Return old value. Make asm output reg constraint earlyclobber.
7223 Renamed from...
7224 (__arch_compare_and_exchange_32_acq): ... this.
7225 (__arch_compare_and_exchange_val_64_acq):
7226 Renamed from...
7227 (__arch_compare_and_exchange_64_acq): ... this.
7228 (atomic_exchange_and_add): Use local variables and
7229 __arch_compare_and_exchange_val_64_acq.
7230 (atomic_add): Likewise.
7231 (atomic_add_negative, atomic_add_zero): Use local variables.
7232
7233 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
7234
7235 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
7236
7237 2003-03-27 Ulrich Drepper <drepper@redhat.com>
7238
7239 * Makefile: Remove libmd5crypt goal.
7240
7241 2003-03-25 Jakub Jelinek <jakub@redhat.com>
7242
7243 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
7244 special handling of relocations against local symbols.
7245
7246 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
7247
7248 * sysdeps/powerpc/bits/atomic.h
7249 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
7250 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
7251 Define PPC64 specific version.
7252 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
7253 Change (mem) constraint to "b".
7254 [__powerpc64__] (__arch_atomic_exchange_and add_64):
7255 Replace addi with add. Change (value) contraint to "r".
7256 Change (mem) constraint to "b".
7257 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
7258 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
7259 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
7260 (__arch_atomic_decrement_if_positive_32): New macro.
7261 (atomic_decrement_if_positive): Use __arch* macros.
7262
7263 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7264
7265 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7266
7267 2003-03-27 Roland McGrath <roland@redhat.com>
7268
7269 * scripts/rpm2dynsym.sh: New file.
7270 * Makefile (distribute): Add it.
7271
7272 2003-03-27 David Mosberger <davidm@hpl.hp.com>
7273
7274 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
7275 ar.unat before returning. Add missing .mem.offset directives
7276 to ensure file gets assembled without warnings.
7277 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
7278
7279 2003-03-27 Jakub Jelinek <jakub@redhat.com>
7280
7281 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
7282 Return -1 instead of 0 if clock_getres failed.
7283
7284 2003-03-27 Roland McGrath <roland@redhat.com>
7285
7286 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
7287 header lines and write out foo.symlist files for each foo.so.NN listed.
7288
7289 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
7290 This symbol is exported, and we don't want to hide it.
7291 Add libc_hidden_proto instead.
7292 (_IO_file_jumps): Add libc_hidden_proto.
7293 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
7294 Remove INTVARDEF.
7295 * libio/fileops.c (_IO_file_jumps): Likewise.
7296 * libio/stdfiles.c: Don't use INTUSE on them.
7297 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
7298 * libio/iofopen.c (__fopen_internal): Likewise.
7299 * libio/freopen.c (freopen): Likewise.
7300 * libio/freopen64.c (freopen64): Likewise.
7301 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
7302
7303 * Makerules (check-abi) [$(enable-check-abi) = warn]:
7304 Ignore exit status from diff.
7305 * configure.in (enable_check_abi): Document possible value "warn".
7306 Change default to no for now.
7307 * configure: Regenerated.
7308
7309 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
7310 macro calls and a #include <stub-tag.h> at the end.
7311 * Makerules ($(objpfx)stubs): Tweak sed commands.
7312
7313 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
7314 caller column for *xattr syscalls, since they are in sysdeps/generic.
7315
7316 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
7317 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
7318
7319 2003-03-26 Roland McGrath <roland@redhat.com>
7320
7321 * Makerules (check-abi-config): Use /thread instead of /tls when
7322 use-thread and not just use-tls is set.
7323
7324 * Makerules (update-abi): Put quotes around $(update-abi-config).
7325
7326 * elf/Makefile (check-abi): Depend on check-abi-ld.
7327 (update-abi): Depend on update-abi-ld.
7328
7329 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7330
7331 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
7332 do not check for errors (unless testing for 32bit variant).
7333 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
7334
7335 2003-03-27 Philip Blundell <philb@gnu.org>
7336
7337 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
7338 unconditional mov. Remove nop.
7339
7340 * sysdeps/unix/sysv/linux/kernel-features.h
7341 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
7342 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
7343 when __ASSUME_VFORK_SYSCALL is defined.
7344 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
7345 __ASSUME_MMAP2_SYSCALL.
7346 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
7347 __ASSUME_REALTIME_SIGNALS.
7348
7349 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7350
7351 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
7352 only if DL_NO_COPY_RELOCS is not defined.
7353 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
7354
7355 2003-03-26 Roland McGrath <roland@redhat.com>
7356
7357 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
7358 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
7359 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
7360 (sysdep_routines): Add stub-syscalls.
7361 ($(objpfx)stub-syscalls.c): New target.
7362 (generated): Add stub-syscalls.c.
7363
7364 * tls.make.c: Also define use-tls according to USE_TLS macro.
7365
7366 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7367
7368 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
7369 no-op padding element.
7370 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
7371 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7372 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7373 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7374
7375 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
7376
7377 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
7378 condition check for the return value of getgroups32.
7379
7380 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7381
7382 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
7383 Fix a typo.
7384 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
7385 PSEUDO_END_NOERRNO): Define.
7386 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
7387 Define to PSEUDO_END.
7388
7389 2003-03-26 Ulrich Drepper <drepper@redhat.com>
7390
7391 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
7392
7393 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
7394
7395 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
7396 * iconvdata/bug-iconv4.c: New file.
7397 * iconvdata/Makefile (tests): Add bug-iconv4.
7398
7399 2003-03-25 H.J. Lu <hjl@gnu.org>
7400
7401 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
7402 symbols twice.
7403 (_dl_lookup_versioned_symbol): Likewise.
7404
7405 2003-03-26 Jakub Jelinek <jakub@redhat.com>
7406
7407 * csu/tst-atomic.c (do_test): Add some new
7408 atomic_compare_and_exchange_val_acq, atomic_add_zero,
7409 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
7410 * include/atomic.h (atomic_add_negative, atomic_add_zero):
7411 Prefix local variable so that it doesn't clash with the one
7412 in atomic_exchange_and_add.
7413 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
7414 pointers.
7415 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
7416 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
7417 value into register.
7418 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
7419 Cast newval to long.
7420 * sysdeps/x86_64/bits/atomic.h
7421 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
7422 long.
7423 (atomic_exchange): Cast newvalue to long if sizeof == 8.
7424 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
7425 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
7426 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
7427
7428 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
7429
7430 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
7431 bit from backtrace addresses.
7432
7433 2003-03-21 Andreas Schwab <schwab@suse.de>
7434
7435 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
7436 __chown symbols.
7437
7438 2003-03-25 Roland McGrath <roland@redhat.com>
7439
7440 * config.make.in (enable-check-abi): New variable from configure.
7441 * configure.in (enable_check_abi): New substituted variable,
7442 controlled by --{enable,disable}-check-abi (default yes).
7443 * configure: Regenerated.
7444 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
7445 on check-abi dependency.
7446
7447 2003-03-26 Andreas Schwab <schwab@suse.de>
7448
7449 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
7450 * include/atomic.h: Likewise.
7451
7452 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
7453
7454 2003-03-25 Roland McGrath <roland@redhat.com>
7455
7456 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
7457 (__arch_atomic_exchange_64): New macro.
7458 (atomic_exchange): Use them.
7459 (__arch_atomic_exchange_and_add_32): New macro.
7460 (__arch_atomic_exchange_and_add_64): New macro.
7461 (atomic_exchange_and_add): Use them.
7462 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
7463
7464 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
7465
7466 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
7467 Define.
7468 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
7469 ISA tests.
7470 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
7471 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
7472 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7473 to decide whether to add padding.
7474 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
7475 to decide whether to add padding.
7476 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
7477 old_kernel_sigaction): Likewise.
7478
7479 2003-03-25 Ulrich Drepper <drepper@redhat.com>
7480
7481 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
7482 atomic_add_zero were supposed to do.
7483 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
7484 to x86 behavior.
7485
7486 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
7487 This matches the new timer implementation.
7488 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
7489 Likewise.
7490 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
7491 Likewise.
7492 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
7493 timer info for what the kernel provides these days.
7494 (struct sigevent): Add _tid field.
7495 Define SIGEV_THREAD_ID.
7496 Remove struct __pthread_attr_s forward declaration.
7497 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
7498 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
7499 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7500 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7501
7502 * Versions.def (librt): Add GLIBC_2.3.3.
7503
7504 * abilist/libpthread.abilist: Update for nptl.
7505
7506 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
7507
7508 * inet/netinet/in.h: Add IPPROTO_SCTP.
7509
7510 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7511
7512 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
7513
7514 2003-03-24 Philip Blundell <philb@gnu.org>
7515
7516 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
7517 Remove a1 from clobber list.
7518
7519 2003-03-24 Ulrich Drepper <drepper@redhat.com>
7520
7521 * timezone/antarctica: Update from tzdata2003a.
7522 * timezone/asia: Likewise.
7523 * timezone/australasia: Likewise.
7524 * timezone/europe: Likewise.
7525 * timezone/iso3166.tab: Likewise.
7526 * timezone/northamerica: Likewise.
7527 * timezone/southamerica: Likewise.
7528 * timezone/zone.tab: Likewise.
7529
7530 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
7531
7532 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
7533
7534 2003-03-23 Ulrich Drepper <drepper@redhat.com>
7535
7536 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
7537 unwanted expansion by definining to ret. Patch by Ian Wienand.
7538
7539 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
7540 the parameter description to denote no error checking. Generate
7541 appropriate pseudo asm code.
7542 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
7543 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
7544 getpgrp, and getppid with 'E'.
7545 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
7546 PSEUDO_END_NOERRNO, and ret_NOERRNO.
7547 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7548 * sysdeps/unix/sysdep.h: Likewise.
7549 * sysdeps/unix/alpha/sysdep.h: Likewise.
7550 * sysdeps/unix/sparc/sysdep.h: Likewise.
7551 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
7552 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
7553 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
7554 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7555 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
7556 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
7557 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7558 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7559 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7560 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7561 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7562
7563 2003-03-23 Roland McGrath <roland@redhat.com>
7564
7565 * Makeconfig (+includes): Don't use $(last-includes).
7566
7567 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7568
7569 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
7570 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7571
7572 2003-03-23 Jakub Jelinek <jakub@redhat.com>
7573
7574 * sysdeps/alpha/fpu/libm-test-ulps: Update.
7575 * sysdeps/arm/libm-test-ulps: Update.
7576 * sysdeps/hppa/fpu/libm-test-ulps: Update.
7577 * sysdeps/ia64/fpu/libm-test-ulps: Update.
7578 * sysdeps/mips/fpu/libm-test-ulps: Update.
7579 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7580 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7581 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
7582 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
7583 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
7584 * sysdeps/s390/fpu/libm-test-ulps: Update.
7585 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7586
7587 2003-03-22 Roland McGrath <roland@redhat.com>
7588
7589 * include/atomic.h: Put parens around all macro arguments.
7590 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
7591 (atomic_compare_and_exchange_val_acq): Use it.
7592 (atomic_compare_and_exchange_bool_acq): Likewise.
7593 (atomic_increment_and_test): Invert sense of test.
7594 (atomic_decrement_and_test): Likewise.
7595 * csu/tst-atomic.c: Update those tests to match.
7596
7597 2003-03-22 Jakub Jelinek <jakub@redhat.com>
7598
7599 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
7600 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
7601 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
7602 __oldval variable in the macro, since it might be macro argument.
7603 (atomic_decrement_if_positive): Initialize __memp, remove setting
7604 of non-existent variable.
7605 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
7606 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
7607 using atomic_compare_and_exchange_val_acq.
7608 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
7609 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
7610 Renamed from...
7611 (__arch_compare_and_exchange_bool_8_acq): ... this.
7612 (__arch_compare_and_exchange_val_16_acq): Renamed from...
7613 (__arch_compare_and_exchange_bool_16_acq): ... this.
7614 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
7615 from...
7616 (__arch_compare_and_exchange_bool_32_acq): ... this.
7617 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
7618 from...
7619 (__arch_compare_and_exchange_bool_64_acq): ... this.
7620 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
7621 variables types instead of assuming int.
7622 Change prefix of local variables to __arch.
7623 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
7624 Remove.
7625 (atomic_compare_and_exchange_val_acq,
7626 atomic_compare_and_exchange_bool_acq): Define.
7627
7628 * csu/tst-atomic.c: New test.
7629 * csu/tst-atomic-long.c: New test.
7630 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
7631
7632 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
7633
7634 * sysdeps/s390/Versions: Add trailing newline.
7635
7636 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
7637 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
7638
7639 2003-03-22 Andreas Schwab <schwab@suse.de>
7640
7641 * sysdeps/m68k/fpu/libm-test-ulps: Update.
7642
7643 * sysdeps/m68k/m68020/bits/atomic.h: New file.
7644 * sysdeps/m68k/m68020/atomicity.h: Removed.
7645
7646 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
7647
7648 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
7649 data structures and macros. Protect from multiple inclusion.
7650
7651 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
7652 typo in #if test.
7653
7654 2003-03-21 Andreas Jaeger <aj@suse.de>
7655
7656 * sysdeps/i386/fpu/libm-test-ulps: Update.
7657
7658 * math/libm-test.inc (tgamma_test): Recompute some constants with
7659 36 digits precision.
7660 (lgamma_test): Likewise.
7661 (ccos_test): Likewise.
7662 (ccosh_test): Likewise.
7663 (clog10_test): Likewise.
7664 (csin_test): Likewise.
7665 (csinh_test): Likewise.
7666 (ctan_test): Likewise.
7667 (ctanh_test): Likewise.
7668
7669 2003-03-19 Jakub Jelinek <jakub@redhat.com>
7670
7671 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
7672
7673 2003-03-21 Roland McGrath <roland@redhat.com>
7674
7675 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
7676 constraint to permit non-constant BIT argument.
7677 (atomic_bit_test_set): Likewise.
7678 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
7679 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
7680 For quadword case, use "i" constraint if __builtin_constant_p and < 32
7681 or "r" constraint otherwise.
7682
7683 * configure.in: Move AC_PROG_CC and other program-finding before all
7684 the version checks.
7685 * configure: Regenerated.
7686
7687 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7688
7689 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
7690 unaligned copying of 8-15 bytes. From Chris Demetriou
7691 <cgd@broadcom.com>. Fix label names.
7692 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
7693 change as to memcpy.S.
7694 * sysdeps/mips/memcpy.S: Formatting changes.
7695 * sysdeps/mips/memset.S: Likewise.
7696
7697 2003-03-21 Roland McGrath <roland@redhat.com>
7698
7699 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
7700
7701 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
7702
7703 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
7704 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
7705
7706 2003-03-21 Roland McGrath <roland@redhat.com>
7707
7708 * sysdeps/i386/i486/bits/atomic.h
7709 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
7710 version of the macro to avoid compile-time warnings.
7711 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
7712 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
7713 (atomic_increment, atomic_decrement): Likewise.
7714
7715 2003-03-21 Ulrich Drepper <drepper@redhat.com>
7716
7717 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
7718 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7719
7720 2003-03-21 Roland McGrath <roland@redhat.com>
7721
7722 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
7723
7724 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7725
7726 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
7727 atomic_compare_and_exchange_val_rel,
7728 atomic_compare_and_exchange_bool_acq, and
7729 atomic_compare_and_exchange_bool_rel instead of
7730 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
7731 * sysdeps/i386/i486/bits/atomic.h: Define
7732 __arch_compare_and_exchange_val_*_acq instead of
7733 __arch_compare_and_exchange_*_acq.
7734 * sysdeps/x86_64/bits/atomic.h: Likewise.
7735 * sysdeps/ia64/bits/atomic.h: Define
7736 __arch_compare_and_exchange_bool_*_acq instead of
7737 __arch_compare_and_exchange_*_acq.
7738 * sysdeps/powerpc/bits/atomic.h: Likewise.
7739 * sysdeps/s390/bits/atomic.h: Likewise.
7740 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
7741 * malloc/set-freeres.c: Likewise.
7742 * nscd/cache.c: Likewise.
7743 * stdlib/cxa_finalize.c: Likewise.
7744 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7745
7746 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7747
7748 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
7749 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
7750 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
7751
7752 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
7753 into high and low halves on n64.
7754 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7755 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7756 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7757
7758 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7759
7760 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
7761 correct atomic_compare_and_exchange_acq semantics.
7762
7763 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7764
7765 * sysdeps/mips/ieee754.h: Remove excess #endif.
7766
7767 2003-03-20 Roland McGrath <roland@redhat.com>
7768
7769 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
7770 variable. Remove superfluous memory clobber.
7771
7772 * include/atomic.h: Syntax braino fix.
7773
7774 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
7775 in decimal. Don't bail if niced at start. Just check that nice call
7776 bumps the total at all.
7777
7778 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7779
7780 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
7781 including pc, gp, sp and fp, as long long.
7782 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
7783 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
7784 Add gp argument, and set gp in the jmpbuf to it.
7785 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
7786
7787 2003-03-20 Ulrich Drepper <drepper@redhat.com>
7788
7789 * include/atomic.h: Define atomic_exchange and
7790 atomic_decrement_if_positive if not already defined. Add some
7791 __builtin_expect.
7792 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
7793 * sysdeps/x86_64/bits/atomic.h: Likewise.
7794 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
7795 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
7796 atomic_exchange, atomic_exchange_and_add, and
7797 atomic_decrement_if_positive
7798
7799 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
7800
7801 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
7802 with a single instruction.
7803
7804 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
7805 properly for n64.
7806 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
7807 type.
7808 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
7809 Word before comparing with gotsym. Take reloc_addr argument as
7810 void*. Remove the code added for the compiler to drop any
7811 alignment assumptions.
7812
7813 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7814
7815 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
7816 * include/atomic.h: New file.
7817 * sysdeps/i386/i486/bits/atomic.h: New file.
7818 * sysdeps/x86_64/bits/atomic.h: New file.
7819 * sysdeps/s390/bits/atomic.h: New file.
7820 * sysdeps/sh/bits/atomic.h: New file.
7821 * sysdeps/ia64/bits/atomic.h: New file.
7822 * sysdeps/powerpc/bits/atomic.h: New file.
7823 * sysdeps/generic/bits/atomic.h: New file.
7824 * sysdeps/i386/i486/atomicity.h: Removed.
7825 * sysdeps/x86_64/atomicity.h: Removed.
7826 * sysdeps/s390/s390-32/atomicity.h: Removed.
7827 * sysdeps/s390/s390-64/atomicity.h: Removed.
7828 * sysdeps/ia64/atomicity.h: Removed.
7829 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
7830 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
7831 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
7832 use of macros from atomicity.h to new names and semantics.
7833 * gmon_mcount.c: Likewise.
7834 * malloc/set-freeres.c: Likewise.
7835 * nscd/cache.c: Likewise.
7836 * stdlib/cxa_finalize.c: Likewise.
7837 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
7838
7839 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
7840
7841 * sysdeps/mips/ieee754.h: New file, suitable to replace both
7842 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
7843 mips-specific for now.
7844
7845 2003-03-19 Ulrich Drepper <drepper@redhat.com>
7846
7847 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
7848 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
7849 * stdlib/tst-strtod.c: Add test for the bug.
7850
7851 * posix/tst-nice.c (do_test): Remove invalid of return value.
7852 Don't run test if initial level != 0.
7853
7854 2003-03-19 Amos Waterland <apw@us.ibm.com>
7855
7856 * posix/tst-nice.c: New file.
7857 * posix/Makefile (tests): Add tst-nice.
7858
7859 2003-03-18 Roland McGrath <roland@redhat.com>
7860
7861 * abilist: New directory of libfoo.abilist files maintained using
7862 scripts/merge-abilist.awk and "make update-abi" rules.
7863 * Makefile (distribute): Add abilist/*.abilist.
7864 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
7865 Depend on check-abi.
7866
7867 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
7868 * configure: Regenerated.
7869
7870 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
7871
7872 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7873
7874 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
7875 correctly.
7876
7877 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
7878
7879 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
7880
7881 2003-03-18 Ulrich Drepper <drepper@redhat.com>
7882
7883 * Versions.def: Add GLIBC_2.3.3 for libpthread.
7884
7885 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7886
7887 * sysdeps/generic/libc-start.c [!SHARED &&
7888 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
7889
7890 2003-03-17 Roland McGrath <roland@redhat.com>
7891
7892 * include/ctype.h: Revert last change.
7893
7894 2003-03-17 Ulrich Drepper <drepper@redhat.com>
7895
7896 * argp/tst-argp1.c: Use test-skeleton.c.
7897 * locale/tst-C-locale.c: Likewise.
7898
7899 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
7900
7901 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
7902 * sysdeps/mips/mips64/n64/Implies: New file.
7903 * sysdeps/mips/mips64/n64/Makefile: New file.
7904 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
7905 * sysdeps/mips/mips64/n32/Implies: New file.
7906 * sysdeps/mips/mips64/n32/Makefile: New file.
7907 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
7908 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
7909 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
7910 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
7911 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
7912 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
7913 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
7914 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
7915 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
7916 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
7917 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
7918 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
7919 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
7920 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
7921
7922 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
7923 lib64 for mips64/n64 and lib32 for mips64/n32.
7924 (ldd_rewrite_script): Needed for all mips64 configurations.
7925 * sysdeps/unix/sysv/linux/configure: Rebuilt.
7926 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
7927 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
7928
7929 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
7930 well.
7931
7932 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
7933 asm/unistd.h into asm-unistd.h.
7934 * sysdeps/unix/sysv/linux/mips/configure: Generated.
7935 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
7936 of syscall list.
7937 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
7938 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
7939 asm/unistd.h.
7940
7941 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
7942 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
7943 long type for registers on n32.
7944
7945 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
7946 3 ABIs.
7947 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
7948 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
7949 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
7950 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
7951 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
7952 * sysdeps/unix/mips/brk.S: Likewise.
7953 * sysdeps/unix/mips/sysdep.S: Likewise.
7954 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
7955 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
7956 * sysdeps/mips/sys/ucontext.h: Likewise.
7957 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
7958 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
7959 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
7960 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
7961 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
7962 * sysdeps/mips/mips64/setjmp.S: Likewise.
7963 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
7964 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
7965 64-bit types.
7966
7967 2003-03-16 Ulrich Drepper <drepper@redhat.com>
7968
7969 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
7970 not at function level.
7971 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
7972
7973 2003-03-15 Roland McGrath <roland@redhat.com>
7974
7975 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
7976 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
7977 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
7978 * nis/nis_table.c (__create_ib_request): Likewise.
7979
7980 * posix/fnmatch_loop.c: Add casts for signedness.
7981 * nss/nss_files/files-hosts.c: Likewise.
7982 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7983 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
7984 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
7985
7986 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
7987 get errors into the log file.
7988 (libc_cv_broken_visibility_attribute): Likewise.
7989 (libc_cv_broken_alias_attribute): Likewise.
7990 (libc_cv_asm_weak_directive): Likewise.
7991 (libc_cv_need_minus_P): Likewise.
7992 (libc_cv_dot_text): Likewise.
7993 (libc_cv_asm_global_directive): Likewise.
7994 (libc_cv_asm_type_prefix): Likewise.
7995 * configure: Regenerated.
7996
7997 * nscd/cache.c (cache_search): Give first arg type `request_type'.
7998 * nscd/nscd.h: Update decl.
7999
8000 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
8001 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8002 * elf/dl-close.c (_dl_close): Likewise.
8003 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
8004 * io/fts.c (fts_build): Likewise.
8005 * elf/cache.c (add_to_cache): Likewise.
8006 * locale/programs/locarchive.c (show_archive_content): Likewise.
8007
8008 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
8009
8010 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
8011 happy.
8012 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
8013
8014 2003-03-15 Ulrich Drepper <drepper@redhat.com>
8015
8016 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
8017 code for most parts.
8018
8019 2003-03-15 Roland McGrath <roland@redhat.com>
8020
8021 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
8022 * sysdeps/unix/sysv/linux/system.c: ... here.
8023 (FORK): Don't #define if already #define'd.
8024 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
8025 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
8026 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
8027
8028 * dlfcn/tst-dlinfo.c: New file.
8029 * dlfcn/Makefile (tests): Add tst-dlinfo.
8030 ($(objpfx)tst-dlinfo): New target.
8031
8032 * dlfcn/dlinfo.c: New file.
8033 * dlfcn/Makefile (libdl-routines): Add it.
8034 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
8035 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
8036 [__USE_GNU] (RTLD_DI_*): New enum constants.
8037 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
8038 * elf/dl-load.c (cache_rpath): New inline function.
8039 (_dl_map_object): Use it.
8040 (_dl_rtld_di_serinfo): New function.
8041 * sysdeps/generic/ldsodefs.h: Declare it.
8042 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
8043
8044 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
8045 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
8046 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
8047 (__libc_start_main): Just call the generic one for most of the work.
8048
8049 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
8050 static function by that name instead of BP_SYM (__libc_start_main).
8051 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
8052 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
8053 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
8054
8055 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
8056 Use this macro for extra AT_* cases.
8057 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
8058 New macro, guts from ...
8059 (__aux_init_cache): ... here, function removed.
8060 (DL_PLATFORM_INIT): Don't define this.
8061
8062 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
8063 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
8064
8065 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
8066
8067 2003-03-14 Roland McGrath <roland@redhat.com>
8068
8069 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
8070
8071 2003-03-14 Jakub Jelinek <jakub@redhat.com>
8072
8073 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
8074
8075 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8076 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
8077
8078 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8079
8080 * sysdeps/mips/fpu/bits/mathdef.h: New.
8081 (__NO_LONG_DOUBLE_MATH): Define for o32.
8082
8083 * sysdeps/mips/sys/asm.h: Formatting changes.
8084 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
8085 (CPADD): Define for all of them.
8086 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
8087 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
8088 NARGSAVE): Define per ABI spec.
8089 (END): Don't redefine.
8090 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
8091 LONG_SRAV): Remove duplicate definitions.
8092 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
8093 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
8094 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
8095 (PTR_LA): Define for all 3 ABIs.
8096
8097 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
8098 (elf_machine_matches_host): Prevent linking of o32 and n32
8099 together.
8100 (elf_machine_dynamic): Document assumption on $gp.
8101 (STRINGXP, STRINGXV, STRINGV_): New macros.
8102 (elf_machine_load_address): Use them to stringize PTR_LA and
8103 PTR_SUBU.
8104 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
8105 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
8106 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
8107 (__dl_runtime_resolve): Cast the symtab initializer to the
8108 right type.
8109 (RTLD_START): Use it. Adjust it for all 3 ABIs.
8110 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
8111 Handle 64-bit R_MIPS_REL composite relocation and accept
8112 R_MIPS_64 relocations to shift addend size to 64 bits.
8113 Document assumption regarding local GOT entries. Document
8114 backward-compatibility departing from the ABI behavior in
8115 applying relocations that reference section symbols, no longer
8116 used. Support relocations to mis-aligned offsets.
8117 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
8118
8119 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
8120
8121 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
8122 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
8123 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
8124 restore_rt functions. Use them.
8125
8126 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
8127 .set mips2 on new abis.
8128
8129 2003-03-13 Ulrich Drepper <drepper@redhat.com>
8130
8131 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
8132 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
8133 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
8134 * sysdeps/posix/pathconf.c: Likewise.
8135 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
8136 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
8137 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
8138
8139 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
8140 words.
8141
8142 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
8143
8144 * include/gmp.h: Include/gmp-mparam.h.
8145 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
8146 gmp-impl.h.
8147
8148 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
8149 ELF_MACHINE_NO_RELA is set.
8150 * elf/rtld.c (dl_main): No prelink support for REL-only.
8151
8152 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
8153 FLAG_MIPS64_LIBN64): Define.
8154 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
8155
8156 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
8157 * sysdeps/mips/memset.S: Likewise.
8158 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
8159 depending on the ABI.
8160
8161 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
8162 Don't .set mips2 on new abi.
8163 (compare_and_swap): Likewise. Support 64-bit longs on n64.
8164
8165 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
8166
8167 2003-03-13 Roland McGrath <roland@redhat.com>
8168
8169 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
8170 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
8171
8172 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
8173
8174 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
8175 literals long long.
8176 * stdlib/fpioconst.c: Likewise.
8177 * stdlib/strtod.c: Likewise.
8178
8179 * sysdeps/mips/add_n.S: Use L macro for local labels.
8180 * sysdeps/mips/addmul_1.S: Likewise.
8181 * sysdeps/mips/lshift.S: Likewise.
8182 * sysdeps/mips/memcpy.S: Likewise.
8183 * sysdeps/mips/memset.S: Likewise.
8184 * sysdeps/mips/mul_1.S: Likewise.
8185 * sysdeps/mips/rshift.S: Likewise.
8186 * sysdeps/mips/sub_n.S: Likewise.
8187 * sysdeps/mips/submul_1.S: Likewise.
8188 * sysdeps/mips/mips64/add_n.S: Likewise.
8189 * sysdeps/mips/mips64/addmul_1.S: Likewise.
8190 * sysdeps/mips/mips64/lshift.S: Likewise.
8191 * sysdeps/mips/mips64/mul_1.S: Likewise.
8192 * sysdeps/mips/mips64/rshift.S: Likewise.
8193 * sysdeps/mips/mips64/sub_n.S: Likewise.
8194 * sysdeps/mips/mips64/submul_1.S: Likewise.
8195 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
8196 conventions. Define END as in sys/asm.h.
8197 * sysdeps/unix/mips/sysdep.S: Likewise.
8198 * sysdeps/unix/mips/wait.S: Likewise.
8199 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8200
8201 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
8202 Cast shifted values that may be too narrow to mp_limb_t.
8203 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
8204 Likewise.
8205 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
8206 Likewise.
8207 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
8208 (__mpn_extract_long_double): Likewise.
8209 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
8210 (__mpn_construct_long_double): Likewise.
8211 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
8212 (__mpn_extract_long_double): Likewise.
8213 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
8214 (__mpn_construct_long_double): Likewise.
8215
8216 2003-03-13 Roland McGrath <roland@redhat.com>
8217
8218 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
8219 entries in the map file match too.
8220
8221 2003-03-13 Guido Guenther <agx@sigxcpu.org>
8222
8223 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
8224 label .Lthread_start since current binutils don't allow branches
8225 to globally visible symbols.
8226
8227 2003-03-13 Jakub Jelinek <jakub@redhat.com>
8228
8229 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
8230 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
8231 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
8232 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
8233 clobbered by the syscall.
8234 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
8235 ASM_ARGS_6): Change constraints from r to index of corresponding
8236 output register.
8237 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
8238 ptid and ctid to match kernel.
8239 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
8240
8241 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
8242
8243 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
8244 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
8245 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
8246
8247 2003-03-11 Roland McGrath <roland@redhat.com>
8248
8249 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
8250 Check SYM_MAP rather than SYM as definedness check.
8251 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
8252 Don't handle R_PPC64_REL24 reloc.
8253 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8254
8255 * sysdeps/powerpc/powerpc64/dl-machine.h
8256 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
8257 block, so we cover all the TPREL16* flavors without 6 ||s.
8258 [USE_TLS] (elf_machine_tprel): New function.
8259 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
8260 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
8261 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
8262
8263 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
8264
8265 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
8266 instead of jalr to invoke subroutine so restoring the $gp register
8267 will work properly.
8268
8269 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
8270
8271 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
8272 to __NR_pread if not defined.
8273 (__NR_pwrite64): Define to __NR_pwrite if not defined.
8274
8275 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8276
8277 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
8278 * sysdeps/unix/sysv/linux/kernel-features.h
8279 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
8280 kernel >= 2.5.64.
8281
8282 2003-03-11 Jakub Jelinek <jakub@redhat.com>
8283
8284 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
8285 allocate space even for the trailing '/'.
8286 Reported by John Reiser <jreiser@BitWagon.com>.
8287
8288 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
8289 ASM_CLOBBERS_6): Define.
8290 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
8291 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
8292 to match IA-32 order.
8293 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
8294
8295 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
8296
8297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
8298 Copy extra params for NPTL to registers used in clone syscall.
8299
8300 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
8301
8302 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
8303 call names for pread and pwrite.
8304
8305 2003-03-10 Roland McGrath <roland@redhat.com>
8306
8307 * dlfcn/Makefile (libdl-routines): Add dladdr1.
8308 * dlfcn/dladdr1.c: New file.
8309 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
8310 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
8311 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
8312 a const ElfNN_Sym ** to fill in.
8313 * include/dlfcn.h: Update decl. Include <link.h>.
8314 * dlfcn/dladdr.c (dladdr): Update caller.
8315 * malloc/mtrace.c (tr_where): Likewise.
8316 * sysdeps/generic/elf/backtracesyms.c: Likewise.
8317 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8318 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
8319 * Versions.def (libdl): Define GLIBC_2.3.3 set.
8320
8321 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
8322 assembler command.
8323 * sysdeps/unix/Makefile (compile-syscall): New variable.
8324 Pass -g0 to compiler for assembling syscall stubs from stdin.
8325
8326 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
8327 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
8328 Define these to do nothing.
8329
8330 * configure.in: New check for -g on .S files.
8331 * configure: Regenerated.
8332 * config.make.in (have-cpp-asm-debuginfo): New variable.
8333 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
8334 * Makeconfig (ASFLAGS): New variable, if undefined and
8335 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
8336 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
8337
8338 2003-03-09 Roland McGrath <roland@redhat.com>
8339
8340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
8341 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
8342
8343 2003-03-09 Ulrich Drepper <drepper@redhat.com>
8344
8345 * po/fi.po: Update from translation team.
8346 * po/ca.po: Likewise.
8347 * po/da.po: Likewise.
8348
8349 2003-03-08 Ulrich Drepper <drepper@redhat.com>
8350
8351 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
8352
8353 2003-03-07 Ulrich Drepper <drepper@redhat.com>
8354
8355 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
8356
8357 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
8358
8359 2003-03-07 Roland McGrath <roland@redhat.com>
8360
8361 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
8362 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
8363
8364 2003-03-04 Guido Guenther <agx@sigxcpu.org>
8365
8366 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
8367 stubs, we have INLINE_SYSCALL.
8368 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
8369 MAP_NONBLOCK.
8370
8371 2003-03-06 Roland McGrath <roland@redhat.com>
8372
8373 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
8374 permanent extent and add a comment about testing its implicit teardown.
8375
8376 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
8377
8378 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
8379
8380 2003-03-05 Ulrich Drepper <drepper@redhat.com>
8381
8382 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
8383 reversed __builtin_expect expectation.
8384
8385 2003-03-05 Roland McGrath <roland@redhat.com>
8386
8387 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
8388 * libio/swscanf.c: Likewise.
8389 * libio/swprintf.c: Likewise.
8390
8391 2003-03-04 Roland McGrath <roland@redhat.com>
8392
8393 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
8394 (elf_machine_rela): Always use RESOLVE_MAP, needed for
8395 R_PPC64_JMP_SLOT as well as TLS cases.
8396 (BIT_INSERT): Move parenthesis where it ought to have been.
8397 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
8398
8399 * posix/confstr.c (confstr): Correct STRING_LEN values for
8400 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
8401 break. Reported by Alexandre Julliard <julliard@winehq.com>.
8402
8403 2003-03-04 Jakub Jelinek <jakub@redhat.com>
8404
8405 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
8406
8407 2003-03-04 Ulrich Drepper <drepper@redhat.com>
8408
8409 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
8410 clone parameters.
8411
8412 * po/sv.po: Update from translation team.
8413
8414 2003-03-04 Andreas Jaeger <aj@suse.de>
8415 Ulrich Drepper <drepper@redhat.com>
8416
8417 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
8418
8419 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8420
8421 * sysdeps/generic/dl-sysdep.h: Add double include protection.
8422
8423 * po/tr.po: Update from translation team.
8424
8425 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
8426 are holes between the segments. Only call mprotect to set
8427 proection to PROT_NONE if there are some.
8428
8429 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
8430 Update comment.
8431
8432 * include/sched.h (__clone2): Use ... instead of adding all the
8433 new parameters.
8434
8435 2003-03-03 Roland McGrath <roland@redhat.com>
8436
8437 * elf/dl-load.c (struct filebuf): Fix typo in last change.
8438
8439 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
8440 PI_STATIC_AND_HIDDEN.
8441
8442 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
8443
8444 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
8445 flags.
8446 * include/sched.h: Update clone2 prototype.
8447
8448 2003-03-03 Andreas Jaeger <aj@suse.de>
8449
8450 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
8451 (llrint): Use it to correct return type.
8452 (lrint): Likewise.
8453 (lround): Likewise.
8454 (llround): Likewise.
8455
8456 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8457
8458 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
8459 byte filebuf size.
8460
8461 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
8462 if ccs parameter isn't valid. Reported by Andreas Schwab.
8463
8464 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8465
8466 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
8467 for system call numbers > 255.
8468 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
8469 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8470 INTERNAL_SYSCALL): Likewise.
8471 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
8472 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
8473 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
8474 INTERNAL_SYSCALL): Likewise.
8475
8476 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
8477
8478 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
8479 array if it is the initial dtv.
8480
8481 2003-03-03 Ulrich Drepper <drepper@redhat.com>
8482
8483 * po/es.po: Update from translation team.
8484 * po/fr.po: Likewise.
8485 * po/gl.po: Likewise.
8486 * po/sk.po: Likewise.
8487 * po/sv.po: Likewise.
8488
8489 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
8490 * misc/sys/mman.h: Add prototype for remap_file_pages.
8491 * sysdeps/generic/remap_file_pages.c: New file.
8492 * misc/Makefile (routines): Add remap_file_pages.
8493 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
8494
8495 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
8496 and MAP_NONBLOCK.
8497 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8498 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
8499 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8500 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8501 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
8502 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
8503 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8504 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8505
8506 2003-03-03 Roland McGrath <roland@redhat.com>
8507
8508 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
8509 * sysdeps/ia64/dl-machine.h: Likewise.
8510 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
8511 argument type.
8512 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
8513
8514 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
8515 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
8516 * locale/Versions (libc: GLIBC_2.3): Move those to ...
8517 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
8518 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
8519 * Versions.def (libc): Add GLIBC_2.3.3 set.
8520
8521 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
8522 * sysdeps/ia64/dl-machine.h: Update decl.
8523
8524 2003-03-03 Andreas Jaeger <aj@suse.de>
8525
8526 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
8527
8528 2003-03-02 Roland McGrath <roland@redhat.com>
8529
8530 * scripts/abilist.awk: Reject data items with apparent 0 size.
8531
8532 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
8533 after foo.* as if it were a duplicate.
8534
8535 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
8536
8537 2003-03-02 Ulrich Drepper <drepper@redhat.com>
8538
8539 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
8540
8541 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
8542 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
8543 if not already defined. Use SYSDEP_GETRES to allow other files to
8544 provide alternative implementations.
8545 * sysdeps/unix/sysv/linux/clock_getres.c: New file
8546 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
8547 if not already defined. Use SYSDEP_GETTIME to allow other files to
8548 provide alternative implementations.
8549 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
8550 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
8551 if not already defined. Use SYSDEP_GETTIME to allow other files to
8552 provide alternative implementations.
8553 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
8554 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
8555 other files to provide alternative implementations. Rearrange
8556 tests for invalid parameters.
8557 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
8558 * sysdeps/unix/sysv/linux/sysconf.c: New file.
8559 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8560 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
8561 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
8562 _POSIX_MONOTONIC_CLOCK.
8563
8564 2003-03-02 Roland McGrath <roland@redhat.com>
8565
8566 * scripts/merge-abilist.awk: More checks for bogus input.
8567 Uniquify duplicate config names.
8568
8569 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
8570
8571 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
8572 from dl_reloc_overflow, make global.
8573 (__process_machine_rela): Update callers.
8574 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
8575 Add attribute_hidden to __process_machine_rela decl.
8576 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
8577
8578 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
8579 variable.
8580
8581 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
8582 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
8583 (elf_machine_rela): Clean up.
8584
8585 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
8586
8587 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
8588 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
8589 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
8590 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
8591 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
8592 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
8593 new relocs for TLS.
8594
8595 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
8596 macros out of [SHARED].
8597 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
8598
8599 * elf/elf.h: Define R_PPC_* relocs for TLS support.
8600 Clean up R_PPC64_* macro definition comments.
8601
8602 * configure.in: In "running configure fragment for" message,
8603 omit $srcdir from the name if we prepended it.
8604 * configure: Regenerated.
8605
8606 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
8607 From Jakub Jelinek <jakub@redhat.com>.
8608
8609 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
8610 which duplicated the O_DIRECT defn.
8611
8612 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8613
8614 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
8615 random functions.
8616
8617 2003-03-01 Andreas Schwab <schwab@suse.de>
8618
8619 * resolv/Makefile (tests): Don't depend on
8620 $(objpfx)mtrace-tst-leaks when cross compiling.
8621
8622 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
8623 __libc_stack_end through GOT since it is a global symbol.
8624
8625 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8626
8627 * argp/argp.h: Fix a typo.
8628 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
8629
8630 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
8631
8632 2003-02-27 Pat Rankin <rankin@pactechdata.com>
8633
8634 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
8635 char *.
8636 (get_subexp): Likewise.
8637
8638 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
8639
8640 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
8641
8642 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8643
8644 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
8645
8646 2003-02-27 Roland McGrath <roland@redhat.com>
8647
8648 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
8649 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
8650 repeat it and avoids the test for the common case.
8651 Clean up and fix calculations for TLS relocs.
8652
8653 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
8654 * sysdeps/powerpc/dl-tls.h: ... here.
8655 (TLS_TP_OFFSET): New macro.
8656
8657 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
8658
8659 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8660
8661 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
8662 code generation changes in recent gcc.
8663
8664 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
8665
8666 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
8667 Rename argument to avoid symbol conflict.
8668
8669 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
8670 [__USE_GNU] (O_DIRECT): New macro.
8671
8672 2003-02-24 David Mosberger <davidm@hpl.hp.com>
8673
8674 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
8675 unwind info.
8676
8677 2003-02-27 Ulrich Drepper <drepper@redhat.com>
8678
8679 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
8680 initializer anymore now that res_thread_freeres is more careful.
8681
8682 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
8683 except the PKTINFO. Reset interface in PKTINFO.
8684 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
8685
8686 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
8687
8688 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
8689 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
8690 Define.
8691 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
8692 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
8693 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
8694 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
8695
8696 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
8697 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
8698
8699 2003-02-25 Andreas Jaeger <aj@suse.de>
8700
8701 * manual/memory.texi (Malloc Tunable Parameters): Clarify
8702 behaviour of M_MMAP_THRESHOLD.
8703
8704 2003-02-25 Roland McGrath <roland@redhat.com>
8705
8706 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
8707 zero, inidicating _res was not initialized yet.
8708
8709 2003-02-24 Ulrich Drepper <drepper@redhat.com>
8710
8711 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
8712 test.
8713
8714 2003-02-24 Roland McGrath <roland@redhat.com>
8715
8716 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
8717
8718 2003-02-23 Roland McGrath <roland@redhat.com>
8719
8720 * sysdeps/posix/pause.c: New file.
8721 * sysdeps/unix/common/pause.c: File removed.
8722
8723 2003-02-23 Ulrich Drepper <drepper@redhat.com>
8724
8725 * sysdeps/generic/bits/confname.h: Remove #ifs.
8726
8727 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
8728 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
8729
8730 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
8731 element to -1.
8732
8733 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8734
8735 * sysdeps/generic/dl-sysdep.c: Avoid warning.
8736
8737 2003-02-22 Roland McGrath <roland@redhat.com>
8738
8739 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
8740 * resolv/Makefile (tests): Add tst-leaks.
8741 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
8742 (tst-leaks-ENV): New variable.
8743 ($(objpfx)mtrace-tst-leaks): New target.
8744 (tests): Depend on it.
8745
8746 * include/libc-internal.h: Declare __libc_thread_freeres.
8747
8748 * Makerules: Fix last change to use $($(subdir)-version) when set.
8749
8750 * Makerules (install-lib-nosubdir): Depend on installed
8751 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
8752 regardless of the libfoo.so target's dependencies.
8753
8754 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
8755 Use that in $(MAKE) calls.
8756
8757 2003-02-22 Ulrich Drepper <drepper@redhat.com>
8758
8759 * catgets/gencat.c (read_input_file): Collision between
8760 auto-assigned numbers and user-defined nubmers is not fatal.
8761 Handle it.
8762 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
8763 * catgets/Makefile: Add rules to run test2.msg test.
8764 * catgets/test2.msg: New file.
8765
8766 * catgets/gencat.c (main): Return 1 if messages have been printed.
8767
8768 * iconv/iconv_prog.c (main): Unify messages.
8769
8770 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
8771 when shifting retval.
8772 * stdlib/tst-strtod.c (main): Add strtold test case.
8773 Reported by Fred J. Tydeman <tydeman@tybor.com>.
8774
8775 2003-02-21 Roland McGrath <roland@redhat.com>
8776
8777 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
8778 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
8779 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
8780
8781 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
8782 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
8783 (res_thread_freeres): New function, on __libc_thread_subfreeres and
8784 __libc_subfreeres.
8785
8786 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
8787 * malloc/thread-freeres.c: New file.
8788 * malloc/Makefile (aux): Add it.
8789 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
8790 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
8791 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
8792
8793 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
8794 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
8795
8796 2003-02-21 Roland McGrath <roland@frob.com>
8797
8798 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
8799
8800 * iconvdata/Makefile (tests): Add bug-iconv3 only if
8801 [$(have-thread-library) = yes].
8802
8803 2003-02-21 Ulrich Drepper <drepper@redhat.com>
8804
8805 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
8806
8807 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
8808 not chechk for errors (unless testing for 32bit variant).
8809 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
8810 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
8811 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
8812
8813 2003-02-21 Jakub Jelinek <jakub@redhat.com>
8814
8815 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
8816 Check for signed overflow, not unsigned.
8817
8818 * sysdeps/sparc/sparc64/elf/configure.in: New file.
8819 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
8820 Use -fcall-used-g6, not -fcall-used-g7.
8821
8822 2003-02-21 Andreas Jaeger <aj@suse.de>
8823
8824 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
8825 mode.
8826
8827 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
8828 clear whole mxcsr but only exceptions.
8829
8830 2003-02-21 Roland McGrath <roland@redhat.com>
8831
8832 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
8833 for libfoo.so that need $(make-link) rules.
8834
8835 2003-02-21 Roland McGrath <roland@frob.com>
8836
8837 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
8838 to match existing struct stat layout in mig protocols.
8839
8840 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8841
8842 * version.h (VERSION): Bump to 2.3.2.
8843
8844 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
8845 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
8846 and dl-sysdep.h.
8847 * sysdeps/generic/Dist: Add sysdep-cancel.h.
8848 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
8849 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
8850 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
8851 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
8852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
8853 ucontext_i.h.
8854 * Makefile (distribute): Add include/stubs-prologue.h,
8855 include/gnu/stubs.h, scripts/merge-abilist.awk, and
8856 scripts/extract-abilist.awk.
8857
8858 2003-02-20 Roland McGrath <roland@redhat.com>
8859
8860 * math/Makefile (distribute): Don't add generated files.
8861
8862 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8863
8864 * math/Makefile: Rearrange variable definitions slightly to get
8865 definition in the right order.
8866
8867 2003-02-20 Roland McGrath <roland@redhat.com>
8868
8869 * Makerules: Clean up conditional around include of tls.make.
8870 * Make-dist: Export generating=t to prevent using that.
8871 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
8872
8873 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8874
8875 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
8876 around in search if port IPPORT_RESERVED/2 has been test.
8877
8878 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
8879
8880 * posix/regcomp.c: Remove inclusions.
8881 * posix/regexec.c: Likewise.
8882 * posix/regex_internal.c: Likewise.
8883 * posix/regex_internal.h: Add inclusions here.
8884 * posix/regex.c: Only include sys/types.h before regex.h. Include
8885 regex_internal.h here. Include regex_internal.c before regcomp.c
8886 and regexec.c (might expose more opportunities to the C compiler).
8887
8888 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
8889
8890 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
8891 [!_LIBC] (__wcrtomb): New definition.
8892 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
8893 HAVE_LOCALE_H as well.
8894
8895 2003-02-20 Ulrich Drepper <drepper@redhat.com>
8896
8897 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
8898 patch to check for system call errors.
8899
8900 2002-07-24 Philip Blundell <philb@gnu.org>
8901
8902 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
8903 on unknown systems.
8904
8905 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8906
8907 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
8908 * sysdeps/unix/sysv/linux/kernel-features.h
8909 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
8911 if possible.
8912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
8913 interprocedure branches.
8914 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
8915 * sysdeps/powerpc/nofpu/Dist: ...here.
8916 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
8917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
8918 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
8919 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
8920 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
8921
8922 2003-02-18 Alan Modra <amodra@bigpond.net.au>
8923
8924 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
8925
8926 2003-02-20 Philip Blundell <philb@gnu.org>
8927
8928 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
8929 missing arguments to INTERNAL_SYSCALL_ERROR_P and
8930 INTERNAL_SYSCALL_ERRNO.
8931
8932 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8933
8934 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
8935 for __ASSUME_32BITUIDS.
8936
8937 2003-02-20 Andreas Schwab <schwab@suse.de>
8938
8939 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
8940 POSIX_MADV_* constants.
8941
8942 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8943
8944 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
8945 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
8946 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
8947 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
8948
8949 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
8950
8951 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
8952
8953 2003-02-16 Roland McGrath <roland@redhat.com>
8954
8955 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
8956
8957 2003-02-19 Ulrich Drepper <drepper@redhat.com>
8958
8959 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
8960 decimal input digits.
8961 * stdlib/tst-strtod.c (main): Add test for strtof bug.
8962
8963 2003-02-18 Ulrich Drepper <drepper@redhat.com>
8964
8965 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
8966 invalid file descriptors and missing access permissions.
8967
8968 2003-02-17 Ulrich Drepper <drepper@redhat.com>
8969
8970 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
8971 been found.
8972
8973 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
8974 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
8975 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
8976 and LOGIN_NAME_MAX.
8977
8978 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
8979 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8980
8981 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
8982 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
8983 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
8984 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
8985 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
8986
8987 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8988
8989 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
8990 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
8991 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
8992 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
8993 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
8994 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
8995
8996 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
8997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
8998 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
8999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
9000
9001 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
9002 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
9003 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
9004 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
9005
9006 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
9007
9008 * nss/getent.c (print_hosts): Print all IP addresses of one host.
9009
9010 2003-02-15 Roland McGrath <roland@frob.com>
9011
9012 * sysdeps/mach/hurd/tls.h: New file.
9013 * sysdeps/mach/hurd/i386/tls.h: New file.
9014
9015 * mach/errsystems.awk: Include <errno.h> in generated output.
9016
9017 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
9018 use target mach-before-compile instead of generated.
9019 (mach-before-compile): New target.
9020 * Makerules: Disable use of tls.make if $(generating) is set.
9021 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
9022 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
9023 mach-shortcuts.h so mach/ generation happens before hurd/.
9024
9025 2003-02-14 Ulrich Drepper <drepper@redhat.com>
9026
9027 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
9028 of demorm correctly if low word is zero.
9029 Reported by Fred J. Tydeman <tydeman@tybor.com>.
9030 * math/libm-test.inc (nextafter_test): New test, but disabled due
9031 to gcc bug.
9032
9033 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
9034 counter and only call __exit_thread if this is not the last thread.
9035
9036 2003-02-13 Jakub Jelinek <jakub@redhat.com>
9037
9038 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
9039 subtracting map->l_tls_offset.
9040
9041 2003-02-12 Ulrich Drepper <drepper@redhat.com>
9042
9043 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
9044 _CS_GNU_LIBPTHREAD_VERSION.
9045 * posix/conststr.c: Handle these new values.
9046 * posix/getconf.c: Likewise.
9047
9048 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
9049 masking of version index.
9050 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9051
9052 2003-02-11 Ulrich Drepper <drepper@redhat.com>
9053
9054 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
9055 correctly. Reported by Thorsten Kukuk.
9056
9057 2003-02-10 Ulrich Drepper <drepper@redhat.com>
9058
9059 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
9060 _BSD_SOURCE to compiler.
9061 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
9062 Patches by Alan Modra.
9063
9064 2003-02-08 Ulrich Drepper <drepper@redhat.com>
9065
9066 * io/ftwtest.c: Get current working directory before and after the
9067 nftw call and make sure they match.
9068
9069 2003-02-08 Jim Meyering <jim@meyering.net>
9070
9071 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
9072 the current directory, not just when DIR contains a slash.
9073 Reported by Manoj Srivastava.
9074
9075 2003-02-07 Jim Meyering <jim@meyering.net>
9076
9077 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
9078 Include autoconf-recommended block of dirent/NAMELEN-related
9079 definitions and includes. Use NAMELEN throughout, rather than
9080 _D_EXACT_NAMLEN.
9081 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
9082 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
9083 (stpcpy): Declare, if necessary.
9084 (mempcpy): Define, if necessary.
9085 [!_LIBC] (__stpcpy, __mempcpy): Define.
9086 [!_LIBC] (LXSTAT, XSTAT): Define.
9087 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
9088 (find_object): Don't use c99-style struct initializer.
9089 Tweak wording in a couple comments.
9090
9091 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9092
9093 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
9094 for SH.
9095 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
9096 after the trapa instruction.
9097 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
9098 parameters.
9099 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
9100 (NEED_SYSCALL_INST_PAD): Define.
9101 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
9102 avoid to use definition for the kernel.
9103 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9104 Save and restore the frame pointer.
9105 (SYSCALL_INST_PAD): Define.
9106 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9107 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
9108 after trapa instruction.
9109 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9110 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9111
9112 2003-02-07 Jakub Jelinek <jakub@redhat.com>
9113
9114 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
9115 so that it can have aliases.
9116 * inet/herrno.c (h_errno): Put it into .bss not .data section.
9117
9118 2003-02-07 Ulrich Drepper <drepper@redhat.com>
9119
9120 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
9121 (profile_fixup): Likewise.
9122 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
9123
9124 2002-11-24 Robert Love <rml@tech9.net>
9125
9126 * posix/sched.h: Second parameter of sched_setaffinity and
9127 sched_getaffinity is `unsigned int', not `unsigned long'.
9128 * sysdeps/generic/sched_setaffinity.c: Likewise.
9129 * sysdeps/generic/sched_getaffinity.c: Likewise.
9130
9131 2003-02-05 Ulrich Drepper <drepper@redhat.com>
9132
9133 * debug/catchsegv.sh: Fix typo in error messsage.
9134 Reported by John Levon <levon@movementarian.org>.
9135
9136 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
9137 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
9138 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
9139 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9141 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9142 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9143
9144 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
9145 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
9146
9147 2003-02-05 Jim Meyering <jim@meyering.net>
9148
9149 Fix a heap-corrupting bug.
9150 * io/ftw.c: Include <limits.h>.
9151 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
9152 (process_entry): Allocate enough space to hold the resulting
9153 file name. Don't presume that 2*dirbufsize is enough.
9154 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
9155 it is guaranteed to be defined.
9156
9157 2003-02-04 Ulrich Drepper <drepper@redhat.com>
9158
9159 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
9160 * iconvdata/bug-iconv3.c: New file.
9161
9162 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
9163
9164 * sysdeps/unix/sysv/linux/s390/system.c: New file.
9165
9166 2003-02-03 Jakub Jelinek <jakub@redhat.com>
9167
9168 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
9169 check.
9170 * config.h.in (BROKEN_SPARC_WDISP22): Add.
9171
9172 2003-02-03 Ulrich Drepper <drepper@redhat.com>
9173
9174 * sysdeps/i386/i686/memmove.S: New file.
9175
9176 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9177
9178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
9179 Include kernel-features.h
9180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
9181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
9182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
9183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
9184
9185 2003-02-02 Jakub Jelinek <jakub@redhat.com>
9186
9187 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
9188
9189 2003-01-25 Jim Meyering <jim@meyering.net>
9190
9191 * io/ftw.c (object_compare): Compare inode numbers before device
9192 numbers, since the former are much more likely to differ.
9193
9194 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9195
9196 * time/tzfile.c (__tzfile_compute): Change return value type to
9197 void. Adjust return statements.
9198 * include/time.h (__tzfile_compute): Adjust prototype.
9199
9200 2003-02-01 Jim Meyering <jim@meyering.net>
9201
9202 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
9203 always returns 1.
9204
9205 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9206
9207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9208 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
9209
9210 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9211
9212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9213 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
9214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9215 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9217 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9219 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
9220
9221 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
9222
9223 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
9224 back to 2.4.19 for powerpc64.
9225 * sysdeps/unix/sysv/linux/kernel-features.h
9226 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
9227 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
9228
9229 2003-02-01 Ulrich Drepper <drepper@redhat.com>
9230
9231 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
9232 platforms with strange alignment requirements on wchar_t.
9233
9234 2003-01-31 Andreas Schwab <schwab@suse.de>
9235
9236 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
9237 aliases, already added by make-syscalls.sh.
9238 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
9239 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9240 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
9241 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9242 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
9243 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9244 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9245 * sysdeps/unix/inet/syscalls.list: Likewise.
9246 * sysdeps/unix/syscalls.list: Likewise.
9247
9248 2003-01-31 Andreas Schwab <schwab@suse.de>
9249
9250 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
9251 any more.
9252
9253 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9254
9255 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
9256 not l to load tls from stack.
9257
9258 2003-01-30 Roland McGrath <roland@redhat.com>
9259
9260 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
9261 null argument before all else.
9262 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9263
9264 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9265
9266 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
9267 Move to RESOLVE protected part of the header.
9268 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
9269 Likewise.
9270
9271 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9272
9273 * stdio-common/Makefile (tests): Add bug15.
9274 (bug15-ENV): Define.
9275 * stdio-common/bug15.c: New file.
9276
9277 2002-10-07 Wolfram Gloger <wg@malloc.de>
9278
9279 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
9280 to foreign sbrk()'s if arena is contiguous. Bug report from
9281 Bruno Haible <bruno@clisp.org>.
9282
9283 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9284
9285 * sysdeps/s390/libc-tls.c: Include stdlib.h.
9286
9287 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9288
9289 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
9290 ps.__count.
9291
9292 2003-01-30 Ulrich Drepper <drepper@redhat.com>
9293
9294 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
9295 restoring of %r6.
9296 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
9297 64-bit load.
9298 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
9299
9300 2003-01-30 Jakub Jelinek <jakub@redhat.com>
9301
9302 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
9303 (allocate_static_tls): ...here. Add __attribute_noinline__.
9304 Don't return on failure.
9305 (_dl_reloc_bad_type): Add __attribute_noinline__.
9306 * elf/do-rel.h (elf_dynamic_do_rel): Add
9307 __attribute__((always_inline)).
9308 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
9309 elf_machine_rel_relative, elf_machine_rela_relative,
9310 elf_machine_lazy_rel): Add prototypes with
9311 __attribute__((always_inline)).
9312
9313 2003-01-29 David Mosberger <davidm@hpl.hp.com>
9314
9315 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
9316
9317 2003-01-29 Roland McGrath <roland@redhat.com>
9318
9319 * configure.in: Barf if configured in $srcdir.
9320
9321 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
9322
9323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9324 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
9325
9326 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
9327
9328 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
9329 clone parameters to match the order used on ia32.
9330 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9331
9332 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
9333
9334 * elf/elf.h: Add new s390 relocs.
9335 * elf/tls-macros.h: Add s390 versions.
9336 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
9337 * sysdeps/s390/dl-tls.h: New file.
9338 * sysdeps/s390/libc-tls.c: New file.
9339 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
9340 relocs for class PLT.
9341 (elf_machine_rela): Handle TLS relocs.
9342 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9343 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
9344 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
9345 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
9346 CLONE_CHILD_*TID flags.
9347 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
9348 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
9349 bit offset.
9350 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
9351 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9352 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
9353 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
9354 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
9355 Likewise.
9356 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
9357 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
9358 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9359 variants.
9360 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
9361 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
9362 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
9363 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
9364 variants.
9365
9366 2003-01-28 Ulrich Drepper <drepper@redhat.com>
9367
9368 * sysdeps/unix/common/pause.c (do_pause): New function. Split
9369 from __libc_pause. Implement using sigsuspend.
9370 (__libc_pause): Call do_pause to do the real work.
9371
9372 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
9373 sig_or_mask parameter is is_sig != 0.
9374
9375 2003-01-21 Philip Blundell <philb@gnu.org>
9376
9377 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
9378
9379 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
9380
9381 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
9382
9383 2003-01-27 Ulrich Drepper <drepper@redhat.com>
9384
9385 * stdio-common/bug14.c: Use official name for the locale.
9386
9387 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
9388 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
9389 instead of __libc_cleanup_region_end.
9390
9391 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
9392 as first parameter to __libc_cleanup_region_start.
9393
9394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9395 (__fe_nomask_env): Use __prctl not prctl.
9396 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
9397 prctl syscall.
9398
9399 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
9400
9401 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
9402
9403 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
9404 wrap-around in test.
9405
9406 2003-01-26 Andreas Schwab <schwab@suse.de>
9407
9408 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
9409 compatibility symbols. Remove INTDEF for __divdi3.
9410 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
9411 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
9412 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
9413 define.
9414 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
9415
9416 2003-01-24 Jakub Jelinek <jakub@redhat.com>
9417
9418 * elf/tls-macros.h: Add SPARC 32-bit definitions.
9419 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
9420 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
9421 for the first half of the header. Include tls.h.
9422 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
9423 relocs too.
9424 (elf_machine_rela): Handle TLS relocs.
9425 * sysdeps/sparc/dl-tls.h: New file.
9426
9427 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
9428 support.
9429
9430 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
9431 * sysdeps/sparc/sparc32/memchr.S: Likewise.
9432 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
9433 * sysdeps/sparc/sparc32/strcat.S: Likewise.
9434 * sysdeps/sparc/sparc32/strchr.S: Likewise.
9435 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
9436 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
9437 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
9438 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9439 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9440 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
9441 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
9442 * sysdeps/sparc/sparc64/strcat.S: Likewise.
9443 * sysdeps/sparc/sparc64/strchr.S: Likewise.
9444 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
9445 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
9446 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
9447 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
9448 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9449 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9450
9451 2003-01-24 Andreas Schwab <schwab@suse.de>
9452
9453 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
9454 elements, and process them backwards.
9455 * elf/Makefile ($(objpfx)tst-array4): New target.
9456 ($(objpfx)tst-array4.out): Likewise.
9457 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
9458 * elf/tst-array4.c: New file.
9459 * elf/tst-array4.exp: Likewise.
9460
9461 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
9462
9463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
9464
9465 2003-01-27 Guido Guenther <agx@sigxcpu.org>
9466
9467 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
9468 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
9469 cancellation handling and handle both __NR_pread64 and __NR_pread.
9470 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9471 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
9472 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
9473 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9474 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
9475 case, use register names consistently.
9476
9477 2003-01-27 Wolfram Gloger <wg@malloc.de>
9478
9479 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
9480 pointer, not of the computed chunk. Bug report from Carlos
9481 O'Donell <carlos@baldric.uwo.ca>.
9482
9483 2003-01-25 Andreas Schwab <schwab@suse.de>
9484
9485 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
9486 addressing to save GOT entries.
9487
9488 2003-01-21 Jakub Jelinek <jakub@redhat.com>
9489
9490 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
9491 inline_syscall1, inline_syscall2, inline_syscall3,
9492 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
9493 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
9494 __attribute__((unused)) to ChEcK.
9495
9496 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9497
9498 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
9499 Fix inline assembler constraints.
9500 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
9501 Likewise.
9502
9503 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
9504 -fPIC.
9505
9506 2003-01-20 Segher Boessenkool <segher@koffie.nl>
9507
9508 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
9509 compute the cosine, not the sine, even if x > 0.8.
9510
9511 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9512
9513 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
9514 _nss_nis_setspent. Work around the different prototypes.
9515 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
9516 internal_nis_endrpcent.
9517 (internal_nis_endrpcent): Change return type to void. Change callers.
9518 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
9519 _nss_nis_setpwent. Work around the different prototypes.
9520 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
9521 of the function to...
9522 (internal_nis_endprotoent): ... here. New function.
9523 (internal_nis_setprotoent): Use internal_nis_endprotoent.
9524 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
9525 _nss_nis_setnetent. Work around the different prototypes.
9526 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
9527 of the function to...
9528 (internal_nis_endnetgrent): ... here. New function.
9529 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
9530
9531 2003-01-19 Jim Meyering <jim@meyering.net>
9532
9533 * time/strftime.c: (widen): Merge nearly-identical definitions.
9534 (nl_get_alt_digit) [! defined my_strftime]: Define.
9535 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
9536 _nl_get_alt_digit and _nl_get_walt_digit.
9537
9538 2003-01-19 Ulrich Drepper <drepper@redhat.com>
9539
9540 * time/strftime.c (my_strftime): Handle very large width
9541 specifications for numeric values correctly. Improve checks for
9542 overflow.
9543 * time/Makefile (tests): Add tst-strftime.
9544 * time/tst-strftime.c: New file.
9545
9546 2003-01-18 Ulrich Drepper <drepper@redhat.com>
9547
9548 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
9549 _nss_nis_sethostent. Work around the different prototypes.
9550 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
9551 _nss_nis_setgrent. Work around the different prototypes.
9552 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
9553 function. Split out from _nss_nis_endetherent.
9554 (internal_nis_setetherent): Use internal_nis_endetherent instead of
9555 duplicating the code.
9556 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
9557 of _nss_nis_setaliasent.
9558 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
9559 internal_nis_endservent code, don't duplicate it.
9560
9561 * inet/rexec.c (rexec_af): Protect socket operations with
9562 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
9563 * inet/rcmd.c (rcmd_af): Likewise.
9564
9565 2003-01-17 Roland McGrath <roland@redhat.com>
9566
9567 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
9568 Add test of value 0.80190127184058835.
9569
9570 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
9571
9572 2003-01-17 Richard Henderson <rth@redhat.com>
9573
9574 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
9575 relocs for class PLT.
9576 * sysdeps/alpha/libc-tls.c: New file.
9577 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
9578 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
9579
9580 2003-01-17 Jakub Jelinek <jakub@redhat.com>
9581
9582 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
9583 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
9584 on _dl_static_lock.
9585
9586 2003-01-17 Andreas Jaeger <aj@suse.de>
9587
9588 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
9589
9590 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
9591
9592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
9593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
9594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
9595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
9596 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
9597 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
9598 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
9599 is 2.4.21.
9600
9601 2003-01-16 Ulrich Drepper <drepper@redhat.com>
9602
9603 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
9604 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
9605 buffers.
9606
9607 * sysdeps/generic/sysconf.c: Unconditionally implement
9608 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
9609 * sysdeps/posix/sysconf.c: Likewise.
9610
9611 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9612
9613 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
9614 set *err to the returned error, not to REG_ESPACE unconditionally.
9615 (build_word_op): Likewise.
9616 * posix/Makefile (tests): Add bug-regex16.
9617 * posix/bug-regex16.c: New test.
9618
9619 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9620
9621 * elf/dl-load.c (_dl_map_object_from_fd): Use
9622 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
9623 been already initialized.
9624
9625 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
9626
9627 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
9628
9629 2003-01-16 Jakub Jelinek <jakub@redhat.com>
9630
9631 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
9632 allocated too. Reported by Al Viro <aviro@redhat.com>.
9633
9634 2003-01-16 Roland McGrath <roland@redhat.com>
9635
9636 Tweak merged .abilist file format to merge duplicate symbols in
9637 different sets into multi-version stanzas with new "| SET regexp..."
9638 header continuation lines.
9639 * scripts/merge-abilist.awk: Rewritten for new format.
9640 * scripts/extract-abilist.awk: Likewise.
9641
9642 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9643
9644 * nscd/connections.c (nscd_run): Remove bogus return which isn't
9645 necessary with gcc 3.2+.
9646 (nscd_init): Don't use error() to print message, use dbg_log.
9647
9648 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
9649 expected size into state.
9650 (UNPACK_BYTES): Do the reverse.
9651 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
9652 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
9653 Reported by Al Viro <aviro@redhat.com>.
9654
9655 * stdio-common/Makefile (tests): Add bug14.
9656 * stdio-common/bug14.c: New file.
9657
9658 * stdio-common/vfscanf.c: When recognizing multibyte characters in
9659 string reset the byte counter after mbrtowc reported it is not a
9660 partial character. Reported by Al Viro <aviro@redhat.com>.
9661
9662 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
9663
9664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
9665 sysdep-cancel.h, not sysdep.h.
9666
9667 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9668
9669 * nscd/connections.c (nscd_run): Protect accept call with
9670 TEMP_FAILURE_RETRY.
9671
9672 2003-01-15 Andreas Schwab <schwab@suse.de>
9673
9674 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
9675 (common-generated): Add s-proto-bp.d.
9676 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
9677 of bp thunks.
9678 * sysdeps/unix/s-proto-bp.S: New file.
9679 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
9680 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
9681 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
9682
9683 2003-01-15 Roland McGrath <roland@redhat.com>
9684
9685 * Makerules: Use -include for tls.make, suppresses warning.
9686 Move gen-as-const-headers rules up so before-compile is set in time.
9687 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
9688
9689 2003-01-15 Ulrich Drepper <drepper@redhat.com>
9690
9691 * nscd/nscd.c (main): Make code to close all file descriptors
9692 faster and more robust.
9693
9694 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
9695 request with one writev call. Protect all read calls with
9696 TEMP_FAILURE_RETRY.
9697 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9698 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9699
9700 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
9701 Protect writev calls with TEMP_FAILURE_RETRY.
9702 * nscd/grpcache.c: Likewise.
9703 * nscd/pwdcache.c: Likewise.
9704
9705 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
9706 IPv6 address in debug output.
9707
9708 2003-01-14 Roland McGrath <roland@redhat.com>
9709
9710 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
9711 $(objpfx) directories, and get rid of vpath directives. The previous
9712 arrangement resulted in files being written to the source directories
9713 when run in a clean build. Find all .abilist files in $(..)abilist/.
9714 (update-abi-%): Likewise.
9715 (generated): Don't add .symlist files, they'll be intermediates.
9716
9717 * sysdeps/generic/init-first.c: Add a comment.
9718
9719 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
9720
9721 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
9722 #includes and expressions.
9723
9724 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
9725 config list when it already contains cpu-.*-os.* without / part.
9726
9727 * Makerules (sed-remove-dotdot): New variable.
9728 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
9729 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
9730 (check-abi-config): New variable, append /tls or /notls to the tuple.
9731 (check-abi-%): Use that for -v config value.
9732 Find .abilist files in abilist/libfoo.abilist, not in subdir.
9733 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
9734
9735 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9736
9737 * manual/install.texi: Correct description of header preparation for
9738 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
9739
9740 2003-01-14 Guido Guenther <agx@sigxcpu.org>
9741
9742 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
9743 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9744 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
9745
9746 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9747
9748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9749 (INTERNAL_SYSCALL): Make use of ERR parameter.
9750 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9751 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9752 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
9754
9755 2003-01-14 Ulrich Drepper <drepper@redhat.com>
9756
9757 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
9758 == IPPROTO_TCP.
9759 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
9760
9761 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
9762 Fix entry for bit 31.
9763
9764 * iconvdata/Makefile: Add rules to build IBM866NAV.
9765 * iconvdata/ibm866nav.c: New file.
9766 * iconvdata/tst-tables.sh: Add IBM866NAV.
9767 * iconvdata/gconv-modules: Add entries for IBM866NAV.
9768
9769 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9770
9771 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
9772 to test void* parameters.
9773
9774 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
9775 source pointer before dereferencing.
9776 (__STRING_SMALLL_GET32): Likewise.
9777 (__memset_gc): Add missing parenthesis around macro arguments.
9778 Patch by Denis Zaitsev <zzz@cd-club.ru>.
9779
9780 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
9781 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
9782
9783 2003-01-14 Jakub Jelinek <jakub@redhat.com>
9784
9785 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
9786 defining.
9787
9788 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9789
9790 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
9791 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
9792 here.
9793 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
9794
9795 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
9796
9797 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
9798 from here...
9799 (PSEUDO): ... to here.
9800 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
9801 from here...
9802 (PSEUDO): ... to here.
9803
9804 2003-01-13 Ulrich Drepper <drepper@redhat.com>
9805
9806 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
9807 dirent64 instead of struct dirent for dirent. Call readdir64
9808 instead of readdir.
9809
9810 * locale/programs/locfile.c (siblings_uncached): Use struct
9811 dirent64 instead of struct dirent for other_dentry. Call
9812 readdir64 instead of readdir.
9813
9814 * elf/ldconfig.c (direntry): Change type to struct dirent64.
9815 (search_dir): Use readdir64 instead of readdir.
9816 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
9817
9818 2003-01-12 Roland McGrath <roland@redhat.com>
9819
9820 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
9821 not strtol. The former is usable in ld.so, the latter not.
9822
9823 * include/fcntl.h: Declare __libc_creat.
9824
9825 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
9826 libhurduser-link.so-no-z-defs): New variables.
9827
9828 * malloc/malloc.c: Revert last change.
9829 * malloc/malloc.h (_int_*): Move these decls to ...
9830 * include/malloc.h: ... here. Add attribute_hidden.
9831 (_int_valloc): Declare it too.
9832
9833 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9834
9835 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
9836 search for removed searchlist. Reported by Roland McGrath.
9837
9838 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
9839 given as start file.
9840
9841 * io/ftw.c (ftw_startup): Use correct name in check for symlink
9842 without existing target. Patch by Jim Meyering.
9843
9844 * Makerules (build-shlib-helper): Don't use -z defs linker option
9845 if no-z-defs is defined either.
9846
9847 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9848
9849 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
9850 file.
9851
9852 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
9853
9854 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
9855 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
9856
9857 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9858
9859 * io/ftwtest-sh: Add test case for relative path with /. at the end.
9860
9861 2003-01-12 Jim Meyering <jim@meyering.net>
9862
9863 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
9864 use the basename if we've already chdir'd into its parent directory.
9865
9866 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9867
9868 * io/ftw.c (process_entry): Use relative path when using chdir()
9869 to change directory after call to ftw_dir.
9870 * io/ftwtest-sh: Add test for relative path argument to nftw()
9871 with FTW_CHDIR option.
9872
9873 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9874
9875 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
9876 Define for powerpc.
9877 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
9878 into account.
9879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9880 (INTERNAL_SYSCALL): Make use of ERR parameter.
9881 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
9882 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
9883 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
9884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
9885
9886 2003-01-09 Richard Henderson <rth@redhat.com>
9887
9888 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
9889 DTPREL64 and TPREL64 without loadbase applied.
9890
9891 2003-01-09 Richard Henderson <rth@redhat.com>
9892
9893 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
9894 for NOT_IN_libc.
9895
9896 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
9897 * sysdeps/unix/alpha/sysdep.h: ... here.
9898 (PSEUDO_LOADGP): Remove.
9899 (PSEUDO_PROLOGUE): Load GP in non-pic case.
9900 (SYSCALL_ERROR_LABEL): New.
9901 (PSEUDO): Use it in error branch.
9902 (PSEUDO_END): Add $syscall_error label.
9903
9904 2003-01-12 Andreas Jaeger <aj@suse.de>
9905
9906 * math/bits/mathcalls.h: Round is a const function.
9907
9908 2003-01-11 Jim Meyering <jim@meyering.net>
9909
9910 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
9911 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
9912 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
9913 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
9914 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
9915 [!_LIBC] (internal_function, dirent64, MAX): Define.
9916 (__set_errno): Define if not already defined.
9917 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
9918 the basename, not the entire file name.
9919 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
9920 the basename, not the entire file name.
9921
9922 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9923
9924 * string/tester.c (test_strcpy): Disable last added strcpy until
9925 it is fixed.
9926
9927 2003-01-11 Philip Blundell <philb@gnu.org>
9928
9929 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
9930
9931 2003-01-11 Andreas Schwab <schwab@suse.de>
9932
9933 * Makerules: Add vpath for %.dynsym and %.so so that the
9934 implicit rule chaining for check-abi works.
9935
9936 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9937
9938 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
9939 Add non-PIC case.
9940
9941 2003-01-11 Jakub Jelinek <jakub@redhat.com>
9942
9943 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
9944 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
9945 gp is used early.
9946 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
9947 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
9948 Ensure libc.so in DT_NEEDED.
9949 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
9950 CHECK_STATIC_TLS before l_tls_offset use.
9951 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
9952 Likewise.
9953 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9954 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
9955 Allocate TLS_PRE_TCB_SIZE bytes below result.
9956 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
9957 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
9958 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
9959 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
9960 bytes below result and add tcb_offset to memsz.
9961 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
9962 * sysdeps/ia64/dl-machine.h: Include tls.h.
9963 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
9964 too.
9965 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
9966 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
9967 * sysdeps/ia64/libc-tls.c: New file.
9968
9969 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
9970
9971 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
9972 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
9973 Fix type. Move definition out of #if.
9974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
9975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
9976 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
9977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
9978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
9979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
9980 support.
9981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
9982 ftruncate64, pread64, pwrite64, truncate64 entries.
9983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9984 (INLINE_SYSCALL): New version that supports function call like
9985 syscalls. Add __builtin_expect.
9986 (LOADARGS_n): Add argument size safety checks.
9987 (INTERNAL_SYSCALL): New Macro.
9988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
9989 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
9990 redefinition of elf_fpreg_t and elf_fpregset_t.
9991
9992 2003-01-12 Ulrich Drepper <drepper@redhat.com>
9993
9994 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
9995 simplify test for unloading. If loader of a DSO is unloaded do not
9996 use its scope anymore. Fall back to own scope and adjust opencounts.
9997 Fix several comments.
9998 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
9999 the l_searchlist, not only for l_initfini.
10000
10001 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
10002 dependencies if objects cannot be removed. Remove object with the
10003 definition as not unloadable if necessary.
10004
10005 * elf/reldep6.c: Create relocation dependency before closing the first
10006 module.
10007
10008 2003-01-10 Guido Günther <agx@sigxcpu.org>
10009
10010 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
10011 * sysdeps/unix/mips/brk.S: Likewise.
10012 * sysdeps/unix/mips/pipe.S: Likewise.
10013
10014 2003-01-10 Andreas Schwab <schwab@suse.de>
10015
10016 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
10017
10018 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
10019 are known to have the vfork syscall.
10020
10021 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
10022
10023 * sysdeps/unix/sysv/linux/kernel-features.h
10024 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
10025 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
10026 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
10027
10028 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10029
10030 * elf/Makefile: Add rules to build and run reldep9 test.
10031 * elf/reldep9.c: New file.
10032 * elf/reldep9mod1.c: New file.
10033 * elf/reldep9mod2.c: New file.
10034 * elf/reldep9mod3.c: New file.
10035
10036 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10037
10038 * elf/Makefile: Add rules to build and run nodelete2 test.
10039 * elf/nodelete2.c: New file.
10040 * elf/nodel2mod1.c: New file.
10041 * elf/nodel2mod2.c: New file.
10042 * elf/nodel2mod3.c: New file.
10043
10044 2003-01-09 Jakub Jelinek <jakub@redhat.com>
10045
10046 * posix/test-vfork.c (noop): Add __attribute_noinline__.
10047 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
10048 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
10049 defining it.
10050 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
10051 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
10052 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
10053 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
10054 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
10055
10056 2003-01-09 Andreas Schwab <schwab@suse.de>
10057
10058 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
10059
10060 2003-01-08 Ulrich Drepper <drepper@redhat.com>
10061
10062 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
10063 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10064 argument.
10065 (INTERNAL_SYSCALL_DECL): Define.
10066
10067 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10068
10069 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
10070 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
10071 argument.
10072 (INTERNAL_SYSCALL_DECL): Define.
10073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10074 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10075 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
10076 (INLINE_SYSCALL): Adjust.
10077 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10078 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10079 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10080 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10081 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
10082 add err argument to INTERNAL_SYSCALL* macros.
10083 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
10084 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
10085 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
10086 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
10087 Likewise.
10088 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
10089 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
10090 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
10091
10092 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10093
10094 Unify symbols in user namespace exported by libc.so and libc.a.
10095 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
10096 argp_fmtstream_free, and argp_fmtstream_printf.
10097 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
10098 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
10099 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
10100 argp_fmtstream_point.
10101 * gmon/gmon.c: Don't define write_profiling.
10102 * libio/genops.c: Don't define _cleanup.
10103
10104 * intl/explodename.c (_nl_find_language.c): Mark as static.
10105 * intl/loadinfo.h: Remove _nl_find_language prototype.
10106
10107 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
10108 * libio/libioP.h: Remove declaration.
10109
10110 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
10111 * libio/libioP.h: Remove declaration.
10112
10113 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
10114 * sysdeps/generic/framestate.c: Define STATIC before including
10115 unwind-dw2.c.
10116
10117 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
10118
10119 2003-01-06 Philip Blundell <philb@gnu.org>
10120
10121 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
10122 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
10123
10124 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
10125 directive.
10126 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
10127 (SYSCALL_ERROR): New.
10128 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
10129 handling code.
10130 (INTERNAL_SYSCALL): Define.
10131 (INLINE_SYSCALL): Use it.
10132 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10133 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
10134 SYSCALL_ERROR in place of __syscall_error.
10135
10136 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10137
10138 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10139 __bswap_32, __bswap_64): Put x into temporary variable
10140 to avoid warnings.
10141 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10142 (inline) functions.
10143 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
10144 __bswap_32, __bswap_64): Put x into temporary variable
10145 to avoid warnings.
10146 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
10147 (inline) functions.
10148 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
10149 Likewise.
10150
10151 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10152
10153 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
10154 alias.
10155
10156 2003-01-07 Jakub Jelinek <jakub@redhat.com>
10157
10158 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
10159 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
10160
10161 2003-01-07 Ulrich Drepper <drepper@redhat.com>
10162
10163 * math/libm-test.inc (significand_test): New function.
10164 (main): Call it.
10165
10166 2003-01-06 Roland McGrath <roland@redhat.com>
10167
10168 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
10169 arguments.
10170 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
10171 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
10172 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
10173
10174 * string/tester.c (test_strcpy): Add test with `void *' arguments.
10175
10176 2003-01-06 Ulrich Drepper <drepper@redhat.com>
10177
10178 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
10179 return significand and not the exponent.
10180 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10181
10182 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
10183 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
10184
10185 * malloc/malloc.c: Mark all _int_* functions as static.
10186
10187 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10188
10189 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
10190 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
10191 handling.
10192 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
10193
10194 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10195
10196 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
10197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
10198 support.
10199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
10200 ftruncate64, truncate64, pread64 and pwrite64 entries.
10201 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10202 (INLINE_SYSCALL): Add __builtin_expect.
10203 (LOADARGS_n): Add argument size safety checks.
10204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
10205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
10206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
10207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
10208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
10209 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
10210
10211 2003-01-06 Jakub Jelinek <jakub@redhat.com>
10212
10213 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
10214 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
10215 (LIBC_CANCEL_HANDLED): Add.
10216
10217 * sysdeps/unix/sysv/linux/alpha/sysdep.h
10218 (inline_syscall_r0_constraint): Rename to...
10219 (inline_syscall_r0_out_constraint): ... this. Add =.
10220 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
10221
10222 2003-01-06 Andreas Schwab <schwab@suse.de>
10223
10224 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
10225 sure this is always inlined.
10226 (elf_machine_rela): Likewise.
10227
10228 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
10229
10230 2003-01-04 Roland McGrath <roland@redhat.com>
10231
10232 * Makeconfig (+mkdep): Add -MP flag.
10233 Suggested by Art Haas <ahaas@airmail.net>.
10234
10235 2003-01-05 Andreas Schwab <schwab@suse.de>
10236
10237 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
10238
10239 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10240
10241 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
10242 SYSCALL_ERROR_HANDLER.
10243 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
10244 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
10245 Add support for cancellation handling.
10246 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
10247 SYSCALL_ERROR_HANDLER.
10248 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
10249 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
10250 Add support for cancellation handling.
10251 (SYSCALL_ERROR_HANDLER): Define PIC variants.
10252
10253 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10254
10255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
10256 __syscall_pread64 and __syscall_pwrite64 cancelable.
10257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10258 (INTERNAL_SYSCALL): New macro.
10259 (LOADARGS_0, LOADARGS_1): Fix.
10260
10261 2003-01-05 Ulrich Drepper <drepper@redhat.com>
10262
10263 * Makerules (build-shlip-helper): Unless told otherwise, add
10264 -Wl,-z,defs to linker command line.
10265 * rt/Makefile (librt.so): Link with ld.so.
10266 * dlfcn/Makefile (libdl.so): Likewise.
10267
10268 2003-01-05 Jakub Jelinek <jakub@redhat.com>
10269
10270 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
10271 cancellation handling.
10272 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
10273 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
10274
10275 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10276
10277 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
10278 order of parameters passed to kill.
10279
10280 2003-01-04 Andreas Schwab <schwab@suse.de>
10281
10282 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
10283
10284 2003-01-03 Paul Eggert <eggert@twinsun.com>
10285
10286 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
10287 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
10288 when compiling Bison 1.875's `bitset bset = obstack_alloc
10289 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
10290
10291 2003-01-04 Ulrich Drepper <drepper@redhat.com>
10292
10293 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
10294 unnecessary code.
10295 Correct reference counter in case SIGQUIT handler installation failed.
10296
10297 2003-01-03 Ulrich Drepper <drepper@redhat.com>
10298
10299 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
10300 Define using _Pragma(weak ...).
10301
10302 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
10303
10304 * resolv/res_libc.c: Provide declaration for __res_init_weak and
10305 reorder declarations.
10306
10307 2003-01-03 Art Haas <ahaas@airmail.net>
10308
10309 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
10310 initializer syntax to C99.
10311 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
10312 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
10313 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
10314 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
10315 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
10316 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
10317 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
10318 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
10319 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
10320 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
10321 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
10322 * localedata/tests-mbwc/dat_mblen.c: Likewise.
10323 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
10324 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
10325 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
10326 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
10327 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
10328 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
10329 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
10330 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
10331 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
10332 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
10333 * localedata/tests-mbwc/dat_towlower.c: Likewise.
10334 * localedata/tests-mbwc/dat_towupper.c: Likewise.
10335 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
10336 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
10337 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
10338 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
10339 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
10340 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
10341 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
10342 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
10343 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
10344 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
10345 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
10346 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
10347 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
10348 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
10349 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
10350 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
10351 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
10352 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
10353 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
10354 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
10355 * localedata/tests-mbwc/dat_wctob.c: Likewise.
10356 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
10357 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
10358 * localedata/tests-mbwc/dat_wctype.c: Likewise.
10359 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
10360
10361 2003-01-03 Richard Henderson <rth@redhat.com>
10362
10363 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
10364 (inline_syscall_r0_constraint): New.
10365 (inline_syscall[0-6]): Use them.
10366
10367 2003-01-03 Jakub Jelinek <jakub@redhat.com>
10368
10369 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
10370 Add rtld_hidden_proto.
10371 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
10372 (_dl_allocate_tls): Likewise. Remove INTDEF.
10373
10374 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10375
10376 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
10377 Morita <toshiyasu.morita@hsa.hitachi.com>.
10378 * sysdeps/sh/memcpy.S: Likewise.
10379
10380 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10381
10382 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
10383 any, but unify the test.
10384
10385 2003-01-02 Jakub Jelinek <jakub@redhat.com>
10386
10387 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
10388 sigaction): Protect weak_alias and libc_hidden_weak with
10389 #ifndef LIBC_SIGACTION.
10390 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
10391 sigaction): Likewise.
10392 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
10393 sigaction): Likewise.
10394 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
10395 sigaction): Likewise.
10396 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
10397 sigaction): Likewise.
10398 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
10399 sigaction): Likewise.
10400 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
10401 sigaction): Likewise.
10402 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
10403 sigaction): Likewise. Remove SIGCANCEL handling here.
10404 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
10405 Likewise.
10406
10407 2003-01-02 Art Haas <ahaas@airmail.net>
10408
10409 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
10410
10411 2003-01-02 Ulrich Drepper <drepper@redhat.com>
10412
10413 * posix/getconf.c: Update copyright year.
10414 * nss/getent.c: Likewise.
10415 * nscd/nscd_nischeck.c: Likewise.
10416 * iconv/iconvconfig.c: Likewise.
10417 * iconv/iconv_prog.c: Likewise.
10418 * elf/ldconfig.c: Likewise.
10419 * catgets/gencat.c: Likewise.
10420 * csu/version.c: Likewise.
10421 * elf/ldd.bash.in: Likewise.
10422 * elf/sprof.c (print_version): Likewise.
10423 * locale/programs/locale.c: Likewise.
10424 * locale/programs/localedef.c: Likewise.
10425 * nscd/nscd.c (print_version): Likewise.
10426 * debug/xtrace.sh: Likewise.
10427 * malloc/memusage.sh: Likewise.
10428 * malloc/mtrace.pl: Likewise.
10429
10430 2003-01-01 Jakub Jelinek <jakub@redhat.com>
10431
10432 * io/sys/stat.h: Include time.h with __need_timespec even if
10433 __USE_MISC is defined but __USE_XOPEN is not.
10434
10435 2003-01-01 Andreas Jaeger <aj@suse.de>
10436
10437 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
10438 type to avoid strict aliasing problem.
10439 (_nss_dns_gethostbyname2_r): Likewise.
10440 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
10441 (_nss_dns_getnetbyname_r): Likewise.
10442 * resolv/gethnamaddr.c (_gethtent): Likewise.
10443 (gethostbyname2): Likewise.
10444
10445 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10446
10447 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
10448 to avoid using the exported symbols. Define aliases with the
10449 original names separately.
10450
10451 * include/time.h: Add libc_hidden_proto for __strftime_l.
10452 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
10453 * time/strftime.c: Always use libc_hidden_def if _LIBC.
10454
10455 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
10456 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
10457
10458 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
10459 tr_break.
10460
10461 * csu/Makefile (routines): Add dso_handle.
10462 * csu/dso_handle.c: New file.
10463
10464 2002-12-31 Roland McGrath <roland@redhat.com>
10465
10466 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
10467 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
10468 (S-CPPFLAGS): Add -DASSEMBLER here instead.
10469 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
10470
10471 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10472
10473 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
10474 is available.
10475
10476 2002-12-31 Andreas Jaeger <aj@suse.de>
10477
10478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
10479 with Linux kernel.
10480 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10481 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
10482 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
10483
10484 * sysdeps/unix/sysv/linux/kernel_stat.h
10485 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
10486
10487 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
10488 __unused[1-3] since they're needed by some platforms. Handle
10489 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
10490
10491 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
10492 for structs stat and stat64.
10493 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10494 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
10495 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10496 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10497
10498 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
10499
10500 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
10501 nsec resolution changes.
10502 (xstat64_conv): Likewise.
10503 (xstat32_conv): Likewise.
10504
10505 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
10506 struct kernel_stat.
10507
10508 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
10509 structs stat and stat64.
10510
10511 * time/time.h (__timespec_defined): Define for __USE_MISC.
10512
10513 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10514
10515 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
10516 and __libc_current_sigrtmax.
10517
10518 2002-12-31 Jakub Jelinek <jakub@redhat.com>
10519
10520 * include/errno.h (__errno_location): Add prototype.
10521 Use libc_hidden_proto unconditionally.
10522 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
10523 unconditionally.
10524 * include/resolv.h (__res_state): Likewise.
10525
10526 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
10527 * include/sys/socket.h (accept): Add libc_hidden_proto.
10528 * include/errno.h (__errno_location): Likewise.
10529 * include/netdb.h (__h_errno_location): Likewise.
10530 * include/resolv.h (__res_state): Likewise.
10531 * include/unistd.h (__lseek): Likewise.
10532 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
10533 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
10534 * sysdeps/generic/res-state.c (__res_state): Likewise.
10535 * sysdeps/generic/accept.c (accept): Likewise.
10536 * sysdeps/generic/lseek.c (__lseek): Likewise.
10537 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
10538 __libc_current_sigrtmax): Likewise.
10539 * sysdeps/mach/hurd/accept.c (accept): Likewise.
10540 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
10541 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
10542 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
10543 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
10544 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
10545 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
10546 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
10547 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
10548 alias to llseek.
10549 (__GI_accept): New alias to accept.
10550 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
10551 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
10552 New alias to llseek.
10553 (__GI_accept): New alias to accept.
10554 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
10555 Likewise.
10556 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
10557 Likewise.
10558 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
10559
10560 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
10561 strong_alias (name, __GI_name).
10562 * sysdeps/arm/bsd-_setjmp.S : Likewise.
10563 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
10564 * sysdeps/i386/bsd-_setjmp.S : Likewise.
10565 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
10566 * sysdeps/mips/bsd-_setjmp.S : Likewise.
10567 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
10568 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
10569 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
10570 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
10571 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
10572 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
10573 * sysdeps/sh/bsd-_setjmp.S : Likewise.
10574 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
10575 * sysdeps/unix/arm/fork.S : Likewise.
10576 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
10577 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
10578 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
10579 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
10580 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
10581 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
10582 * sysdeps/unix/i386/fork.S : Likewise.
10583 * sysdeps/unix/mips/fork.S : Likewise.
10584 * sysdeps/unix/sparc/fork.S : Likewise.
10585 * sysdeps/unix/sparc/vfork.S : Likewise.
10586 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
10587 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
10588 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
10589 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
10590 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
10591 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
10592 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
10593 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
10594 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
10595 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
10596 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
10597 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
10598 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
10599 * sysdeps/unix/fork.S : Likewise.
10600 * sysdeps/vax/bsd-_setjmp.S : Likewise.
10601 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
10602
10603 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
10604 inclusion.
10605
10606 2002-12-31 Ulrich Drepper <drepper@redhat.com>
10607
10608 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
10609 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
10610 * sysdeps/mach/hurd/fork.c: Likewise.
10611 * sysdeps/unix/sysv/aix/fork.c: Likewise.
10612 * sysdeps/unix/fork.S: Add __GI___fork alias.
10613 * sysdeps/unix/arm/fork.S: Likewise.
10614 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
10615 * sysdeps/unix/i386/fork.S: Likewise.
10616 * sysdeps/unix/mips/fork.S: Likewise.
10617 * sysdeps/unix/sparc/fork.S: Likewise.
10618 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
10619 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
10620 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10621 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
10622 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
10623 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
10624 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
10625 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
10626 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
10627 * sysdeps/unix/sparc/vfork.S: Likewise.
10628 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
10629 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
10630 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10631 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
10632 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
10633 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
10634 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
10635 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10636
10637 * include/time.h: Add libc_hidden_proto for __nanosleep.
10638 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
10639 * sysdeps/mach/nanosleep.c: Likewise.
10640 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
10641 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
10642
10643 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
10644 _IO_list_unlock, and _IO_list_resetlock.
10645 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
10646 _IO_list_unlock, and _IO_list_resetlock.
10647
10648 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
10649 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10650 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
10651 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
10652
10653 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
10654 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
10655 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
10656 __GI___longjmp alias.
10657
10658 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
10659 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
10660 * sysdeps/arm/bsd-_setjmp.S: Likewise.
10661 * sysdeps/generic/bsd-_setjmp.c: Likewise.
10662 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
10663 * sysdeps/i386/bsd-_setjmp.S: Likewise.
10664 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
10665 * sysdeps/mips/bsd-_setjmp.S: Likewise.
10666 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10667 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
10668 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
10669 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
10670 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
10671 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
10672 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
10673 * sysdeps/sh/bsd-_setjmp.S: Likewise.
10674 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
10675 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
10676 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
10677 * sysdeps/vax/bsd-_setjmp.S: Likewise.
10678 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
10679
10680 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10681
10682 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
10683
10684 2002-12-30 Roland McGrath <roland@redhat.com>
10685
10686 * Rules (generated): Target removed.
10687 * mach/Makefile (generated): Define it here instead.
10688
10689 * math/Makefile (generated): Add m_*l and m_*f variants too.
10690
10691 2002-12-30 Ulrich Drepper <drepper@redhat.com>
10692
10693 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
10694 the to-be-deleted objects right away instead of later separately.
10695 The latter fails because the scope data structures of the DSO
10696 might already be gone.
10697
10698 * elf/Makefile: Add rules to build and run reldep8 test.
10699 * elf/reldep8.c: New file.
10700 * elf/reldep8mod1.c: New file.
10701 * elf/reldep8mod2.c: New file.
10702 * elf/reldep8mod3.c: New file.
10703 Contributed by Jakub Jelinek.
10704
10705 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
10706
10707 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
10708 checking of return value ENOSYS from getdents64.
10709
10710 2002-12-28 Andreas Schwab <schwab@suse.de>
10711
10712 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
10713 ($(common-objpfx)s-%.d): Generalized from
10714 $(common-objpfx)s-proto.d rule.
10715 (common-generated): Add s-proto-cancel.d.
10716 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
10717 cancellable syscalls.
10718 * sysdeps/unix/s-proto-cancel.S: New file.
10719
10720 2002-12-29 Roland McGrath <roland@redhat.com>
10721
10722 * resolv/res_libc.c: Move _res defn magic after res_init defn
10723 so _res macro is in effect for that code.
10724
10725 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
10726 pattern for prepending $(..) so it doesn't affect $(foo).
10727
10728 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
10729
10730 2002-12-29 Jakub Jelinek <jakub@redhat.com>
10731
10732 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
10733 in hwcap.
10734
10735 2002-12-28 Ulrich Drepper <drepper@redhat.com>
10736
10737 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
10738
10739 2002-12-28 Andreas Jaeger <aj@suse.de>
10740
10741 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
10742 avoid warning.
10743 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
10744
10745 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10746
10747 * inet/herrno.c (__h_errno_location): Remove.
10748 * inet/Makefile (routines): Add herrno-loc.
10749 * resolv/res_libc.c (__res_state): Remove.
10750 * resolv/Makefile (routines): Add res-state.
10751 * sysdeps/generic/herrno-loc.c: New file.
10752 * sysdeps/generic/res-state.c: New file.
10753
10754 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10755
10756 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
10757 Only define if USE_DL_SYSINFO is defined.
10758
10759 2002-12-22 Jakub Jelinek <jakub@redhat.com>
10760
10761 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
10762 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
10763 Define. Patch by Richard Henderson and Jes Sorensen.
10764 (PSEUDO): Remove unnecessary ;;.
10765 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
10766 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
10767 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
10768 if not initializing thread pointer.
10769 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
10770 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
10771 make it weak also if NONTLS_INIT_TP.
10772 * sysdeps/unix/common/pause.c: Handle cancellation.
10773 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
10774 (LOADSYSCALL): Remove.
10775 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10776 (SYSCALL_ERROR_HANDLER): Use it.
10777 (PSEUDO): Don't jump around error handler.
10778 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
10779 jump around error handler.
10780 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
10781 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
10782 to __syscall_error_handler on failure.
10783 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
10784 (LOADSYSCALL): Remove.
10785 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
10786 (SYSCALL_ERROR_HANDLER): Use it.
10787 (PSEUDO): Don't jump around error handler.
10788 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
10789 jump around error handler.
10790 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
10791 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
10792 to __syscall_error_handler on failure.
10793
10794 2002-12-27 Roland McGrath <roland@redhat.com>
10795
10796 * scripts/gen-as-const.awk: New file.
10797 * Makefile (distribute): Add it.
10798 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
10799 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
10800 to the list.
10801 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
10802
10803 2002-12-27 Andreas Schwab <schwab@suse.de>
10804
10805 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
10806
10807 2002-12-27 Jakub Jelinek <jakub@redhat.com>
10808
10809 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
10810 _environ is NULL.
10811
10812 2002-12-27 Andreas Schwab <schwab@suse.de>
10813
10814 * Makerules ($(common-objpfx)%.make): Filter through
10815 $(sed-remove-objpfx).
10816
10817 2002-12-23 Roland McGrath <roland@redhat.com>
10818
10819 * scripts/abilist.awk: Produce a more compact format, divided into
10820 stanzas for each version set, the set name listed only once.
10821 * scripts/extract-abilist.awk: New file.
10822 * scripts/merge-abilist.awk: New file.
10823 * Makerules (check-abi-%, update-abi-%): New pattern rules.
10824 (update-abi, check-abi): New targets.
10825 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
10826
10827 2002-12-19 Roland McGrath <roland@redhat.com>
10828
10829 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
10830
10831 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
10832 INTERNAL_SYSCALL.
10833
10834 2002-12-21 Andreas Schwab <schwab@suse.de>
10835
10836 * elf/check-textrel.c (handle_file): Swap p_type.
10837
10838 2002-12-21 Andreas Schwab <schwab@suse.de>
10839
10840 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
10841 (INLINE_SYSCALL): Use it.
10842 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
10843 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
10844
10845 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
10846 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
10847
10848 2002-12-20 Art Haas <ahaas@airmail.net>
10849
10850 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
10851 syntax to C99.
10852
10853 2002-12-21 Philip Blundell <philb@gnu.org>
10854
10855 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
10856 top as seventh arg to __libc_start_main.
10857 Reported by paulnash@wildseed.com.
10858
10859 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
10860
10861 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
10862 compatibility cruft when new enough kernel is assumed.
10863
10864 2002-12-20 Jakub Jelinek <jakub@redhat.com>
10865
10866 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
10867 instead of INLINE_SYSCALL.
10868
10869 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10870
10871 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
10872 typo.
10873
10874 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
10875 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
10876 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
10877 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
10878 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
10879 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10880 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
10881 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10882 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
10883 Patch by William Lee Irwin <wli@holomorphy.com>.
10884
10885 2002-12-20 Andreas Schwab <schwab@suse.de>
10886
10887 * locale/programs/ld-measurement.c (measurement_output): Fix
10888 index calculation.
10889
10890 2002-12-20 Ulrich Drepper <drepper@redhat.com>
10891
10892 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
10893 Redefine _IO_flockifle and _IO_funlockfile as inlines.
10894
10895 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
10896 builds add "tls" in the search path.
10897 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
10898 (path_hwcap): Recognize "tls".
10899
10900 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10901
10902 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
10903 __waitpid instead of waitpid.
10904
10905 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
10906 int $0x80.
10907 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
10908 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
10909 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
10910
10911 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
10912 information for system calls.
10913
10914 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
10915 for ld.so.
10916
10917 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
10918
10919 2002-12-19 Roland McGrath <roland@redhat.com>
10920
10921 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
10922 * iconvdata/ibm922.h: Likewise.
10923 * iconvdata/ibm930.h: Likewise.
10924 * iconvdata/ibm932.h: Likewise.
10925 * iconvdata/ibm933.h: Likewise.
10926 * iconvdata/ibm935.h: Likewise.
10927 * iconvdata/ibm937.h: Likewise.
10928 * iconvdata/ibm939.h: Likewise.
10929 * iconvdata/ibm943.h: Likewise.
10930 * iconvdata/isiri-3342.h: Likewise.
10931
10932 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10933
10934 * test-skeleton.c (main): Make sure correct value is seen as
10935 argv[0] after adjustment of argv, and argc.
10936
10937 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
10938 RTLD_CORRECT_DYNAMIC_WEAK is defined.
10939
10940 2002-12-19 Jakub Jelinek <jakub@redhat.com>
10941
10942 * nscd/connections.c (nscd_run): Shut up warning.
10943 * tst-ungetc.c (assert): Undefined before redefining.
10944
10945 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10946
10947 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
10948 is used.
10949
10950 2002-12-17 Art Haas <ahaas@airmail.net>
10951
10952 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
10953 * iconvdata/cp775.h: Likewise.
10954 * iconvdata/ibm1046.h: Likewise.
10955 * iconvdata/ibm1124.h: Likewise.
10956 * iconvdata/ibm1129.h: Likewise.
10957 * iconvdata/ibm1132.h: Likewise.
10958 * iconvdata/ibm1133.h: Likewise.
10959 * iconvdata/ibm1160.h: Likewise.
10960 * iconvdata/ibm1161.h: Likewise.
10961 * iconvdata/ibm1162.h: Likewise.
10962 * iconvdata/ibm1163.h: Likewise.
10963 * iconvdata/ibm1164.h: Likewise.
10964
10965 2002-12-19 Ulrich Drepper <drepper@redhat.com>
10966
10967 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
10968 __ASSUME_CLONE_THREAD_FLAGS is defined.
10969 * sysdeps/unix/sysv/linux/kernel-features.h
10970 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
10971
10972 2002-12-18 Ulrich Drepper <drepper@redhat.com>
10973
10974 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
10975 of asm.
10976 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10977
10978 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
10979 _dl_sysinfo.
10980 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10981 code.
10982 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
10983 _rtld_global.
10984 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
10985 code.
10986 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
10987 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
10988 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
10989 Add _dl_sysinfo.
10990
10991 2002-12-18 Jakub Jelinek <jakub@redhat.com>
10992
10993 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
10994 __libc_writev to...
10995 [libc: GLIBC_PRIVATE]: ...here.
10996 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
10997 __libc_msgsnd to...
10998 [libc: GLIBC_PRIVATE]: ...here.
10999
11000 2002-12-18 Ulrich Drepper <drepper@redhat.com>
11001
11002 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
11003 Use it instead of directly int $0x80.
11004 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
11005 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11006 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11007 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11008 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11009 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11010
11011 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11012
11013 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
11014
11015 * elf/elf.h (AT_SYSINFO): New define.
11016 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
11017 AT_SYSINFO.
11018
11019 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11020
11021 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
11022 Make cancelable.
11023 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
11024 Likewise.
11025 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
11026 Likewise.
11027 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
11028 Likewise.
11029 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
11030 Likewise.
11031 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
11032
11033 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
11034 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
11035 available, otherwise __libc_maybe_call.
11036 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
11037 cancellation handling.
11038 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
11039
11040 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
11041
11042 * posix/regcomp.c (free_workarea_compile): Free the new member
11043 ORG_INDICES.
11044 (analyze): Initialize ORG_INDICES.
11045 (duplicate_node_closure): Search for a existing node, which is
11046 duplicated from the node ORG_DEST and satisfies the constraint
11047 CONSTRAINT. And use it to avoid inifimite loop.
11048 (search_duplicated_node): New function.
11049 (duplicate_node): Store the index of the original node.
11050 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
11051 if needed.
11052 * posix/regex_internal.h (re_dfa_t): Add new members.
11053
11054 2002-12-17 Ulrich Drepper <drepper@redhat.com>
11055
11056 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
11057
11058 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11059
11060 * sysdeps/posix/system.c (do_system): Add support for installation
11061 of cancellation handlers.
11062 * sysdeps/unix/sysv/linux/i386/system.c: New file.
11063
11064 * stdlib/Makefile (tests): Add tst-system.
11065 * stdlib/tst-system.c: New file.
11066
11067 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
11068 CENABLE]: Don't lose content of %ebx.
11069
11070 2002-12-17 Jakub Jelinek <jakub@redhat.com>
11071
11072 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
11073 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
11074
11075 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11076
11077 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
11078 fails to return a function pointer don't use it.
11079
11080 2002-12-16 Art Haas <ahaas@airmail.net>
11081
11082 * io/ftw.c: Convert GCC extension initializer syntax to C99.
11083 * iconvdata/iso-ir-165.c: Likewise.
11084 * iconvdata/jis0208.c: Likewise.
11085 * iconvdata/jis0212.c: Likewise.
11086
11087 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11088
11089 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
11090 epoll_ctl, and epoll_wait.
11091 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
11092 epoll_create, epoll_ctl, and epoll_wait.
11093 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
11094 Davide Libenzi <davidel@xmailserver.org>.
11095 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
11096 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11097 Add sys/epoll.h.
11098
11099 2002-12-16 Art Haas <ahaas@airmail.net>
11100
11101 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
11102 syntax to C99
11103 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
11104 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
11105 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
11106
11107 2002-12-16 Ulrich Drepper <drepper@redhat.com>
11108
11109 * stdio-common/Makefile (routines): Remove lockfile. Add
11110 flockfile, ftrylockfile, and funlockfile.
11111 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
11112 * sysdeps/generic/flockfile.c: New file.
11113 * sysdeps/generic/ftrylockfile.c: New file.
11114 * sysdeps/generic/funlockfile.c: New file.
11115
11116 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11117
11118 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
11119 macros instead of doing the calls directly.
11120 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
11121 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
11122 targets.
11123
11124 2002-12-16 Jakub Jelinek <jakub@redhat.com>
11125
11126 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
11127 * sysdeps/ieee754/bits/nan.h: Likewise.
11128
11129 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
11130 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
11131
11132 2002-12-16 Roland McGrath <roland@redhat.com>
11133
11134 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
11135 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
11136 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
11137
11138 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
11139 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
11140 s_putpmsg.
11141 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
11142 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
11143 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
11144 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
11145 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
11146 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
11147 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
11148 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
11149
11150 2002-12-13 Paul Eggert <eggert@twinsun.com>
11151
11152 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
11153 is now u_int, not int.
11154 (struct XDR.x_handy): Now u_int, not int.
11155 * sunrpc/xdr_mem.c: Include <limits.h>.
11156 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
11157 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
11158 x_handy is now unsigned, not signed.
11159 Do not decrement x_handy if no change is made.
11160 (xdrmem_setpos): Check for int overflow.
11161 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
11162 (xdr_sizeof): Remove cast that is now unnecessary, now that
11163 x_handy is unsigned.
11164
11165 2002-12-15 Art Haas <ahaas@airmail.net>
11166
11167 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
11168 * iconvdata/gap.awk: Likewise.
11169 * iconvdata/gen-8bit-gap-1.sh: Likewise.
11170 * iconvdata/gen-8bit-gap.sh: Likewise.
11171 * locale/C-address.c: Likewise.
11172 * locale/C-collate.c: Likewise.
11173 * locale/C-ctype.c: Likewise.
11174 * locale/C-identification.c: Likewise.
11175 * locale/C-measurement.c: Likewise.
11176 * locale/C-messages.c: Likewise.
11177 * locale/C-monetary.c: Likewise.
11178 * locale/C-name.c: Likewise.
11179 * locale/C-numeric.c: Likewise.
11180 * locale/C-paper.c: Likewise.
11181 * locale/C-telephone.c: Likewise.
11182 * locale/C-time.c: Likewise.
11183 * nscd/connections.c: Likewise.
11184 * nscd/grpcache.c: Likewise.
11185 * nscd/hstcache.c: Likewise.
11186 * nscd/pwdcache.c: Likewise.
11187 * stdio-common/vfprintf.c: Likewise.
11188 * stdlib/random.c: Likewise.
11189 * sysdeps/generic/siglist.c: Likewise.
11190 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11191 * sysdeps/ieee754/bits/nan.h: Likewise.
11192 * sysdeps/posix/sprofil.c: Likewise.
11193 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
11194 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
11195 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
11196
11197 2002-12-15 Roland McGrath <roland@redhat.com>
11198
11199 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
11200
11201 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
11202 <tls.h> here, no need for it.
11203 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11204
11205 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
11206 parameter, not varargs parameter.
11207
11208 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
11209 argument so it's not an unused variable.
11210
11211 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
11212 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
11213 for users.
11214
11215 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
11216
11217 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11218
11219 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
11220 original __libc_fcntl code. Just renamed.
11221
11222 2002-12-15 Andreas Schwab <schwab@suse.de>
11223
11224 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
11225
11226 2002-12-14 Olaf Hering <olh@suse.de>
11227
11228 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
11229 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
11230
11231 2002-12-15 Ulrich Drepper <drepper@redhat.com>
11232
11233 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
11234
11235 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
11236 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
11237
11238 * sysdeps/unix/sysv/linux/open64.c: New file.
11239
11240 * sysdeps/generic/pselect.c: Add support for cancellation handling.
11241 * sysdeps/posix/open64.c: Likewise.
11242 * sysdeps/posix/sigpause.c: Likewise.
11243 * sysdeps/posix/sigwait.c: Likewise.
11244 * sysdeps/posix/system.c: Likewise.
11245 * sysdeps/posix/waitid.c: Likewise.
11246 * sysdeps/unix/sysv/linux/accept.S: Likewise.
11247 * sysdeps/unix/sysv/linux/connect.S: Likewise.
11248 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
11249 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11250 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
11251 * sysdeps/unix/sysv/linux/poll.c: Likewise.
11252 * sysdeps/unix/sysv/linux/pread.c: Likewise.
11253 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11254 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
11255 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11256 * sysdeps/unix/sysv/linux/readv.c: Likewise.
11257 * sysdeps/unix/sysv/linux/recv.S: Likewise.
11258 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
11259 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
11260 * sysdeps/unix/sysv/linux/send.S: Likewise.
11261 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
11262 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
11263 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
11264 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
11265 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
11266 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
11267 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
11268 * sysdeps/unix/sysv/linux/wait.c: Likewise.
11269 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
11270 * sysdeps/unix/sysv/linux/writev.c: Likewise.
11271 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
11272 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11273
11274 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11275
11276 * sysdeps/generic/sysdep-cancel.h: New file.
11277 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
11278 cancelable syscall.
11279 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
11280 recvmsg, send, sendmsg, sendto): Make cancelable.
11281 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
11282 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
11283 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11284 sendto, osf_select): Likewise.
11285 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
11286 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11287 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
11288 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11289 sendto): Likewise.
11290 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
11291 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
11292 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
11293 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11294 sendto): Likewise.
11295 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
11296 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
11297 sendto, select): Likewise.
11298 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
11299 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
11300 Likewise.
11301 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
11302 select, fcntl): Likewise.
11303 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
11304 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
11305 read, readv, select, sigsuspend, write, writev): Likewise.
11306
11307 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11308
11309 * dirent/bug-readdir1.c: Include unistd.h.
11310
11311 2002-12-13 Jakub Jelinek <jakub@redhat.com>
11312
11313 * locale/programs/locale.c: Include locarchive.h.
11314 (ARCHIVE_NAME): Define.
11315 (write_archive_locales): New function.
11316 (write_locales): Use it. Ensure the same locale is not printed
11317 multiple times in verbose mode.
11318 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
11319 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
11320 functions.
11321 (struct nameent): New type.
11322 (nameentcmp): New function.
11323
11324 2002-12-14 Jakub Jelinek <jakub@redhat.com>
11325
11326 * posix/regex_internal.c (re_string_context_at): Guard wide char
11327 code with #ifdef RE_ENABLE_I18N.
11328
11329 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
11330
11331 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
11332
11333 2002-12-13 Roland McGrath <roland@redhat.com>
11334
11335 * posix/bug-regex15.c: New file.
11336 * posix/Makefile (tests): Add it.
11337
11338 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
11339 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
11340
11341 2002-12-13 Ulrich Drepper <drepper@redhat.com>
11342
11343 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
11344
11345 * misc/syslog.c (log_cleanup): Don't use parameter in
11346 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
11347 pass NULL instead of a pointer to syslog_lock.
11348
11349 2002-12-12 Ulrich Drepper <drepper@redhat.com>
11350
11351 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
11352 linker map for all iconv modules.
11353 (distribute): Add gconv.map.
11354 * iconvdata/gconv.map: New file.
11355
11356 * elf/Makefile: Also check all iconv modules for text relocations.
11357
11358 * stdlib/Makefile: Remove code to automatically import GMP.
11359
11360 * elf/Makefile (tests): Add rules to build and run check-textrel.
11361 * elf/check-textrel.c: New file.
11362
11363 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
11364 directive.
11365
11366 2002-12-11 Jakub Jelinek <jakub@redhat.com>
11367
11368 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
11369 not st.st[am]time.
11370
11371 2002-04-30 Bruno Haible <bruno@clisp.org>
11372
11373 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
11374 the encoding if it already has slashes.
11375 Reported by Perry Rapp <prapp@erols.com>.
11376
11377 2002-12-11 Roland McGrath <roland@redhat.com>
11378
11379 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
11380 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
11381 Turn off PIC for compiling this file.
11382
11383 2002-12-11 Ulrich Drepper <drepper@redhat.com>
11384
11385 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
11386 definitions. Not needed.
11387 [_LIBC]: Use definitions from libc-lock.h instead of referencing
11388 pthread routines directly.
11389 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
11390 mutex_init calls.
11391 (arena_get2): Don't look at return value of mutex_lock.
11392
11393 2002-12-11 Roland McGrath <roland@redhat.com>
11394
11395 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
11396 elf-init.o instead of compiling a PIC version.
11397
11398 2002-12-11 Bruno Haible <bruno@clisp.org>
11399
11400 * intl/gettext.h: Renamed to ...
11401 * intl/gmo.h: ... here.
11402 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
11403 * intl/gettextP.h: Update.
11404 * intl/loadmsgcat.c: Update.
11405
11406 * intl/gettextP.h (PARAMS): Make more portable.
11407 (attribute_hidden): Define as empty macro if not already defined.
11408 * intl/hash-string.h (PARAMS): Make more portable.
11409 * intl/loadinfo.h (PARAMS): Likewise.
11410 * intl/plural-exp.h (PARAMS): Likewise.
11411 (attribute_hidden): Move definition near the definition of
11412 internal_function.
11413
11414 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
11415 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
11416
11417 2002-07-13 Bruno Haible <bruno@clisp.org>
11418
11419 * intl/dcigettext.c (freea): New macro.
11420 (FREE_BLOCKS): Free also the registered blocks.
11421 (DCIGETTEXT): Free the 'search' variable.
11422 Reported by Andreas Fischer <a.fischer@asentics.de>.
11423
11424 2002-04-27 Bruno Haible <bruno@clisp.org>
11425
11426 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
11427 * intl/dcigettext.c: Likewise.
11428 * intl/dcgettext.c: Likewise.
11429 * intl/dgettext.c: Likewise.
11430 * intl/gettext.c: Likewise.
11431 * intl/dcngettext.c: Likewise.
11432 * intl/dngettext.c: Likewise.
11433 * intl/ngettext.c: Likewise.
11434 * intl/textdomain.c: Likewise.
11435 * intl/bindtextdom.c: Likewise.
11436 * intl/plural-exp.h: Likewise.
11437
11438 2002-01-02 Bruno Haible <bruno@clisp.org>
11439
11440 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
11441
11442 2001-04-30 Bruno Haible <bruno@clisp.org>
11443
11444 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
11445 default macro definitions. Needed for mingw32.
11446
11447 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11448
11449 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
11450 __builtin_constant_p to macro parameter.
11451
11452 * sysdeps/generic/sigpause.c: Define all functions as weak.
11453 * sysdeps/posix/sigpause.c: Likewise.
11454
11455 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
11456 type size_t.
11457
11458 2002-12-10 Jakub Jelinek <jakub@redhat.com>
11459
11460 * elf/tst-array1.c (preinit_array, init_array, fini_array):
11461 Explicitly align the array to sizeof (void *).
11462 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
11463
11464 * include/libc-symbols.h: Fix a comment typo.
11465
11466 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
11467 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
11468 Likewise.
11469 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
11470 Likewise.
11471 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
11472 (__libc_sigsuspend): Likewise.
11473 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
11474 (__libc_sigsuspend): Likewise.
11475 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
11476 (creat): New weak alias.
11477
11478 2002-12-10 Roland McGrath <roland@redhat.com>
11479
11480 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
11481 contributes a manual chapter.
11482 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
11483 around xref to it.
11484
11485 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
11486 and move contents to ...
11487 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
11488 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
11489 it instead of duplicating its contents.
11490 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
11491
11492 2002-12-09 Jakub Jelinek <jakub@redhat.com>
11493
11494 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
11495 defined.
11496 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
11497 function.
11498 (EXTRA_LD_ENVVARS): Use it.
11499 (DL_OSVERSION_INIT): Define.
11500 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
11501 dl-librecon.h.
11502 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
11503
11504 2002-12-10 Ulrich Drepper <drepper@redhat.com>
11505
11506 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
11507
11508 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
11509 call. It is not allowed to destroy pthread mutexes which are
11510 still in use even though it is safe for our implementations. If
11511 somebody still uses the descriptor it is a bug.
11512
11513 2002-12-09 Richard Henderson <rth@redhat.com>
11514
11515 * csu/abi-note.S: Use .p2align, not .align.
11516
11517 2002-12-09 Ulrich Drepper <drepper@redhat.com>
11518
11519 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
11520 __libc_select aliases.
11521
11522 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
11523 alias.
11524
11525 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
11526
11527 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
11528
11529 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
11530
11531 * sysdeps/unix/syscalls.list: Define __libc_select alias.
11532
11533 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
11534
11535 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
11536 __libc___xpg_sigpause aliases.
11537
11538 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
11539
11540 * misc/error.c: Remove use of USE_IN_LIBIO.
11541
11542 2002-12-08 Roland McGrath <roland@redhat.com>
11543
11544 * elf/Makefile (tests): Uncomment tst-array[123].
11545 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
11546 * csu/elf-init.c: New file.
11547 * csu/Makefile (routines, static-only-routines): Add elf-init.
11548 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
11549 and __libc_csu_fini in place of _fini.
11550 * sysdeps/arm/elf/start.S: Likewise.
11551 * sysdeps/cris/elf/start.S: Likewise.
11552 * sysdeps/hppa/elf/start.S: Likewise.
11553 * sysdeps/i386/elf/start.S: Likewise.
11554 * sysdeps/ia64/elf/start.S: Likewise.
11555 * sysdeps/m68k/elf/start.S: Likewise.
11556 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
11557 * sysdeps/mips/elf/start.S: Likewise.
11558 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
11559 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
11560 * sysdeps/s390/s390-32/elf/start.S: Likewise.
11561 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11562 * sysdeps/sh/elf/start.S: Likewise.
11563 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11564 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11565 * sysdeps/x86_64/elf/start.S: Likewise.
11566
11567 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
11568 struct containing function ptr and value, free it.
11569 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
11570 It's not safe to let the new thread use the SIGEV pointer.
11571
11572 2001-10-20 Paul Eggert <eggert@twinsun.com>
11573
11574 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
11575 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
11576 Use strerror_r that is only a macro, even if it is not a function.
11577 (strerror): Check for HAVE_DECL_STRERROR before declaring.
11578 (private_strerror): Use prototypes, not old-style function definition.
11579 (print_errno_message): New function.
11580 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
11581 char*-flavored one.
11582 (error_tail, error, error_at_line): Use it.
11583
11584 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
11585
11586 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
11587
11588 2002-12-08 Ulrich Drepper <drepper@redhat.com>
11589
11590 * scripts/output-format.sed: Fix bug in one of the s expressions
11591 which used / for one too many things.
11592
11593 * include/unistd.h: Declare __libc_close.
11594
11595 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11596
11597 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
11598
11599 2002-12-07 Roland McGrath <roland@redhat.com>
11600
11601 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
11602 from 2002-12-06, but remove unnecessary memset call without removing
11603 necessary copy of initialization image.
11604
11605 * Makerules ($(common-objpfx)format.lds): New target.
11606 (common-generated): Add it.
11607 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
11608 * scripts/output-format.sed: New file.
11609 * Makefile (distribute): Add it.
11610
11611 2002-12-07 Ulrich Drepper <drepper@redhat.com>
11612
11613 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
11614 Reported by Art Haas <ahaas@airmail.net>.
11615
11616 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
11617
11618 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
11619
11620 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11621
11622 * string/test-strncpy.c (do_random_tests): Improve test coverage.
11623
11624 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11625
11626 * test-skeleton.c (timeout_handler): Allow expected signal to be
11627 SIGALRM.
11628
11629 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
11630
11631 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
11632
11633 2002-12-07 Jakub Jelinek <jakub@redhat.com>
11634
11635 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
11636 (SYSCALL_ERROR_HANDLER): Fix a pasto.
11637 Reported by Jeff Bailey <jbailey@nisa.net>.
11638
11639 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11640
11641 * sysdeps/generic/libc-tls.c: Undo last patch.
11642
11643 * include/wctype.h: Define iswalnum with libc_hidden_proto.
11644
11645 * include/signal.h: Define raise with libc_hidden_proto.
11646
11647 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
11648 __execve instead of snprintf and execve.
11649
11650 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
11651 again a bit.
11652
11653 2002-12-06 Jakub Jelinek <jakub@redhat.com>
11654
11655 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
11656 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
11657
11658 2002-12-06 Ulrich Drepper <drepper@redhat.com>
11659
11660 * misc/syslog.c (log_cleanup): New function.
11661 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
11662 (closelog): Likewise.
11663
11664 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
11665 * elf/dl-iteratephdr.c: Likewise.
11666 * elf/dl-lookup.c: Likewise.
11667 * elf/dl-misc.c: Likewise.
11668 * elf/dl-open.c: Likewise.
11669 * elf/dl-support.c: Likewise.
11670 * elf/rtld.c: Likewise.
11671 * sysdeps/generic/ldsodefs.h: Likewise.
11672 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
11673 * sysdeps/mach/bits/libc-lock.h: Likewise.
11674 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
11675
11676 2002-12-06 Roland McGrath <roland@redhat.com>
11677
11678 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
11679
11680 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
11681 (malloc_starter, memalign_starter, free_starter): Don't define these.
11682 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
11683 Don't declare them either.
11684 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
11685 __pthread_initialize, so no need to set hooks to *_starter.
11686 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
11687 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
11688 (__libc_malloc_pthread_startup): New function.
11689 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
11690
11691 * malloc/hooks.c (memalign_starter): New function.
11692 * malloc/malloc.c: Declare it.
11693 * malloc/arena.c (save_memalign_hook): New variable.
11694 (ptmalloc_init): Set __memalign_hook to memalign_starter.
11695
11696 * elf/dl-minimal.c (free): Clear the memory.
11697 (calloc): Just call malloc, knowing all memory it returns is cleared.
11698
11699 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
11700 malloc and memset; calloc can avoid the zeroing when redundant.
11701 (_dl_tls_setup): Likewise.
11702 * elf/dl-load.c (decompose_rpath): Likewise.
11703 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
11704 call, since memory from sbrk at startup is already zero.
11705
11706 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
11707 error string for failure, null for success. Update callers.
11708 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
11709 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
11710
11711 2002-12-05 Jakub Jelinek <jakub@redhat.com>
11712
11713 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
11714 args to i:iipi.
11715 (readahead): Change args to i:iii.
11716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
11717 Change args to i:iii.
11718 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
11719 args to i:iiii.
11720
11721 2002-12-05 Roland McGrath <roland@redhat.com>
11722
11723 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
11724 call all functions rather than none.
11725 Reported by Mark P. Mitchell <mark@codesourcery.com>.
11726
11727 2002-12-04 Roland McGrath <roland@redhat.com>
11728
11729 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
11730 on _nl_current_LC_* variables.
11731
11732 2002-12-05 Ulrich Drepper <drepper@redhat.com>
11733
11734 * dirent/bug-readdir1.c (main): Don't call closedir, just close
11735 the file descriptor. This is testing what the bug report was about.
11736
11737 2002-12-04 Ulrich Drepper <drepper@redhat.com>
11738
11739 * po/be.po: New file.
11740
11741 * argp/Makefile (tests): Add tst-argp1.
11742
11743 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
11744 Change type of _attribute to void*.
11745 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
11746 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
11747 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
11748 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11749 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11750
11751 2002-12-04 Roland McGrath <roland@redhat.com>
11752
11753 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
11754 members to the end, so a libpthread compiled with !USE_TLS will still
11755 find other members properly.
11756
11757 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
11758 operand for DEST memory. Fix dummy input operand to use SRC.
11759 Reported by Davin McCall <davmac@ozonline.com.au>.
11760
11761 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
11762 alignment when initializing the DTV entry.
11763
11764 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
11765 when TLS has not been set up, try to set it up if we can.
11766 * elf/tst-tls4.c: Revert last change.
11767 * elf/tst-tls5.c: Likewise.
11768 * elf/tst-tls6.c: Likewise.
11769 * elf/tst-tls7.c: Likewise.
11770 * elf/tst-tls8.c: Likewise.
11771 * elf/tst-tls9.c: Likewise.
11772
11773 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
11774 * sysdeps/generic/ldsodefs.h: Declare it.
11775 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
11776 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
11777 function, broken out of __libc_setup_tls.
11778 (init_static_tls): Likewise.
11779 (__libc_setup_tls): Call them.
11780 (_dl_tls_setup): New function, uses new subroutines.
11781
11782 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
11783 Clear the pointer when returning true.
11784 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
11785 first element of the slotinfo list too.
11786
11787 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
11788 [SHARED].
11789
11790 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
11791 (_dl_determine_tlsoffset): Likewise.
11792
11793 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
11794 startup_error_tsd, made global.
11795 (dl_main): Update initialization.
11796 * elf/dl-tsd.c: Likewise.
11797 * sysdeps/generic/ldsodefs.h: Declare it.
11798
11799 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11800
11801 * manual/texinfo.tex: Update from latest upstream version.
11802
11803 2002-12-03 Roland McGrath <roland@redhat.com>
11804
11805 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
11806 area surplus in calculation for sbrk call.
11807
11808 * iconvdata/cp1125.c: New file.
11809 * iconvdata/Makefile (distribute): Add it.
11810 (modules): Add CP1125.
11811 (gen-8bit-gap-modules): Add cp1125.
11812 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
11813 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
11814
11815 2002-12-03 Andreas Jaeger <aj@suse.de>
11816
11817 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
11818
11819 2002-12-03 Ulrich Drepper <drepper@redhat.com>
11820
11821 * sysdeps/posix/system.c (do_system): Make signal handler
11822 installation thread safe.
11823
11824 2002-12-02 Roland McGrath <roland@redhat.com>
11825
11826 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
11827 caller from EXTRA to -.
11828 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11829 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11830 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11831
11832 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
11833
11834 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
11835 bits of RM are cleared.
11836
11837 2002-12-02 Roland McGrath <roland@redhat.com>
11838
11839 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
11840 TLS setup is required.
11841 * elf/tst-tls5.c: Likewise.
11842 * elf/tst-tls6.c: Likewise.
11843 * elf/tst-tls7.c: Likewise.
11844 * elf/tst-tls8.c: Likewise.
11845 * elf/tst-tls9.c: Likewise.
11846
11847 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
11848 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
11849 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
11850 for being null before calling free_slotinfo.
11851 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
11852 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
11853
11854 2002-11-30 Bruno Haible <bruno@clisp.org>
11855
11856 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
11857 (struct __gconv_step): New field __btowc_fct.
11858 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
11859 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
11860 __BUILTIN_TRANS.
11861 (__gconv_btwoc_ascii): New declaration.
11862 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11863 (__gconv_btwoc_ascii): New function.
11864 * iconv/gconv_builtin.h: Add BtowcFct argument to all
11865 BUILTIN_TRANSFORMATION invocations.
11866 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
11867 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
11868 * iconv/gconv_builtin.c (map): New field btowc_fct.
11869 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
11870 btowc_fct field.
11871 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
11872 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
11873 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
11874 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
11875 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
11876 (gconv_init): Initialize __btowc_fct field.
11877 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
11878 * iconv/loop.c: Document ONEBYTE_BODY.
11879 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
11880 Undefine ONEBYTE_BODY at the end.
11881 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
11882 * iconvdata/8bit-gap.c (NONNUL): New macro.
11883 (BODY for FROM_LOOP): Use it.
11884 (ONEBYTE_BODY): New macro.
11885 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
11886 (NONNUL): New macro.
11887 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
11888 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
11889 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
11890 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
11891 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
11892 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
11893 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
11894 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
11895 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
11896 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
11897 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
11898 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
11899 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
11900 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
11901 * iconvdata/ibm932.c: Include <stdbool.h>.
11902 (TRUE, FALSE): Remove macros.
11903 (BODY for FROM_LOOP): Remove unused variable rp1.
11904 (ONEBYTE_BODY): New macro.
11905 (BODY for TO_LOOP): Use bool.
11906 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
11907 * iconvdata/ibm943.c: Include <stdbool.h>.
11908 (TRUE, FALSE): Remove macros.
11909 (BODY for FROM_LOOP): Remove unused variable rp1.
11910 (ONEBYTE_BODY): New macro.
11911 (BODY for TO_LOOP): Use bool.
11912 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
11913 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
11914 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
11915 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
11916 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
11917 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
11918 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
11919 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
11920 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
11921 * iconvdata/gbbig5.c: Tweak comment.
11922
11923 2002-12-02 Ulrich Drepper <drepper@redhat.com>
11924
11925 * po/fi.po: Update from translation team.
11926
11927 2002-12-01 Roland McGrath <roland@redhat.com>
11928
11929 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
11930 testing getdents64 return value.
11931
11932 * scripts/versions.awk: Don't pass -n flag to sort command.
11933
11934 * posix/bug-regex13.c: Include <string.h>.
11935
11936 * sysdeps/generic/libc-start.c (__libc_start_main): Do
11937 DL_SYSDEP_OSCHECK here.
11938 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
11939 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
11940
11941 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
11942 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
11943
11944 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
11945 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
11946
11947 * include/link.h: Comment typo fix.
11948
11949 2002-12-01 Roland McGrath <roland@frob.com>
11950
11951 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
11952 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
11953 _POSIX_MEMORY_PROTECTION): Likewise.
11954 (_POSIX_POLL, _POSIX_SELECT): Removed.
11955
11956 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11957
11958 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
11959 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
11960
11961 2002-11-28 Jakub Jelinek <jakub@redhat.com>
11962
11963 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
11964 USE___THREAD.
11965 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
11966 "=v" constraints.
11967
11968 2002-11-28 Ulrich Drepper <drepper@redhat.com>
11969
11970 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
11971 branch prediction buffers by using unpaired call/ret.
11972
11973 2002-11-27 Ulrich Drepper <drepper@redhat.com>
11974
11975 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
11976 first parameters constraint string.
11977 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
11978
11979 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
11980
11981 * posix/regcomp.c (parse_expression): Set the bit since the back
11982 reference is used in the regular expression.
11983 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
11984 of malloc failure.
11985 (re_node_set_init_copy): Likewise.
11986 * posix/regex_internal.h (state_array_t): New structure.
11987 (re_sub_match_last_t): Likewise.
11988 (re_sub_match_top_t): Likewise.
11989 (re_match_context_t): Add new members.
11990 (re_dfa_t): Likewise.
11991 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
11992 to check the matching is really correct, and retry if failed.
11993 Move the routin pruning the impossible nodes from here, ...
11994 (prune_impossible_nodes): To this function.
11995 (check_matching): Invoke check_subexp_matching_top, and replace
11996 redundant checking with transit_state_bkref invocation.
11997 (proceed_next_node): Replace strncmp with memcmp. Reported by
11998 Paolo Bonzini <bonzini@gnu.org>.
11999 (update_cur_sifted_state): Remove search_subexp invocation.
12000 (search_subexp): Remove this function.
12001 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
12002 optimization.
12003 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
12004 Remove unused invocation of match_ctx_add_entry.
12005 (transit_state): Invoke check_subexp_matching_top.
12006 (check_subexp_matching_top): New function.
12007 (transit_state_bkref): Remove unused array.
12008 Merge transit_state_bkref_loop.
12009 (transit_state_bkref_loop): Use get_subexp instead of
12010 sift_states_backward. Use search_cur_bkref_entry for optimization.
12011 Merge this function to transit_state_bkref.
12012 (get_subexp): New function.
12013 (get_subexp_sub): Likewise.
12014 (find_subexp_node): Likewise.
12015 (check_arrival): Likewise.
12016 (check_arrival_expand_ecl): Likewise.
12017 (check_arrival_expand_ecl_sub): Likewise.
12018 (expand_bkref_cache): Likewise.
12019 (match_ctx_init): Initialize new members.
12020 (match_ctx_clean): New function.
12021 (match_ctx_free): Release new members.
12022 (match_ctx_free_subtops): New function.
12023 (match_ctx_add_entry): Fix indent.
12024 (search_cur_bkref_entry): New function.
12025 (match_ctx_add_subtop): Likewise.
12026 (match_ctx_add_sublast): Likewise.
12027
12028 2002-11-25 Ulrich Drepper <drepper@redhat.com>
12029
12030 * iconv/Makefile (tests): Remove tst-iconv4.c
12031 * iconv/tst-iconv4.c: Moved to...
12032 * iconvdata/tst-iconv4.c: ...here. New file.
12033 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
12034
12035 2002-11-25 Roland McGrath <roland@redhat.com>
12036
12037 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
12038 Grok AF_LINK if defined.
12039 From Momchil Velikov <velco@fadata.bg>.
12040
12041 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
12042 brdaddr, or dstaddr, just set those pointers to null and don't fail.
12043 Reported by Momchil Velikov <velco@fadata.bg>.
12044
12045 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
12046 is > sizeof IFR->ifa_addr, advance past the whole longer length.
12047 (__ifreq): Count up NIFS that way too.
12048 Reported by Momchil Velikov <velco@fadata.bg>.
12049
12050 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
12051
12052 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
12053 and <fpu_control.h>.
12054
12055 2002-11-24 Ulrich Drepper <drepper@redhat.com>
12056
12057 * elf/elf.h (EM_ST19): Fix typo.
12058
12059 2002-11-25 Jakub Jelinek <jakub@redhat.com>
12060
12061 * include/errno.h (__set_errno): Define as errno = val
12062 unconditionally.
12063
12064 2002-11-24 Roland McGrath <roland@redhat.com>
12065
12066 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
12067 * sysdeps/posix/writev.c: Likewise.
12068 From Momchil Velikov <velco@fadata.bg>.
12069
12070 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
12071 calling *GL(dl_error_catch_tsd) for a thread-local location.
12072 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
12073 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
12074 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
12075
12076 * libio/iofflush.c: Add libc_hidden_def.
12077 * libio/iofwrite.c: Likewise.
12078 * sysdeps/generic/sigtimedwait.c: Likewise.
12079 * sysdeps/generic/sigwaitinfo.c: Likewise.
12080 * sysdeps/posix/sigwait.c: Likewise.
12081 Reported by Momchil Velikov <velco@fadata.bg>.
12082
12083 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
12084 to match <arpa/inet.h> declaration.
12085 * inet/inet_netof.c (inet_netof): Likewise.
12086 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
12087 Reported by Momchil Velikov <velco@fadata.bg>.
12088
12089 * configure.in: Skip AUTOCONF check under --without-cvs.
12090 * configure: Regenerated.
12091
12092 * posix/Makefile (headers): Add bits/pthreadtypes.h.
12093 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
12094 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
12095
12096 2002-11-24 Andreas Schwab <schwab@suse.de>
12097
12098 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
12099 with six arguments.
12100
12101 2002-11-19 Jim Meyering <jim@meyering.net>
12102
12103 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
12104 as `static'.
12105 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
12106
12107 2002-11-23 Roland McGrath <roland@redhat.com>
12108
12109 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
12110 Just produce hex output for datum sizes.
12111
12112 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
12113 Reported by Luca Barbieri <ldb@ldb.ods.org>.
12114
12115 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
12116
12117 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
12118 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12119 and __unused3 fields.
12120 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
12121 [__WORDSIZE == 32]: Only PPC32 requires __unused1
12122 and __unused2 fields.
12123 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
12124 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
12125 __unused3, and __unused4 fields.
12126
12127 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
12128 obtain lowest address for profiling in __monstartup call.
12129
12130 2002-11-21 Roland McGrath <roland@redhat.com>
12131
12132 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
12133 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
12134
12135 * locale/localeinfo.h (struct locale_data): Revert last change.
12136
12137 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
12138 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12139
12140 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
12141 __NR_pread64 if not defined.
12142 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
12143 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12144
12145 2002-11-21 Roland McGrath <roland@frob.com>
12146
12147 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
12148 __libc_multiple_libcs here. Call __setfpucw.
12149
12150 2002-11-21 Ulrich Drepper <drepper@redhat.com>
12151
12152 * elf/Makefile (tests): Don't run test-arrayX tests for now.
12153
12154 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
12155 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
12156 CLONE_CHILD_*TID flags.
12157
12158 2002-11-20 Andreas Jaeger <aj@suse.de>
12159
12160 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
12161 We pass struct ucontext on x86-64.
12162 (GET_PC): Adjust.
12163 (GET_FRAME): Adjust.
12164 (GET_STACK): Adjust.
12165
12166 2002-11-20 Roland McGrath <roland@redhat.com>
12167
12168 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
12169 conditionalize [! DO_VERSIONING] #error.
12170
12171 * scripts/abilist.awk: Grok function descriptor symbols.
12172
12173 * intl/tst-gettext.c (main): Check return values from setlocale.
12174 Add necessary unsetenv's to make LANG=existing-locale check work.
12175
12176 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
12177 so aborted prior runs don't confuse things.
12178
12179 * locale/localeinfo.h (struct locale_data: union locale_data_value):
12180 Use uintptr_t instead of unsigned int for `word' member.
12181 (_NL_CURRENT_WORD): Cast to uint32_t.
12182
12183 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
12184 value.
12185
12186 2002-11-20 Ulrich Drepper <drepper@redhat.com>
12187
12188 * elf/tls-macros.h: Add IA-64 definitions.
12189 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
12190
12191 * iconv/Makefile (tests): Add tst-iconv4.
12192 * iconv/tst-iconv4.c: New file.
12193
12194 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
12195 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
12196 __GCONV_INCOMPLETE_INPUT.
12197 (ucs4le_internal_loop): Likewise.
12198 (ucs4le_internal_loop_unaligned): Likewise.
12199 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
12200 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
12201 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
12202
12203 * iconv/loop.c (LOOPFCT): First test for empty input then for full
12204 output buffer.
12205
12206 * inet/getnameinfo.c: Use extend_alloca where appropriate.
12207 * sysdeps/posix/getaddrinfo.c: Likewise.
12208
12209 * include/alloca.h (extend_alloca): New define. Based on stack
12210 direction it'll try to append to the previouls allocated buffer.
12211
12212 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
12213
12214 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
12215 use the same service for AF_INET and AF_INET6.
12216
12217 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12218
12219 * intl/localealias.c (read_alias_file): Use only about 400 bytes
12220 of stack space instead of 16k.
12221
12222 2002-11-18 Wolfram Gloger <wg@malloc.de>
12223
12224 * malloc/arena.c
12225 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
12226 nothing if not initialized. Bug report from Marcus Brinkmann
12227 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
12228
12229 2002-11-19 Roland McGrath <roland@redhat.com>
12230
12231 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
12232 sched_setaffinity.
12233
12234 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
12235 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
12236 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
12237 * configure: Regenerated.
12238
12239 2002-11-19 Ulrich Drepper <drepper@redhat.com>
12240
12241 * include/dlfcn.h: __libc_dlopen is now a macro calling
12242 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
12243 (__libc_dlopen_mode): New prototype.
12244 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
12245 new parameter. Store new parameter in mode field of structure passed
12246 to do_dlopen.
12247 (struct do_dlopen_args): Add new field mode.
12248 (do_dlopen): Pass mode from parameter structure to _dl_open.
12249
12250 2002-11-11 Randolf Chung <tausq@debian.org>
12251
12252 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
12253 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
12254 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
12255
12256 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
12257
12258 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
12259 Set -mdisable-fpregs for this file.
12260
12261 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
12262
12263 * sysdeps/unix/sysv/linux/configure.in:
12264 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
12265 from gcc-3.0 era for backwards compatibility.
12266 * sysdeps/unix/sysv/linux/configure: Regenerate.
12267
12268 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
12269 Define mcontext_t as a sigcontext.
12270
12271 2002-11-18 Roland McGrath <roland@redhat.com>
12272
12273 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
12274 Free memory in `last_result' if it was used.
12275
12276 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
12277 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
12278 Do the parsing inline instead of copying strings and calling
12279 inet_network, and properly skip all alias names not matching the form.
12280
12281 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
12282
12283 2002-11-17 Ulrich Drepper <drepper@redhat.com>
12284
12285 * manual/pattern.texi (Wordexp Example): Fix sample code.
12286
12287 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
12288 childs stack which will be loaded into the %esi register.
12289
12290 2002-11-14 Paul Eggert <eggert@twinsun.com>
12291
12292 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
12293 overflow when skipping the question part and when unpacking aliases.
12294
12295 2002-11-15 Roland McGrath <roland@redhat.com>
12296
12297 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
12298 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
12299 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
12300
12301 2002-11-15 Jakub Jelinek <jakub@redhat.com>
12302
12303 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
12304 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
12305
12306 2002-11-15 Roland McGrath <roland@redhat.com>
12307
12308 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
12309 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
12310 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
12311 (+make-include-of-dep): New canned sequence.
12312
12313 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
12314 From Dmitry V. Levin <ldv@altlinux.org>.
12315
12316 2002-11-14 Roland McGrath <roland@redhat.com>
12317
12318 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
12319 * inet/herrno.c (__libc_h_errno): Likewise.
12320 * resolv/res_libc.c (__libc_res): Likewise.
12321 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
12322 (__res_state) [! USE___THREAD]: Don't define as weak.
12323 * csu/Versions: Revert last change.
12324 * resolv/Versions: Revert last change.
12325
12326 * Makerules ($(common-objpfx)%.make): New pattern rule.
12327 * tls.make.c: New file.
12328 * Makefile (distribute): Add it.
12329
12330 * sysdeps/generic/errno.c [! USE___THREAD]
12331 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
12332 with compat_symbol so they are not link-time visible.
12333 [! USE___THREAD] (__libc_errno): New alias for errno.
12334 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12335 Add __libc_errno here.
12336 * inet/herrno.c [USE___THREAD]: Use this conditional
12337 in place of [USE_TLS && HAVE___THREAD].
12338 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
12339 (h_errno, _h_errno): Declare these with compat_symbol so they are not
12340 link-time visible.
12341 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
12342 * resolv/res_libc.c [! USE___THREAD]
12343 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
12344 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
12345 (__libc_res): Define as alias for _res.
12346 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
12347 Add __libc_h_errno and __libc_res here.
12348
12349 2002-11-14 Jakub Jelinek <jakub@redhat.com>
12350
12351 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
12352 * resolv/Versions (h_errno, _res): Likewise.
12353
12354 2002-11-14 Roland McGrath <roland@redhat.com>
12355
12356 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
12357 (%.symlist): Likewise.
12358
12359 2002-11-13 Roland McGrath <roland@redhat.com>
12360
12361 * scripts/abilist.awk: New file.
12362 * Makefile (distribute): Add it.
12363 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
12364 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
12365 [$(subdir) = elf] (tests): Depend on libc.symlist.
12366 (generated, common-generated): Add those files.
12367
12368 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
12369 * configure: Regenerated.
12370 * config.make.in (OBJDUMP): New variable, substituted by configure.
12371
12372 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
12373 (mallochook, reallochook): Set them up.
12374 (checkhdr): Check HDR->magic2 value.
12375 (freehook): Reset HDR->magic2.
12376 (memalignhook): New static function.
12377 (old_memalign_hook): New static variable.
12378 (mcheck, reallochook): Set __memalign_hook to memalignhook.
12379
12380 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
12381 for the new TCB.
12382
12383 2002-11-13 Andreas Jaeger <aj@suse.de>
12384
12385 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
12386 attribute.
12387 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12388
12389 2002-11-11 Paul Eggert <eggert@twinsun.com>
12390
12391 * manual/crypt.texi (Cryptographic Functions): Mention that
12392 the MD5 one-way algorithm is compatible with BSD's.
12393
12394 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
12395
12396 * posix/regex_internal.c (re_string_skip_chars): Also return the last
12397 wide character.
12398 (re_string_reconstruct): Calculate the context by itself when the
12399 offset points out of the valid range.
12400 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
12401 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
12402 (IS_WIDE_WORD_CHAR): New macro.
12403 (IS_WIDE_NEWLINE): New macro.
12404
12405 2002-11-12 Andreas Jaeger <aj@suse.de>
12406
12407 * sysdeps/x86_64/strchr.S: Don't use one register for two
12408 purposes, this fixes a bug noticed by test-strchr.c.
12409
12410 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
12411 correctly.
12412
12413 2002-11-12 Roland McGrath <roland@redhat.com>
12414
12415 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
12416 (_G_IO_NO_BACKWARD_COMPAT): Define it.
12417
12418 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
12419 instead of <pt-machine.h>.
12420 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
12421 testandset.
12422 From Ian Wienand <ianw@gelato.unsw.edu.au>.
12423
12424 2002-11-10 Roland McGrath <roland@redhat.com>
12425
12426 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
12427 Call fputs instead of fwprintf (simpler to follow in debugger).
12428
12429 * crypt/md5-crypt.c: Doc fix.
12430
12431 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
12432 the beginning of generated target commands.
12433
12434 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
12435 dependencies for these in case implicit rule search skipped the
12436 nonexistent source directory.
12437 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
12438 files with $(object-suffixes) as targets too.
12439 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
12440 and a target for it using $(make-target-directory).
12441
12442 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
12443
12444 2002-11-10 Roland McGrath <roland@frob.com>
12445
12446 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
12447 * sysdeps/generic/bits/pthreadtypes.h: ... here.
12448
12449 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
12450 l_start == 0 and l_len == 1 as we do l_len == 0.
12451
12452 2002-11-10 Ulrich Drepper <drepper@redhat.com>
12453
12454 * po/da.po: Update from translation team.
12455
12456 2002-11-10 Roland McGrath <roland@redhat.com>
12457
12458 * config.make.in (includedir): New variable, substituted by configure.
12459 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
12460 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
12461
12462 2002-11-10 Andreas Jaeger <aj@suse.de>
12463
12464 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
12465 REG_OLDMASK and REG_CR2 to synch with kernel header.
12466 (NGREG): Increase.
12467
12468 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
12469 aliasing problem.
12470 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
12471 * nss/getnssent_r.c (__nss_getent_r): Likewise.
12472 (__nss_setent): Likewise.
12473 (__nss_getent_r): Likewise.
12474 * inet/getnetgrent_r.c (innetgr): Likewise.
12475 (__internal_setnetgrent_reuse): Likewise.
12476 (internal_getnetgrent_r): Likewise.
12477 * inet/ether_hton.c (ether_hostton): Likewise.
12478 * inet/ether_ntoh.c (ether_ntohost): Likewise.
12479 * sunrpc/netname.c (netname2user): Likewise.
12480 * sunrpc/publickey.c (getpublickey): Likewise.
12481 (getsecretkey): Likewise.
12482
12483 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
12484
12485 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
12486 error in range calculation.
12487
12488 2002-10-09 Jakub Jelinek <jakub@redhat.com>
12489
12490 * string/test-strspn.c (do_test): Ensure zero termination.
12491 * string/test-strpbrk.c (do_test): Likewise.
12492 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
12493 * string/test-strncpy.c (stupid_strncpy): Likewise.
12494 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
12495
12496 2002-10-08 Roland McGrath <roland@redhat.com>
12497
12498 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
12499 nonzero characters.
12500
12501 2002-09-22 H.J. Lu <hjl@gnu.org>
12502
12503 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
12504 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
12505 only if __NR_mmap2 is defined.
12506
12507 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
12508 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
12509 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
12510 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
12511
12512 2002-11-08 Jakub Jelinek <jakub@redhat.com>
12513
12514 * posix/bug-regex13.c (tests): Add new test.
12515
12516 * string/test-strchr.c (stupid_strchr): New function.
12517 (do_random_tests): Make sure the string is zero terminated.
12518 * string/test-strpbrk.c (stupid_strpbrk): New function.
12519 (do_random_tests): Make sure the string is zero terminated.
12520 * string/test-strcmp.c (stupid_strcmp): New function.
12521 (do_random_tests): Make sure the strings are zero terminated.
12522 * string/test-strspn.c (stupid_strspn): New function.
12523 (simple_strspn): Rename rej argument to acc.
12524 (do_random_tests): Make sure the string is zero terminated.
12525 * string/test-strcspn.c (stupid_strcspn): New function.
12526 * string/test-strncpy.c (stupid_strncpy): New function.
12527 * string/test-stpncpy.c (stupid_stpncpy): New function.
12528 * string/test-strncmp.c (stupid_strncmp): New function.
12529 (do_random_tests): Make sure the strings are zero terminated.
12530 * string/test-string.h (impl_t): Change test into long.
12531 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
12532
12533 2002-11-08 Roland McGrath <roland@redhat.com>
12534
12535 * sysdeps/ia64/elf/configure.in: Add TLS check.
12536 From Ian Wienand <ianw@cse.unsw.edu.au>.
12537 * sysdeps/ia64/elf/configure: Regenerated.
12538
12539 2002-11-07 Roland McGrath <roland@redhat.com>
12540
12541 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
12542 place of _IO_new_do_write.
12543 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
12544 #undef before versioned_symbol use.
12545
12546 2002-11-07 Richard Henderson <rth@redhat.com>
12547
12548 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
12549 * configure: Regenerated.
12550 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
12551 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
12552 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
12553 _dl_fini via gp-relative relocations.
12554 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
12555
12556 * elf/tls-macros.h: Add alpha versions.
12557 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
12558 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
12559 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
12560 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
12561 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
12562 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
12563 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
12564 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
12565 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
12566 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
12567 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
12568 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
12569 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
12570 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
12571 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
12572 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
12573 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
12574 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
12575
12576 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
12577 Kill argument registers across the inline syscall.
12578
12579 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
12580
12581 * linuxthreads/sysdeps/alpha/tls.h: New file.
12582 * sysdeps/alpha/dl-tls.h: New file.
12583
12584 2002-10-29 David Mosberger <davidm@hpl.hp.com>
12585
12586 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
12587 (gmon_initializer): New function.
12588 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
12589 __gmon_start__ here. Call it from gmon_initializer() instead.
12590
12591 2002-03-12 H.J. Lu <hjl@gnu.org>
12592
12593 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
12594 tst-array2, and tst-array3.
12595 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
12596 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
12597 ($(objpfx)tst-array1.out): New target.
12598 ($(objpfx)tst-array2): Likewise.
12599 ($(objpfx)tst-array2.out): Likewise.
12600 ($(objpfx)tst-array3.out): Likewise.
12601 * elf/tst-array1.c: New file.
12602 * elf/tst-array1.exp: Likewise.
12603 * elf/tst-array2.c: Likewise.
12604 * elf/tst-array2dep.c: Likewise.
12605 * elf/tst-array2.exp: Likewise.
12606 * elf/tst-array3.c: Likewise.
12607
12608 2002-10-28 David Mosberger <davidm@hpl.hp.com>
12609
12610 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
12611 Don't add L->l_addr to array entry values.
12612
12613 2002-11-07 Jakub Jelinek <jakub@redhat.com>
12614
12615 * string/test-string.h: New file.
12616 * string/test-strlen.c: New file.
12617 * string/test-string.h: New file.
12618 * string/test-strcmp.c: New file.
12619 * string/test-strchr.c: New file.
12620 * string/test-strrchr.c: New file.
12621 * string/test-strcpy.c: New file.
12622 * string/test-stpcpy.c: New file.
12623 * string/test-strncpy.c: New file.
12624 * string/test-stpncpy.c: New file.
12625 * string/test-strpbrk.c: New file.
12626 * string/test-strcspn.c: New file.
12627 * string/test-strspn.c: New file.
12628 * string/test-strcat.c: New file.
12629 * string/test-strncmp.c: New file.
12630 * string/test-memchr.c: New file.
12631 * string/test-memcmp.c: New file.
12632 * string/test-memset.c: New file.
12633 * string/test-memcpy.c: New file.
12634 * string/test-mempcpy.c: New file.
12635 * string/test-memmove.c: New file.
12636 * string/Makefile (strop-tests): New variable.
12637 (tests): Add strop-tests.
12638 (distribute): Add test-string.h.
12639
12640 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12641
12642 * posix/regcomp.c: Use tabs instead of spaces.
12643 * posix/regexec.c: Likewise.
12644 * posix/regex_internal.h: Likewise.
12645
12646 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
12647
12648 2002-11-06 Jakub Jelinek <jakub@redhat.com>
12649
12650 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
12651 here.
12652 (regcomp): Don't set can_be_null here.
12653 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
12654 (re_compile_internal): Clear can_be_null, set regs_allocated.
12655
12656 * posix/regcomp.c (re_set_fastmap): New function.
12657 (re_compile_fastmap_iter): Use it. Remove redundant type ==
12658 COMPLEX_BRACKET check.
12659 * posix/regexec.c (re_search_internal): Optimize searching with
12660 fastmap. Call re_string_reconstruct even if match_first is
12661 smaller than raw_mbs_idx.
12662
12663 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
12664
12665 * posix/regcomp (free_dfa_content): Use free_state.
12666 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
12667 pointers in case that realloc failed.
12668 (re_node_set_merge): Likewise.
12669 (register_state): Likewise.
12670 (create_newstate_common): Invoke memory release functions in case of
12671 error conditions.
12672 (create_ci_newstate): Likewise.
12673 (create_cd_newstate): Likewise.
12674 (free_state): New function.
12675 * posix/regexec.c (re_search_internal): Invoke memory release
12676 functions in case of error conditions.
12677 (sift_states_backward): Likewise.
12678 (merge_state_array): Likewise.
12679 (add_epsilon_src_nodes): Likewise.
12680 (sub_epsilon_src_nodes): Likewise.
12681 (search_subexp): Likewise.
12682 (sift_states_bkref): Likewise.
12683 (transit_state_sb): Likewise.
12684 (transit_state_mb): Likewise.
12685 (transit_state_bkref_loop): Likewise.
12686 (group_nodes_into_DFAstates): Likewise.
12687 (push_fail_stack): Don't edit pointers in case that realloc failed.
12688 (extend_buffers): Likewise.
12689 (match_ctx_add_entry): Likewise.
12690
12691 2002-11-06 Roland McGrath <roland@redhat.com>
12692
12693 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
12694 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
12695
12696 * configure.in: Add checks on as and ld for binutils 2.13 or later.
12697 * configure: Regenerated.
12698
12699 2002-11-06 Ulrich Drepper <drepper@redhat.com>
12700
12701 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
12702 If re_compile_internal failed free fastmap buffer.
12703 (free_dfa_content): Broken out of regfree function. Frees all dfa
12704 related data.
12705 (regfree): Add free_dfa_content.
12706 (re_compile_internal): If any of the called functions fails free
12707 all dfa related memory.
12708
12709 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12710
12711 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
12712 warnings from the kernel headers.
12713
12714 2002-11-05 Roland McGrath <roland@redhat.com>
12715
12716 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
12717 From Johannes Stezenbach <js@convergence.de>.
12718
12719 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
12720 #errlist-compat magic comment to give 123 as size.
12721 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
12722 (libc: GLIBC_2.2): ... here.
12723 (libc: GLIBC_2.3): Likewise.
12724
12725 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12726
12727 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
12728 which happens at the beginning so that we can unload modules in
12729 __libc_freeres.
12730
12731 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12732
12733 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
12734 under [__USE_MISC || _ASM].
12735
12736 * elf/elf.h: Remove the obsolete SH TLS relocations.
12737
12738 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12739
12740 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
12741
12742 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12743
12744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
12745 __NR_pread64 and __NR_pwrite64.
12746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12747 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
12748 and __NR_pwrite64.
12749 Revert change to use INLINE_SYSCALL.
12750 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12751 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12752 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12753 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
12754 INLINE_SYSCALL.
12755 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12756
12757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
12758 Update clobber list and add a comment about the syscall ABI.
12759
12760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
12761 s_pwrite64, s_ftruncate, s_truncate): Re-add.
12762
12763 2002-11-05 Jakub Jelinek <jakub@redhat.com>
12764
12765 * iconv/gconv_dl.c (free_mem): Clear loaded.
12766 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
12767 cleanup if any.
12768
12769 2002-11-05 Ulrich Drepper <drepper@redhat.com>
12770
12771 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
12772
12773 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
12774 as old code without locking. _IO_seekoff calls this function after
12775 locking the stream.
12776 * libio/ioseekpos.c: Likewise for _IO_seekpos.
12777 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
12778 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
12779 prototypes.
12780 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
12781 of _IO_seekoff_internal.
12782 (_IO_rewind): Likewise.
12783 * libio/ioftell.c: Likewise.
12784 * libio/ftello.c: Likewise.
12785 * libio/ftello64.c: Likewise.
12786 * libio/iofgetpos.c: Likewise.
12787 * libio/iofgetpos64.c: Likewise.
12788 * libio/oldiofgetpos.c: Likewise.
12789 * libio/oldiofgetpos64.c: Likewise.
12790 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
12791 _IO_seekpos_internal.
12792 * libio/iofsetpos64.c: Likewise.
12793 * libio/oldiofsetpos.c: Likewise.
12794 * libio/oldiofsetpos64.c: Likewise.
12795
12796 2002-11-04 Roland McGrath <roland@redhat.com>
12797
12798 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
12799 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
12800 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
12801 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
12802 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12803 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
12804 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12805 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
12806 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
12807 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
12808 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
12809 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
12810 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
12811 Remove these, no longer used.
12812
12813 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12814
12815 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
12816 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
12817 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
12818 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
12819 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
12820 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
12821 syscall stubs.
12822
12823 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
12824 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
12825 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
12826 and __NR_pread.
12827 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
12828 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
12829 and __NR_pwrite.
12830 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12831
12832 2002-11-03 Roland McGrath <roland@redhat.com>
12833
12834 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
12835 `_dl_tls_static_used'.
12836 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
12837 (__libc_setup_tls): Initialize it. Let the initial value of
12838 _dl_tls_static_size indicate some surplus space in the computed value.
12839 * elf/dl-open.c (_dl_tls_static_size): New variable.
12840 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
12841 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
12842 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
12843 (CHECK_STATIC_TLS): Use it.
12844 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
12845 closed objects occupied a trailing contiguous chunk of static TLS area.
12846
12847 2002-10-18 Bruno Haible <bruno@clisp.org>
12848
12849 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
12850
12851 2002-11-04 Ulrich Drepper <drepper@redhat.com>
12852
12853 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
12854 _wide_data->_IO_read_end if adjustment can be made in the current
12855 buffer.
12856
12857 * sysdeps/unix/sysv/linux/fexecve.c: New file.
12858
12859 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
12860 wide oriented streams are used.
12861
12862 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
12863 service hasn't been used [PR libc/4744].
12864
12865 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
12866 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
12867
12868 * manual/examples/dir.c: Don't include <stddef.h>.
12869 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
12870 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
12871
12872 2002-11-02 H.J. Lu <hjl@gnu.org>
12873
12874 * stdio-common/reg-printf.c: Include <stddef.h>.
12875
12876 2002-11-03 Ulrich Drepper <drepper@redhat.com>
12877
12878 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
12879
12880 * po/ca.po: Update from translation team.
12881 * po/es.po: Likewise.
12882
12883 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
12884 is defined write out memory map.
12885 * sysdeps/unix/sysv/linux/segfault.c: New file.
12886
12887 2002-11-02 Roland McGrath <roland@redhat.com>
12888
12889 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
12890 pointers that can alias.
12891 Reported by Daniel Jacobowitz <drow@mvista.com>.
12892
12893 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
12894
12895 2002-11-02 Roland McGrath <roland@redhat.com>
12896
12897 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
12898 description to be clearer and to say that *RESULT is set to ENTRY.
12899
12900 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12901
12902 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
12903 dests_ch arrays together. Alloca or malloc dest_states,
12904 dest_states_word and dest_states_nl arrays together. Free memory on
12905 error exit.
12906
12907 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
12908
12909 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
12910 and current_saltbits.
12911
12912 2002-11-02 Roland McGrath <roland@redhat.com>
12913
12914 * stdio-common/reg-printf.c: Include <stdlib.h>.
12915
12916 2002-11-02 H.J. Lu <hjl@gnu.org>
12917
12918 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
12919 caller to EXTRA instead of execve.
12920
12921 2002-11-01 Roland McGrath <roland@redhat.com>
12922
12923 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
12924 in place of [!(USE_TLS && HAVE___THREAD)].
12925 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
12926
12927 2002-10-31 Roger Sayle <roger@eyesopen.com>
12928
12929 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
12930 New macros.
12931 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12932
12933 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
12934 without defining FP_ROUNDMODE.
12935
12936 2002-10-29 Jakub Jelinek <jakub@redhat.com>
12937
12938 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
12939 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
12940 declare_symbol.
12941 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12942 (OLD_SIGLIST_SIZE): Define.
12943 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
12944 (OLD_SIGLIST_SIZE): Define.
12945 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
12946
12947 2002-11-01 Jakub Jelinek <jakub@redhat.com>
12948
12949 * sysdeps/ia64/strncpy.S: Fix recovery code.
12950
12951 2002-10-30 Jakub Jelinek <jakub@redhat.com>
12952
12953 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
12954 New macros.
12955 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
12956 text_set_element.
12957 * elf/dl-libc.c (free_mem): Likewise.
12958 * iconv/gconv_conf.c (free_mem): Likewise.
12959 * iconv/gconv_db.c (free_mem): Likewise.
12960 * iconv/gconv_dl.c (free_mem): Likewise.
12961 * iconv/gconv_cache.c (free_mem): Likewise.
12962 * intl/finddomain.c (free_mem): Likewise.
12963 * intl/dcigettext.c (free_mem): Likewise.
12964 * locale/setlocale.c (free_mem): Likewise.
12965 * misc/fstab.c (fstab_free): Likewise.
12966 * nss/nsswitch.c (free_mem): Likewise.
12967 * posix/regcomp.c (free_mem): Likewise.
12968 * resolv/gai_misc.c (free_res): Likewise.
12969 * stdlib/fmtmsg.c (free_mem): Likewise.
12970 * sunrpc/clnt_perr.c (free_mem): Likewise.
12971 * sysdeps/generic/setenv.c (free_mem): Likewise.
12972 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
12973 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
12974 * time/tzset.c (free_mem): Likewise.
12975 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
12976 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
12977 * malloc/set-freeres.c (__libc_freeres): Likewise.
12978
12979 * login/getutent.c: Include stdlib.h instead of stddef.h.
12980 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12981 (__getutent): Allocate buffer the first time it is run.
12982 * login/getutid.c: Include stdlib.h instead of stddef.h.
12983 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12984 (__getutid): Allocate buffer the first time it is run.
12985 * login/getutline.c: Include stdlib.h instead of stddef.h.
12986 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
12987 (__getutline): Allocate buffer the first time it is run.
12988 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
12989 (mtrace): Allocate malloc_trace_buffer.
12990 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
12991 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
12992 * string/strerror.c: Include libintl.h and errno.h.
12993 (buf): New variable.
12994 (strerror): Only allocate buffer if actually needed (unknown error).
12995 * time/tzfile.c (transitions): Add libc_freeres_ptr.
12996 (freeres): Remove.
12997
12998 2002-10-25 Jakub Jelinek <jakub@redhat.com>
12999
13000 * include/libc-symbols.h (libc_freeres_ptr): New macro.
13001 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
13002 symbol_set_define.
13003 (__libc_freeres): Free all pointers in that section.
13004 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
13005 commands when creating .lds script.
13006 (LDSEDCMD-c.so): New variable.
13007 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13008 (rcmd_af): Use strdup to allocate ahostbuf.
13009 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
13010 (rexec_af): Use strdup to allocate ahostbuf.
13011 * stdio-common/reg-printf.c (printf_funcs): Remove.
13012 (__printf_arginfo_table): Change into printf_arginfo_function **.
13013 Add libc_freeres_ptr.
13014 (__register_printf_function): Allocate __printf_arginfo_table
13015 and __printf_function_table the first time it is called.
13016 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
13017 printf_arginfo_function **.
13018 (parse_one_spec): Add __builtin_expect.
13019 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
13020 (free_mem): Remove.
13021 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
13022 (free_mem): Remove.
13023 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
13024 (string_space, map): Add libc_freeres_ptr.
13025 (free_mem): Remove.
13026 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
13027 (free_mem): Remove.
13028 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
13029 (free_mem): Remove.
13030 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
13031 (buffer): Add libc_freeres_ptr.
13032 (free_mem): Remove for _LIBC.
13033 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
13034 (free_mem): Remove.
13035 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
13036 (free_mem): Remove.
13037 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
13038 (free_mem): Remove.
13039 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
13040 (free_mem): Remove.
13041 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
13042 (free_mem): Remove.
13043 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
13044 (free_mem): Remove.
13045 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
13046 libc_freeres_ptr.
13047 (free_mem): Remove.
13048 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
13049 libc_freeres_ptr.
13050 (free_mem): Remove.
13051
13052 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13053
13054 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
13055 instead of duplicating the whole function in libc.
13056
13057 2002-10-31 Roland McGrath <roland@redhat.com>
13058
13059 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
13060 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
13061
13062 2002-10-30 Jakub Jelinek <jakub@redhat.com>
13063
13064 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
13065 32bit-predefine when creating .new32 list and -U for each
13066 32bit-predefine when creating .new64 list.
13067 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
13068
13069 2002-10-29 Andreas Schwab <schwab@suse.de>
13070
13071 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
13072 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
13073
13074 2002-10-25 Roland McGrath <roland@redhat.com>
13075
13076 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
13077 * sysdeps/unix/sysv/linux/configure: Regenerated.
13078
13079 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
13080 _dl_starting_up decl.
13081
13082 2002-10-20 H.J. Lu <hjl@gnu.org>
13083
13084 * sysdeps/unix/sysv/linux/configure.in: Don't check
13085 /lib/modules/`uname -r`/build/include for kernel headers if
13086 cross compiling.
13087 * sysdeps/unix/sysv/linux/configure: Regenerated.
13088
13089 2002-10-25 Roland McGrath <roland@redhat.com>
13090
13091 * math/math.h (M_LOG2El): Correct the value.
13092 From Stephen L Moshier <steve@moshier.net>.
13093
13094 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
13095 conditional from __libc_multiple_libcs access. Remove kludge for weak
13096 symbol access with old compilers we no longer support.
13097 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13098 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
13099
13100 2002-10-25 Roland McGrath <roland@redhat.com>
13101
13102 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
13103 implement SV_RESETHAND by translating it to SA_RESETHAND.
13104
13105 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
13106
13107 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
13108 type on ELF64 platforms.
13109
13110 2002-10-24 Ulrich Drepper <drepper@redhat.com>
13111
13112 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
13113
13114 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
13115
13116 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13117
13118 * elf/dl-misc.c: Include <sysdep.h>.
13119 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
13120
13121 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
13122 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13123 (INLINE_SYSCALL): Use that.
13124 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
13125 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13126 (INLINE_SYSCALL): Use that.
13127 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
13128 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
13129 (INLINE_SYSCALL): Use that.
13130 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
13131 dl-sysdep.h.
13132 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13133 (__INTERNAL_SYSCALL_STRING): Define.
13134 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
13135 dl-sysdep.h.
13136 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13137 (__INTERNAL_SYSCALL_STRING): Define.
13138 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
13139 __SYSCALL_STRING to inline_syscall*.
13140 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
13141 New macros.
13142 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
13143 inline_syscall4, inline_syscall5, inline_syscall6): Add string
13144 argument.
13145
13146 2002-10-24 Roland McGrath <roland@redhat.com>
13147
13148 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
13149 * sysdeps/unix/sysv/linux/init-first.c: Not here.
13150 * sysdeps/powerpc/elf/libc-start.c: Or here.
13151 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
13152 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
13153 * sysdeps/unix/sysv/aix/init-first.c: Or here.
13154 * sysdeps/generic/libc-start.c: Or here.
13155 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
13156 access with [! SHARED].
13157 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
13158
13159 * libio/bug-wfflush.c: New file.
13160 * libio/Makefile (tests): Add bug-wfflush.
13161
13162 2002-10-23 Roland McGrath <roland@redhat.com>
13163
13164 * stdio-common/tst-fphex.c: New file.
13165 * stdio-common/Makefile (tests): Add tst-fphex.
13166 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
13167 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
13168 chars always before the value digits.
13169 Reported by James Antill <james.antill@redhat.com>.
13170
13171 2002-10-24 Jakub Jelinek <jakub@redhat.com>
13172
13173 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
13174 (free_mem): New function.
13175 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
13176 if not cross compiling.
13177 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
13178 (bug-regex14-ENV): Set.
13179 (bug-regex14-mem): New target.
13180 * posix/bug-regex14.c: New file.
13181
13182 2002-10-23 Roland McGrath <roland@redhat.com>
13183
13184 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
13185 target, so we don't touch it when the link fails.
13186
13187 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
13188 Check for the result overflowing off_t and fail with EOVERFLOW.
13189 * libio/ioftell.c (_IO_ftell): Likewise.
13190 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
13191
13192 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
13193 use a temporary timeval on the stack for gettimeofday and copy it.
13194 * login/logout.c (logout): Likewise.
13195 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
13196
13197 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
13198 Use __SWORD_TYPE instead of int for member types.
13199 (struct statfs64): Likewise.
13200 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
13201 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
13202 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
13203 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
13204 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
13205
13206 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
13207 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
13208 (ST_NODIRATIME): Restore fixed value of 2048.
13209 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
13210 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
13211
13212 Rearranged <bits/types.h> definitions to reduce duplication.
13213 * sysdeps/generic/bits/types.h: Rewritten, using macros from
13214 <bits/wordsize.h> and new header <bits/typesizes.h>.
13215 * posix/Makefile (headers): Add bits/typesizes.h here.
13216 * sysdeps/generic/bits/typesizes.h: New file.
13217 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
13218 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
13219 * sysdeps/mach/hurd/bits/typesizes.h: New file.
13220 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
13221 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
13222 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
13223 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
13224 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
13225 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
13226 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
13227 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
13228 <bits/pthreadtypes.h> here, not in <bits/types.h>.
13229 * signal/signal.h: Likewise.
13230
13231 * streams/stropts.h: Include <bits/xtitypes.h>.
13232 * streams/Makefile (headers): Add bits/xtitypes.h here.
13233 * sysdeps/generic/bits/xtitypes.h: New file.
13234 * sysdeps/s390/bits/xtitypes.h: New file.
13235 * sysdeps/ia64/bits/xtitypes.h: New file.
13236 * sysdeps/x86_64/bits/xtitypes.h: New file.
13237
13238 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
13239 * sysdeps/generic/bits/ipctypes.h: New file.
13240 * sysdeps/mips/bits/ipctypes.h: New file.
13241 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
13242 * sysdeps/gnu/bits/msq.h: Likewise.
13243 * sysvipc/sys/ipc.h: Likewise.
13244
13245 2002-10-22 Ulrich Drepper <drepper@redhat.com>
13246
13247 * elf/dl-load.c (struct filebuf): For buf element to have the
13248 alignment of ElfXX_Ehdr since this is what will be stored in it.
13249
13250 2002-10-22 Jakub Jelinek <jakub@redhat.com>
13251
13252 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
13253 into pointer to locrec_offset.
13254 (add_locale_to_archive): Adjust callers. Free normalized_name right
13255 before returning, not immediately after add_locale, pass it to
13256 add_alias if not NULL instead of name. Rename second normalized_name
13257 occurence to nnormalized_codeset_name.
13258
13259 * locale/programs/locarchive.c (enlarge_archive): Make sure
13260 string_size is always a multiple of 4.
13261 Reported by Andreas Schwab <schwab@suse.de>.
13262
13263 2002-10-21 Andreas Schwab <schwab@suse.de>
13264
13265 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
13266 caller to EXTRA instead of execve, since the latter has a
13267 higher-priority implementation in linuxthreads.
13268
13269 2002-10-21 Roland McGrath <roland@redhat.com>
13270
13271 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
13272 slotinfo list's len member to the proper size, not just 1.
13273 Initialize static_map.l_tls_initimage.
13274
13275 * elf/dl-open.c (dl_open_worker): Fix loop searching for
13276 dtv_slotinfo_list element containing new modules' l_tls_modid.
13277
13278 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
13279 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
13280 * elf/Makefile (tests): Add tst-tls9.
13281 (tests-static): Add tst-tls9-static.
13282 (tst-tls9-static-ENV): New variable.
13283 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
13284
13285 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
13286 modids used by partially loaded modules being closed can't be known.
13287
13288 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
13289
13290 * posix/Makefile: Add a test case for the bug reported by Aharon
13291 Robbins <arnold@skeeve.com>.
13292 * posix/bug-regex13.c: New file.
13293 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
13294
13295 2002-10-21 Ulrich Drepper <drepper@redhat.com>
13296
13297 * csu/gmon-start.c: Pretty printing.
13298
13299 2002-10-19 Art Haas <ahaas@neosoft.com>
13300
13301 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
13302 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
13303 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
13304 * configure: Regenerated.
13305
13306 2002-10-19 Roland McGrath <roland@redhat.com>
13307
13308 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
13309 and then set $subdirs directly, because the new Autoconf breaks
13310 compatibility in every way imaginable and insists on whining
13311 about usage that worked since the dawn of time.
13312 * configure: Regenerated.
13313
13314 * configure: Regenerated (using Autoconf 2.54).
13315 * sysdeps/alpha/elf/configure: Likewise.
13316 * sysdeps/generic/configure: Likewise.
13317 * sysdeps/i386/elf/configure: Likewise.
13318 * sysdeps/ia64/elf/configure: Likewise.
13319 * sysdeps/mach/hurd/configure: Likewise.
13320 * sysdeps/mach/configure: Likewise.
13321 * sysdeps/unix/configure: Likewise.
13322 * sysdeps/unix/common/configure: Likewise.
13323 * sysdeps/unix/sysv/aix/configure: Likewise.
13324 * sysdeps/unix/sysv/linux/configure: Likewise.
13325 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
13326 * sysdeps/x86_64/elf/configure: Likewise.
13327
13328 * config.make.in: Nix completely-soft nonsense.
13329 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
13330 of machine directories instead of fpu subdirectory.
13331 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
13332 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
13333 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
13334 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
13335 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
13336 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
13337 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
13338 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
13339 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
13340 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
13341 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
13342 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
13343 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
13344 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
13345 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
13346 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
13347 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
13348 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
13349 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
13350 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
13351 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
13352 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
13353 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
13354 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
13355 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
13356 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
13357 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
13358 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
13359 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
13360 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
13361 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
13362 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
13363 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
13364 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
13365 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
13366 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
13367 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
13368 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
13369 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
13370 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
13371
13372 2002-10-19 Bruno Haible <bruno@clisp.org>
13373
13374 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
13375
13376 2002-10-18 Roland McGrath <roland@redhat.com>
13377
13378 * io/Makefile (routines): Add lchmod.
13379 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
13380 * sysdeps/generic/lchmod.c: New file.
13381 * sysdeps/mach/hurd/lchmod.c: New file.
13382 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
13383
13384 2002-10-18 Art Haas <ahaas@neosoft.com>
13385
13386 * configure.in: Remove remaining AC_FD_CC macros, and replace
13387 AC_FD_MSG with AS_MESSAGE_FD.
13388
13389 2002-10-18 Roland McGrath <roland@redhat.com>
13390
13391 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
13392 typos: VALUE -> FINALADDR.
13393
13394 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
13395 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
13396 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
13397 (inline_syscall6): Move these macros ...
13398 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
13399
13400 * configure.in (libc_link_dests, libc_link_sources): Remove these
13401 variables and the AC_LINK_FILES call.
13402
13403 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
13404 change to put new symbols here instead of in GLIBC_2.2.
13405 * sysdeps/powerpc/Subdirs: Move this file ...
13406 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
13407
13408 2002-10-07 Roland McGrath <roland@redhat.com>
13409
13410 * sysdeps/generic/bits/time.h: Replaced with contents of the
13411 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
13412 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
13413 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
13414 macros is ok even for architectures that don't now implement them.
13415 * sysdeps/mach/hurd/bits/time.h: File removed.
13416 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
13417 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
13418 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
13419 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
13420 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
13421
13422 2002-10-18 Jeff Bailey <jbailey@gnu.org>
13423
13424 * configure.in: Replace obsolete AC_OUTPUT syntax with
13425 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
13426
13427 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
13428 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
13429
13430 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
13431 * sysdeps/alpha/elf/configure.in: Likewise.
13432 * sysdeps/i386/elf/configure.in: Likewise.
13433 * sysdeps/mach/hurd/configure.in: Likewise.
13434 * sysdeps/x86_64/elf/configure.in: Likewise.
13435
13436 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
13437
13438 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
13439 * sysdeps/generic/configure.in: Likewise.
13440 * sysdeps/i386/elf/configure.in: Likewise.
13441 * sysdeps/ia64/elf/configure.in: Likewise.
13442 * sysdeps/mach/configure.in: Likewise.
13443 * sysdeps/mach/hurd/configure.in: Likewise.
13444 * sysdeps/unix/configure.in: Likewise.
13445 * sysdeps/unix/common/configure.in: Likewise.
13446 * sysdeps/unix/sysv/aix/configure.in: Likewise.
13447 * sysdeps/unix/sysv/linux/configure.in: Likewise.
13448 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
13449 * sysdeps/x86_64/elf/configure.in: Likewise.
13450
13451 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
13452 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
13453 that it's obvious when extra autoconf machinery is being dragged in.
13454
13455 2002-10-18 Roland McGrath <roland@redhat.com>
13456
13457 * configure.in: Remove bogus echo included in
13458 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
13459 * configure: Regenerated.
13460
13461 2002-10-18 Jakub Jelinek <jakub@redhat.com>
13462
13463 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
13464 (statfs_filesize_max): New function.
13465 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
13466 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
13467 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
13468 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
13469 statfs_filesize_max.
13470 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13471 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
13472 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
13473
13474 2002-10-17 Roland McGrath <roland@redhat.com>
13475
13476 * configure.in (MIG): Just AC_SUBST it here.
13477 * configure: Regenerated.
13478 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
13479 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
13480 * sysdeps/mach/configure: Regenerated.
13481
13482 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
13483 and AC_PROVIDE([_AS_CR_PREPARE]).
13484
13485 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
13486 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
13487
13488 * elf/dl-support.c: Move _dl_tls_* variables to ...
13489 * sysdeps/generic/libc-tls.c: ... here.
13490
13491 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
13492 allow IDX to be one past the current last slotinfo entry.
13493 (_dl_close): Pass IMAP->l_init_called for that parameter.
13494
13495 2002-10-07 Andreas Schwab <schwab@suse.de>
13496
13497 * aclocal.m4: Fix for autoconf 2.53.
13498 * configure.in: Likewise. Require autoconf 2.53.
13499
13500 2002-10-08 Richard Henderson <rth@redhat.com>
13501
13502 * soft-fp/op-4.h: Handle carry correctly in
13503 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
13504 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
13505 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
13506
13507 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
13508
13509 * configure.in: Compute completely-soft.
13510 * config.make.in: Make completely-soft available to sub-makes.
13511 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
13512 gcc-double-routines. Add sim-full.c. Add fenv_const and
13513 fe_nomask to libm-support.
13514 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
13515 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
13516 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
13517 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
13518 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
13519 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
13520 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
13521 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
13522 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
13523 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
13524 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
13525 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
13526 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
13527 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
13528 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
13529 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
13530 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
13531 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
13532 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
13533 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
13534 __sim_round_mode.
13535 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
13536 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
13537 FP_HANDLE_EXCEPTIONS.
13538 Define FP_ROUNDMODE.
13539 Redefine FP_* macros to correspond to the FE_* bit positions.
13540 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
13541 Define externs for __sim_exceptions, __sim_disabled_exceptions,
13542 __sim_round_mode, __simulate_exceptions.
13543 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
13544 * sysdeps/powerpc/bits/fenv.h: ...to here.
13545
13546 2002-10-06 Jakub Jelinek <jakub@redhat.com>
13547
13548 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13549 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
13550 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
13551 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
13552 __builtin_expect.
13553
13554 2002-10-15 Jakub Jelinek <jakub@redhat.com>
13555
13556 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
13557 __libc_res_nsend): New prototypes.
13558 * resolv/res_query.c (QUERYSIZE): Define.
13559 (__libc_res_nquery): Renamed from res_nquery. Added answerp
13560 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
13561 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
13562 res_nsend, pass answerp.
13563 (res_nquery): Changed into wrapper around __libc_res_nquery.
13564 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
13565 argument. Call __libc_res_nquerydomain and __libc_res_nquery
13566 instead of the non-__libc_ variants, pass them answerp.
13567 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
13568 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
13569 Added answerp argument. Call __libc_res_nquery instead of
13570 res_nquery, pass answerp.
13571 (res_nquerydomain): Changed into wrapper around
13572 __libc_res_nquerydomain.
13573 * resolv/res_send.c: Include sys/ioctl.h.
13574 (MAXPACKET): Define.
13575 (send_vc): Change arguments. Reallocate answer buffer if it is
13576 too small.
13577 (send_dg): Likewise.
13578 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
13579 Reallocate answer buffer if it is too small and hooks are in use.
13580 Adjust calls to send_vc and send_dg.
13581 (res_nsend): Changed into wrapper around __libc_res_nsend.
13582 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
13583 just 1K answer buffer on the stack, use __libc_res_nsearch instead
13584 of res_nsearch.
13585 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
13586 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
13587 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
13588 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
13589 (gethostbyaddr): Similarly with __libc_res_nquery.
13590 * resolv/Versions (libresolv): Export __libc_res_nquery and
13591 __libc_res_nsearch at GLIBC_PRIVATE.
13592
13593 2002-10-17 Roland McGrath <roland@redhat.com>
13594
13595 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
13596 * configure: Regenerated.
13597
13598 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
13599 before performing the reloc, not after.
13600 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13601
13602 2002-10-17 Ulrich Drepper <drepper@redhat.com>
13603
13604 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
13605 * locale/programs/linereader.c (lr_open): Likewise.
13606 * locale/programs/charmap-dir.c (charmap_open): Likewise.
13607 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13608
13609 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
13610
13611 * posix/bug-regex11.c: Add a test case for the bug reported by
13612 Paolo Bonzini <bonzini@gnu.org>.
13613 * posix/regexec.c (sift_states_bkref): Use correct destination of
13614 the back reference.
13615
13616 2002-10-17 Roland McGrath <roland@redhat.com>
13617
13618 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
13619 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
13620 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
13621 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
13622 Call it after performing TPOFF relocs.
13623 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13624 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13625 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
13626
13627 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
13628 when closing a partially-initialized object.
13629
13630 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
13631 instead of _dl_fatal_printf when we see PT_TLS.
13632
13633 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
13634 instead of $(libof-$<).
13635
13636 2002-10-16 Roland McGrath <roland@redhat.com>
13637
13638 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
13639 instead of += to append, to be sure $(lib) gets expanded at defn time.
13640 (libof-$(cpp-src)): New variable, define this instead.
13641 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
13642 (lib): Don't use override.
13643 (CPPFLAGS-$(lib)): New variable, put -D's here.
13644 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
13645 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
13646 LIB found by $(libof-*) for basename, target, or source.
13647 * Makerules (CPPFLAGS-nonlib): New variable.
13648 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
13649 * locale/Makefile (lib): Likewise.
13650 * sunrpc/Makefile (lib): Likewise.
13651
13652 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
13653 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
13654 * sysdeps/unix/sysv/linux/pathconf.h: New file.
13655 (statfs_link_max): New function, guts from fpathconf.c.
13656 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
13657 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
13658 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
13659 to use the linux/pathconf.c code by #include rather than duplication.
13660 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
13661
13662 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13663
13664 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13665 Use __libc_errno only for libc itself.
13666
13667 2002-10-16 Andreas Jaeger <aj@suse.de>
13668
13669 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
13670
13671 2002-10-16 Ulrich Drepper <drepper@redhat.com>
13672
13673 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13674 Use __libc_errno only for libc itself.
13675
13676 2002-10-15 Roland McGrath <roland@redhat.com>
13677 Jakub Jelinek <jakub@redhat.com>
13678
13679 * sysdeps/unix/sysv/linux/Makefile
13680 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
13681 sparc/Makefile to produce a bi-arch file as needed.
13682 That's now parameterized by the variable $(64bit-predefine).
13683 Use LC_ALL=C for `comm' commands in that rule.
13684 No longer conditional on [$(no_syscall_list_h)].
13685 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
13686 (64bit-predefine): New variable.
13687 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
13688 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
13689 * sysdeps/unix/sysv/linux/powerpc/Makefile
13690 (64bit-predefine): New variable.
13691
13692 2002-10-15 Roland McGrath <roland@redhat.com>
13693
13694 * sysdeps/unix/sysv/linux/Makefile
13695 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
13696
13697 * login/utmp-private.h: Declare __libc_utmp_lock.
13698 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
13699 and call __libc_utmp_jump_table functions directly, instead of using
13700 __setutent et al.
13701
13702 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
13703 * sysdeps/unix/sysv/linux/configure: Regenerated.
13704
13705 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
13706 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13707 Use int32_t for ll_time.
13708 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
13709 Use int32_t instead of long int for ut_session.
13710 Use an anonymous struct with 32-bit fields for ut_tv.
13711 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
13712 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
13713 here as in utmp.h for `struct utmp'.
13714 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
13715 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
13716 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
13717 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
13718 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
13719 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
13720
13721 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
13722 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
13723 All the following files were identical or equivalent to it.
13724 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
13725 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
13726 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
13727 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
13728 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
13729 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
13730 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
13731 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
13732 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
13733 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
13734
13735 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
13736 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
13737 Other than the previously incorrect sign of msg_iovlen, this is a
13738 no-op on 32-bit platforms. On 64-bit platforms it makes this header
13739 match their layouts as well, so the following are now identical to it.
13740 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
13741 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
13742 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
13743 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
13744 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
13745
13746 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13747
13748 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
13749 Define for 2.4+ kernels.
13750
13751 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
13752 are known to have the vfork syscall. Don't confuse the CPUs
13753 branch prediction unit by jumping to the return address.
13754
13755 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
13756 support for reiserfs and xfs.
13757
13758 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
13759 XFS link count.
13760 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
13761 and XFS_LINK_MAX.
13762 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
13763
13764 2002-10-16 Jakub Jelinek <jakub@redhat.com>
13765
13766 * include/libc-symbols.h (attribute_tls_model_ie): Define.
13767 * include/errno.h (errno): Define to __libc_errno in libc.so.
13768 Add attribute_tls_model_ie.
13769 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
13770 Add attribute_tls_model_ie.
13771 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
13772 attribute_tls_model_ie.
13773 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
13774 (h_errno): Define.
13775 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
13776 (_res): Define.
13777 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
13778 attribute_tls_model_ie.
13779 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
13780 __thread.
13781 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
13782 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
13783 __libc_errno in USE___THREAD case.
13784 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13785 Likewise.
13786 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
13787 __attribute__((tls_model (""))).
13788 * configure: Rebuilt.
13789 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
13790
13791 2002-10-15 Ulrich Drepper <drepper@redhat.com>
13792
13793 * timezone/asia: Update from tzdata2002d.
13794 * timezone/australasia: Likewise.
13795 * timezone/iso3166.tab: Likewise.
13796 * timezone/southamerica: Likewise.
13797 * timezone/zone-tab: Likewise.
13798
13799 2002-10-15 Roland McGrath <roland@redhat.com>
13800
13801 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
13802 Adjust TCB pointer before calling free, so we get the whole block.
13803
13804 2002-10-14 Roland McGrath <roland@redhat.com>
13805
13806 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
13807 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
13808 extern using attribute_hidden instead of static, avoids warning.
13809
13810 2002-10-09 Jakub Jelinek <jakub@redhat.com>
13811
13812 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
13813 * sysdeps/unix/sysv/linux/configure: Rebuilt.
13814
13815 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13816
13817 * po/sv.po: Update from translation team.
13818
13819 2002-10-12 H.J. Lu <hjl@gnu.org>
13820
13821 * sunrpc/thrsvc.c (PROCQUIT): New.
13822 (struct rpc_arg): New.
13823 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
13824 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
13825 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
13826 (main): Modified for struct rpc_arg *.
13827
13828 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13829
13830 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
13831
13832 2002-10-14 Jakub Jelinek <jakub@redhat.com>
13833
13834 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
13835 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
13836 in ld.so even if __thread is supported.
13837
13838 2002-10-13 Jakub Jelinek <jakub@redhat.com>
13839
13840 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
13841 Add hack to prevent the compiler from clobbering the signal context.
13842 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
13843 Likewise.
13844 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
13845 Likewise.
13846
13847 2002-10-14 Andreas Jaeger <aj@suse.de>
13848
13849 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
13850 Guido Guenther <agx@sigxcpu.org>.
13851
13852 2002-10-14 Ulrich Drepper <drepper@redhat.com>
13853
13854 * po/sk.po: Update from translation team.
13855
13856 2002-09-26 Roland McGrath <roland@redhat.com>
13857
13858 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
13859 dynamic string tag.
13860 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
13861 DL_DST_LIB based on $(slibdir).
13862
13863 2002-10-13 Roland McGrath <roland@frob.com>
13864
13865 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
13866
13867 * sysdeps/mach/hurd/getresuid.c: New file.
13868 * sysdeps/mach/hurd/getresgid.c: New file.
13869 * sysdeps/mach/hurd/setresuid.c: New file.
13870 * sysdeps/mach/hurd/setresgid.c: New file.
13871
13872 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
13873 setresgid): Declare them.
13874 * NEWS: Mention it.
13875 * include/unistd.h
13876 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
13877 add libc_hidden_proto.
13878 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
13879 getresuid, getresgid, setresuid, setresgid here.
13880 * Versions.def (libc): Define GLIBC_2.3.2 set.
13881 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
13882 Add libc_hidden_def.
13883 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
13884 * sysdeps/generic/setresgid.c: New file.
13885 * sysdeps/generic/setresuid.c: New file.
13886 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13887 (sysdep_routines): Don't add getresuid and getresgid here.
13888 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
13889 (sysdep_routines): Don't add setresuid and setresgid here.
13890 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13891 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13892 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13893 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13894 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13895 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13896 * posix/Makefile (routines): Add them all here instead.
13897 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
13898 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
13899 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
13900 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
13901 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
13902 [! __NR_setresuid]: Include generic file.
13903 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
13904 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
13905 [! __NR_setresuid]: Include generic file.
13906 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
13907 Caller is - now, not EXTRA.
13908 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
13909 (setresuid, setresgid, getresuid, getresgid): Likewise.
13910 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
13911 Add these calls here.
13912 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
13913 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
13914 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
13915 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
13916 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
13917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
13919 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
13920 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
13921
13922 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
13923 (sysdep_routines): Add setfsuid and setfsgid here.
13924 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
13925 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
13926 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
13927 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
13928 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
13929 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
13930 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
13931 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
13932
13933 * hurd/errno.c: Renamed to ...
13934 * hurd/errno-loc.c: ... this.
13935 * hurd/Makefile (routines): errno -> errno-loc
13936
13937 2002-10-13 Ulrich Drepper <drepper@redhat.com>
13938
13939 * po/de.po: Update from translation team.
13940
13941 * MakeTAGS: Add -E flag to xgettext runs.
13942
13943 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13944
13945 * po/fr.po: Update from translation team.
13946
13947 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
13948 Optimize a bit for use in glibc.
13949
13950 2002-10-12 Roland McGrath <roland@redhat.com>
13951
13952 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
13953 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
13954
13955 2002-10-12 Ulrich Drepper <drepper@redhat.com>
13956
13957 * po/sv.po: Update from translation team.
13958
13959 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
13960
13961 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
13962 OP_CONTEXT_NODE.
13963 (regfree): Likewise.
13964 (create_initial_state): Likewise.
13965 (analyze): Remove the substitutions which became useless.
13966 (calc_first): Likewise.
13967 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
13968 epsilon destination.
13969 (duplicate_node_closure): New function.
13970 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
13971 (calc_inveclosure): Likewise.
13972 (calc_eclosure): Likewise.
13973 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
13974 direct invocation of duplicate_node.
13975 (parse): Don't use comma operator in the return to avoid compiler
13976 warning.
13977 (parse_reg_exp): Likewise.
13978 (parse_branch): Likewise.
13979 (parse_expression): Likewise.
13980 (parse_sub_exp): Likewise.
13981 (parse_dup_op): Likewise.
13982 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
13983 which became useless.
13984 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
13985 (create_cd_newstate): Likewise.
13986 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
13987 (re_token_t): Likewise.
13988 (re_dfa_t): Likewise.
13989 (re_node_set_remove): New macro.
13990 * posix/regexec.c (check_matching): Remove the handling
13991 OP_CONTEXT_NODE.
13992 (check_halt_node_context): Likewise.
13993 (proceed_next_node): Likewise.
13994 (pop_fail_stack): Fix the memory leak.
13995 (set_regs): Likewise.
13996 (free_fail_stack_return): New function.
13997 (sift_states_backward): Fix the memory leak. Remove the handling
13998 OP_CONTEXT_NODE.
13999 (update_cur_sifted_state): Append some if clause to avoid redundant
14000 call.
14001 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
14002 back reference.
14003 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
14004 (check_subexp_limits): Likewise.
14005 (search_subexp): Likewise.
14006 (sift_states_bkref): Likewise.
14007 (transit_state_mb): Likewise.
14008 (transit_state_bkref_loop): Likewise.
14009 (transit_state_bkref_loop): Likewise.
14010 (group_nodes_into_DFAstates): Likewise.
14011 (check_node_accept): Likewise.
14012 (sift_ctx_init): Add initializing.
14013
14014 2002-10-12 Ulrich Drepper <drepper@redhat.com>
14015
14016 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
14017 __builtin_expect.
14018
14019 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14020
14021 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
14022 duplicated variable c.
14023
14024 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
14025 if possible.
14026
14027 * sysdeps/unix/sysv/linux/i386/sysdep.h
14028 (INTERNAL_SYSCALL_ERROR_P): New define.
14029 (INTERNAL_SYSCALL_ERRNO): Likewise.
14030
14031 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
14032 Add hack to prevent the compiler from clobbering the signal context.
14033
14034 2002-10-11 Roland McGrath <roland@redhat.com>
14035
14036 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
14037 Fix typos.
14038
14039 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
14040 * sysdeps/sh/dl-lookupcfg.h: File removed.
14041 * sysdeps/i386/dl-lookupcfg.h: File removed.
14042
14043 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
14044 missing labels and ; from last change.
14045
14046 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
14047 number literals, so they are doubles instead of ints.
14048
14049 2002-10-09 Roland McGrath <roland@redhat.com>
14050
14051 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
14052 changed from [USE_TLS && HAVE___THREAD].
14053
14054 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
14055 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
14056 * sysdeps/x86_64/dl-machine.h
14057 (elf_machine_type_class, elf_machine_rela): Likewise.
14058 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
14059 Likewise.
14060
14061 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
14062 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
14063 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
14064
14065 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
14066 instead of ___tls_get_addr.
14067 (___tls_get_addr_internal): Add attribute_hidden to decl.
14068
14069 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
14070 _dl_error_catch_tsd.
14071 * elf/rtld.c (startup_error_tsd): New function.
14072 (dl_main): Point _dl_error_catch_tsd at that.
14073 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
14074 use new function pointer instead.
14075 * elf/dl-tsd.c: New file.
14076 * elf/Makefile (routines): Add it.
14077
14078 2002-10-07 Roland McGrath <roland@redhat.com>
14079
14080 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
14081 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
14082 take _dl_load_lock around calling __writev.
14083
14084 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
14085 (INLINE_SYSCALL): Use that.
14086
14087 * sysdeps/generic/dl-sysdep.h: New file.
14088 * sysdeps/mach/hurd/dl-sysdep.h: New file.
14089 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
14090 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
14091 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
14092 access it directly.
14093 * elf/dl-minimal.c (__errno_location): Removed.
14094 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14095 Use GOTOFF access for errno.
14096 * sysdeps/unix/sysv/linux/i386/sysdep.h
14097 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14098
14099 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
14100 Use PC-relative access for errno.
14101 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14102 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
14103
14104 * include/tls.h: New file.
14105 (USE___THREAD): New macro.
14106 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
14107 libc or libpthread.
14108 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
14109 changed from [USE_TLS && HAVE___THREAD].
14110 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14111 * sysdeps/unix/i386/sysdep.S: Likewise.
14112 * sysdeps/unix/x86_64/sysdep.S: Likewise.
14113 * include/errno.h: Likewise.
14114 * include/netdb.h: Likewise.
14115 * include/resolv.h: Likewise.
14116
14117 * sysdeps/generic/errno.c: New file.
14118 * csu/Makefile (aux): New variable, list errno.
14119 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
14120 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
14121 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
14122 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14123 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14124 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
14125 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
14126 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
14127 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14128 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
14129 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
14130 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
14131 * sysdeps/unix/alpha/sysdep.S: Likewise.
14132 * sysdeps/generic/start.c: Likewise.
14133 * sysdeps/unix/start.c: Likewise.
14134 * sysdeps/unix/arm/start.c: Likewise.
14135 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
14136 * sysdeps/unix/sparc/start.c: Likewise.
14137 * sysdeps/unix/sysv/irix4/start.c: Likewise.
14138 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
14139
14140 * manual/search.texi (Tree Search Function, Hash Search Function):
14141 Mention search.h clearly.
14142
14143 2002-10-05 Roland McGrath <roland@redhat.com>
14144
14145 * elf/dl-fxstat64.c: File removed.
14146 * elf/dl-xstat64.c: File removed.
14147 * elf/Makefile (rtld-routines): Remove them.
14148 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
14149 Instead, use strong_alias instead of versioned_symbol in the
14150 !SHLIB_COMPAT case.
14151 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
14152 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
14153
14154 * include/shlib-compat.h
14155 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
14156 [! NOT_IN_libc] (IS_IN_libc): Define it.
14157 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
14158 * elf/Makefile (CPPFLAGS-.os): Likewise.
14159
14160 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
14161 Return the status instead of calling exit.
14162
14163 * Makeconfig (CFLAGS): Prepend -std=gnu99.
14164 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
14165 Remove superfluous rm command, whose @ plus make bugs hid
14166 all these commands from the make output.
14167
14168 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
14169 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
14170 Use that file's contents instead of literal echo's for the prologue.
14171 * include/features.h: Include <gnu/stubs.h> unconditionally.
14172 * include/gnu/stubs.h: New file.
14173
14174 2002-09-30 Roland McGrath <roland@redhat.com>
14175
14176 * elf/rtld-Rules: New file.
14177 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
14178 $(objpfx)rtld-libc.a): New targets.
14179 (generated): Add them.
14180 (reloc-link): Remove -o $@ from the variable.
14181 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
14182 (distribute): Add rtld-Rules.
14183 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
14184 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
14185 (common-mostlyclean, common-clean): Clean up rtld-* files.
14186 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
14187
14188 2003-05-20 Jakub Jelinek <jakub@redhat.com>
14189
14190 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
14191 If temp != NULL, copy dynamic entries which need relocation to temp
14192 array before relocating.
14193 (DL_RO_DYN_TEMP_CNT): Define.
14194 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
14195 * elf/rtld.c (_dl_start): Likewise.
14196 (dl_main): Likewise. Add dyn_temp static variable.
14197
14198 2002-10-11 Roland McGrath <roland@redhat.com>
14199
14200 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
14201 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
14202
14203 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
14204 proper set of no-op insn prefixes.
14205
14206 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
14207
14208 2002-10-11 Ulrich Drepper <drepper@redhat.com>
14209
14210 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
14211 __pthread_kill_other_threads_np.
14212
14213 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
14214
14215 2002-10-08 Roland McGrath <roland@redhat.com>
14216
14217 * locale/newlocale.c (__newlocale): If setting all categories to "C",
14218 just return &_nl_C_locobj instead of copying it.
14219 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
14220 * locale/duplocale.c (__duplocale): Likewise.
14221
14222 2002-10-07 Roland McGrath <roland@frob.com>
14223
14224 * config.h.in (HAVE_I386_SET_GDT): New #undef.
14225 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
14226 * sysdeps/mach/configure: Regenerated.
14227
14228 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14229
14230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
14231 Add all necessary register outputs for syscall-clobbered registers.
14232
14233 2002-10-02 David Mosberger <davidm@hpl.hp.com>
14234
14235 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
14236 Itanium 2 (and Itanium).
14237 Fix unwind directives and make it fit in 80 columns.
14238 * sysdeps/ia64/memset.S: Likewise.
14239 * sysdeps/ia64/memcpy.S: Likewise.
14240 Move jump table to .rodata section.
14241
14242 2002-10-03 Roland McGrath <roland@frob.com>
14243
14244 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
14245 clobbers to asm.
14246
14247 2002-10-10 Andreas Jaeger <aj@suse.de>
14248
14249 * sysdeps/x86_64/_mcount.S: Restore correct registers.
14250
14251 2002-10-10 Ulrich Drepper <drepper@redhat.com>
14252
14253 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
14254
14255 2002-10-09 Ulrich Drepper <drepper@redhat.com>
14256
14257 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
14258 _dl_allocate_tls_init. Add rtld_hidden_proto.
14259 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
14260 rtld_hidden_def.
14261 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
14262
14263 * version.h (VERSION): Bump to 2.3.1.
14264
14265 * Make-dist: Add back one of the tar invocations removed before.
14266
14267 * stdlib/Makefile (distribute): Add allocalim.h.
14268
14269 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
14270 (__libc_tsd_address): Use correct variable name.
14271 Patch by Stefan Jones <stefan.jones@multigig.com>.
14272
14273 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
14274 Reported by edwardsg@sgi.com [PR libc/4678].
14275
14276 * Versions.def (libc): Add GLIBC_2.3.1.
14277 (libpthread): Add GLIBC_2.3.1.
14278
14279 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
14280 and __sigtimedwait.
14281 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
14282 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
14283 libc_hidden_def.
14284 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
14285 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
14286
14287 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
14288 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
14289 and make old name an alias.
14290 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
14291 and make old name an alias.
14292 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
14293 __libc_msgsnd.
14294
14295 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
14296 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
14297 __libc_writev.
14298 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
14299 old name an alias.
14300 * sysdeps/posix/readv.c: Likewise
14301 * sysdeps/unix/sysv/aix/readv.c: Likewise.
14302 * sysdeps/unix/sysv/linux/readv.c: Likewise.
14303 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
14304 old name an alias.
14305 * sysdeps/posix/writev.c: Likewise
14306 * sysdeps/unix/sysv/aix/writev.c: Likewise.
14307 * sysdeps/unix/sysv/linux/writev.c: Likewise.
14308
14309 * include/sys/wait.h: Declare __waitid.
14310 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
14311 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
14312 name an alias.
14313 * sysdeps/posix/waitid.c: Likewise.
14314 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
14315
14316 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
14317
14318 2002-10-07 Jakub Jelinek <jakub@redhat.com>
14319
14320 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
14321 prototypes.
14322 (__MAX_ALLOCA_CUTOFF): Define.
14323 Include allocalim.h.
14324 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
14325 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
14326 host_buffer depending on __libc_use_alloca.
14327 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
14328 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
14329 net_buffer depending on __libc_use_alloca.
14330 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
14331 buf depending on __libc_use_alloca.
14332 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
14333 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
14334 instead of hardcoded constants.
14335 Pass proper size argument to alloca and compute end for wide char
14336 version.
14337 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
14338 instead of hardcoded constants.
14339 * string/strcoll.c (strcoll): Likewise.
14340 * string/strxfrm.c (strxfrm): Likewise.
14341 * sysdeps/posix/readv.c (__readv): Likewise.
14342 * sysdeps/posix/writev.c (__writev): Likewise.
14343 * sysdeps/generic/allocalim.h: New file.
14344
14345 2002-10-08 Roland McGrath <roland@redhat.com>
14346
14347 * configure.in (aux_missing warning): Change "too old" to
14348 "incompatible versions", since for autoconf it's "too new" right now.
14349 * configure: Regenerated.
14350
14351 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
14352 one found doesn't work on our configure.in.
14353 * configure: Regenerated.
14354 * config.make.in (AUTOCONF): New substituted variable.
14355 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
14356 (autoconf-it): ... here, use that instead of defining conditionally.
14357 Use $(AUTOCONF) instead of literal autoconf.
14358 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
14359 with this condition.
14360 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
14361
14362 2002-10-08 Ulrich Drepper <drepper@redhat.com>
14363
14364 * Make-dist (dist): Cleanup a bit. We are not interested in the
14365 14 char filename limit anymore. Remove intermediate files and
14366 symlinks.
14367
14368 2002-10-05 Ulrich Drepper <drepper@redhat.com>
14369
14370 * po/sk.po: Update from translation team.
14371 * po/tr.po: Likewise.
14372 * po/gl.po: Likewise.
14373
14374 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
14375
14376 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
14377
14378 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14379
14380 * version.h (RELEASE): Change to stable.
14381
14382 2002-10-03 Jakub Jelinek <jakub@redhat.com>
14383
14384 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
14385 __syscall_exit_group): New prototypes.
14386
14387 2002-10-03 Ulrich Drepper <drepper@redhat.com>
14388
14389 * glibc 2.3 released.
14390
14391
14392 See ChangeLog.13 for earlier changes.
This page took 0.696953 seconds and 5 git commands to generate.